color-js / color.js

Color conversion & manipulation library by the editors of the CSS Color specifications
https://colorjs.io
MIT License
1.81k stars 80 forks source link

Thank you! #531

Open apparebit opened 1 month ago

apparebit commented 1 month ago

For a while now, I've had some ideas about making color management for terminals more web-like. I had even built a prototype but used very gnarly ad-hoc color conversions. A few weeks ago, I started looking at Color.js and realized that, not only were all the features I needed right there, but the code was so exceptionally well structured that porting over to Python would be real easy. It's about two plus weeks later and I just released the first usable version of prettypretty, which combines 1970s terminals with 2020s applied color science for much nicer terminal colors. The low-level conversions between color spaces are all based on Color.js, which was just the right foundation to get me going. I implemented gamut mapping based on the CSS spec, which was super clear as well—I'm guessing also thanks to you. I acknowledge the heritage on the main documentation page. But if you prefer a different placement or wording, just let me know. Thank you for making color algorithms accessible!