CVD Color Palette
Description
Examples
References
The CVD plot palette is a selection of colors to be more easily distinguishable for viewers with all types of color defective vision (color blindness). It is designed for coloring filled areas. There are twelve colors in the palette, all of which should be distinguishable by viewers with deuteranopia and protanopia. The first nine should be distinguishable by viewers with tritanopia.
ColorTools:-DisplayPalette("CVD",noextend);
1. Blue
2. Orange
3. Pale Green
4. Purple
5. Yellow
6. Red
7. Light Blue
8. Pale Purple
9. Green
10. Green Blue
11. Pale Orange
12. Light Green Blue
Two variations of this palette are provided and named CVD2 and CVD3 that are optimized for protanopia and tritanopia respectively. They have the same initial colors, but will produce different colors when automatically extended.
You can reference colors in the palette by name or number in most commands that understand color names.
plot⁡x,x3,x=−1..1,color=CVD 2,CVD Blue
C ≔ ColorTools:-Color⁡CVD 5
ColorTools:-Color⁡RGB,0.94117647,0.94117647,0.19607843
You can make CVD the default palette in plots using setcolors
plots:-setcolors⁡CVD:
You can programmatically access the colors using ColorTools commands
P ≔ ColorTools:-GetPalette⁡CVD
ColorTools:-Palette⁡moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,Blue,Orange,Pale Green,Purple,Yellow,Red,Light Blue,Pale Purple,Green,Green Blue,Pale Orange,Light Green Blue,,palettename=CVD,palettetype=fill
P1
ColorTools:-Color⁡RGB,0.,0.3529411764,0.7843137254,caption=Blue
n ≔ numcolors⁡P
n≔12
plot⁡seq⁡sin⁡x+i⁢Pin,i=1..n,x=0..2⁢Pi,axes=boxed,color=:-GetColors⁡P1..n,legend=:-GetColorNames⁡P1..n,numpoints=25,style=line
ColorTools algorithms will automatically generate new colors beyond the main 12 colors. Extended colors are algorithmically generated and will attempt to be well distributed for red-green color blind viewers.
P16
ColorTools:-Color⁡RGB,0.12475429996359128,−1.9170650574808212⁢10-11,0.1649204999278724
The CVD palette is designed for filled areas, but the Lookup command can provide slightly altered shades of its colors for use in coloring points or lines.
Lookup⁡P,1,shade=line
ColorTools:-Color⁡RGB,−0.001019538,0.2337488,0.6181569
Lookup⁡P,1,shade=point
ColorTools:-Color⁡RGB,−0.001610892,0.1553864,0.5580121
http://mkweb.bcgsc.ca/colorblind/
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
ColorTools[Palettes][Lookup]
plots[setcolors]
Download Help Document