Instance Property

components

The color components of the color.

Declaration

@property(readonly) const CGFloat *components;

Discussion

This property’s value is an array of color components, specified as floating-point values in the range of 0.0 through 1.0. This array includes an alpha component if the color contains one.

See Also

Getting Color Components

colorSpace

The Quartz 2D color space associated with the color.

numberOfComponents

Returns the number of color components in the color.

red

The unpremultiplied red component of the color.

green

The unpremultiplied green component of the color.

blue

The unpremultiplied blue component of the color.

alpha

The alpha value of the color.

stringRepresentation

A formatted string that specifies the components of the color.