Photosensitive epilepsy warningFlashing images and rapid colour changes. Not suitable for people sensitive to photosensitive epilepsy.

All effects

frame[n] = zoom(frame[n−1]) + seed

Chaos zoomer.

1990 to today

Plot a handful of random dots in the centre. Copy the whole screen back onto itself a few percent larger. Do it again. Out of almost nothing, an endless expanding storm of colour.

16-bitPCGPU

How it works

The algorithm

It is not a rotozoomer, though it is often filed next to one: there is no texture. The only image is the previous frame. Each frame, the screen is copied onto itself scaled up around the centre by a couple of percent, sometimes with a slight turn, and a few new pixels or lines are drawn in the middle. Everything ever drawn drifts outwards and grows, and because tiny differences get amplified frame after frame, the pattern never repeats. Palette cycling on top makes the colours flow.

The blitter trick

The Amiga blitter does the copy. Scaling up a screen is just duplicating some rows and some columns: rows by choosing source lines, columns by blitting vertical strips shifted by one more pixel each. The 68000 only plots a few dots and sets up blits. With an EOR minterm the new dots XOR into the copy, so patterns cancel and re-form. Because the effect only needs the last frame, it fits in 40K intros, 1K intros and 256-byte intros alike.

Per frame, in pseudo-code
each frame:
  for every pixel (x, y):
    src = centre + (x, y − centre) / 1.04   // a bit bigger
    next[x, y] = prev[src]
  plot random dots near centre into next
  swap(prev, next)
  cycle palette

Timeline

Documented milestones, with a source for each. Famous examples, not claims of who did it first.

  1. 199016-bit

    Zoom

    Phenomena · Amiga OCS/ECS

    Often named as one of the earliest demos with a feedback zoomer of this kind, the seed of what became the chaos zoomer.

    Source
  2. 199216-bit

    Bananamen

    Stellar · Amiga OCS/ECS

    The zoomer that fixed the look; after its coder Dweezil it is also called the Dweezil zoomer.

    Source
  3. 199316-bit

    Chaosland

    Virtual Dreams & Fairlight · Amiga OCS/ECS · 40K

    Winner of the Amiga 40K intro compo at The Party 1993, with chaos zooms that gave it its name.

    Source
  4. 1995PC

    Who Else Can Upgrade A Robot

    Orange · MS-DOS · 64K

    The effect crosses to the PC, where chunky 256-colour buffers make the copy a plain loop.

    Source
  5. 1996PC

    Chop!

    Trepaan · MS-DOS · GUS · 64K

    4th in the PC 64K compo at The X 1996. In its finale the feedback loop becomes an instrument: a flat-shaded 3D object is drawn straight into the zooming buffer so it smears into psychedelic trails, and on the beat Sick Sjaak's black-and-white grim reaper is flashed in and warps along.

    Source
  6. 200916-bit

    KaosBlok

    Loonies · Amiga OCS/ECS · 1K

    Still alive in size-coding: a chaos zoomer squeezed into a 1K intro, followed by KaosBlok 2 in 2010.

    Source
  7. 2023GPU

    Kaoticat

    Alia · TIC-80 · 256 bytes

    A fantasy-console 256-byte take, proof that the feedback idea needs almost no code.

    Source

Over time

6 live versions, from the oldest platform to today: 4 on the CPU, 2 on the GPU. Retro versions run at their original resolution and palette. Demos pause when off screen.

Amiga · 32 colours

Blitter zoomer

1992

Random dots in the centre, the whole screen copied back 4% larger with a hint of turn, 32-colour palette cycling.

16-bitCPUfeedbackpalette cycling
Detail page
Amiga · 1 bitplane

EOR bitplane

1993

One bitplane, a spinning line XOR'd into the zoomed copy each frame: interference patterns that keep folding outwards.

16-bitCPUEOR minterm1 bitplane
Detail page
PC · VGA 256 colours

VGA chaos zoom

1995

Chunky 256-colour buffer, a slow fade per copy, rotation in the feedback and three orbiting seeds.

PCCPU256 coloursfade
Detail page
PC · VGA 256 colours

Beat-timed feedback

1996

After Trepaan's Chop!: at 170 BPM the scene bobs and the zoom kicks on every beat; every bar the solid changes (cube, star, potato) and Sick Sjaak's reaper flashes in white, warping with the trails.

PCCPU3D in the loopbeat sync
Detail page
WebGL · two framebuffers

Ping-pong feedback

2010s

The blitter copy as two textures that swap every frame. Red, green and blue are zoomed by slightly different amounts and the copy is gently warped, so the trails split into rainbow halos.

GPUGPUrender to texturechromatic split
Detail page
WebGL · single pass

Shader Showdown zoom

2020s

No memory of the last frame at all. A log-polar trick turns zoom into a scroll and a twelve-step fold builds the fractal core, so the zoom never ends and never blurs.

GPUGPUlog-polarIFS foldlive coding
Detail page