Is it ok in a .mp file to do something like for k=1 step 1 until N: beginfig(k); % some stuff endfig; endfor; Thanks, G
Gerben Wierda wrote:
Is it ok in a .mp file to do something like
for k=1 step 1 until N: beginfig(k); % some stuff endfig; endfor
Sure, why not? Simply try this, which shows that it works fine: N := 100; for k=1 step 1 until N: beginfig(k); drawdot (100,100) withpen pencircle scaled k; endfig; endfor; end. bye, Taco
* Taco Hoekwater (Mar 29, 2005 00:10):
N := 100; for k=1 step 1 until N: beginfig(k); drawdot (100,100) withpen pencircle scaled k; endfig; endfor; end.
Wow, I never realized that. Man, I really gotta try to remember what can be done with macro processors..., nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
participants (3)
-
Gerben Wierda
-
Nikolai Weibull
-
Taco Hoekwater