dichromat {shades} | R Documentation |
Simulate colour appearance for dichromats
Description
This functions manipulates colours to simulate the effects of different kinds of colour blindness, and specifically dichromacy, in which only two of the usual three types of photoreceptors are present. There are three types, corresponding to the loss of red, green or blue photoreceptors.
Usage
dichromat(shades, type = c("protanopic", "deuteranopic", "tritanopic",
"none"))
Arguments
shades |
One or more colours, in any suitable form (see
|
type |
The type of colour vision deficiency to simulate: protanopia
(red blindness), deuteranopia (green blindness) or tritanopia (blue
blindness). The latter is the rarest in the population. |
Value
New colours of class "shade"
in LMS space, representing
projections of the original shades onto a submanifold appropriate to the
type of dichromacy being simulated.
Author(s)
Jon Clayden <code@clayden.org>
References
Brettel, H., ViƩnot, F. and Mollon, J.D. (1997). Computerized simulation of color appearance for dichromats. Journal of the Optical Society of America A 14(10):2647-2655.
Examples
dichromat(c("red", "green", "blue"))