Color.HSV

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Shared Method

Color.HSV(h As Double, s As Double, v As Double, alpha As Integer = 0) As Color

Supported for all project types and targets.

Returns a Color from hue, saturation and value. These values are represented by Doubles between 0 and 1.

Notes

The alpha parameter provides the ability to control transparency and is an integer between 0 and 255. Zero is completely opaque and 255 is transparent. If omitted, the default is 0 (no transparency).

Sample Code

Set a color using hue, saturation and value:

Var c As Color = Color.HSV(0.8, 0.5, 0.75)

See Also

Color.HSVA