Instance Property


The color components of the color.


var components: UnsafePointer<CGFloat> { get }


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

var colorSpace: CGColorSpace

The Quartz 2D color space associated with the color.

var numberOfComponents: Int

Returns the number of color components in the color.

var red: CGFloat

The unpremultiplied red component of the color.

var green: CGFloat

The unpremultiplied green component of the color.

var blue: CGFloat

The unpremultiplied blue component of the color.

var alpha: CGFloat

The alpha value of the color.

var stringRepresentation: String

A formatted string that specifies the components of the color.