Skip to content

dessmith/ColorModel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorModel

ColorModel allows to work with colors through RGB, HSB and grayscale components.

Requirements

  • iOS 9.0+
  • Swift 3.0+

Installation

Carthage

To integrate ColorModel into your project using Carthage, specify it in your Cartfile:

github "valery-bashkatov/ColorModel" ~> 2.0.0

And then follow the instructions to install the framework.

Documentation

API Reference is located at http://valery-bashkatov.github.io/ColorModel.

Usage

import ColorModel

let colorModel = ColorModel(color: UIColor.purple)

colorModel.saturation -= 0.7
colorModel.brightness += 0.3

let lightPurple = colorModel.color

About

Working with color components

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%