Skip to content

Pixel Studio ​

A compact sprite editor with a 16 × 16 canvas, named tools, a palette and a live preview.

Run it ​

Build examples with devenv shell -- lcom-ng-build, then:

sh
lcom-ng run -- build/examples/pixel_studio build/pixel_studio_sprite.h

Controls ​

ControlAction
B / P / E / F / IPencil / eraser / fill / eyedropper
Mouse drag / right-clickPaint / pick canvas color
Arrows + Enter / SpaceMove pixel cursor and apply tool
DeleteErase the cursor pixel
[ / ]Previous / next palette color
X / VFlip horizontally / vertically
1 / 2 / 3 or - / +Zoom
GToggle grid
Cmd/Ctrl+Z / Cmd/Ctrl+Shift+Z (Ctrl+Y)Undo / redo
Cmd/Ctrl+S / S / F2Export reusable C header
C / F1Clear / shortcuts

In the app ​

A 16 by 16 canvas, indexed palette, native-size previews and real history controls.

Every pixel counts · A 16 by 16 canvas, indexed palette, native-size previews and real history controls.

What it demonstrates ​

PS/2 gestures, stroke interpolation, flood fill, bounded undo history, RTC timestamps and C asset generation. Export produces C data; it does not reopen arbitrary image files.

Source: examples/pixel_studio.c.

Refresh captures with the screenshot workflow.

Course/docs licensed CC BY 4.0. Code licensed MIT.