package color

  1. Overview
  2. Docs

Module Color.OklchSource

The polar version of Oklab. See mozilla's page on it for more info. Arguably the easiest space to work with, as it closely match our perception of colors.

  • lightness is a float between 0.0 and 1.0
  • c is chroma, minimum is 0.0 and practical maximum value is ~0.5
  • h is hue in degrees, a float value between 0.0 and 360.0
  • alpha is the transparency, between 0.0 (full transparency) and 1.0 (full opacity, default)
Sourcetype t
Sourcetype param = float
Sourceval v : ?alpha:float -> param -> param -> param -> t
Sourceval to_gg : t -> gg
Sourceval from_gg : gg -> t
Sourceval to_css : t -> string
OCaml

Innovation. Community. Security.