Operator Type:
Operator Scope of Action:
Operator Purpose:
Data Type Returned:
Operator First Added:
Operator in Current Baseline:
Operator Last Altered:
Function [other Function type actions]
Item [operators of similar scope]
Color [other Color operators]
String [about String data type]
v4.0.0
Baseline
As at baseline
rgb(redNum, greenNum, blueNum)
Creates a Color type: its arguments are integers ranging from 0 to 255 or an expression or attribute reference resolving to a number in this range. The value set is in hex form. For example:
$MyColor = rgb(255,0,0);
sets a value of "#ff0000"
The individual channels of an RGB colour can be set or read using the '.red', '.green' and '.blue' Color-type data operators.
See also—notes linking to here: