← all demos
Physics

Diffraction Grating (N = 6)

I = (sin Nδ / sin δ)²
Diffraction Grating (N = 6)

A six-slit grating: the interference maxima at multiples of 2π grow tall and narrow (∝ N²) while feeble secondary peaks fill the gaps between them.

Computed & rendered in pure C# on the frozen OnlyCSharp 1.8 library — animation baked to GIF with the library's own Gif encoder (no GPU, no ffmpeg, no external packages).