From de2fa4e3c8f450f3e3cb4cd1053ad055da8b4717 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 5 Oct 2009 12:17:54 +0200 Subject: [PATCH] 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. --- Utils/Lambda.tex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 } - -- 2.30.2