I have turtles moving across the view, and I'd like to be able to follow where they go by making them leave a trail behind them, as though they were emitting smoke as they went. Of course, I could use the turtle pen (pen-down
), but since there are many turtles, the view rapidly gets filled with old trails. The solution could be trails that last only for a few ticks before they dissipate. But I don't know how to achieve that.
To be more specific:
1) Is there a technique for making the line drawn following a pen-down
command gradually fade away over the period of some ticks?
2) If not, is there a way of removing the line drawn using the pen a few ticks after it was drawn?
3) If not, is there some other technique that would have a similar visual effect?