newmana/chroma-elm/10.1.1

NOTE: the latest version is 18.2.1

Rerouted (retagged, verified). The tag now points at a different commit than when this version was published. The Lamdera package server serves a copy recovered from https://github.com/newmana/chroma-elm.

What we checked: Tag 10.1.1 now points at c09d06b75e39, not the published commit. Rebuilt with git archive from commit 51684c31ed38 of https://github.com/newmana/chroma-elm (zip prefix newmana-chroma-elm-51684c3/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 c7cb31d365d767882e728ab60ac1a1d66f0fd85f.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/newmana/chroma-elm/zipball/10.1.1/

Chroma.Types

Types

Definition

type alias CymkColor =
{ cyan : Float
, magenta : Float
, yellow : Float
, black : Float
}

TBD

= RGBAColor Color
| CMYKColor CymkColor
| LABColor LabColor
| LCHColor LchColor
| HSLAColor HslaColor
| HSLADegreesColor HslaDegreesColor

TBD

type alias HslaColor =
{ hue : Float
, saturation : Float
, lightness : Float
, alpha : Float
}

HSLA where the Hue, Saturation, Lightness and Alpha 0..1.

type alias HslaDegreesColor =
{ hueDegrees : Float
, saturation : Float
, lightness : Float
, alpha : Float
}

HSLA where the Hue is 0..360, ann Saturation, Lightness and Alpha 0..1.

type alias LabColor =
{ lightness : Float
, labA : Float
, labB : Float
}

TBD

type Mode
= RGBA
| CMYK
| LAB
| LCH
| HSLA
| HSLADegrees

TBD

type alias Rgba255Color =
{ red : Int
, green : Int
, blue : Int
, alpha : Float
}

TBD

type alias RgbaColor =
{ red : Float
, green : Float
, blue : Float
, alpha : Float
}

TBD

type alias LchColor =
{ luminance : Float
, chroma : Float
, hue : Float
}

LCH where Luminance is 0..100, Chroma is 0..230, and Hue is 0..360.