This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
1.0.0 1.0.1
Conversions from and to HCL color space
version 2.0.0
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 2.0.0
Committed At 2018-03-23 15:54:53 UTC
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1
elm-community/basics-extra 3.0.1 <= v < 4.0.0 3.0.1

Modules

README

Color.HCL

You should probably use kuon/elm-hsluv. See the note below.

The HCL colorspace (also known as CIELUV LCh) is designed such that when you change the hue, the perceived lightness doesn't change.

This package deals with that (conversion from/to RGB and the core Color type).

Note that not all argument combinations (hue, chroma, luminance) result in a color inside the gamut. For a colorspace that has similar perceived brightness when changing hues, look at HSLuv.

Example

Distinct colors for chroma 1 and luminance 0.5

These colors have been generated for chroma 1 and luminance 0.5.