package color

  1. Overview
  2. Docs

Module Color.OklabSource

A color space that is ok. See the author's blog for more info.

  • lightness is a float between 0.0 and 1.0
  • a and b are floats values (theoretically unbounded but in practice do not exceed ~±0.5)
  • 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