# 2D Trail Colour-gradient trails behind moving objects. ```{raw} html ▶ Run in browser ``` **Tags:** `2d` 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 examples/features/2d/trail.py Controls: Space - Toggle trails on/off Escape - Quit ## Source ```{literalinclude} ../../examples/features/2d/trail.py :language: python :linenos: ```