Navigation
Synopsis Fill color.
Function
  1. FProperty fillColor(Color c)
  2. FProperty fillColor(str cname)
Description Set the color used to fill the inside of figures:
  1. Set the fill color to c.
  2. Set the fill color to the color with name cname.
Also see ColorModel.
Examples
b1 = box(fillColor("Red"));
b2 = box(fillColor("Blue"));
b3 = box(fillColor("Green"));
b4 = box(fillColor("Purple"));
boxes = [b1, b2, b3, b4];
render(hcat(boxes));
gives: h1
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.