RED function

RED(Color) RED(Color)

Color

Color or { Color }

The color.

Returns

Number or { Number }

The red color component from the given color, ranging from 0 to 255 (inclusive).

Returns the red color component from the given color according to the Red-Green-Blue (RGB) and Red-Green-Blue-Alpha (RGBA) color models.

This function is Calcapp-specific.

Examples

RED(Color.Red)RED(Color,Red)

Returns 255, which is the red color component of the default red color.

RED({ Color.Blue, Color.Red })RED({ Color,Blue; Color,Red })

Returns the array { 0, 255 }{ 0; 255 }, indicating that the default blue color has a red color component value of 0 and that the default red color has a red color component value of 255.