Instance Property

stringRepresentation

A formatted string that specifies the components of the color.

Declaration

@property(readonly) NSString *stringRepresentation;

Discussion

The string representation always has four components—red, green, blue, and alpha. The default value for the alpha component is 1.0. For example, this string:

@"0.5 0.7 0.3 1.0"

indicates an RGB color whose components are 50% red, 70% green, 30% blue, and 100% opaque (alpha value of 1.0).

See Also

Getting Color Components

colorSpace

The Quartz 2D color space associated with the color.

components

The color components of 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.