sharkdp / pastel

A command-line tool to generate, analyze, convert and manipulate colors
Apache License 2.0
5.08k stars 102 forks source link

Implemented colorblindness simulations #80

Closed rozbb closed 5 years ago

rozbb commented 5 years ago

I wrote an XYZ <-> LMS conversion so that the protanopia, deteranopia, and tritanopia filters can be applied in the LMS space and then converted back to whatever.

Usage example:

pastel color a3247b | pastel colorblind deut

Issue: The output doesn't exactly match what I see with Color Oracle, but it's pretty close.

rozbb commented 5 years ago

Changes made. LMK if you see anything else that needs fixing

sharkdp commented 5 years ago

Thank you very much! The updates look great.

sharkdp commented 5 years ago

Released in v0.6.0.