gtk4

Function hsv_to_rgb

source
pub fn hsv_to_rgb(h: f32, s: f32, v: f32) -> (f32, f32, f32)
Expand description

Converts a color from HSV space to RGB.

Input values must be in the [0.0, 1.0] range; output values will be in the same range.

§h

Hue

§s

Saturation

§v

Value

§Returns

§r

Return value for the red component

§g

Return value for the green component

§b

Return value for the blue component