Function gtk::functions::rgb_to_hsv[][src]

pub fn rgb_to_hsv(r: f64, g: f64, b: f64) -> (f64, f64, f64)
Expand description

Converts a color from RGB space to HSV.

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

r

Red

g

Green

b

Blue

Returns

h

Return value for the hue component

s

Return value for the saturation component

v

Return value for the value component