Contents

red

Returns the unpremultiplied red component of the color.

Declaration

var red: CGFloat { get }

Discussion

If the CIColor was initialized with a CGColor in a non-RGB CGColorSpace then it will be converted to sRGB to get the red component.

See Also

Getting Color Components