Home▸Colours & Light▸Optical Bench: Law of Reflection (2D)

Optical Bench: Law of Reflection (2D)

A continuous-angle ray-optics bench: aim a beam, rotate two mirrors, and watch angle of incidence equal angle of reflection at every bounce while a live readout tracks path length and reflections.

Colours & Light2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-mirror-maze ↗ Open standalone

This 2D companion drives the same law of reflection as the 3D Mirror Maze puzzle, but instead of a 10×10 grid restricted to 45° "/" and "\" mirrors, both mirrors here rotate through any angle from 0° to 179°. A plain canvas view exposes the beam's launch angle, each mirror's tilt and a reflection-count budget as live sliders, traces the exact vector-reflected path (d′ = d − 2(d·n)n) frame by frame, and reports the measured angle of incidence, total path length and photosensor status in a live readout — turning the puzzle's implicit physics into something you can read directly off the panel.

⚙ Under the hood

Continuous-angle ray-optics bench: aim a beam, rotate two mirrors, and watch angle of incidence equal angle of reflection at every bounce while a live readout tracks path length and reflections.

law of reflectionray opticsmirrorsangle of incidencevector reflection

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)