rgbToHsv

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.

void
rgbToHsv
(
float r
,
float g
,
float b
,
out float h
,
out float s
,
out float v
)

Parameters

r float

Red

g float

Green

b float

Blue

h float

Return value for the hue component

s float

Return value for the saturation component

v float

Return value for the value component