15 Nov
2008
15 Nov
'08
1:57 p.m.
Am 15.11.2008 um 04:10 schrieb Yue Wang:
Hi, Hans,
In your "metapost graphics" pdf document, I can find a card which randomizes points in a path of Christmas tree, how to do that? thanks.
You could try to make something with this example code. \setupcolors[state=start] \starttext \startMPpage[offset=1cm] for i=1 upto 5000: v := uniformdeviate(100) + 1 ; h := uniformdeviate(v) / 5 * normaldeviate ; l := uniformdeviate(5) ; draw ((-l,0)--(l,0)) rotated uniformdeviate(180) shifted (h,-v) withcolor transparent(1,.5,green) ; endfor \stopMPpage \stoptext Wolfgang