Click or drag to resize

ColorFromHsv Method

Constructs a color from an HSV profile, with values on the range of 0 to 1. This is equivalent to using each of the `h`/`s`/`v` properties, but much more efficient.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Color FromHsv(
	float hue,
	float saturation,
	float value,
	float alpha = 1f
)

Parameters

hue
Type: SystemSingle
The HSV hue, typically on the range of 0 to 1.
saturation
Type: SystemSingle
The HSV saturation, typically on the range of 0 to 1.
value
Type: SystemSingle
The HSV value (brightness), typically on the range of 0 to 1.
alpha (Optional)
Type: SystemSingle
The alpha (transparency) value, typically on the range of 0 to 1.

Return Value

Type: Color
The constructed color.
See Also