color

open fun color(@ColorInt color: Int): Expression

Expression literal utility method to convert a color int to an color expression

Example usage:


FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setProperties(
    fillColor(color(Color.GREEN))
);

Return

the color expression

Parameters

color

the int color