summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eca9391)
Previously, the amount of randomizations was determined by the width only,
causing full width but low boxes to be heavily randomized.
% Create a rectangle of the full size
a := unitsquare xyscaled(\overlaywidth,\overlayheight);
% Randomize it a bit
% Create a rectangle of the full size
a := unitsquare xyscaled(\overlaywidth,\overlayheight);
% Randomize it a bit
-b := a randomized (\overlaywidth / 25) ;
+b := a randomized (min(\overlayheight, \overlaywidth) / 25) ;
% And draw it
drawoptions (withpen pencircle scaled .75mm withcolor black) ;
draw b;
% And draw it
drawoptions (withpen pencircle scaled .75mm withcolor black) ;
draw b;
\useMPgraphic{#1}
\stopboxed
}
\useMPgraphic{#1}
\stopboxed
}