Michael creates a snowflake curve in LOGO
Abe tried Michael's logo procedure below the red and found it didn't work! Don found a simpler one that works. Put the following lines in your Logo
to side :size :level
if :level = 0 [fd :size stop]
side :size / 3 :level - 1 lt 60
side :size / 3 :level - 1 rt 120
side :size / 3 :level - 1 lt 60
side :size /3 :level - 1
end
; Free MSWLogo from http://www.softronix.com
; Code from page 245 of "The Great Logo Adventure" by Jim Muller
; Try snow1 100 4
cs
repeat 3 [side :size :level rt 120]
____________________________________________
Michael's procedure is below. Can you find the error?
STEP
ONE of the snowflake
fd
20
rt 120
fd
20
rt 120
fd
20
rt 120
STEP
TWO of the snowflake
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
STEP
THREE of the snowflake
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
STEP
FOUR of the snowflake
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd
20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60
fd 20 lt 60 fd 20 rt 120 fd 20 lt 60 fd 20 lt 60