package gg

  1. Overview
  2. Docs
type t = color
type stops = (float * color) list
val v : float -> float -> float -> float -> color
val v_srgb : ?a:float -> float -> float -> float -> color
val v_srgbi : ?a:float -> int -> int -> int -> color
val r : color -> float
val g : color -> float
val b : color -> float
val a : color -> float
val void : color
val black : color
val gray : ?a:float -> float -> color
val white : color
val red : color
val green : color
val blue : color
val blend : color -> color -> color
val clamp : color -> color
val with_a : color -> float -> color
type srgb = v4
val of_srgb : srgb -> color
val to_srgb : color -> srgb
type luv = v4
val of_luv : luv -> color
val to_luv : color -> luv
type lch_uv = v4
val of_lch_uv : lch_uv -> color
val to_lch_uv : color -> lch_uv
type lab = v4
val of_lab : v4 -> color
val to_lab : color -> v4
type lch_ab = v4
val of_lch_ab : lch_ab -> color
val to_lch_ab : color -> lch_ab
type space = [
  1. | `CLR2
  2. | `CLR3
  3. | `CLR4
  4. | `CLR5
  5. | `CLR6
  6. | `CLR7
  7. | `CLR8
  8. | `CLR9
  9. | `CLRA
  10. | `CLRB
  11. | `CLRC
  12. | `CLRD
  13. | `CLRE
  14. | `CLRF
  15. | `CMY
  16. | `CMYK
  17. | `Gray
  18. | `HLS
  19. | `HSV
  20. | `Lab
  21. | `Luv
  22. | `RGB
  23. | `XYZ
  24. | `YCbr
  25. | `Yxy
]
val space_dim : space -> int
val pp_space : Format.formatter -> space -> unit
type profile
val profile_of_icc : string -> profile option
val profile_to_icc : profile -> string
val profile_space : profile -> space
val profile_dim : profile -> int
val p_gray_l : profile
val p_rgb_l : profile
OCaml

Innovation. Community. Security.