blockly > utils > colour > hueToHex
utils.colour.hueToHex() function
Convert a hue (HSV model) into an RGB hex triplet.
Signature:
export declare function hueToHex(hue: number): string;
Parameters
Parameter | Type | Description |
---|---|---|
hue | number | Hue on a colour wheel (0-360). |
Returns:
string
RGB code, e.g. '#5ba65b'.