Module OgamlGraphics.Color.HSV

Manipulation of HSVA colors
type t = {h : float; s : float; v : float; a : float}
Type of a color in HSVA format

Record fields

h : float
s : float
v : float
a : float
val make : ?alpha:float -> float -> float -> float -> t
Fast way to create an HSV color (alpha defaults to 1)
val black : t
Opaque black
val white : t
Opaque white
val red : t
Opaque red
val green : t
Opaque green
val blue : t
Opaque blue
val yellow : t
Opaque yellow
val magenta : t
Opaque magenta
val cyan : t
Opaque cyan
val transparent : t
Transparent black
val clamp : t -> t
Clamps the s,v,a values of a color between 0 and 1, and h between 0 and 2*pi
val print : t -> string
Pretty-prints a color to a string