lokesh / color-thief

Grab the color palette from an image using just Javascript. Works in the browser and in Node.

Home Page:https://lokeshdhakar.com/projects/color-thief/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Support OKLCH / Display P3 color space

danrichman opened this issue · comments

As browsers are now offering support for CSS and assets in the Display P3 color space, it would be great if color-thief was able to extract dominant P3 OKLCH color palettes from P3 images.

https://oklch.com/
https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl
https://chriscoyier.net/2023/01/22/ok-oklch-👑/
https://developer.apple.com/news/?id=5cda5ipr
https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch