Color Processing Functions

This section describes expression language functions related to processing color-type values.

Function

Description

Result Type

Backend Support

Frontend Support

blue(Color color)

Returns blue component of a color (0...255).

Example: blue(color(10, 20, 30)) returns "30"

Integer

Yes

Yes

brighter(Color color)

Applies an arbitrary scale factor to each of the three RGB components of color argument to create a brighter version of this color.

Example: brighter(color(100, 100, 100)) returns "#8E8E8EFF"

Color

Yes

Yes

color(Integer red, Integer green, Integer blue)

Constructs a color by three RGB values. Each component may must be in 0..255 range.

Example: color(255, 0, 0) returns "#FF0000FF"

Color

Yes

Yes

darker(Color color)

Applies an arbitrary scale factor to each of the three RGB components of color argument to create a darker version of this color.

Example: darker(color(100, 100, 100)) returns "#464646FF"

Color

Yes

Yes

green(Color color)

Returns green component of a color (0...255).

Example: green(color(10, 20, 30)) returns "20"

Integer

Yes

Yes

red(Color color)

Returns red component of a color (0...255).

Example: red(color(10, 20, 30)) returns "10"

Integer

Yes

Yes

Was this page helpful?