fbpx

RGB (MDX)

Create a color from its RGB values.

Parameters

Name Type Cardinality Default value
red  value-expression  one   
green  value-expression  one   
value  value-expression  one   

Return

color

Description

The function returns a color in the RGB color space; e.g., red-color = RGB( 255, 0, 0).

Note that the RGB accepts a string representing the RGB components in hexadecimal value as parameter: e.g., red-color = RGB("#FF0000").

Note that the input string is following CSS syntax, that is #123 is converted to #112233.

See Also

HSV InterpolateRGBColors

Examples

XMLA Properties

Find here the value of the XMLA properties when not specified otherwise.