A compact image editor inspired by familiar layer-based workflows. Draw, erase, blend, move, filter, undo, and export—with native Morphic controls and Smalltalk you can inspect.
Actual Squeak rendering. Click to inspect the full screenshot.
DRAW A STROKE✳BLEND A LAYER✳UNDO AN EDIT✳EXPORT YOUR IMAGE
01 / USE THE APP
Your canvas is a live object.
The website documents the editor. The live application runs inside Squeak.
01
Launch in this project
Double-click Open Pixel Studio.cmd in the project folder. It opens the project’s Squeak image and loads the editor definitions. If Squeak is already open, use the file-in route below in that session.
The launcher leaves the application open and does not automatically save the image.
02
Or file in the source
Download PixelStudio.st. Select it in Squeak’s File List and choose fileIn. This installs four self-contained classes in Pixel-Studio; earlier demo file-ins are not needed.
In a Workspace, select PSStudioMorph open. and choose Do it. Choose Inspect it for an Inspector on the studio, then explore self model, self canvas, or self model layers.
New clears the document; Sample restores the included flower artwork. Close removes the studio.
What this editor supports
A fixed 512 × 352 document at 100% display scale, separate raster layers, six tools, eight palette colors plus eyedropper sampling, opacity, visibility, ordering, layer names, 12 undo steps, two effects, and PNG import/export. Shapes are filled. Export flattens onto white and replaces the accepted destination file. Oversized imported PNGs are scaled down to fit; smaller images are centered. Editable layers live in the running Squeak image; PNG does not retain them.
✎
Brush & eraser
Drag to paint. The size slider sets a 2–48 pixel diameter. Erasing writes transparent pixels into the active layer, revealing lower layers.
◯
Rectangle & ellipse
Drag a bounding box in either direction. An outline previews the drag; releasing fills the shape in the selected color.
↗
Eyedropper & move
Click to sample a visible color. Move layer shifts the active layer’s offset; its bitmap stays intact. Show a hidden layer before painting.
02 / WATCH NATIVE ACTIONS
Three workflows, frame by frame.
GIFs encoded from actual Squeak screenshots. Choose a recording, or switch to a still.
03 / THE SMALLTALK BEHIND IT
Follow the messages to the pixels.
Each Workspace example was executed. Its screenshot shows that exact result.
04 / FOUR OBJECTS, CLEAR RESPONSIBILITIES
Keep the document independent of its view.
Inspect an object, change a method, and explore the running implementation.
PSStudioMorph
The interface
Owns controls, palette buttons, status labels, and the canvas. Sends commands to the document and reflects tool selection.
PSCanvasMorph
The gesture boundary
Converts mouse positions into document coordinates, previews shape bounds, captures mouse focus, and commits completed gestures.
PSDocument
The editable state
Owns layers, selection, history, tools, effects, and file I/O. Composites visible layers and announces changes to dependent views.
PSRasterLayer
The pixels
Owns a Form and its name, offset, visibility, and opacity. Copies bitmap storage for snapshots and caches opacity-adjusted pixels.
Add a color picker, zoom with coordinate mapping, rectangular selections, adjustable document dimensions, or a serialized layer document. Put pixel operations on the model and translate pointer coordinates at the canvas boundary. A model-driven tool can be inspected and tested without rebuilding the whole interface.
06 / VERIFIED OUTPUT
Real pixels. Recorded behavior.
The recordings exercise native widget actions and supply native mouse-event objects to the canvas handlers. They are deterministic checks inside Squeak, rather than recordings of desktop mouse automation. Each frame is rendered by the real Morph tree. GIF encoding uses a shared palette, combines identical hold frames, and verifies dimensions, visible changes, total duration, and infinite looping.
See the behavioral checks that passed
The runner exits without saving the project image. Export rejects failures or changed source/catalog hashes. This is a compact teaching editor, with the supported tools and file behavior described above.