Skip to content

goedel-gang/lightning

Repository files navigation

lightning

Attempt at simulating a lightning-like figure (Lichtenberg figure). Works by keeping a field of potential electrons and randomly expanding into one. More frequently accessed branches thicken. Uses all sorts of haphazard optimisation to make it run, whatsoever. It uses a nice little trick so that a branches prevalence first grows rapidly, then slows - interpolation on the square root. Of course, features rainbow support.

Here is an example of it in action:

screenshot

Here is a display of the "electron field":

screenshot

Here is a short video of it in action.

About

Lichtenberg figures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages