Skip to main content

Color.HSVToRGB(number H, number S, number V, boolean hdr)

Creates an RGB color from the hue, saturation and value of the input.

Parameters:

NameTypeDescription
HnumberHue [0..1].
SnumberSaturation [0..1].
VnumberBrightness value [0..1].
hdrbooleanOutput HDR colours. If true, the returned colour will not be clamped to [0..1].

Returns:

typeDescription
ColorAn 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)