palette(_:)
Returns a multilevel shading instance constructed from an array of shading instances.
Declaration
static func palette(_ array: [GraphicsContext.Shading]) -> GraphicsContext.ShadingParameters
- array:
An array of shading instances. The array must contain at least one element.
Return Value
A shading instance composed from the given instances.