package color

  1. Overview
  2. Docs

Module Color.RgbSource

Classic RedGreenBlue (& optional alpha) representation, closely matching the way screens display colors.

  • r, g, and b are integers, between 0 and 255
  • alpha is the transparency, between 0.0 (full transparency) and 1.0 (full opacity, default)
Sourcetype t
Sourcetype param = int
Sourceval v : ?alpha:float -> param -> param -> param -> t
Sourceval to_gg : t -> gg
Sourceval from_gg : gg -> t
Sourceval to_css : t -> string