Bimage.ColorColor contains methods for creating and inspecting color types
module type COLOR = sig ... endColor contains methods for creating and inspecting color types
val name : 'a t -> stringval has_alpha : 'a t -> boolReturns true if the color has an alpha channel
val channels : 'a t -> intReturns the number of channels for a color
val alpha_channel : 'a t -> int optionReturns the index of the alpha channel if available
val gray : [ `Gray ] tGray color
val rgb : [ `Rgb ] tRGB color
val xyz : [ `Xyz ] tXYZ color
val yuv : [ `Yuv ] tYUV color
val rgba : [ `Rgba ] tRGBA color
val hsv : [ `Hsv ] tHSV color