NetLogo Models Library:
Note: If you download the NetLogo application, every model in the Models Library is included.
This code example shows how to use turtles to draw lines that trace a turtle's trajectory.
Since each line segment in a turtle, the model will eventually slow down once there are too many lines on the screen. If your model is creating too many lines, decrease the resolution of each line by moving more than once between calls to draw-line-to.