Claude paints with code — no image model.
不用生图模型,Claude 用代码一笔一笔作画。
83 styles · 画风 · Install · 安装 · Quick start · 快速上手 · Draw-on GIFs · 作画动图 · SKILL.md
What it is · 这是什么 — A Claude Code skill plus a small painting library: eighty-three styles, from ink wash and impasto oil to stained glass, a ray-traced ball pit and a VHS tape, all plain Python with numpy + Pillow on a CPU.
一个 Claude Code skill,加上一个只用 numpy + Pillow 的绘图库:八十三种画风,从水墨、油画到彩色玻璃花窗、光线追踪的小球海和 VHS 录像带。
Why code · 为什么用代码 — Composition is directed, not sampled; the same seed gives the same picture; it runs offline with no GPU, key or quota; and every stage can be saved, so you can watch the picture being made.
构图、留白、点睛色都精确可控;同一个随机种子画出同一幅画;离线只用 CPU;每一步都能存下来,做成「一步步画出来」的动画。
How Claude paints · 怎么画 — It plans the composition, writes a short scene script, then renders, looks and fixes against a per-style checklist of real failure modes, usually over 2–4 rounds. The whole playbook is in SKILL.md.
先定构图,再写场景脚本,然后渲染、看图,对照该画风的毛病清单改 2–4 轮。完整做法见 SKILL.md。

Ink wash · 水墨 — every style is painted stage by stage like this · 每种画风都是这样一步步画出来的 · all 91 GIFs · 全部动图
git clone https://github.com/cloveric/claude-drawing-skill.git ~/.claude/skills/claude-drawing
pip install -r ~/.claude/skills/claude-drawing/requirements.txt # numpy, PillowTitles need a CJK font; system ones are found automatically, or set INKPAINT_FONT=/path/to/font (more).
题字需要中文字体,系统自带的一般会自动找到,也可以用 INKPAINT_FONT=字体路径 指定(详见)。
Ask Claude to "draw it yourself", "paint this with code" or "claude绘图", and name a style if you like.
对 Claude 说「claude绘图」「你自己画」「用代码画」,也可以指定画风。
Or run any example yourself · 也可以自己跑范例:
cd ~/.claude/skills/claude-drawing
python3 examples/moon_river.py out.png --stages stages/ # ink wash + every stage · 水墨,存下每一步
python3 examples/<name>.py out.png # one per style · 每种画风都有→ Every example command and the Python API in a few lines · 全部范例命令与代码示例
Eighty-three styles in eight families — click any picture for the full-size image. Notes on every style: docs/STYLES.md
八大类、八十三种画风,点图看大图。每种画风的详细说明:docs/STYLES.zh.md
Ink wash 水墨 | Watercolour 水彩 | ||
Impasto oil 油画厚涂 | Retro gouache 复古水粉 | Pen & wash 钢笔淡彩 | |
Jiangnan garden 江南园林 | Dry-brush blocks 干刷色块 | Oil-pastel portrait 油画棒肖像 | Sunlit greenery 夏日光绿 |
Coloured pencil 韩国彩铅 | Graphite pencil 铅笔素描 | Children's crayon 儿童蜡笔画 | Ballpoint doodle 圆珠笔涂鸦 |
Continuous line art 单线画 | Sketchbook doodle 手账线描 | Pastel vignette 色粉小像 | Hatched nocturne 排线夜景 |
Paper collage 剪纸拼贴 | Newspaper collage 报刊拼贴 | Sticker collage × receipt 贴纸拼贴 · 小票 | Silhouette 剪影 |
Stop-motion clay 黏土定格 | Cross-stitch 十字绣 | Embroidered patches 刺绣徽章 | Perler beads 拼豆 |
| Page · 页面 | What's in it · 内容 |
|---|---|
| Styles · 画风详解 | What makes each style read as the real medium, and its module · 每种画风为什么像真的、对应的模块 |
| Principles · 作画要点 | The checklist Claude goes through before handing over a picture · Claude 交图前逐条自查的清单 |
| Usage · 用法 | Install notes, fonts, Python snippets, every example command · 安装、字体、代码示例、全部范例命令 |
| Gallery · 画廊 | Every example at full size, with its title (≈ 57 MB) · 全部范例大图与标题 |
| Draw-on GIFs · 作画动图 | 91 GIFs of pictures being painted (≈ 104 MB) · 91 段作画过程动图 |
| SKILL.md | The full skill: workflow, API reference, failure-mode lists, animation · 完整 skill:流程、接口速查、毛病清单、做成动画 |
- Per-stroke layer export, for stroke-by-stroke animation in Motion Canvas or Remotion.
- 按笔画分层导出,方便在 Motion Canvas / Remotion 里做逐笔动画。
MIT License · Made by Claude (Opus 5.5) with @cloveric
本开源项目已链接并认可 LINUX DO 社区。https://linux.do/
