Initializer

init(red:green:blue:)

Creates a color object using the specified RGB color component values

Declaration

convenience init(red r: CGFloat, green g: CGFloat, blue b: CGFloat)

Parameters

r

The value of the red component.

g

The value of the green component.

b

The value of the blue component.

Return Value

A Core Image color object that represents an RGB color in the color space specified by the Quartz 2D constant kCGColorSpaceGenericRGB.

See Also

Creating Color Objects

init(string: String)

Creates a color object using the RGBA color component values specified by a string.