package bimage

  1. Overview
  2. Docs

Module Bimage.ColorSource

Color contains methods for creating and inspecting color types

Sourcetype 'a t

Used to specify the color model of an image

Sourceval create : has_alpha:bool -> channels:int -> 'a -> 'a t

Create a new color type

Sourceval has_alpha : 'a t -> bool

Returns true if the color has an alpha channel

Sourceval channels : 'a t -> int

Returns the number of channels for a color

Sourceval t : 'a t -> 'a

Returns the underlying type of a color

OCaml

Innovation. Community. Security.