Module Render.Pixel

type format =
  1. | Rgb
    (*

    3 channels.

    *)
  2. | Rgba
    (*

    4 channels.

    *)
  3. | Gray
    (*

    1 channel.

    *)

The type for pixel formats.

val channels : format -> int

channels fmt is the number of channels for fmt.