From b66f51540320ef21ee86eb2e4eff8b8c3fc94419 Mon Sep 17 00:00:00 2001 From: "Dmitry Iv." Date: Sat, 1 Feb 2025 22:53:00 -0500 Subject: [PATCH] Format spaces, add lrgb --- README.md | 17 ++++----- cmy.js | 16 ++++----- cmyk.js | 22 ++++++------ cubehelix.js | 14 ++++---- hcg.js | 30 ++++++++-------- hcy.js | 30 ++++++++-------- hpluv.js | 14 ++++---- hsi.js | 30 ++++++++-------- hsl.js | 34 +++++++++--------- hsluv.js | 58 +++++++++++++++---------------- hsp.js | 10 +++--- hsv.js | 24 ++++++------- index.js | 7 ++-- jpeg.js | 6 ++-- lchab.js | 24 ++++++------- lms.js | 54 ++++++++++++++--------------- lrgb.js | 40 +++++++++++++++++++++ munsell.js | 6 ++-- oklab.js | 12 +++---- osaucs.js | 28 +++++++-------- package-lock.json | 11 ++++++ package.json | 1 + r&d.md | 23 +++++++++++-- test/index.html | 3 +- test/index.js | 88 +++++++++++++++++++++++++++++++++++++---------- tsl.js | 24 ++++++------- ucs.js | 12 +++---- uvw.js | 10 +++--- xvycc.js | 4 +-- xyy.js | 10 +++--- xyz.js | 2 +- ycbcr.js | 4 +-- yccbccrc.js | 6 ++-- ycgco.js | 18 +++++----- ydbdr.js | 26 +++++++------- yes.js | 10 +++--- yiq.js | 10 +++--- ypbpr.js | 14 ++++---- yuv.js | 10 +++--- 39 files changed, 443 insertions(+), 319 deletions(-) create mode 100644 lrgb.js diff --git a/README.md b/README.md index d3d7f8d..a9c8c3b 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ register(spaceDefiniton) * [x] [LCHuv](http://en.wikipedia.org/wiki/CIELUV#Cylindrical_representation) * [x] [HSLuv](http://www.hsluv.org/) * [x] [HPLuv](http://www.hsluv.org/) -* [x] [LABHunter](http://en.wikipedia.org/wiki/Lab_color_space#Hunter_Lab) +* [x] [LABH](http://en.wikipedia.org/wiki/Lab_color_space#Hunter_Lab) * [x] [YUV](https://en.wikipedia.org/?title=YUV) * [x] [YIQ](https://en.wikipedia.org/?title=YIQ) * [x] [YCgCo](https://en.wikipedia.org/wiki/YCgCo) @@ -72,6 +72,7 @@ register(spaceDefiniton) * [x] [XvYCC](https://en.wikipedia.org/wiki/XvYCC) * [x] [UCS](https://en.wikipedia.org/wiki/CIE_1960_color_space) * [x] [UVW](https://en.wikipedia.org/wiki/CIE_1964_color_space) +* [x] [OKLAB](https://bottosson.github.io/posts/oklab/) * [ ] [Munsell](https://en.wikipedia.org/wiki/Munsell_color_system) * [ ] [NCS](https://en.wikipedia.org/wiki/Natural_Color_System) * [ ] [PMS](https://en.wikipedia.org/wiki/Pantone) @@ -102,20 +103,20 @@ register(spaceDefiniton) ## Purpose -The project aims to create collection of color spaces with consistent minimal API.
-While [colorjs.io](https://colorjs.io/docs/procedural) has focus on digital color-spaces, this initiative takes broader perspective, including lesser-known historical spaces.
-A side effect of the project is ensuring the validity of conversion formulas, introducing necessary corrections. +The project aims to create collection of color spaces with consistent correct API. +While [colorjs.io](https://colorjs.io/docs/procedural) has focus on digital color spaces, this initiative takes broader perspective, including lesser-known historical spaces. +A side effect of the project is ensuring the validity of conversion formulas, introducing necessary corrections. ## Credits Thanks to all who contribute color science, from researchers, scientists and color theorists to specifiers, implementors, developers and of course users. +## Similar + +[culori](https://github.com/Evercoder/culori), [colorjs.io](https://colorjs.io/docs/procedural), [color-api](https://github.com/LeaVerou/color-api), [texel/color](https://github.com/texel-org/color?tab=readme-ov-file), +