Every sprite starts as half a mask: a few shapes drawn from the hash (a body ellipse and a head for a critter, stacked boxes for a robot, a tapered hull and swept wings for a ship) mark each cell as empty, maybe body, body or dark detail, or always body. The mask is sampled at random, mirrored around its axis and outlined, and only its largest connected piece is kept. Body pixels are then shaded from their place in the sprite and from the sides they show to the light, in ramps taken from the fixed palettes of old consoles and home computers.
The sprites are pinned to a numbered specimen sheet, sent marching in a parade where each lane is one family (one mask, a new sampling for each member), or posed alone as a hero in a pixel landscape or in front of a planet. The short side always holds the same number of art pixels, so a hash gives the same crisp picture at any size. Press New seed for a fresh hash, then share the URL to show someone that exact piece.
Traits
The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.
| Trait | Values (weight) |
|---|---|
| Palette | Famicom 22 · PICO-8 22 · Game Boy 16 · C64 16 · Spectrum 12 · CGA 12 |
| Kind | Critters 32 · Robots 24 · Ships 24 · Mixed 20 |
| Layout | Specimen sheet 40 · Parade 32 · Hero 28 |
| Shading | Flat 25 · Rounded 45 · Banded 30 |
| Size | Tiny 25 · Classic 50 · Large 25 |
Credits
- Sprites: the mirrored random-mask method of Dave Bollinger’s Pixel Robots and Pixel Spaceships, as written up and generalised by Zelimir Fedoran in pixel-sprite-generator (MIT): cells that are empty, maybe body, body or border, or always border; random sampling, mirroring, then an outline around the body. The masks here are new: they are built from hash-drawn shapes for each sprite or family, not taken from either project, and the shading and scenes are original.
- Shading follows Fedoran’s idea of brightness rising towards the middle of the sprite; the extra light on the top edges and shade on the bottom ones are added here. Sky gradients use ordered dithering with Bryce Bayer’s 4 × 4 matrix (1973).
- Palettes: colours from the fixed hardware palettes of the Famicom (NES), the PICO-8 fantasy console, the original Game Boy, the Commodore 64 (Philip "Pepto" Timmermann’s measured values), the ZX Spectrum and IBM CGA.
- Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
- The code was written with an AI assistant. It draws everything itself: no AI-generated images.