Navigation
Synopsis A standard palette of 12 colors.
Function str palette(int n)
Description Provides a color name from a palette of 12 good distinguishable colors.
Examples
boxes = [ box([size(50), fillColor(palette(i))]) | int i <- [0 .. 11] ];
render(hcat(boxes));
gives: h1
Pitfalls Arguments outside the interval [0,11] are mapped to "black".
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.