Navigation :
rgb
rgb, function
def const pure rgb(red: number, green: number, blue: number): text
Returns a hex color code from RGB values in the [0, 1] range.
red: the red channel, between 0 and 1.
green: the green channel, between 0 and 1.
blue: the blue channel, between 0 and 1.
Example
show scalar "Color" with rgb(0.1, 0.2, 0.4)
This outputs the following scalar:
The returned value is compatible with StyleCode color fields.