Module Mlpost.Color
Definitions of many colors
val default : tthe default color is black
val rgb : float -> float -> float -> trgb r g bconstructs the color that corresponds to the color code RGB(r,g,b)
val rgb8 : int -> int -> int -> trgb r g bconstructs the color that corresponds to the color code RGB(r,g,b)similar to
rgb, but takes integers between 0 and 255 as argument
val cmyk : float -> float -> float -> float -> tcmyk c m y kconstructs the color that corresponds to the color code CMYK(c,m,y,k)
val rgba : float -> float -> float -> float -> tsimilar to
rgb, but takes the factor of transparency
val rgb8a : int -> int -> int -> int -> tsimilar to
rgb8, but takes the factor of transparency
val cmyka : float -> float -> float -> float -> float -> tsimilar to
cmyk, but takes the factor of transparency
val is_opaque : t -> booltest if the color is opaque
val hsv : float -> float -> float -> thsv h s v convert an hsv color to an rgb. 0 <= h < 360, 0 <= s,v <= 1
color generator
val color_gen : float -> float -> unit -> t