static func linearGradient (Gradient, startPoint : UnitPoint , endPoint : UnitPoint ) -> LinearGradient
A linear gradient.
線形勾配。
Available when
Self
is LinearGradient
.static func linearGradient (stops: [Gradient.Stop], startPoint : UnitPoint , endPoint : UnitPoint ) -> LinearGradient
A linear gradient defined by a collection of color stops.
Available when
Self
is LinearGradient
.