Instance Property

colorSpace

The color space of the colors associated with the gradient.

Declaration

@property(readonly, strong) NSColorSpace *colorSpace;

Discussion

When the receiver is initialized, colors that do not conform to the receiver’s color space are converted automatically.

See Also

Getting Gradient Properties

numberOfColorStops

The number of color stops associated with the gradient.

- getColor:location:atIndex:

Returns information about the color stop at the specified index in the receiver’s color array.

- interpolatedColorAtLocation:

Returns the color of the rendered gradient at the specified relative location.