Initializer

init(red:green:blue:alpha:)

Initializes a Core Image color object with the specified red, green, blue, and alpha component values.

Declaration

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

Parameters

r

The unpremultiplied red component of the color.

g

The unpremultiplied green component of the color.

b

The unpremultiplied blue component of the color.

a

The alpha (opacity) component of the color.

Return Value

The resulting Core Image color.

See Also

Initializing Color Objects

init(cgColor: CGColor)

Initializes a Core Image color object with a Core Graphics color.

init(color: UIColor)

Initializes a Core Image color object using a UIKit (or AppKit) color object.

init?(red: CGFloat, green: CGFloat, blue: CGFloat, colorSpace: CGColorSpace)

Initializes a Core Image color object with the specified red, green, and blue component values as measured in the specified color space.

init?(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat, colorSpace: CGColorSpace)

Initializes a Core Image color object with the specified red, green, blue, and alpha component values as measured in the specified color space.