Interactive simulation to explain:
- How a primary rainbow forms (refraction -> internal reflection -> refraction)
- Why different colors have different refractive indexes (dispersion)
- Why red is always the outer/top color in the primary rainbow
- How prism and raindrop views compare
From this folder, run any static server, for example:
python3 -m http.server 8000Then open http://localhost:8000.
- Mouse wheel on canvas: zoom in/out
- Mouse drag on canvas in prism mode: rotate prism
- Teacher Mode: guided 8-cue lecture sequence