May 2019
Intermediate to advanced
496 pages
10h 38m
English
The current Drawing component shows a static snapshot of how the drawing looks at this point. It renders a set of Scalable Vector Graphics (SVG) lines and a triangle to represent the turtle.
We'll need to do some work to convert this from a static snapshot to an animating representation.
As it stands, the component takes a turtle prop and a drawCommands prop. The turtle prop is the current position of the turtle, given all the drawCommands have already been drawn. However, this isn't what we need when we're animating. We need the initial position ...
Read now
Unlock full access