Click or drag to resize
Ab4d.SharpEngine logo

Color4FromHsv(Double, Double, Double, Double) Method

Gets Color4 from HSV (hue, saturation, value / brightness)

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public static Color4 FromHsv(
	double hue,
	double saturation = 1,
	double value = 1,
	double alpha = 1
)

Parameters

hue  Double
hue (from 0 to 360)
saturation  Double  (Optional)
saturation (from 0 to 1; 1 by default)
value  Double  (Optional)
value or brightness (from 0 to 1; 1 by default)
alpha  Double  (Optional)
alpha (1 by default)

Return Value

Color4
Color4
See Also