angularGradient(colors:center:startAngle:endAngle:)
An angular gradient defined by a collection of colors.
Declaration
static func angularGradient(colors: [Color], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> AngularGradientParameters
- colors:
The colors of the gradient, evenly spaced along its full length.
- center:
The relative center of the gradient, mapped from the unit space into the bounding rectangle of the filled shape.
- startAngle:
The angle that marks the beginning of the gradient.
- endAngle:
The angle that marks the end of the gradient.
Discussion
For more information on how to use angular gradients, see angularGradient(_:center:startAngle:endAngle:).