Contents

radialGradient(stops:center:startRadius:endRadius:)

A radial gradient defined by a collection of color stops.

Declaration

static func radialGradient(stops: [Gradient.Stop], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> RadialGradient

Discussion

The gradient applies the color function as the distance from a center point, scaled to fit within the defined start and end radii. The gradient maps the unit space center point into the bounding rectangle of each shape filled with the gradient.

For information about how to use shape styles, see ShapeStyle.

See Also

Radial gradients