Scrolling Plasma Effect

Here’s what happens:

* A palette of colours is generated using sine waves for smooth colour bands.

* A series of procedural “plasma” images are created — but instead of storing colours, they only store palette indices.

* Each image is turned into a sprite, and each sprite is mapped to a different offset in the palette.

In the main loop:

* The palette is scrolled every frame, so the colours inside the sprites flow smoothly.

* The sprites themselves scroll across the screen from right to left, wrapping back around when they exit.

* Random tints and blend modes make the visuals more dynamic.

* A plasma-tile background and a tinted PlayBASIC logo sprite are drawn along with the animated sprites.

The result is a classic demoscene-style plasma effect where colours constantly shift and flow, but the sprites themselves never change shape — all the animation comes from palette cycling and sprite movement.