Physics
Malus's Law
I = I₀ cos²θ

Polarized light passing through a second polarizer is transmitted in proportion to the cosine squared of the angle between their axes, vanishing when crossed.
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).