halb3 / halb3/colors

Implement (port) color daltonization of cpp-based libzeug (widgetzeug)

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.