package color

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Hue, Saturation, Lightness. More intuitive to work with than Rgb.

  • hue is in degrees, a float value between 0.0 and 360.0
  • saturation, lightness and alpha are float values between 0.0 and 1.0
type t
type param = float
val v : ?alpha:float -> param -> param -> param -> t
val to_gg : t -> gg
val from_gg : gg -> t
val to_css : t -> string
OCaml

Innovation. Community. Security.