# 2D Lighting
Play Demo
2D Lighting Demo — Coloured point lights with shadow-casting occluders.
Run: uv run python packages/graphics/examples/2d_light.py
Controls:
- Mouse moves the white "cursor" light
- WASD moves the camera/scene offset
- 1/2/3 toggles individual lights on/off
- S key toggles shadows on/off
- ESC quits
## Source Code
```{literalinclude} ../../packages/graphics/examples/2d_light.py
:language: python
:linenos:
```