UIColor
Undocumented
-
Inits a
UIColorfrom RGBIntvalues + alpha from CGFloatParameter
Parameter rgbaColor: The levels of color for red/green/blue + alphaDeclaration
Swift
public convenience init(rgbaColor: RGBAColor)Parameters
rgbaColorThe levels of color for red/green/blue + alpha
-
Gets the red component
Returns
IntDeclaration
Swift
public func getRed() -> IntReturn Value
Int -
Gets the green component
Returns
IntDeclaration
Swift
public func getGreen() -> IntReturn Value
Int -
Gets the blue component
Returns
IntDeclaration
Swift
public func getBlue() -> IntReturn Value
Int -
Gets the alpha component
Returns
CGFloatDeclaration
Swift
public func getAlpha() -> CGFloatReturn Value
CGFloat -
Converts the UIColor to a readable string.
Using the format:
"Red: 123 - Green: 123 - Blue: 123 - Alpha: 1.0"Returns
StringDeclaration
Swift
public func toString() -> StringReturn Value
String
UIColor Extension Reference