Navigation
Synopsis Grow (increase) the size of a figure relative to any contained figures.
Function FProperty grow(num hg, num vg)
Description Grow the current figure relative to any contained figures. Growth is expressed as a factor larger than 1.

Note that:
  • grow(hvg) defines the growth in both dimensions and is equivalent to hgrow(hvg), vgrow(hvg).
  • grow(hg, vg) defines the growth in both dimensions separately and is equivalent to hgrow(hg), vgrow(vg).
Also see hgrow and vgrow.
Examples
b1 = box(size(100, 50), fillColor("blue"));
b2 = box(b1, grow(1.5), fillColor("yellow"));
render(b2);
g1
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.