Initializes a newly allocated gradient object with a comma-separated list of arguments.
- macOS 10.5+
The first color in the gradient.
A comma-separated list of alternating
NSColorobjects and location arguments (specified as
CGFloatvalues). The first value after
firstmust be a location. Each location value must be between 0.0 and 1.0. The list must be
Typically, at least one color should have a location of 0.0 and one should have a location of 1.0. If these locations are not specified, the color at the closest color stop is used to fill the gap.