Skip to content

Character workshop

The workshop turns a seed into a pixel character, the same one every time and in every format. Click a cell to retouch it (empty, outline, body), check the nine poses of the codex-pet-v1 sheet, then copy the source: nothing here is a file format of its own, what you copy goes straight into a story.

Grid (from the seed)
idle
running-right
running-left
waving
jumping
failed
waiting
running
review

What you copy

GridCopy MarkdownCopy JSON
from the seedthe directive ::pixel{gen=sprite …}the recipe, PixelRecipeSchema
retouched by a clicka ```pixel fence with its legendthe pixel block, PixelBlockSchema

A recipe stays small and regenerates its grid; a retouched grid is frozen and edited by hand from then on. Both are described on the pixel page.

Download PNG saves the sprite as a picture, pixel-<seed>.png, 8 px per cell with the empty cells transparent. It is drawn in your browser (OffscreenCanvas), in the colours the preview shows: a token such as accent takes the colour of this site. A picture is a copy for elsewhere (a slide, a chat); the source above stays what a story reads.

Colours

The outline is the text token and the body the bg token: black and white on the base site. Pick accent for the body and the character takes the accent of the site that shows it, in light and dark mode, without a second source.

The poses

The nine rows are those of codex-pet-v1 (idle, running-right, running-left, waving, jumping, failed, waiting, running, review). They are placeholders made by shifts, bounces and a mirror, never by a model. To write the sheet as a file:

TerminalShell
recit pixel sheet figure.json -o figure.webp

Real poses, layers and shading belong in a drawing tool: see import a sprite sheet.

Portraits

When a character is described in a bible, @recit/character draws its bust portrait from the same model as the body: quantized in pixel art, deterministic, in the colours of the theme. Nothing is imported and no third-party generator is involved.

Lorem, portrait (32 × 32 cells)
No expression
joy
oops

See the bible reference for the full syntax of parts, poses, expressions and renders.

Last modified on