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.

Example

show scalar "Color" with rgb(0.1, 0.2, 0.4)

This outputs the following scalar:

Color
#193366

Remarks

The returned value is compatible with StyleCode color fields.

User Contributed Notes
0 notes + add a note