From: Matthijs Kooijman Date: Mon, 5 Oct 2009 10:17:54 +0000 (+0200) Subject: Limit randomizations of boxes by the minimum dimension. X-Git-Tag: final-thesis~227 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=commitdiff_plain;h=de2fa4e3c8f450f3e3cb4cd1053ad055da8b4717 Limit randomizations of boxes by the minimum dimension. Previously, the amount of randomizations was determined by the width only, causing full width but low boxes to be heavily randomized. --- diff --git a/Utils/Lambda.tex b/Utils/Lambda.tex index 2172bbc..5efe1df 100644 --- a/Utils/Lambda.tex +++ b/Utils/Lambda.tex @@ -27,7 +27,7 @@ path a, b; % 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; @@ -77,4 +77,3 @@ draw b; \useMPgraphic{#1} \stopboxed } -