[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> without multi-turtles demo



In-Reply-To: <10AE6D40821@ort.spb.ru>
It's not a good use of RUN, Olga.

RUN is nicely used when a procedure becomes data, e.g. as the returned 
value of an input, thus:

> to draw :f :f1 :f3 :f4 :f5
> for [xx -360 360 .5][
>        setxy :xx (80+ 50* run :f) setpc 3 dotplot 
>        setxy :xx (-80+ 50* run :f1) setpc 4 dotplot  
>        setxy (run :f3)- 100 (run :f4)- 150 setpc 6 dotplot
> if :xx > 240 [
>        setxy (run :f3)+ 220 (run :f5)- 160 setpc 7 dotplot]]
> end

with the call:

draw fun fun1 fun3 fun4 fun5

Yu can have great fun with this!

Micheal O Duill

---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home