May 2019
Intermediate to advanced
496 pages
10h 38m
English
This component is straightforward: we will pass to it the line to be drawn and the current turtle position. Rather than drawing the line from x1,y1 to x2,y2 as we do with StaticLines for an animating line, we'll draw it from x1,y1 to the current turtle position. The turtle position will move at a constant speed from the x1,y1 coordinate until it reaches the x2,y2 co-ordinate, drawing a line behind it:
import React ...
Read now
Unlock full access