On 5/15/21 2:42 PM, Mikael Sundqvist wrote:
Hi,
you could do something like this:
\startMPpage
for i = 0 upto 10:
drawarrow if uniformdeviate(1)<0.5: reverse fi ((0,0)--(2cm,0)) yshifted i*cm;
endfor;
\stopMPpage
/Mikael
Hi Mikael,
wonderful, thanks for the quick answer! Yes that works as
Hi,
you could do something like this:
\startMPpage
for i = 0 upto 10:
drawarrow if uniformdeviate(1)<0.5: reverse fi ((0,0)--(2cm,0)) yshifted i*cm;
endfor;
\stopMPpage
/Mikael
On Sat, May 15, 2021 at 2:30 PM Thomas A. Schmitz
wrote:
>
> Hi all,
>
> for a slide template, I want to draw colore
Hi all,
for a slide template, I want to draw colored arrows in a randomized
color (from a list of colors). This works (and the code is far too
clever for me, I must have copied it somewhere):
save mycolor ; color mycolor[] ;
mycolor[1] := (0.2, 0.3, 0.4) ;
mycolor[2] := (0.6, 0.6, 0.4) ;
myco