Skip to content

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

@cgcostume

Description

@cgcostume

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions