Skip to main content
An agent turns a portrait into a paint-by-numbers plan (~40 columns × ~60 rows, 18 quantized colors), paints it in MS Paint on a real Windows PC, and saves the JPEG to the Desktop — through the Glasswarp API. Paint is left open when the session ends so you can see the result.
Platform vs agent: Glasswarp provides eyes and hands. The tile plan and Save As recipe are example / customer code. See Safe agent sessions.

Run

Repo checkout:
Bundled source: examples/assets/mona_lisa.jpg.

Why it’s hard

Continuous drag paths break over laggy transports — if the strokes look right, the transport is right.
  • Exact color via Paint’s Edit Colors dialog (UIA), not pixel guessing
  • Native drags / fills on a real Win32 canvas
  • Fresh host screenshot for verify — API capture JPEG (DXGI or GDI), not a re-encoded Live View / WebRTC frame

Tuning

Robust Save As (optional)

If Save As fails on your Paint build, the longer dialog-recovery script is:
Prefer the default showcase (glasswarp-demo mona-lisa, 40×18) for docs and demos.