Skip to main content

pixelcanvas

pixelcanvas is a command-line paint program an AI agent drives. Give it a reference picture and the agent redraws it like a painter: it plans the regions, then works stage by stage (sketch, line, flat colour, shade, detail, finish). After every command pixelcanvas reports what changed in numbers and writes a picture of the result; the agent opens it, judges it, and goes on or undoes. Ask for a redraw with changes (mint-green hair, a poster, a lake behind the figure), or describe a picture in words.

On a private set of 93 reference pictures (anime, landscape, promotional art), the redraw path reaches a judge mean of 9.42 out of 10, with 88 of 93 rated the same quality as the reference. In the redraw path the strokes follow the reference and take their colours from it along the stroke, and no picture is retouched pixel by pixel. A small open-weight model (Qwen 3.8 Flash class) driving the skill in Claude Code or opencode finishes a redraw in about 19-45 minutes and 44-86 commands; its sessions now cover 23 anime pictures, with a judge mean of 9.52 and 21 of 23 rated the same quality as the reference (the scripted path on the same pictures: 9.48, 22 of 23).

Install

pip install pixelcanvas
pixelcanvas install-skill                # the skill -> ~/.claude/skills/pixelcanvas
pixelcanvas install-skill --opencode     # or -> ~/.config/opencode/skills/pixelcanvas

Then ask your agent: "Redraw reference.jpg with pixelcanvas". Every command is pixelcanvas <command>.

A redraw

pixelcanvas new pic --ref reference.jpg --mode trace
pixelcanvas region add hair --marks 4,5,9,13
pixelcanvas region add face --wand 500,550 --focus 3
pixelcanvas region rest background
pixelcanvas stage done
pixelcanvas todo --all
pixelcanvas do "sketch face; sketch hair; sketch background"
pixelcanvas stage done
pixelcanvas ink all
pixelcanvas stage done
pixelcanvas flat all
pixelcanvas stage done
pixelcanvas shade all
pixelcanvas stage done
pixelcanvas detail all
pixelcanvas detail face --level 1
pixelcanvas dot all
pixelcanvas stage done
pixelcanvas sharpen
pixelcanvas export final.png
pixelcanvas stage done

Every command prints the scores before -> after, a VIEW: picture of the canvas, a VIEW-REF: picture of the reference and a NEXT: line. The project folder pic.pixelcanvas/ keeps one PNG per layer, the regions, an undo history and a journal; pixelcanvas export final.png --psd --ora --timelapse film.gif writes the layers and a time-lapse.

Redraw it, but ...

State the changes a request asks for after the regions; a change edits the target the stages trace, and the original stays as orig.png:

pixelcanvas new pic --ref reference.jpg --mode trace --request "redraw it with mint-green hair"
pixelcanvas region add hair --marks 4,5,9,13
pixelcanvas region add face --wand 500,550 --focus 3
pixelcanvas region rest background
pixelcanvas change add recolor hair --to "#8fdcb4"
pixelcanvas stage done
pixelcanvas recolor hair --to "#8fdcb4"

A poster takes change add canvas, palette map, graphic and text; a new setting takes cutout, background, light and shadow. pixelcanvas next names each command.

Without a reference

People in a place: a scene kit draws the place from the camera, one figure line poses, dresses and gives hair and a face to each figure on a 3D skeleton, and the picture is drawn in 2D over the faded guide.

pixelcanvas new pic --mode free --size 1000x834 --request "two children in a school corridor"
pixelcanvas do @steps.txt                          # camera, scene corridor ..., figure boy ..., figure girl ...
pixelcanvas render
pixelcanvas do "draw all; flat auto; shade all"
pixelcanvas polish --focus boy --motion boy:toward
pixelcanvas export final.png --stages stages
pixelcanvas stage done

corridor

Kits: corridor, room, classroom, bedroom, street, platform, outdoor, field, beach, rooftop, stairs, park, track, studio, sky. 73 pose presets with modifiers, 18 expressions, hair styles with accessories; pixelcanvas help pose,figure,scene lists the options.

Documentation, the skill and the source: https://github.com/treeleaves30760/pixelcanvas. MIT licence.

Metadata

Release files for pixelcanvas 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pixelcanvas 0.8.0
File Size Uploaded Provenance Actions
pixelcanvas-0.8.0.tar.gz 804.4 kB With provenance Details for pixelcanvas-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pixelcanvas 0.8.0
File Interpreter ABI Platform Actions
pixelcanvas-0.8.0-py3-none-any.whl Python 3 none any Details for pixelcanvas-0.8.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / pixelcanvas-0.8.0.tar.gz

Download URL pixelcanvas-0.8.0.tar.gz
Size 804.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d087d0f9450ed2dfb9b02bf5a2a639aa870b12ee37b880754cc5f62b859e9066
BLAKE2b-256 checksum
How to use checksums
65ef6507f102fe97d99f51a88d42b1c6109a59d94e88403432a00c23d31d078c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / pixelcanvas-0.8.0-py3-none-any.whl

Download URL pixelcanvas-0.8.0-py3-none-any.whl
Size 830.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
146b7b583f0f9bcdfe45b01aff9795ac0421099f95d3f4e9c32f4e4605997ffa
BLAKE2b-256 checksum
How to use checksums
d7e62b1f80fed1d2193874e6e06980a10cd2b6425c6dd46bfbf24f8436414bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for pixelcanvas 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pixelcanvas-0.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page