ConicGradientBuilder

class ConicGradientBuilder<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

Defines the angular extent of the conic gradient in degrees. By default, it is set to 360.0 degrees, representing a full circular gradient. Adjusting this value can control the gradient's angular sweep, with values ranging between 0 and 360. Negative values or values exceeding 360 might have no effect or be clamped depending on implementation.

Link copied to clipboard
var center: Vector2

Specifies the center point for the gradient. When using BOUNDS coordinates, the coordinates are normalized, where (0,0) represents the top-left corner and (1,1) represents the bottom-right corner. The default value is set to Vector2(0.5, 0.5), which corresponds to the center of the gradient's bounding box.

Link copied to clipboard

Defines the rotation angle of the conic gradient in degrees. This value applies a global rotation to the gradient, rotating it around its center point. By default, it is set to 0.0 degrees, meaning no rotation is applied. Modifying this value allows for tilting the gradient's angular orientation to achieve specific visual effects or alignments.

Link copied to clipboard

Specifies the starting angle of the conic gradient in degrees. This value determines the initial orientation of the gradient's angular sweep. By default, it is set to 0.0 degrees, which aligns with a standard reference point. You can adjust this value to rotate the gradient's starting position around the center.

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.