[MWForum]re: Koch snowflake and SIZE
Wendy Petti
mwforum@lists.mathcats.com
Mon, 14 Jul 2003 18:56:18 -0500
I've now realized three reasons why the snippet of code below does not work in MW:
size/3
1) As I mentioned in my earlier message, we need to put a space before and after the division sign in MicroWorlds.
2) In a recursive procedure, we need to place a colon before the variable name to refer to the value of the variable. (This is not necessary if a slider's name is used exclusively when referring to the value of a variable, but in order to draw the Koch snowflake we must use the colon in order to change the value of the variable in a recursive procedure. Sorry if I cannot find the words to explain this clearly at the moment...)
3) SIZE cannot be the name of a variable in MicroWorlds, because SIZE is a primitive used to set the size of the turtle, as in:
t1, setsize 60
That is why in my version of the Koch snowflake I used LENGTH instead of SIZE.
Wendy