CVD Color Palette - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : ColorTools : Color Collections : ColorTools/Collection/CVD

CVD Color Palette

 

Description

Examples

References

Description

• 

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. Green Blue

2. Yellow

3. Pale Purple

4. Green

5. Blue

6. Red













7. Pale Orange

8. Light Blue

9. Orange

10. Pale Green

11. Purple

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.

Examples

You can reference colors in the palette by name or number in most commands that understand color names.

plotx,x3,x=1..1,color=CVD 2,CVD Blue

CColorTools:-ColorCVD 5

ColorTools:-ColorRGB,0.,0.35294118,0.78431373

(1)

You can make CVD the default palette in plots using setcolors

plots:-setcolorsCVD:

You can programmatically access the colors using ColorTools commands

PColorTools:-GetPaletteCVD

ColorTools:-Palettemodule...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,module...end module,Green Blue,Yellow,Pale Purple,Green,Blue,Red,Pale Orange,Light Blue,Orange,Pale Green,Purple,Light Green Blue,,palettename=CVD,palettetype=fill

(2)

P1

ColorTools:-ColorRGB,0.,0.4313725490,0.5098039215,caption=Green Blue

(3)

nnumcolorsP

n12

(4)

plotseqsinx+iπn,i=1..n,x=0..2π,axes=boxed,color=:-GetColorsP1..n,legend=:-GetColorNamesP1..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:-ColorRGB,2.80147165710-9,0.01540616326,0.5098039214

(5)

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.

LookupP,1,shade=line

ColorTools:-ColorRGB,0.,0.41502782,0.49098682

(6)

LookupP,1,shade=point

ColorTools:-ColorRGB,0.,0.39286271,0.46550218

(7)

References

  

http://mkweb.bcgsc.ca/colorblind/

See Also

ColorTools

ColorTools[DisplayPalette]

ColorTools[Palette]

ColorTools[Palettes][Lookup]

plots[setcolors]