cvdSimulator {colorBlindness}R Documentation

simulate color vision deficiency

Description

Transformation of R colors by simulating color vision deficiencies.

Usage

cvdSimulator(col, type = "deuteranope")

Arguments

col

character. A vector of colors.

type

Deficiency type, "protanope" or "deuteranope"

Details

Here use Vienot's methods but not Gustavo's methods (implemented in colorspace::simulate_cvd).

Value

colors.

References

Vienot, F., Brettel, H. and Mollon, J.D. (1999) <doi:10.1002/(SICI)1520-6378(199908)24:4 Sharma, G., Wu, W. and Dalal, E.N. (2005) <doi:10.1002/col.20070>

Examples

cvdSimulator(safeColors)

[Package colorBlindness version 0.1.9 Index]