Let's say you want to draw a hypocycloid (spirograph) with a turtle.
-
Let's say you want to draw a hypocycloid (spirograph) with a turtle. I use a parametric equation for each of the circles and combining them to find the x and y position of the points on the curve then telling the turtle to goto(x,y)
This works fine, however it is NOT in the intended "spirit" of drawing with a turtle. Drawing with a turtle is about "relative" navigation. Consider two ways to draw a circle:
for 0<t<2pi:
goto(rcos(t), rsin(t))repeat 100:
forward 2
right 2 -
F myrmepropagandist shared this topic
-
Let's say you want to draw a hypocycloid (spirograph) with a turtle. I use a parametric equation for each of the circles and combining them to find the x and y position of the points on the curve then telling the turtle to goto(x,y)
This works fine, however it is NOT in the intended "spirit" of drawing with a turtle. Drawing with a turtle is about "relative" navigation. Consider two ways to draw a circle:
for 0<t<2pi:
goto(rcos(t), rsin(t))repeat 100:
forward 2
right 2@futurebird Good thing I skimmed through the replies. Didn't realize this was old until I saw I'd already replied with similar thoughts I was getting now.
-
@futurebird Good thing I skimmed through the replies. Didn't realize this was old until I saw I'd already replied with similar thoughts I was getting now.
I'm still looking for a more natural way to describe the spirograph in this context... and it's time for this lesson soon enough so I'm reworking it again.