ColorModel
allows to work with colors through RGB, HSB and grayscale components.
- iOS 9.0+
- Swift 3.0+
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.
API Reference is located at http://valery-bashkatov.github.io/ColorModel.
import ColorModel
let colorModel = ColorModel(color: UIColor.purple)
colorModel.saturation -= 0.7
colorModel.brightness += 0.3
let lightPurple = colorModel.color