Function to convert any palette to one that illustrates how it would appear to a person with a color deficit.
A color palette. Accepts hexademical representations, sRGB
class objects from the
The kind of color deficit to simulate.
This function converts normal-vision color palettes into simulations that represent what is likely to be seen with one of the three kinds of color deficits. Deuteranopes are red-blind, which is the most common form of color deficit leading to an inability to distinguish red and green. Protanopes are green-blind; this is the second most common form of color-blindness and also leads to an inability to distinguish red and green. Tritanopes are blue blind; this is the rarest form of color blindness and leads to an inability to distinguish blue and yellow.
Returns a color palette in the same form as its input argument.
Kevin R. Coombes <[email protected]>
 Brettel H, Vienot F, Mollon JD. Computerized simulation of color appearance for dichromats. J Opt Soc Am A Opt Image Sci Vis. 1997 Oct;14(10):2647-55. PubMed PMID: 9316278.
 Vienot F, Brettel H, Ott L, Ben M\'Barek A, Mollon JD. What do colour-blind people see? Nature. 1995 Jul 13;376(6536):127-8. PubMed PMID: 7603561.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.