package bimage

  1. Overview
  2. Docs

Module Color.XyzSource

Sourcetype t = [
  1. | `Xyz
]
Sourceval t : t

Color type value

Sourceval name : t -> string

Color name

Sourceval channels : t -> int

Returns the number of channels

Sourceval has_alpha : t -> bool

Returns true when a color has an alpha channel, which will always be the last channel

Sourceval to_rgb : t -> floatarray -> floatarray

Convert a color to RGB

Sourceval of_rgb : t -> floatarray -> floatarray

Convert a color from RGB

OCaml

Innovation. Community. Security.