Api > Color > HSVToRGB()
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)