module Colors: sig .. end
val gray : float -> Graphics.color
intensity : between 0. and 1. assertion failure otherwise.
val rgb_inverse : Graphics.color -> int * int * int
The inverse function of Graphics.rgb.
Returns the red, green, blue components.
val mix : Graphics.color -> Graphics.color -> percent:float -> Graphics.color
mix a b 0. is a.
val blend : int -> Graphics.color array
Returns a gradient from black to red to yellow to white
length : length of the result
val gray_gradient : float -> float -> float -> Graphics.color
gray_gradient min max value is simply (max - value) / (max - min).
Higher values are thus darker. Intended to be partially applied.