toColor

open fun toColor(value: Expression<*>, vararg fallbacks: Expression<*>): Expression<Color>

Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.