Based on the article http://lodev.org/cgtutor/plasma.html
First plot a sine on the X-axis.
Now with X+Y
With the a square root thrown in for good measure
Combine the sines
Generate a palette
Animate plasma using the palette
Tweaked the plasma generation
A few more tweaks
Change the palette
Generate plasma using the new palette
Support for gradient palettes
Generate plasma using the gradient palette
Another animation
Rendering palette and plasma as PNG images.
Usage of plasma:
-h=512: Height of the image
-n=1: Number of frames to generate
-o="plasma.png": Output file name
-p="palette.png": Palette file name
-s=16: Scale of the plasma
-show=false: Show the generated image
-w=512: Width of the image
Window with a rotating plasma image.
Can also be transpiled into JavaScript by GopherJS
Control the plasma using a PS4 controller
Using screen.ReplacePixels
to render the plasma.