🌈 Prism Dispersion — 2D Ray Tracing of White Light and Minimum Deviation
2D companion of the prism rainbow sim: exact Snell ray tracing through a triangular prism with Cauchy dispersion, live index and deviation-vs-incidence graphs, total internal reflection and a minimum-deviation check against the analytic formula.
⚙ Under the hood
2D companion of the prism rainbow sim: exact Snell ray tracing through a triangular prism with Cauchy dispersion, live index and deviation-vs-incidence graphs, total internal reflection and a minimum-deviation check against the analytic formula.
PrismDispersionSnell LawMinimum Deviation
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install