LinearGradientBuilder

class LinearGradientBuilder<C : ConvertibleToColorRGBa, AlgebraicColor<C>, CastableToVector4>(gradientBuilder: GradientBuilder<C>) : GradientShadeStyleBuilder<C> (source)

Constructors

Link copied to clipboard
constructor(gradientBuilder: GradientBuilder<C>)

Properties

Link copied to clipboard
var end: Vector2

Specifies the end point of the linear gradient. The coordinate values are normalized when using BOUNDS coordinates, where (0,0) represents the top-left corner and (1,1) represents the bottom-right corner of the gradient's bounding box. The default value is set to Vector2(1.0, 0.5), which places the end point at the right middle edge of the bounding box.

Link copied to clipboard
var start: Vector2

Specifies the start point of the linear gradient. The coordinate values are normalized when using BOUNDS coordinates, where (0,0) represents the top-left corner and (1,1) represents the bottom-right corner of the gradient's bounding box. The default value is set to Vector2(0.0, 0.5), which places the start point at the left middle edge of the bounding box.

Functions

Link copied to clipboard
open override fun build(): GradientBase<C>

Constructs and returns a GradientBase object representing a gradient with the desired configuration defined in the implementing class.