<aside>
🧟 Put your two questions here. Please include your [name.](<http://name.Is>)
</aside>
you can call penUp and penDown whenever you like. and the turtle library i wrote is just a few functions that use p5.js so you can still do anything from p5.js you want
yes. for example turtles are very often used to make very complicated "spirographs" and trees
it is a good idea, it would even work.
totes
the chapter shows drawing a square and star both with and without turtles. some things are more easily expressed with turtles, other's are not.
the first common and somewhat related idea that comes to mind is "polar coordinates".
How exactly do the pushState() and popState() work? Are they exactly like push() and pop() in p5? (Isha)
they work by making a copy of the current turtle properties (position, angle, pen state) and "pushing" them onto a "stack"
, when you later call popState() the "top" of the stack is copied back to the turtle properties, and then discarded
it works very much like push and pop in p5.js, put the state that is being recorded is different
Turtles are good for drawing repeating lines or motifs, or shapes that follow an equation. Under what conditions would they be good for less parametric graphics or art, which is more hard coded? (Isha)