Elsewhere

Sixteen Colours at a Time

A page with no gradients, no shadows and no display over the picture.

This page is drawn the way a cinematic platform game of 1991 drew its world: in flat polygons, with sixteen colours on the screen at one time. A hill is one shape in one colour. The sky is five bands with hard edges. Nothing glows, and nothing casts a shadow.

The picture

Behind the text is a scene that does not scroll: a sky, two moons and three rows of rock. Each shape is a clip-path polygon, and the large moon has twelve sides. The text sits on a slab with two corners cut off. The lighter triangle at each cut is the only shading on the page.

  • There is no interface over the picture. The site name and the links are in the black bars above and below it.
  • There are no image files and no fonts to load. The type is whatever thin sans-serif the system has.
  • The beam along the top of the bottom bar shows how far down the page you are.

“No score. No lives. No map. Only the picture.”

A note on the wall

The palette swap

Old hardware changed a whole scene by replacing its palette. This page does the same as you read. The sky starts at dusk, turns to night a third of the way down, and comes up at dawn near the end. The change is a jump and not a fade, because a palette of sixteen colours has nothing in between.

/* step-end holds a palette, then jumps */
@keyframes palette {
  0%  { --sky-a: var(--dusk-a); }
  34% { --sky-a: var(--night-a); }
  70% { --sky-a: var(--dawn-a); }
}

/* The scroll position drives it */
:root {
  animation: palette step-end both;
  animation-timeline: scroll(root block);
}

The camera

The three rows of rock rise at different speeds as you scroll, so the near rocks pass in front of the far ones, and the large moon sets. If your system asks for less motion, the scene stays still and only the palette changes.


The sixteen

Seven colours are fixed. The other nine belong to the scene, and each palette has its own set. The swatches of the scene colours change as you scroll.

ColourJob
BlackThe two bars, code
FacetThe cut corners, rules, comments in code
TextBody text
BrightTitles, the first paragraph
LaserLinks, markers, the beam
SparkSubtitles, numbers, the bolt on the beam
SkyFive bands, from the top down
MoonBoth moons, the stars at night
RockThe far, middle and near rows

The sixteenth colour is the slab under this text. Scroll back up, and the night comes back.