rgba
open fun rgba(@NonNull red: Expression, @NonNull green: Expression, @NonNull blue: Expression, @NonNull alpha: Expression): Expression
Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1.
If any component is out of range, the expression is an error.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setProperties(
    fillColor(
        rgba(
            literal(255.0f),
            literal(255.0f),
            literal(255.0f),
            literal(1.0f)
        )
    )
);
Content copied to clipboard
Return
expression
Parameters
red
red color value
green
green color value
blue
blue color value
alpha
alpha color value
See also
<a href="https://maplibre.
open fun rgba(@NonNull red: Number, @NonNull green: Number, @NonNull blue: Number, @NonNull alpha: Number): Expression
Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1.
If any component is out of range, the expression is an error.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setProperties(
    fillColor(
        rgba(255.0f, 255.0f, 255.0f, 1.0f)
    )
);
Content copied to clipboard
Return
expression
Parameters
red
red color value
green
green color value
blue
blue color value
alpha
alpha color value
See also
<a href="https://maplibre.