rgbToHsv

fnvoid rgbToHsv(double r, double g, double b, out double h, out double s, out double v)

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.

Parameters

rRed
gGreen
bBlue
hReturn value for the hue component
sReturn value for the saturation component
vReturn value for the value component