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

Re: LOGO-L> Move & recursion




Here is another nice way to use random with colours:

part 1:
draw a lot of random black lines on the screen
pd repeat 1000[fd random 100 rt random 181 lt random 181]

part 2:
fill the pattern with colour
pu repeat 10000[setc random 140 fill rt random 361 fd random 100]

This one has a surprise that unfolds as you watch it.

(the code I've used here works with microworlds, eg. 140 colours, fill works 
without putting the pen down )

-- Bill Kerr

>with the MOVE procedure, and think the following is a fun way to start
>looking at random movements on the screen:

---------------------------------------------------------------
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