Type Method 型メソッド

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
Available when Self is 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.