brewcbsim
Simulating color sight impairments on one or more colors
brewcbsim – a program to simulate how a given color would be perceived by individuals with achromatopsia, protanopia, deuteranopia, or tritanopia.
Syntax
brewcbsim RGB value | named color style
Description
brewcbsim is used to simulate how a given color (specified as an RGB tuple in [0,255]) would be perceived by individuals with color sight impairments.
Examples
Ex 1.
Green channel dominant color.
brewcbsim "63 210 142"
Ex 2.
Blue channel dominant color.
brewcbsim "8 151 233"
Ex 3.
Red channel dominant color
brewcbsim "182 33 43"
Ex 4.
An XKCD named color style, with green, blue, and red dominant colors, and a StataCorp named colorstyle
brewcbsim xkcd119 "63 210 142" "8 151 233" "182 33 43" bluishgray8
Ex 5.
Colors that are typically associated with sensitivity to color perception
brewcbsim red green blue yellow
Returned Values
Macro Name | Value |
---|---|
r(original#) | The RGB value for the nth color passed to the command |
r(achromatopsic#) | Transformed RGB value for the nth color (Complete Color Vision Loss) |
r(protanopic#) | Transformed RGB value for the nth color (Red Color Impairment) |
r(deuteranopic#) | Transformed RGB value for the nth color (Green Color Impairment) |
r(tritanopic#) | Transformed RGB value for the nth color (Blue Color Impairment) |