Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 604 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 604 Bytes

elm-oklch Build Status

This package implements the Oklch and Oklab color spaces for Elm.

It allows conversion from and to the Color type in avh4/elm-color.

See some end-to-end example code in the examples/ folder.

Overview

import Color exposing (Color)
import Color.Oklch

myColor : Color
myColor =
    Color.Oklch.oklch 1 0.1 0.75
        |> Color.Oklch.toColor