HSVToRGB
7/14/25Less than 1 minute
Color.HSVToRGB(number H, number S, number V, boolean hdr)
Creates an RGB color from the hue, saturation and value of the input.
Parameters:
| Name | Type | Description |
|---|---|---|
| H | number | Hue [0..1]. |
| S | number | Saturation [0..1]. |
| V | number | Brightness value [0..1]. |
| hdr | boolean | Output HDR colours. If true, the returned colour will not be clamped to [0..1]. |
Returns:
| type | Description |
|---|---|
| Color | An opaque colour with HSV matching the input. |
Usage
---@type number
local H;
---@type number
local S;
---@type number
local V;
---@type boolean
local hdr;
local val0 = Color:HSVToRGB(H, S, V, hdr)
