Function to convert RGB values to HSV values merged from http://www.easyrgb.com/math.php?MATH=M20#text20 and http://www.efg2.com/Lab/Graphics/Colors/HSV.htm

Namespace: VVVV.Utils.VColor
Assembly: VVVV.Utils (in VVVV.Utils.dll) Version: 1.0.4694.10871

Syntax

C#
public static bool RGBtoHSV(
	double R,
	double G,
	double B,
	out double Hue,
	out double Sat,
	out double Value
)

Parameters

R
Type: System..::..Double

[Missing <param name="R"/> documentation for "M:VVVV.Utils.VColor.VColor.RGBtoHSV(System.Double,System.Double,System.Double,System.Double@,System.Double@,System.Double@)"]

G
Type: System..::..Double

[Missing <param name="G"/> documentation for "M:VVVV.Utils.VColor.VColor.RGBtoHSV(System.Double,System.Double,System.Double,System.Double@,System.Double@,System.Double@)"]

B
Type: System..::..Double

[Missing <param name="B"/> documentation for "M:VVVV.Utils.VColor.VColor.RGBtoHSV(System.Double,System.Double,System.Double,System.Double@,System.Double@,System.Double@)"]

Hue
Type: System..::..Double%
Output parameter, this variable gets filled with the Hue value
Sat
Type: System..::..Double%
Output parameter, this variable gets filled with the Saturation value
Value
Type: System..::..Double%
Output parameter, this variable gets filled with the Brightness value

Return Value

false, if color is gray, hue has no defined value in that case

See Also