Qix-/color

The issue has been closed
[Feature request] Accessibility functions #187
Dallas62 posted onGitHub
Hi,
I'm currently using this library to define color variations of the design system, and I was looking at some color palette tool such as Coolors which provide some accessibility tools. For exemple: <img width="1765" alt="Capture d’écran 2020-11-23 à 14 36 58" src="https://user-images.githubusercontent.com/3429329/99968420-656fbd00-2d99-11eb-8b13-6250435fae44.png">
It would be great to get an API to generate this color, such as:
Color('#FFAA00').filter('protanopia').hex(); // #DAD929
And It would be cool to get a global configuration, such as:
Color.global.filter = 'protanopia';
Color('#FFAA00').hex(); // #DAD929
This would help to switch the interface into blindness colors and test close to their perceptions.
Regards,