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
pixelcanvas new pic --size 1000x1200 --request "a chibi fox mage holding a staff": the agent plans the subjects of the
request and their parts with boxes, then paints them through the same stages with construction tools; follow
NEXT:.
Documentation, the skill and the source: https://github.com/treeleaves30760/pixelcanvas. MIT licence.
Metadata
Release files for pixelcanvas 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pixelcanvas-0.7.0.tar.gz | 719.9 kB | With provenance | Details for pixelcanvas-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixelcanvas-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for pixelcanvas-0.7.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / pixelcanvas-0.7.0.tar.gz
| Download URL | pixelcanvas-0.7.0.tar.gz |
|---|---|
| Size | 719.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05a8264ea04076682aae780e231594f00b6f4010c7102dab341c413b99017d93
|
|
BLAKE2b-256 checksum How to use checksums |
1b5b53b202111bc76e4883449883a35999b78a3bce0d6f306a25f16edcf0d8cb
|
| 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 19, 2026.
Transparency logRelease files / pixelcanvas-0.7.0-py3-none-any.whl
| Download URL | pixelcanvas-0.7.0-py3-none-any.whl |
|---|---|
| Size | 746.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adde98f6422847312dbf722895fa148646c85307a19ed7aaf30a9bc6dfa66265
|
|
BLAKE2b-256 checksum How to use checksums |
a09907df48fc64c84779fc6db31d3bae77f6c32949732b86beb8e05105f10657
|
| 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 19, 2026.
Transparency logSecurity for pixelcanvas 0.7.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.
Attestation for pixelcanvas-0.7.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 19, 2026.
Transparency logA 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.