Bimage.Color
Color contains methods for creating and inspecting color types
module type COLOR = sig ... end
Color contains methods for creating and inspecting color types
val name : 'a t -> string
val has_alpha : 'a t -> bool
Returns true if the color has an alpha channel
val channels : 'a t -> int
Returns the number of channels for a color
val alpha_channel : 'a t -> int option
Returns the index of the alpha channel if available
val gray : [ `Gray ] t
Gray color
val rgb : [ `Rgb ] t
RGB color
val xyz : [ `Xyz ] t
XYZ color
val yuv : [ `Yuv ] t
YUV color
val rgba : [ `Rgba ] t
RGBA color
val hsv : [ `Hsv ] t
HSV color