StellarGradientBuilder

class StellarGradientBuilder<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 center: Vector2

Specifies the center point of the gradient. The center is defined in normalized 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 Vector2(0.5, 0.5), which corresponds to the center of the gradient.

Link copied to clipboard
Link copied to clipboard

Specifies the rotation angle of the gradient in degrees. This property adjusts the overall rotation of the gradient around its center point. By default, the value is set to 0.0 degrees, indicating no rotation. Modifying this value allows the gradient's orientation to be tilted, enabling various aesthetic effects.

Link copied to clipboard

Determines the sharpness of the star shape. Maximum value is 1.0 which will produce pointy stars. Values closer to 0.0 result in smoother, star shapes. A value of 0.0 will result in a regular polygon shape. The default value is 0.5.

Link copied to clipboard
var sides: Int

Specifies the number of sides for the star pattern used in the gradient. This property controls the symmetry and appearance of the resulting gradient. Higher values produce shapes with more sides, contributing to more intricate patterns, while lower values result in simpler, less detailed designs. The default value is set to 6.

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.