gradient

abstract fun gradient(vararg colors: TextColor): Styler

Applies a gradient of colors to the text.

Return

this Styler instance for chaining

Parameters

colors

the colors to use in the gradient


abstract fun gradient(gradient: Gradient.() -> Unit): Styler

Applies a gradient of colors to the text using a DSL builder.

Return

this Styler instance for chaining

Parameters

gradient

the gradient builder consumer