radialGradient(colors:center:startRadius:endRadius:)
A radial gradient defined by a collection of colors.
Declaration
static func radialGradient(colors: [Color], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> RadialGradientDiscussion
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.