7c0h.com

Projects: PyStorm

A lightning simulator for your living room

A long time ago, I heard of a program that did something very simple: it played the sound of a storm, and used the screen to simulate lightning.
I could not find any trace of this program, so I decided to write it myself. The code attached here will play any file (ideally, storm sounds) and will use the screen to simulate lightning. I could give you a long, detailed explanation, but I think a video might be better:

The project uses the pydub and pygame libraries. You can download the code here.

Running

The script takes up to two arguments:

License

This code is released under the MIT License.