CSS Color Palette
Description
Examples
The CSS dictionary palette is the 17 color names in the W3C Cascading Style Sheet standard.
ColorTools:-DisplayPalette("CSS");
1. Black
2. Red
3. Maroon
4. Orange
5. Yellow
6. Olive
7. Lime
8. Green
9. Aqua
10. Teal
11. Blue
12. Navy
13. Fuchsia
14. Purple
15. Gray
16. Silver
17. White
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=CSS 1,CSS Orange
C ≔ ColorTools:-Color⁡CSS 10
ColorTools:-Color⁡RGB,0.,0.50196078,0.50196078
You can programmatically access the colors using ColorTools commands
P ≔ ColorTools:-GetPalette⁡CSS
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,moduleColorTools:-Coloroptionobject;localcolorspace,coordinates,color_caption;end module,Black,Red,Maroon,Orange,Yellow,Olive,Lime,Green,Aqua,Teal,Blue,Navy,Fuchsia,Purple,Gray,Silver,White,Cyan=Aqua,Grey=Gray,Magenta=Fuchsia,palettename=CSS,palettetype=dictionary
P1
ColorTools:-Color⁡RGB,0.,0.,0.,caption=Black
ColorTools:-Swatches⁡P
See Also
ColorTools[DisplayPalette]
ColorTools[Palette]
plots[setcolors]
Download Help Document