Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minibill/elm-oklch
OKLCH and OKLAB color spaces for Elm https://package.elm-lang.org/packages/miniBill/elm-oklch/latest
https://github.com/minibill/elm-oklch
Last synced: about 8 hours ago
JSON representation
OKLCH and OKLAB color spaces for Elm https://package.elm-lang.org/packages/miniBill/elm-oklch/latest
- Host: GitHub
- URL: https://github.com/minibill/elm-oklch
- Owner: miniBill
- License: other
- Created: 2022-11-09T23:09:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T11:11:28.000Z (about 2 months ago)
- Last Synced: 2024-09-12T22:30:48.463Z (about 2 months ago)
- Language: Elm
- Homepage:
- Size: 104 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `elm-oklch` [![Build Status](https://github.com/miniBill/elm-oklch/workflows/CI/badge.svg)](https://github.com/miniBill/elm-oklch/actions?query=branch%3Amain)
This package implements the [Oklch and Oklab](https://bottosson.github.io/posts/oklab/) color spaces for Elm.It allows conversion from and to the `Color` type in [avh4/elm-color](https://github.com/avh4/elm-color).
See some end-to-end example code in the `examples/` folder.
## Overview
```elm
import Color exposing (Color)
import Color.OklchmyColor : Color
myColor =
Color.Oklch.oklch 1 0.1 0.75
|> Color.Oklch.toColor
```