gradient
inline fun <C : ConvertibleToColorRGBa, AlgebraicColor<C>, CastableToVector4> gradient(builder: GradientBuilder<C>.() -> Unit): ShadeStyle(source)
Creates a gradient shade style using the specified configuration.
The method allows for building a gradient using a DSL-like approach, where different properties such as gradient stops, gradient type, and other configurations can be set.
Return
A ShadeStyle instance representing the configured gradient.
Parameters
builder
A lambda function used to configure the gradient properties through an instance of GradientBuilder.