5 ms·
Even simple thing like drawing the Euler spiral has much more effect, if you visualize the turtle motion, so you can see how the motion turns at some point and
by pgtan 7y ago
Even simple thing like drawing the Euler spiral has much more effect, if you visualize the turtle motion, so you can see how the motion turns at some point and the turtle starts going back on the same way down.
cs repeat 360 [fd 10 lt product 2 repcount wait 5]
or a variant of David Eisenstat's code:
cs pu setpos [-100 -100] pd repeat 8 [rt 45 repeat 4 [repeat 45 [fd 5 rt 2 wait 1] rt 135]]
of course Logo is LISP, so you can do stuff like
? show map [[x] se sum # x ?REST] [1 2 3]
[[2 2 3] [4 3] [6]]