Spring Color Palette
Description
Examples
The Spring plot palette is a bright selection of colors chosen to evoke the flowering plants of spring. It is designed for coloring collections of lines. There are six main colors in the palette as well as ten more named colors.
ColorTools:-DisplayPalette("Spring",noextend);
1. Blue
2. Rose
3. YellowGreen
4. BlueGreen
5. Violet
6. Cobalt
7. Yellow
8. PurpleRed
9. GreenBlue
10. PaleGreen
11. Orange
12. Purple
13. Green
14. SeaBlue
15. PaleYellow
16. PaleBlueGreen
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=Spring 2,Spring Blue
C ≔ ColorTools:-Color⁡Spring 10
ColorTools:-Color⁡RGB,0.29411765,0.65098039,0.45098039
You can make Spring the default palette in plots using setcolors
plots:-setcolors⁡Spring:
You can programatically access the colors using ColorTools commands
P ≔ ColorTools:-GetPalette⁡Spring
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,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,Rose,YellowGreen,BlueGreen,Violet,Cobalt,Yellow,PurpleRed,GreenBlue,PaleGreen,Orange,Purple,Green,SeaBlue,PaleYellow,PaleBlueGreen,,palettename=Spring,palettetype=line
P1
ColorTools:-Color⁡RGB,0.,0.45490196,0.80000000,caption=Blue
n ≔ numcolors⁡P
n≔16
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 16 colors:
P20
ColorTools:-Color⁡RGB,0.26771500001223075,0.4076913000098861,0.316742399905721
The Spring palette is designed for lines, but the Lookup command can provide slightly altered shades of its colors for use in coloring points or filling regions.
Lookup⁡P,1,shade=fill
ColorTools:-Color⁡RGB,0.2167142,0.5578224,0.8975315
Lookup⁡P,1,shade=point
ColorTools:-Color⁡RGB,0.,0.4020125,0.7176375
See Also
ColorTools
ColorTools[DisplayPalette]
ColorTools[Palette]
ColorTools[Palettes][Lookup]
plots[setcolors]
Download Help Document