# 2D Trail
Play Demo
Demonstrates:
- Trail2D as a child of a moving Node2D
- Configurable length, width, colour gradient, and lifetime
- Multiple trails with different visual settings
- Toggle emission on/off with Space
Run: uv run python packages/graphics/examples/2d_trail.py
Controls:
Space - Toggle trails on/off
Escape - Quit
## Source Code
```{literalinclude} ../../packages/graphics/examples/2d_trail.py
:language: python
:linenos:
```