Returns information about the color stop at the specified index in the receiver’s color array.
- macOS 10.5+
On input, a pointer to a color object. On output, the color at the specified index in the receiver’s color array. You may specify
nilif you are not interested in this parameter.
On input, a pointer to a floating point number. On output, contains the location value associated with the color. This value is between 0.0 and 1.0. It is used to determine the position of the color relative to the start and end points of the gradient. You may specify
NULLif you are not interested in this parameter.
The index of the color you want.
This method returns the color stop information that was used to create the receiver. It does not return the interpolated color values at any point along the gradient. The location of the gradient’s first color is typically 0.0 and the location of the last color is typically 1.0, although the locations can vary depending on how the receiver was created.