CCPColor(swift 5.0, iOS)
Color常用分类
How to use
- pod 'CCPColor'
- import CCPColor
- use UIColor.rgba() to init a rgba color
- use UIColor.hex() to init a hex color
- use UIColor().alpha to get a color alpha, or reset a color alpha
- use UIColor().image(size:) to create an image with current color
- use UIColor.color() to get a color at the point of an image
- use [UIColor()].gradient to create an gradientLayer