toColor

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.

fun toColor(block: Expression.ExpressionBuilder.() -> Unit)