Navigation
Synopsis Illustrate the effect of various figure properties.
Examples Here is an ellipse with minimum size 200x300 that occupies 80% of the available space:
e = ellipse(size(200,100), shrink(0.8));
render(e);
e1 (we add the shrink to leave some space for thick lines and shadows below).

Change the style of its border using Rascal:lineStyle:
e = ellipse(size(200,100), shrink(0.8), lineStyle("dot"));
render(e);
e2

Change the thickness of its border using Rascal:lineWidth:
e = ellipse(size(200,100), shrink(0.8), lineWidth(5));
render(e);
e3

Change the color of its border using Rascal:lineColor:
e = ellipse(size(200,100), shrink(0.8), lineColor("blue"));
render(e);
e4

Change the color of its area using Rascal:fillColor:
e = ellipse(size(200,100), shrink(0.8), fillColor("yellow"));
render(e);
e5

Add a shadow using Rascal:shadow:
e = ellipse(size(200,100), shrink(0.8), shadow(true));
render(e);
e6

Add the color of the shadow using Rascal:shadowColor:
e = ellipse(size(200,100), shrink(0.8), shadow(true), shadowColor("grey"));
render(e);
e7

Finally, enjoy the grande finale:
e = ellipse(size(200,100), shrink(0.8), lineStyle("dot"), lineWidth(5), lineColor("blue"), fillColor("yellow"), shadow(true), shadowColor("grey"));
render(e);
e8
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.