toRgba

open fun toRgba(@NonNull expression: Expression): Expression

Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.

Return

expression

Parameters

expression

an expression to convert to a color

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#to-rgba">Style specification</a>