Moved from webgl-operate:
enum ColorVisionDeficiency
{
Protanope // reds are greatly reduced (1% men)
, Deuteranope // greens are greatly reduced (1% men)
, Tritanope // blues are greatly reduced (0.003% population)
};
Implementation: ColorVisionDeficiency.zip
or online: ColorVisionDeficiency.cpp
This could be either added directly to the color.ts or as additional util in, e.g., colordeficiency.ts. Please not that the libzeug implementation uses sRGB and the current color class is currently favoring Adobe-RGB. Also, no unnecessary/additional xyz-rgb or rgp-xyz conversion should be implemented.