Skip to content

Coordinates are units on a 100 × 100 canvas, y down. Parts hold shapes (circle, ellipse, rect, capsule, polygon) and rotate around their pivot; a part with a parent moves with it.

A blob with a face edit the spec, the drawing follows

Try: change the body colour, make the ellipse wider, or set the size to 16 px to see the icon render.

Materials give colour, texture (noise fur scales stripes checker cloth bricks spots metal), shine, and whether a shape is outlined. Textures stick to moving parts; small sizes simplify them automatically.

Textures edit the spec, the drawing follows

Tracks animate x, y, rot, sx, sy and show per part, as keyframes, eased keys, or waves (sin tri square bounce).

A waving flag edit the spec, the drawing follows

For animals and people, start from a figure: a skeleton with realistic motion models. Dress its bones by id with shapes; the motions come for free. Here is a goose with a few shapes and three motions; add "jump", "climb" or "sit" to the animations.

Dressing the goose figure edit the spec, the drawing follows

Plug-ins: new shapes, textures and motions

Section titled “Plug-ins: new shapes, textures and motions”

A plug-in registers new building blocks; specs then use them like built-ins, with the same validation. This playground loads examples/plugins/extras.mjs, which adds a star shape, a feathers texture and a float motion.

export default function setup({ registerShape, registerTexture, registerMotion }) {
registerShape('star', { required: ['cx', 'cy', 'r'], keys: ['r2', 'tips', 'round', 'rot'], compile: (s) => ({ sdf, R, bbox }) });
registerTexture('feathers', (x, y, scale) => brightness);
registerMotion('float', { generate: ({ rig, params, samples }) => ({ tracks: { [rig.root]: { y: [...], rot: [...] } } }) });
}
// CLI: npx pixel preview starfish.json --plugin extras.mjs

A starfish made of plug-ins edit the spec, the drawing follows

Specs can also name attachment points, add events, define skins and carry a state machine. See Events, points and the foot line and State machines and skins, and the full format in docs/SPEC.md (which doubles as the brief for AI agents writing characters).

Pixel Studio

Agents describe characters; the engine draws them as pixel art at every level of detail; websites play them with one tag.

© 2026 Pixel Studio · v0.2.0-alpha.2 · Released under the MIT licence.