dichromat: Simulate colour appearance for dichromats

Description Usage Arguments Value Author(s) References Examples

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

1
2
dichromat(shades, type = c("protanopic", "deuteranopic", "tritanopic",
  "none"))

Arguments

shades

One or more colours, in any suitable form (see shade).

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. "none" is also available, as a pass-through option. Abbrevations, such as the first letter, may be used, and multiple values are acceptable.

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

1
dichromat(c("red", "green", "blue"))

Example output

 3 shades in LMS space, without transparency
[1] #4D4222 #FFF600 #0027FF

shades documentation built on Aug. 2, 2019, 5:05 p.m.