Type Method 型メソッド

linearGradient(_:startPoint:endPoint:)

A linear gradient. 線形勾配。

Declaration 宣言

static func linearGradient(_ gradient: Gradient, startPoint: UnitPoint, endPoint: UnitPoint) -> LinearGradient
Available when Self is LinearGradient.

Discussion 議論

The gradient applies the color function along an axis, as defined by its start and end points. 勾配(グラデーション)は、カラー関数をある軸に沿って適用します、それの開始および終了点によって定義されるように。 The gradient maps the unit space points into the bounding rectangle of each shape filled with the gradient.

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