Click or drag to resize
Ab4d.SharpEngine logo

Color3ConvertRgbToHsv(Color3, Single, Single, Single) Method

Convert color from RGB to HSV color space. Returned hue values are in range from 0 to 360 (degrees), while saturation and value are in range from 0 to 1.

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static void ConvertRgbToHsv(
	Color3 color,
	out float h,
	out float s,
	out float v
)

Parameters

color  Color3
Input RGB color
h  Single
Hue (0 to 360; degrees)
s  Single
Saturation (0 to 1).
v  Single
Value (0 to 1).
See Also