UIColor+MPColors

MIT License
Objective-C
iOS

1 image

Author

MikePT28

Description

Implementation of methods to extend the funtinality and use of the UIColor class.

The list of methods will continue to evolve as I keep finding new needs for color creation or people suggest new methods.

Features

  • Create color from a HexRGB Value (Ex: 0xFFFFFF) & HexRGBA Value .

  • Create color from a HexRGB String with either # or 0x or neither. (Ex: @"FFFFFF" or @"#FFFFFF" or @"0xFFFFFF") & HexRGBA String (Ex: @"FFFFFFFF" or @"#FFFFFFFF" or @"0xFFFFFFFF").

  • Create color from with Base255 int values (Ex: int from 0 to 255) and also Base100 alpha value (Ex: int from 0 to 100).

  • Create color from Base255 RGB String (Ex: @"255,255,255") and also with alpha (Ex: @"255,255,255,1.0").

Tags