Implement (port) color daltonization of cpp-based libzeug (widgetzeug)
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Moved from [webgl-operate](https://github.com/cginternals/webgl-operate/issues/20):
```
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](https://github.com/cginternals/webgl-operate/files/1732201/ColorVisionDeficiency.zip)
or online: [ColorVisionDeficiency.cpp](https://github.com/cginternals/libzeug/blob/cf71d3631ba7df69505d4c88785ffa6919cd8648/source/widgetzeug/source/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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.