Description Usage Arguments Value Examples
Returns the inputted color as perceivd by a colorblind person
1 | colorblind(col, type = "deuteranopia", output = "hex")
|
type |
Type of color blindness wanted to simulated. "normal", "protanopia", "protanomaly", "deuteranopia", "deuteranomaly","tritanopia", "tritanomaly", "achromatopsia" and "achromatomally" are all supported. Defaults to "deuteranopia" (most common type. |
output |
Output format. "hex" and "color" supported. Defaults to "hex" |
... |
Input color. Hexcode, c(r,g,b), color name as character and "color" class object are all supported. |
Generally, a hexcode representing the input's color_blindness. If a "color" class object is received as argument, the color_blindness will keep this format.
1 2 3 4 | colorblind("red")
colorblind("#ff00ff")
colorblind(c(0,0,0))
colorblind("#ff00ff", type="tritanomaly")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.