Plasma

Version 3 of 7

Palette-cycled cloud.

PC · VGA mode 13h · 1988

This version

A diamond-square fractal computed once. Every frame only the 256-colour palette rotates, the picture never changes, yet everything flows.

How this version works

A 256×256 diamond-square cloud is generated once, then converted into an unsigned-byte index map. Multiplying the cloud values by 1.5 before wrapping the indices introduces extra colour cycles across its height range. The 320-pixel-wide output tiles that map using coordinates masked to 255. Each frame adds a time offset advancing at 60 palette entries per second before looking up the VGA-quantised gradient, so the underlying cloud never moves.

The trick in this version

On indexed-colour VGA, changing palette entries can animate a stationary image without rewriting its pixel indices. This code reproduces that result by keeping the index map fixed but resolving every output pixel through the shifted palette each frame.

Historical context · PC

  1. 1988 · Bret Mulvey

    The palette-cycled fractal plasma

    A diamond-square ‘plasma cloud’ is generated once, then animated purely by cycling the hardware palette, distributed on CompuServe. A different idea from the per-frame sine plasma that followed.

  2. 1993 · Future Crew · Second Reality

    Plasma becomes a surface

    Second Reality, winner at Assembly 1993, wraps an animated plasma around a spinning cube, no longer a full-screen background but a texture computed every frame.

  3. 2013 · Future Crew

    The original source code is released

    For Second Reality's twentieth anniversary the full source is published, so the 1993 plasma can be studied line by line instead of reconstructed from video.

Platform
PC · VGA mode 13h
Era
PC
Rendered on
CPU
Tags
palette cycling · fractal
Sources
The palette-cycled fractal plasma (1988)Plasma becomes a surface (1993)The original source code is released (2013)