package bimage

  1. Overview
  2. Docs

Color contains methods for creating and inspecting color types

type 'a t

Used to specify the color model of an image

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

Create a new color type

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 t : 'a t -> 'a

Returns the underlying type of a color

OCaml

Innovation. Community. Security.