All effects

pixel += 1

Shadebobs.

1991 to today

A disc that never gets drawn, only added. Every time the bob passes, each pixel under it moves one step up the palette, so the path it travels slowly builds up into glowing bands of colour.

8-bit16-bitPCGPU

How it works

The algorithm

Keep a buffer of palette indices. Move a disc along a smooth path (usually sine curves). For every pixel under the disc, add one to its index. Pixels the bob crosses often climb higher up the colour ramp. If the index wraps at the top of the palette you get the classic hard colour bands; if it saturates and the buffer slowly fades, you get light trails instead.

The old-hardware trick

On the Amiga the screen is made of bitplanes, one bit of the colour index per plane. With the right logic function the blitter turns a few blits into a binary adder that carries a 1 through the planes under a disc mask, so the whole bob is added in hardware with no per-pixel work on the 68000. Colour 31 plus one becomes 0 again, which is why so many shadebob screens show those sharp rings.

Per frame, in pseudo-code
for each frame:
  (x, y) = (cx + A·sin(a·t), cy + B·sin(b·t))
  for each (dx, dy) in disc:
    i = (y+dy)·W + x+dx
    screen[i] = (screen[i] + 1) mod 32   // wrap: Amiga bitplane adder
    // or: min(screen[i] + 1, 255) with fade = trails
  show screen through palette

Timeline

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

  1. 199116-bit

    3D Demo

    Anarchy · Amiga OCS/ECS

    One of the earliest Amiga productions Demozoo tags with shade bobs.

    Source
  2. 199116-bit

    Hardwired

    Crionics & The Silents · Amiga OCS/ECS

    The end-of-1991 trackmo also carries the shade bobs tag, among its many classic effects.

    Source
  3. 199216-bit

    Pandora's Box loader screen

    Synergy · Atari ST/E

    Shadebobs reach the Atari ST, where four bitplanes give a 16-step colour ramp.

    Source
  4. 199216-bit

    Shade Bobs Intro

    Supplex · Amiga OCS/ECS

    An intro named after the effect itself, a sign of how standard it had become.

    Source
  5. 1993PC

    A shadetro for a BBS

    Hysteria · Hysteric Visions BBS · MS-DOS

    On the PC the effect turns up in a BBS advert, nicknamed a 'shadetro'.

    Source
  6. 19938-bit

    Just Fancy

    Code3 · Atari 8-bit

    Shadebobs on an 8-bit machine, tagged on Demozoo.

    Source
  7. 201816-bit

    Heal Old Geek

    Hemoroids · Atari ST/E

    Decades later the effect is still a fond part of new oldschool demos.

    Source

Over time

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

Amiga · 32 colours

Bitplane adder

1991

One bob on a Lissajous path, adding one per pass with wrap-around at 32, in a 12-bit palette. Overlaps climb the ramp and roll back to black in sharp rings.

16-bitCPUwrap-around5 bitplanes
Detail page
Atari ST · 16 colours

Two-bob chase

1992

Two bobs on different curves, four bitplanes' worth of colour, wrapping at 16 in the ST's 9-bit palette.

16-bitCPU16 colours9-bit colour
Detail page
MS-DOS · VGA

Glowing trails

1993

A byte per pixel lets the count saturate instead of wrapping, and a slow random fade turns five bobs into melting light trails.

PCCPUsaturatefade
Detail page
PC · 256 colours

Vector shadebobs

1990s

Forty-eight small bobs ride the vertices of a rotating torus knot, so a 3D shape is drawn as built-up light.

PCCPU3Dvertices
Detail page
GPU · GLSL

GPU light trail

today

No buffer at all: each pixel sums soft light from ninety past positions of three bobs, then tone-maps the total.

GPUGPUadditivetone mapping
Detail page