I made a lightning image (looks tree like) and lightning animation using prime-driven resonance instead of pure randomness.
Basically, instead of the usual chaotic branches, this uses prime number ratios to control the lightning’s shape, turning it into something deterministic and mathematically grounded.
The lightning branches emerge in a structured way based on prime harmonic intervals—not random. It’s like turning randomness into a set of rules that define how the structure emerges.
Code here: https://github.com/devinbostick/CODES