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