init(gradient: Gradient, center: UnitPoint , angle: Angle)
init(colors: [Color], center: UnitPoint , angle: Angle)
init(stops: [Gradient.Stop], center: UnitPoint , angle: Angle)
Availability 有効性
Technology
@frozen struct AngularGradient
An angular gradient is also known as a “conic” gradient. This gradient applies the color function as the angle changes, relative to a center point and defined start and end angles. If end
, the gradient only draws the last complete turn. If end
, the gradient fills the missing area with the colors defined by gradient locations one and zero, transitioning between the two halfway across the missing area.
角勾配はまた “円錐” 勾配として知られます。この勾配(グラデーション)は、色関数を角度変化として適用します、ある中心点に関してそして開始および終了角度を定義されて。end
ならば、勾配は最後の完了回転を描画するだけです。end
ならば、勾配はその欠けている領域を勾配位置1とゼロによって定義される色で、欠けている領域を横切って2つの中途の間を推移しながら、満たします。
The gradient maps the unit space center point into the bounding rectangle of each shape filled with the gradient.
When using an angular gradient as a shape style, you can also use angular
, conic
, or similar methods.
init(gradient: Gradient, center: UnitPoint , angle: Angle)
init(colors: [Color], center: UnitPoint , angle: Angle)
init(stops: [Gradient.Stop], center: UnitPoint , angle: Angle)
init(gradient: Gradient, center: UnitPoint , startAngle : Angle, endAngle : Angle)
init(colors: [Color], center: UnitPoint , startAngle : Angle, endAngle : Angle)
init(stops: [Gradient.Stop], center: UnitPoint , startAngle : Angle, endAngle : Angle)
typealias Body
struct EllipticalGradient
struct LinearGradient
struct RadialGradient
struct Material
struct ImagePaint
struct HierarchicalShapeStyle
struct ForegroundStyle
struct BackgroundStyle
struct SelectionShapeStyle
struct SeparatorShapeStyle
struct TintShapeStyle