Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 823 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 823 Bytes

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