Git Product home page Git Product logo

sweetercolor's Introduction

Sweetercolor

Sweetercolor

A color extension library for Swift.*

*It has Photoshop style color blending!

Example

// Example of hex initializer
let sun = UIColor(hex: "#FBF002")
// Example of RGB 0-255 initializer
let pink = UIColor(r: 241, g: 139, b: 185)

let container = UIView(frame: CGRect(x: 0, y: 0, width: 888, height: 250))
container.backgroundColor = pink

let label = UILabel(frame: container.frame)
label.text = "Sweet"
label.textColor = sun

// Example of overlay similar to Photoshop with reduced alpha
// This allows us to get a more natural ambient shadow
label.layer.shadowColor = pink.overlayBlack.with(alpha: 0.6).cgColor

Example Preview

Installation

You can either directly copy Sweetercolor.swift into your project or you can use CocoaPods: Sweetercolor.

Documentation

Each method is documented using headerdocs. An overview can be found here: jathu.me/sweetercolor

License

The license is provided in the project folder.

Logo

The logo and name is based off of Sweeterman by Ramriddlz. The original logo is based on the Chiquita logo.


August 2015 - Toronto

sweetercolor's People

Contributors

jathu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.