Twister

Version 3 of 5

128-byte style.

MS-DOS · default palette · 2012

This version

Three twisters coloured straight from the VGA palette the PC boots with, no bytes left to set your own.

How this version works

This 320-pixel-wide version draws three narrow bars on black, centred at 22, 50 and 78 per cent of the screen width. Each uses a different time multiplier and phase offset, so their twists move independently. Face width is reduced to a lighting value from zero to fifteen. Alternating faces use either the palette's greyscale entries or hue entries selected by bar number and face number, with three brightness bands.

The trick in this version

The code uses an approximation of the default VGA palette rather than designing separate colour ramps. Arithmetic produces palette indices directly, illustrating a sizecoding approach without claiming that this implementation occupies 128 bytes.

Historical context · PC

  1. 2012 · frag / fsqrt · cord

    A twister in 128 bytes

    Demozoo tags this March release as a twister, squeezed into a 128-byte intro.

Platform
MS-DOS · default palette
Era
PC
Rendered on
CPU
Tags
sizecoding · VGA default palette
Sources
A twister in 128 bytes (2012)