⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
claude绘图
Claude 绘图 / Claude Drawing —— 不借助任何生图模型,由 Claude 用代码一笔一笔「画」出图片(程序化绘画)。内置五十九种画风:中国水墨、水彩、剪纸拼贴、韩国彩铅、日本动漫、编辑风手绘(Riso)、油画厚涂(梵高式流向笔触+颜料浮雕打光)、浮世绘木版画(晕色、木纹、墨线主版、青海波)、像素风(低分辨率+Bayer 抖动+像素字体)、黏土定格(高度图捏出的彩泥+影棚打光)、蓝晒(普鲁士蓝日光晒图,植物剪影透光)、十字绣(Aida 布十字绣+回针绣+缎面绣+法式结)、复古仪器面板(60 年代收音机/仪器正面:柚木、拉丝铝、旋钮、刻度窗、指示灯)、贴纸拼贴·小票(模切乙烯贴纸、热敏小票、和纸胶带、吊牌、橡皮章)、实验笔记本·贴纸(线圈方格本、铅笔图表、荧光笔、红笔圈、便利贴)、黑板板书(墨绿石板、粉笔颗粒、板擦残影、示意图与公式)、赛博朋克(雨夜霓虹街道、玻璃管霓虹招牌、全息广告、湿路面倒影)、卡通手绘(蓝铅笔稿、毛笔线、错位平涂、赛璐璐阴影、逐帧抖线)、等轴 2.5D(正等轴微缩模型、一个太阳照出三面明暗、悬浮数据卡)、单线画(一根不断开的线一笔画完、唯一点睛色)、柔光 3D(光线追踪的糖果色小球海和鼓鼓的软字、景深)、形变动画(一条轮廓依次变形、洋葱皮残影、缓动曲线)、报刊拼贴(牛皮纸、手撕旧报纸、网点老照片、勒索信拼贴字)、弥散玻璃(弥散渐变、磨砂玻璃卡片界面)、包豪斯几何(三原色几何、丝网印刷海报)、复古 Synthwave(切口落日、霓虹网格、镀铬字、录像带质感)、拼豆(钉板上的熔珠小管、熨烫熔合)、岩画(沙漠漆上凿出的凹坑图形、新旧凿痕、剥落)、古埃及墓室壁画(灰泥墙、红格起稿、分栏叙事、象形文字、剥落)、罗马马赛克(石子与玻璃沿轮廓一排排铺、灰缝、燕尾铭牌)、彩色玻璃花窗(哥特尖拱窗、通体着色玻璃、grisaille 彩绘与银染、铅条、透光)、泥金手抄本(羊皮纸、鹅毛笔哥特体、朱红标题、打磨金箔首字母)、达·芬奇手稿(铁胆墨水、左手排线、红粉笔、镜像手写、机械分解图)、剪影(黑纸剪出的侧影小像、薄金粉、椭圆金框)、凸版印刷海报(木活字、红黑双色错版、木刻插图)、苏联构成主义(红黑两版、斜条与楔形、西里尔大字、网点照片拼贴)、装饰艺术 Art Deco(1930 年代喷枪流线型海报、交替射线、阶梯高楼、金色 Deco 字)、黄金时代漫画(毛笔墨线、Ben-Day 网点、四色错版、新闻纸)、波普丝网(多格撞色平涂 + 错位的照相黑版)、ASCII 字符画(行式打印机、绿条连续纸、叠打)、低多边形(1999 年代 3D:平面着色、仿射贴图、逐顶点雾、15 位色抖动)、喷漆模板涂鸦(混凝土墙上多层卡纸模板喷绘、雾化与滴痕)、刺绣徽章(牛仔布上的机绣徽章:填充绣、缎面绣、锁边)、蓝图工程图(描图墨线晒成蓝底白线)、儿童蜡笔画(小孩在糙纸上的蜡笔涂抹)、绿屏终端 CRT(荧光字符画、扫描线、余辉)、热成像(先画温度场再上伪彩色)、代尔夫特蓝瓷砖(锡釉砖上的钴蓝手绘)、洞穴壁画(火光下的赭石、吹喷手印)、1-bit 早期画图软件(黑白整屏、8×8 图案填充)、古希腊黑绘陶瓶(黑釉剪影、刻线、饰带展开图)、铅笔素描(石墨排线、擦笔、边缘只剩线稿)、X 光片(安检透视、轮廓发亮、伪彩)、1930 年代黑白橡皮管动画(白手套、饼切眼、老胶片)、黑白麻胶版画(刻刀减法、手拓发花、套色错版)、VHS 家庭录像(钨丝灯偏色、色度渗色、REC)、扁平矢量(分层几何色块、七色、层间投影)、绘本角色动画(小角色挤压拉伸的真动画)、圆珠笔涂鸦(蓝红圆珠笔线稿、墨团、彩铅、页边涂鸦)。用户说「claude绘图」「用代码画」「你自己画」「不用生图模型画」「程序化绘画」,或点名以上任一画风(含黏土、彩泥、定格动画、蓝晒、晒图、十字绣、刺绣、复古面板、老式收音机、贴纸、小票、收据、手帐拼贴、实验笔记本、方格本、荧光笔、便利贴、黑板、板书、粉笔、赛博朋克、霓虹、雨夜街道、卡通、手绘卡通、逐帧手绘、抖线、等轴、2.5D、微缩模型、单线画、一笔画、线条动画、柔光 3D、3D 渲染、C4D 风、软糖字、小球海、形变、变形动画、报刊拼贴、剪报、达达、勒索信字、网点印刷、弥散渐变、玻璃拟态、毛玻璃、包豪斯、几何构成、丝网印刷、Synthwave、蒸汽波、合成器浪潮、80 年代复古、拼豆、拼拼豆、熔珠、熨豆、豆豆画、钉板、烫豆、岩画、岩刻、凿刻、石刻、沙漠漆、史前壁刻、大角羊、古埃及、埃及壁画、墓室壁画、法老时代、象形文字、尼罗河、底比斯、罗马马赛克、马赛克镶嵌、镶嵌画、石子拼画、地砖画、古罗马地板、彩色玻璃、彩绘玻璃、花窗、玻璃花窗、教堂花窗、哥特花窗、铅条玻璃、泥金手抄本、手抄本、彩饰手抄本、中世纪手稿、羊皮纸、哥特体、花体首字母、泥金、贴金、星盘、达芬奇、达·芬奇、达芬奇手稿、手稿风、文艺复兴手稿、发明手稿、镜像字、镜像书写、扑翼机、红粉笔、钢笔排线、机械草图、分解图、剪影、剪影肖像、侧影、侧面像、黑纸剪影、剪影小像、椭圆金框、乔治时代肖像、摄政时期肖像、凸版印刷、活版印刷、木活字、铅字海报、马戏团海报、复古海报、老海报、19 世纪海报、双色套印、错版、套色错位、木刻插图、构成主义、苏联海报、苏联构成主义、俄国先锋派、罗德琴科风、红黑海报、照片蒙太奇、照片拼贴海报、西里尔字、装饰艺术、装饰风、流线型、流线型海报、1930 年代海报、旅行海报、铁路海报、火车海报、喷枪画、喷笔画、阶梯高楼、射线背景、盖茨比风、黄金时代漫画、老漫画、复古漫画、美漫封面、漫画封面、Ben-Day 网点、本戴点、网点上色、四色印刷、四色错版、新闻纸、对白框、拟声字、1940 年代漫画、波普、波普艺术、波普丝网、沃霍尔风、丝网版画头像、撞色头像、多格重复头像、六宫格撞色头像、ASCII、字符画、字符艺术、文字画、行式打印机、绿条纸、连续打印纸、针孔打印纸、老电脑打印、叠打、低多边形、低面数、低模、多边形风、千禧年 3D、90 年代 3D、复古 3D 游戏、老游戏截图、PS1 风、N64 风、平面着色、线框、游戏 HUD、飞行游戏、穿环、喷漆、模板涂鸦、镂空模板、喷漆模板、模板喷绘、街头涂鸦、街头艺术、墙绘、滴漆、班克西风格、刺绣徽章、徽章、布章、臂章、刺绣贴、绣标、锁边、牛仔外套徽章、户外徽章、营地徽章、弧形条章、蓝图、工程图、施工图、蜡笔画、儿童画、绿屏终端、CRT、显像管、热成像、热像仪、温度图、代尔夫特、荷兰蓝瓷砖、洞穴壁画、史前壁画、赭石、1-bit、黑白画图软件、MacPaint 风、黑绘、古希腊陶瓶、希腊瓶画、铅笔素描、素描、铅笔画、X 光、X 光片、安检图像、橡皮管动画、黑白卡通、老动画、麻胶版画、黑白版画、藏书票、VHS、家庭录像、录像带、扁平插画、扁平风、矢量插画、绘本动画、角色动画、挤压拉伸、圆珠笔、圆珠笔涂鸦、原子笔、页边涂鸦、课本涂鸦、手画棋盘),或 "draw it yourself", "paint with code", "procedural painting", "watercolor / collage / colored pencil / anime / editorial / impasto oil / ukiyo-e / pixel art / clay / claymation / cyanotype / sun print / cross-stitch / embroidery / retro instrument panel / vintage radio / sticker collage / receipt / lab notebook / graph paper / chalkboard / blackboard / cyberpunk / neon city / cartoon / hand-drawn animation / isometric / 2.5D / continuous line / one-line drawing / soft 3D / 3D render / puffy letters / ball pit / shape morph / morphing / newspaper collage / Dada / ransom note / halftone / glassmorphism / aurora gradient / Bauhaus / geometric poster / screen print / synthwave / retrowave / outrun / perler beads / hama beads / artkal / fuse beads / melty beads / pegboard beads / petroglyph / rock art / rock carving / desert varnish / Egyptian tomb painting / ancient Egypt / hieroglyphs / Theban tomb / Roman mosaic / floor mosaic / tesserae / opus vermiculatum / Pompeii mosaic / stained glass / leaded glass / church window / Gothic window / grisaille / illuminated manuscript / medieval manuscript / book of hours / gold leaf / illuminated initial / blackletter / vellum / astrolabe / da Vinci notebook / Leonardo codex / Renaissance sketchbook / mirror writing / iron-gall ink / red chalk / sanguine / ornithopter / exploded view / inventor's sketch / silhouette / silhouette portrait / cut-paper profile / shade portrait / Georgian portrait / Regency portrait / oval gilt frame / letterpress / wood type / playbill / circus poster / Victorian poster / two-colour misregistration / woodcut poster / constructivism / constructivist poster / Soviet avant-garde / Russian avant-garde / Rodchenko style / photomontage poster / art deco / streamline moderne / 1930s travel poster / railway poster / airbrush poster / sunburst rays / Gatsby style / golden age comic / vintage comic book / comic cover / Ben-Day dots / four-color printing / newsprint / speech balloon / pulp cover / pop art / Warhol-style / pop silkscreen / silkscreen portrait / repeated pop portrait grid / ASCII art / text art / typewriter art / line printer / greenbar / fanfold paper / tractor feed / overstrike / printer plot / low poly / low-poly / retro 3D / 90s 3D game / PS1 style / N64 style / software rasterizer / flat shading / affine texture mapping / vertex fog / game HUD / stencil / stencil graffiti / spray paint stencil / street art / drips and overspray / Banksy-style stencil / embroidered patch / embroidery patch / iron-on patch / sew-on patch / merit badge / camp badge / merrow border / rocker patch / denim jacket patches / blueprint / technical drawing / crayon / kid's drawing / CRT terminal / green screen / thermal camera / thermal imaging / Delft tiles / Delft blue / cave painting / ochre / Lascaux-style / 1-bit / MacPaint-style / black-figure / Greek vase / pencil drawing / graphite / X-ray / baggage scanner / rubber hose / 1930s cartoon / linocut / lino print / VHS / home video / flat vector / flat illustration / storybook animation / squash and stretch / ballpoint / biro / ballpoint doodle / margin doodles / hand-drawn board game without an image model" 时使用;也用于需要逐步画出(draw-on)动画的插画。单独说「剪纸」指剪纸拼贴、「刺绣」指十字绣、「丝网印刷 / screen print」指包豪斯几何;「打马赛克」是打码,不是马赛克画风;单说「蓝图」指蓝图工程图,「蓝晒 / 晒图」仍指蓝晒;「铅笔 / 素描」指铅笔素描,「彩铅」指韩国彩铅;「像素」仍指像素风,「1-bit / 黑白画图软件」指 1-bit 早期画图软件;「霓虹」仍指赛博朋克;「喷漆 / 街头涂鸦」仍指喷漆模板涂鸦,「圆珠笔 / 随手涂鸦 / 页边涂鸦」指圆珠笔涂鸦。
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
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。
Install · 安装
git clone https://github.com/cloveric/claude-drawing-skill.git ~/.claude/skills/claude-drawing
pip install -r ~/.claude/skills/claude-drawing/requirements.txt # numpy, Pillow
Titles need a CJK font; system ones are found automatically, or set INKPAINT_FONT=/path/to/font (more).
题字需要中文字体,系统自带的一般会自动找到,也可以用 INKPAINT_FONT=字体路径 指定(详见)。
Quick start · 快速上手
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 · 全部范例命令与代码示例
Styles · 画风
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 & paint · 水墨与颜料
Pencil, pen & pastel · 铅笔、钢笔与色粉
Picture books & illustration · 绘本与插画
// HOW IT'S BUILT
// FILES
449 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
SKILL.md723 KBa5a5c1bd05dftruncatedupstream ↗
Showing the inlined prefix. The rest is in the upstream file.
--- name: claude绘图 description: Claude 绘图 / Claude Drawing —— 不借助任何生图模型,由 Claude 用代码一笔一笔「画」出图片(程序化绘画)。内置五十九种画风:中国水墨、水彩、剪纸拼贴、韩国彩铅、日本动漫、编辑风手绘(Riso)、油画厚涂(梵高式流向笔触+颜料浮雕打光)、浮世绘木版画(晕色、木纹、墨线主版、青海波)、像素风(低分辨率+Bayer 抖动+像素字体)、黏土定格(高度图捏出的彩泥+影棚打光)、蓝晒(普鲁士蓝日光晒图,植物剪影透光)、十字绣(Aida 布十字绣+回针绣+缎面绣+法式结)、复古仪器面板(60 年代收音机/仪器正面:柚木、拉丝铝、旋钮、刻度窗、指示灯)、贴纸拼贴·小票(模切乙烯贴纸、热敏小票、和纸胶带、吊牌、橡皮章)、实验笔记本·贴纸(线圈方格本、铅笔图表、荧光笔、红笔圈、便利贴)、黑板板书(墨绿石板、粉笔颗粒、板擦残影、示意图与公式)、赛博朋克(雨夜霓虹街道、玻璃管霓虹招牌、全息广告、湿路面倒影)、卡通手绘(蓝铅笔稿、毛笔线、错位平涂、赛璐璐阴影、逐帧抖线)、等轴 2.5D(正等轴微缩模型、一个太阳照出三面明暗、悬浮数据卡)、单线画(一根不断开的线一笔画完、唯一点睛色)、柔光 3D(光线追踪的糖果色小球海和鼓鼓的软字、景深)、形变动画(一条轮廓依次变形、洋葱皮残影、缓动曲线)、报刊拼贴(牛皮纸、手撕旧报纸、网点老照片、勒索信拼贴字)、弥散玻璃(弥散渐变、磨砂玻璃卡片界面)、包豪斯几何(三原色几何、丝网印刷海报)、复古 Synthwave(切口落日、霓虹网格、镀铬字、录像带质感)、拼豆(钉板上的熔珠小管、熨烫熔合)、岩画(沙漠漆上凿出的凹坑图形、新旧凿痕、剥落)、古埃及墓室壁画(灰泥墙、红格起稿、分栏叙事、象形文字、剥落)、罗马马赛克(石子与玻璃沿轮廓一排排铺、灰缝、燕尾铭牌)、彩色玻璃花窗(哥特尖拱窗、通体着色玻璃、grisaille 彩绘与银染、铅条、透光)、泥金手抄本(羊皮纸、鹅毛笔哥特体、朱红标题、打磨金箔首字母)、达·芬奇手稿(铁胆墨水、左手排线、红粉笔、镜像手写、机械分解图)、剪影(黑纸剪出的侧影小像、薄金粉、椭圆金框)、凸版印刷海报(木活字、红黑双色错版、木刻插图)、苏联构成主义(红黑两版、斜条与楔形、西里尔大字、网点照片拼贴)、装饰艺术 Art Deco(1930 年代喷枪流线型海报、交替射线、阶梯高楼、金色 Deco 字)、黄金时代漫画(毛笔墨线、Ben-Day 网点、四色错版、新闻纸)、波普丝网(多格撞色平涂 + 错位的照相黑版)、ASCII 字符画(行式打印机、绿条连续纸、叠打)、低多边形(1999 年代 3D:平面着色、仿射贴图、逐顶点雾、15 位色抖动)、喷漆模板涂鸦(混凝土墙上多层卡纸模板喷绘、雾化与滴痕)、刺绣徽章(牛仔布上的机绣徽章:填充绣、缎面绣、锁边)、蓝图工程图(描图墨线晒成蓝底白线)、儿童蜡笔画(小孩在糙纸上的蜡笔涂抹)、绿屏终端 CRT(荧光字符画、扫描线、余辉)、热成像(先画温度场再上伪彩色)、代尔夫特蓝瓷砖(锡釉砖上的钴蓝手绘)、洞穴壁画(火光下的赭石、吹喷手印)、1-bit 早期画图软件(黑白整屏、8×8 图案填充)、古希腊黑绘陶瓶(黑釉剪影、刻线、饰带展开图)、铅笔素描(石墨排线、擦笔、边缘只剩线稿)、X 光片(安检透视、轮廓发亮、伪彩)、1930 年代黑白橡皮管动画(白手套、饼切眼、老胶片)、黑白麻胶版画(刻刀减法、手拓发花、套色错版)、VHS 家庭录像(钨丝灯偏色、色度渗色、REC)、扁平矢量(分层几何色块、七色、层间投影)、绘本角色动画(小角色挤压拉伸的真动画)、圆珠笔涂鸦(蓝红圆珠笔线稿、墨团、彩铅、页边涂鸦)。用户说「claude绘图」「用代码画」「你自己画」「不用生图模型画」「程序化绘画」,或点名以上任一画风(含黏土、彩泥、定格动画、蓝晒、晒图、十字绣、刺绣、复古面板、老式收音机、贴纸、小票、收据、手帐拼贴、实验笔记本、方格本、荧光笔、便利贴、黑板、板书、粉笔、赛博朋克、霓虹、雨夜街道、卡通、手绘卡通、逐帧手绘、抖线、等轴、2.5D、微缩模型、单线画、一笔画、线条动画、柔光 3D、3D 渲染、C4D 风、软糖字、小球海、形变、变形动画、报刊拼贴、剪报、达达、勒索信字、网点印刷、弥散渐变、玻璃拟态、毛玻璃、包豪斯、几何构成、丝网印刷、Synthwave、蒸汽波、合成器浪潮、80 年代复古、拼豆、拼拼豆、熔珠、熨豆、豆豆画、钉板、烫豆、岩画、岩刻、凿刻、石刻、沙漠漆、史前壁刻、大角羊、古埃及、埃及壁画、墓室壁画、法老时代、象形文字、尼罗河、底比斯、罗马马赛克、马赛克镶嵌、镶嵌画、石子拼画、地砖画、古罗马地板、彩色玻璃、彩绘玻璃、花窗、玻璃花窗、教堂花窗、哥特花窗、铅条玻璃、泥金手抄本、手抄本、彩饰手抄本、中世纪手稿、羊皮纸、哥特体、花体首字母、泥金、贴金、星盘、达芬奇、达·芬奇、达芬奇手稿、手稿风、文艺复兴手稿、发明手稿、镜像字、镜像书写、扑翼机、红粉笔、钢笔排线、机械草图、分解图、剪影、剪影肖像、侧影、侧面像、黑纸剪影、剪影小像、椭圆金框、乔治时代肖像、摄政时期肖像、凸版印刷、活版印刷、木活字、铅字海报、马戏团海报、复古海报、老海报、19 世纪海报、双色套印、错版、套色错位、木刻插图、构成主义、苏联海报、苏联构成主义、俄国先锋派、罗德琴科风、红黑海报、照片蒙太奇、照片拼贴海报、西里尔字、装饰艺术、装饰风、流线型、流线型海报、1930 年代海报、旅行海报、铁路海报、火车海报、喷枪画、喷笔画、阶梯高楼、射线背景、盖茨比风、黄金时代漫画、老漫画、复古漫画、美漫封面、漫画封面、Ben-Day 网点、本戴点、网点上色、四色印刷、四色错版、新闻纸、对白框、拟声字、1940 年代漫画、波普、波普艺术、波普丝网、沃霍尔风、丝网版画头像、撞色头像、多格重复头像、六宫格撞色头像、ASCII、字符画、字符艺术、文字画、行式打印机、绿条纸、连续打印纸、针孔打印纸、老电脑打印、叠打、低多边形、低面数、低模、多边形风、千禧年 3D、90 年代 3D、复古 3D 游戏、老游戏截图、PS1 风、N64 风、平面着色、线框、游戏 HUD、飞行游戏、穿环、喷漆、模板涂鸦、镂空模板、喷漆模板、模板喷绘、街头涂鸦、街头艺术、墙绘、滴漆、班克西风格、刺绣徽章、徽章、布章、臂章、刺绣贴、绣标、锁边、牛仔外套徽章、户外徽章、营地徽章、弧形条章、蓝图、工程图、施工图、蜡笔画、儿童画、绿屏终端、CRT、显像管、热成像、热像仪、温度图、代尔夫特、荷兰蓝瓷砖、洞穴壁画、史前壁画、赭石、1-bit、黑白画图软件、MacPaint 风、黑绘、古希腊陶瓶、希腊瓶画、铅笔素描、素描、铅笔画、X 光、X 光片、安检图像、橡皮管动画、黑白卡通、老动画、麻胶版画、黑白版画、藏书票、VHS、家庭录像、录像带、扁平插画、扁平风、矢量插画、绘本动画、角色动画、挤压拉伸、圆珠笔、圆珠笔涂鸦、原子笔、页边涂鸦、课本涂鸦、手画棋盘),或 "draw it yourself", "paint with code", "procedural painting", "watercolor / collage / colored pencil / anime / editorial / impasto oil / ukiyo-e / pixel art / clay / claymation / cyanotype / sun print / cross-stitch / embroidery / retro instrument panel / vintage radio / sticker collage / receipt / lab notebook / graph paper / chalkboard / blackboard / cyberpunk / neon city / cartoon / hand-drawn animation / isometric / 2.5D / continuous line / one-line drawing / soft 3D / 3D render / puffy letters / ball pit / shape morph / morphing / newspaper collage / Dada / ransom note / halftone / glassmorphism / aurora gradient / Bauhaus / geometric poster / screen print / synthwave / retrowave / outrun / perler beads / hama beads / artkal / fuse beads / melty beads / pegboard beads / petroglyph / rock art / rock carving / desert varnish / Egyptian tomb painting / ancient Egypt / hieroglyphs / Theban tomb / Roman mosaic / floor mosaic / tesserae / opus vermiculatum / Pompeii mosaic / stained glass / leaded glass / church window / Gothic window / grisaille / illuminated manuscript / medieval manuscript / book of hours / gold leaf / illuminated initial / blackletter / vellum / astrolabe / da Vinci notebook / Leonardo codex / Renaissance sketchbook / mirror writing / iron-gall ink / red chalk / sanguine / ornithopter / exploded view / inventor's sketch / silhouette / silhouette portrait / cut-paper profile / shade portrait / Georgian portrait / Regency portrait / oval gilt frame / letterpress / wood type / playbill / circus poster / Victorian poster / two-colour misregistration / woodcut poster / constructivism / constructivist poster / Soviet avant-garde / Russian avant-garde / Rodchenko style / photomontage poster / art deco / streamline moderne / 1930s travel poster / railway poster / airbrush poster / sunburst rays / Gatsby style / golden age comic / vintage comic book / comic cover / Ben-Day dots / four-color printing / newsprint / speech balloon / pulp cover / pop art / Warhol-style / pop silkscreen / silkscreen portrait / repeated pop portrait grid / ASCII art / text art / typewriter art / line printer / greenbar / fanfold paper / tractor feed / overstrike / printer plot / low poly / low-poly / retro 3D / 90s 3D game / PS1 style / N64 style / software rasterizer / flat shading / affine texture mapping / vertex fog / game HUD / stencil / stencil graffiti / spray paint stencil / street art / drips and overspray / Banksy-style stencil / embroidered patch / embroidery patch / iron-on patch / sew-on patch / merit badge / camp badge / merrow border / rocker patch / denim jacket patches / blueprint / technical drawing / crayon / kid's drawing / CRT terminal / green screen / thermal camera / thermal imaging / Delft tiles / Delft blue / cave painting / ochre / Lascaux-style / 1-bit / MacPaint-style / black-figure / Greek vase / pencil drawing / graphite / X-ray / baggage scanner / rubber hose / 1930s cartoon / linocut / lino print / VHS / home video / flat vector / flat illustration / storybook animation / squash and stretch / ballpoint / biro / ballpoint doodle / margin doodles / hand-drawn board game without an image model" 时使用;也用于需要逐步画出(draw-on)动画的插画。单独说「剪纸」指剪纸拼贴、「刺绣」指十字绣、「丝网印刷 / screen print」指包豪斯几何;「打马赛克」是打码,不是马赛克画风;单说「蓝图」指蓝图工程图,「蓝晒 / 晒图」仍指蓝晒;「铅笔 / 素描」指铅笔素描,「彩铅」指韩国彩铅;「像素」仍指像素风,「1-bit / 黑白画图软件」指 1-bit 早期画图软件;「霓虹」仍指赛博朋克;「喷漆 / 街头涂鸦」仍指喷漆模板涂鸦,「圆珠笔 / 随手涂鸦 / 页边涂鸦」指圆珠笔涂鸦。 --- # Claude 绘图 用 Python(只依赖 numpy + Pillow,系统自带的 `python3` 就能跑)按笔、墨、颜料、纸的物理规律「画」图,不调用任何生图模型。 - **构图可控**:每一笔都是算出来的,构图、留白、点睛色的位置都精确可控。 - **结果可复现**:固定随机种子,每次画出同一幅画。 - **适合做动画**:可以输出分阶段快照,做成「一幅画被逐步画出来」的动画;生图模型只能给一整张画。 ## 画风与范例(质量基准) | 画风 | 库 | 范例 | 耗时 | |---|---|---|---| | 水墨 | `lib/inkpaint.py` · `Painting` | `examples/bawansiqian.py` 八万四千法门;`examples/moon_river.py` 月印万川(烘云托月、孤舟、芦苇) | 约 4 秒 | | 水彩 | `lib/watercolor.py` · `Watercolor` | `examples/watercolor_autumn.py` 秋日湖畔(秋树罩染、湖面倒影、红色小舟);`examples/watercolor_washes.py` 水彩底纹(大片定向晕染、干边、回流水渍、颗粒、飞溅,中间留白,给讲解片当背景、上面叠界面卡片) | 约 15 秒 / 4 秒 | | 剪纸拼贴 | `lib/papercut.py` · `Collage` | `examples/papercut_balloons.py` 热气球小镇(条纹热气球、笑脸太阳、纸云、小房子) | 约 30 秒 | | 韩国彩铅 | `lib/colorpencil.py` · `ColorPencil` | `examples/colorpencil_dessert.py` 午后甜点(草莓蛋糕、红茶、草莓) | 约 17 秒 | | 日本动漫 | `lib/anime.py` · `Anime` | `examples/anime_summer.py` 夏空(积雨云、乡间公路、电线杆、草帽女孩背影) | 约 30 秒 | | 编辑风手绘 | `lib/editorial.py` · `Editorial` | `examples/editorial_ideas.py` 灵感生长(浇水长出灯泡的概念插画) | 约 11 秒 | | 油画厚涂 | `lib/oilpaint.py` · `OilPainting` | `examples/oil_wheatfield.py` 麦田星空(旋转的星空、麦田、柏树、乌鸦) | 约 2 秒 | | 浮世绘木版画 | `lib/ukiyoe.py` · `Ukiyoe` | `examples/ukiyoe_fuji.py` 富士曙(晕色天空、富士、云带、青海波、帆船、崖松) | 约 7 秒 | | 像素风 | `lib/pixelart.py` · `PixelArt` | `examples/pixel_rainy_cafe.py` 雨夜咖啡店(霓虹、路灯、雨、倒影、猫) | 约 0.1 秒 | | 黏土定格 | `lib/clay.py` · `Clay` | `examples/clay_lighthouse.py` 灯塔岛(手指抹开的天空、条纹灯塔、喷水的鲸鱼、搓条浪花、小帆船) | 约 6 秒 | | 蓝晒 | `lib/cyanotype.py` · `Cyanotype` | `examples/cyanotype_botanicals.py` 蓝晒植物(蕨叶、银杏、蒲公英、飘散的种子、白色手写标注) | 约 6 秒 | | 十字绣 | `lib/stitch.py` · `Stitch` | `examples/stitch_sampler.py` 家(H♥ME 字母、缎面绣爱心、小屋、苹果树、松树、花边、缝上的布标) | 约 20 秒 | | 复古仪器面板 | `lib/paneREADME.md24 KB8709f9d653fcupstream ↗
<h1 align="center">Claude Drawing · Claude 绘图</h1> <p align="center"> <b>Claude paints with code — no image model.</b><br> 不用生图模型,Claude 用代码一笔一笔作画。 </p> <p align="center"> <a href="#styles--画风">83 styles · 画风</a> · <a href="#install--安装">Install · 安装</a> · <a href="#quick-start--快速上手">Quick start · 快速上手</a> · <a href="docs/GIFS.md">Draw-on GIFs · 作画动图</a> · <a href="SKILL.md">SKILL.md</a> </p> <p align="center"> <a href="#styles--画风"><img src="docs/hero.jpg" width="100%" alt="Twelve of the 83 styles: ink wash, oil-pastel portrait, impasto oil, watercolour, dreamy hills, synthwave, retro gouache, flat spot illustration, pastel vignette, shadow puppetry, children's crayon and pixel art"></a> </p> **What it is · 这是什么** — A [Claude Code](https://claude.com/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.<br> 一个 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.<br> 构图、留白、点睛色都精确可控;同一个随机种子画出同一幅画;离线只用 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](SKILL.md).<br> 先定构图,再写场景脚本,然后渲染、看图,对照该画风的毛病清单改 2–4 轮。完整做法见 [SKILL.md](SKILL.md)。 <p align="center"> <img src="examples/drawing_moon_river.gif" width="640" alt="An ink-wash painting drawn stage by stage"><br> <sub><b>Ink wash · 水墨</b> — every style is painted stage by stage like this · 每种画风都是这样一步步画出来的 · <a href="docs/GIFS.md">all 91 GIFs · 全部动图</a></sub> </p> ## Install · 安装 ```bash git clone https://github.com/cloveric/claude-drawing-skill.git ~/.claude/skills/claude-drawing pip install -r ~/.claude/skills/claude-drawing/requirements.txt # numpy, Pillow ``` Titles need a CJK font; system ones are found automatically, or set `INKPAINT_FONT=/path/to/font` ([more](docs/USAGE.md)).<br> 题字需要中文字体,系统自带的一般会自动找到,也可以用 `INKPAINT_FONT=字体路径` 指定([详见](docs/USAGE.md#中文))。 ## Quick start · 快速上手 Ask Claude to *"draw it yourself"*, *"paint this with code"* or *"claude绘图"*, and name a style if you like.<br> 对 Claude 说「claude绘图」「你自己画」「用代码画」,也可以指定画风。 Or run any example yourself · 也可以自己跑范例: ```bash 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 · 全部范例命令与代码示例](docs/USAGE.md) ## Styles · 画风 Eighty-three styles in eight families — click any picture for the full-size image. Notes on every style: [docs/STYLES.md](docs/STYLES.md)<br> 八大类、八十三种画风,点图看大图。每种画风的详细说明:[docs/STYLES.zh.md](docs/STYLES.zh.md) ### Ink & paint · 水墨与颜料 <table> <tr><td align="center" colspan="2"><a href="examples/bawansiqian.jpg"><img src="docs/thumbs/bawansiqian.jpg" width="371" alt="Ink wash · 水墨"></a><br><sub><b>Ink wash</b><br>水墨</sub></td><td align="center" colspan="2"><a href="examples/watercolor_autumn.jpg"><img src="docs/thumbs/watercolor_autumn.jpg" width="371" alt="Watercolour · 水彩"></a><br><sub><b>Watercolour</b><br>水彩</sub></td></tr> <tr><td align="center" colspan="2"><a href="examples/oil_wheatfield.jpg"><img src="docs/thumbs/oil_wheatfield.jpg" width="371" alt="Impasto oil · 油画厚涂"></a><br><sub><b>Impasto oil</b><br>油画厚涂</sub></td><td align="center"><a href="examples/gouache_rainy_day.jpg"><img src="docs/thumbs/gouache_rainy_day.jpg" width="172" alt="Retro gouache · 复古水粉"></a><br><sub><b>Retro gouache</b><br>复古水粉</sub></td><td align="center"><a href="examples/penwash_neighbours.jpg"><img src="docs/thumbs/penwash_neighbours.jpg" width="172" alt="Pen & wash · 钢笔淡彩"></a><br><sub><b>Pen & wash</b><br>钢笔淡彩</sub></td></tr> <tr><td align="center"><a href="examples/jiangnan_spring_water.jpg"><img src="docs/thumbs/jiangnan_spring_water.jpg" width="172" alt="Jiangnan garden · 江南园林"></a><br><sub><b>Jiangnan garden</b><br>江南园林</sub></td><td align="center"><a href="examples/drybrush_noodle_counter.jpg"><img src="docs/thumbs/drybrush_noodle_counter.jpg" width="172" alt="Dry-brush blocks · 干刷色块"></a><br><sub><b>Dry-brush blocks</b><br>干刷色块</sub></td><td align="center"><a href="examples/oilpastel_warm_cup.jpg"><img src="docs/thumbs/oilpastel_warm_cup.jpg" width="172" alt="Oil-pastel portrait · 油画棒肖像"></a><br><sub><b>Oil-pastel portrait</b><br>油画棒肖像</sub></td><td align="center"><a href="examples/sunlitgreen_window_seat.jpg"><img src="docs/thumbs/sunlitgreen_window_seat.jpg" width="172" alt="Sunlit greenery · 夏日光绿"></a><br><sub><b>Sunlit greenery</b><br>夏日光绿</sub></td></tr> </table> ### Pencil, pen & pastel · 铅笔、钢笔与色粉 <table> <tr><td align="center"><a href="examples/colorpencil_dessert.jpg"><img src="docs/thumbs/colorpencil_dessert.jpg" width="172" alt="Coloured pencil · 韩国彩铅"></a><br><sub><b>Coloured pencil</b><br>韩国彩铅</sub></td><td align="center"><a href="examples/graphite_bicycle.jpg"><img src="docs/thumbs/graphite_bicycle.jpg" width="172" alt="Graphite pencil · 铅笔素描"></a><br><sub><b>Graphite pencil</b><br>铅笔素描</sub></td><td align="center"><a href="examples/crayon_picnic.jpg"><img src="docs/thumbs/crayon_picnic.jpg" width="172" alt="Children's crayon · 儿童蜡笔画"></a><br><sub><b>Children's crayon</b><br>儿童蜡笔画</sub></td><td align="center"><a href="examples/ballpoint_board_game.jpg"><img src="docs/thumbs/ballpoint_board_game.jpg" width="172" alt="Ballpoint doodle · 圆珠笔涂鸦"></a><br><sub><b>Ballpoint doodle</b><br>圆珠笔涂鸦</sub></td></tr> <tr><td align="center"><a href="examples/lineart_paper_plane.jpg"><img src="docs/thumbs/lineart_paper_plane.jpg" width="172" alt="Continuous line art · 单线画"></a><br><sub><b>Continuous line art</b><br>单线画</sub></td><td align="center"><a href="examples/sketchbook_reading_hour.jpg"><img src="docs/thumbs/sketchbook_reading_hour.jpg" width="172" alt="Sketchbook doodle · 手账线描"></a><br><sub><b>Sketchbook doodle</b><br>手账线描</sub></td><td align="center"><a href="examples/pastelvignette_marmalade_scarf.jpg"><img src="docs/thumbs/pastelvignette_marmalade_scarf.jpg" width="172" alt="Pastel vignette · 色粉小像"></a><br><sub><b>Pastel vignette</b><br>色粉小像</sub></td><td align="center"><a href="examples/nocturne_lava_sea.jpg"><img src="docs/thumbs/nocturne_lava_sea.jpg" width="172" alt="Hatched nocturne · 排线夜景"></a><br><sub><b>Hatched nocturne</b><br>排线夜景</sub></td></tr> </table> ### Picture books & illustration · 绘本与插画 <table> <tr><td align="center"><a href="examples/anime_summer.jpg"><img src="docs/thumbs/anime_summer.jpg" width="172" alt="Anime · 日本动漫"></a><br><sub><b>Anime</b><br>日本动漫</sub></td><td align="center"><a href="examples/cartoon_toaster.jpg"><img src="docs/thumbs/cartoon_toaster.jpg" width="172" alt="Hand-drawn cartoon · 卡通手绘"></a><br><sub><b>Hand-drawn cartoon</b><br>卡通手绘</sub></td><td align="center"><a href="examples/flatvector_night_camp.jpg"><img src="docs/thumbs/flatvector_night_camp.jpg" width="172" alt="Flat vector · 扁平矢量"></a><br><sub><b>Flat vector</b><br>扁平矢量</sub></td><td align="center"><a href="examples/storybook_acorn.jpg"><img src="docs/thumbs/storybook_acorn.jpg" width="172" alt="Storybook animation · 绘本角色动画"></a><br><sub><b>Storybook animation</b><br>绘本角色动画</sub></td></tr> <tr><td align="center"><a href="examples/bluebook_shared_umbrella.jpg"><img src="docs/thumbs/bluebook_shared_umbrella.jpg" width="172" alt="Blue picture book · 蓝调绘本"></a><br><sub><b>Blue picture book</b><br>蓝调绘本</sub></td><td align="center"><a href="examples/twilight_paper_kite.jpg"><img src="docs/thumbs/twilight_paper_kite.jpg" width="172" alt="Twilight storybook · 暮色微缩绘本"></a><br><sub><b>Twilight storybook</b><br>暮色微缩绘本</sub></td><td align="center"><a href="examples/pencilbook_tortoise_crossing.jpg"><img src="docs/thumbs/pencilbook_tortoise_crossing.jpg" width="172" alt="Warm pencil storybook · 暖调彩铅绘本"></a><br><sub><b>Warm pencil storybook</b><br>暖调彩铅绘本</sub></td><td align="center"><a href="examples/colortown_festival_steps.jpg"><img src="docs/thumbs/colortown_festival_steps.jpg" width="172" alt="Colour town · 彩色小镇"></a><br><sub><b>Colour town</b><br>彩色小镇</sub></td></tr> <tr><td align="center"><a href="examples/poetichalloween_ghost_jar.jpg"><img src="docs/thumbs/poetichalloween_ghost_jar.jpg" width="172" alt="Poetic Halloween · 诗意万圣夜"></a><br><sub><b>Poetic Halloween</b><br>诗意万圣夜</sub></td><td align="center"><a href="examples/spotillo_rainy_saturday_wide.jpg"><img src="docs/thumbs/spotillo_rainy_saturday_wide.jpg" width="172" alt="Flat spot illustration · 日系扁平小插画"></a><br><sub><b>Flat spot illustration</b><br>日系扁平小插画</sub></td><td align="center"><a href="examples/grainbook_snow_walk.jpg"><img src="docs/thumbs/grainbook_snow_walk.jpg" width="172" alt="Grainy picture book · 颗粒童书"></a><br><sub><b>Grainy picture book</b><br>颗粒童书</sub></td><td align="center"><a href="examples/dreamhills_long_walk.jpg"><img src="docs/thumbs/dreamhills_long_walk.jpg" width="172" alt="Dreamy hills · 柔光草丘"></a><br><sub><b>Dreamy hills</b><br>柔光草丘</sub></td></tr> </table> ### Print & poster · 版画与印刷 <table> <tr><td align="center"><a href="examples/ukiyoe_fuji.jpg"><img src="docs/thumbs/ukiyoe_fuji.jpg" width="172" alt="Ukiyo-e woodblock · 浮世绘木版画"></a><br><sub><b>Ukiyo-e woodblock</b><br>浮世绘木版画</sub></td><td align="center"><a href="examples/linocut_snowy_village.jpg"><img src="docs/thumbs/linocut_snowy_village.jpg" width="172" alt="Linocut · 黑白麻胶版画"></a><br><sub><b>Linocut</b><br>黑白麻胶版画</sub></td><td align="center"><a href="examples/cyanotype_botanicals.jpg"><img src="docs/thumbs/cyanotype_botanicals.jpg" width="172" alt="Cyanotype · 蓝晒"></a><br><sub><b>Cyanotype</b><br>蓝晒</sub></td><td align="center"><a href="examples/letterpress_circus.jpg"><img src="docs/thumbs/letterpress_circus.jpg" width="172" alt="Letterpress poster · 凸版印刷海报"></a><br><sub><b>Letterpress poster</b><br>凸版印刷海报</sub></td></tr> <tr><td align="center"><a href="examples/constructivism_radio.jpg"><img src="docs/thumbs/constructivism_radio.jpg" width="172" alt="Soviet constructivism · 苏联构成主义"></a><br><sub><b>Soviet constructivism</b><br>苏联构成主义</sub></td><td align="center"><a href="examples/bauhaus_form_colour.jpg"><img src="docs/thumbs/bauhaus_form_colour.jpg" width="172" alt="Bauhaus geometric · 包豪斯几何"></a><br><sub><b>Bauhaus geometric</b><br>包豪斯几何</sub></td><td align="center"><a href="examples/artdeco_express.jpg"><img src="docs/thumbs/artdeco_express.jpg" width="172" alt="Art Deco · 装饰艺术"></a><br><sub><b>Art Deco</b><br>装饰艺术</sub></td><td align="center"><a href="examples/popart_cat_moods.jpg"><img src="docs/thumbs/popart_cat_moods.jpg" width="172" alt="Pop silkscreen · 波普丝网"></a><br><sub><b>Pop silkscreen</b><br>波普丝网</sub></td></tr> <tr><td align="center"><a href="examples/comic_rocket.jpg"><img src="docs/thumbs/comic_rocket.jpg" width="172" alt="Golden-age comic · 黄金时代漫画"></a><br><sub><b>Golden-age comic</b><br>黄金时代漫画</sub></td><td align="center"><a href="examples/editorial_ideas.jpg"><img src="docs/thumbs/editorial_ideas.jpg" width="172" alt="Editorial (risograph) · 编辑风手绘"></a><br><sub><b>Editorial (risograph)</b><br>编辑风手绘</sub></td><td align="center"><a href="examples/stencil_kite.jpg"><img src="docs/thumbs/stencil_kite.jpg" width="172" alt="Stencil graffiti · 喷漆模板涂鸦"></a><br><sub><b>Stencil graffiti</b><br>喷漆模板涂鸦</sub></td><td align="center"><a href="examples/blueprint_lighthouse.jpg"><img src="docs/thumbs/blueprint_lighthouse.jpg" width="172" alt="Blueprint · 蓝图工程图"></a><br><sub><b>Blueprint</b><br>蓝图工程图</sub></td></tr> </table> ### Paper, thread & clay · 纸、线与黏土 <table> <tr><td align="center"><a href="examples/papercut_balloons.jpg"><img src="docs/thumbs/papercut_balloons.jpg" width="172" alt="Paper collage · 剪纸拼贴"></a><br><sub><b>Paper collage</b><br>剪纸拼贴</sub></td><td align="center"><a href="examples/newscollage_curiosity.jpg"><img src="docs/thumbs/newscollage_curiosity.jpg" width="172" alt="Newspaper collage · 报刊拼贴"></a><br><sub><b>Newspaper collage</b><br>报刊拼贴</sub></td><td align="center"><a href="examples/sticker_market.jpg"><img src="docs/thumbs/sticker_market.jpg" width="172" alt="Sticker collage × receipt · 贴纸拼贴 · 小票"></a><br><sub><b>Sticker collage × receipt</b><br>贴纸拼贴 · 小票</sub></td><td align="center"><a href="examples/silhouette_family.jpg"><img src="docs/thumbs/silhouette_family.jpg" width="172" alt="Silhouette · 剪影"></a><br><sub><b>Silhouette</b><br>剪影</sub></td></tr> <tr><td align="center"><a href="examples/clay_lighthouse.jpg"><img src="docs/thumbs/clay_lighthouse.jpg" width="172" alt="Stop-motion clay · 黏土定格"></a><br><sub><b>Stop-motion clay</b><br>黏土定格</sub></td><td align="center"><a href="examples/stitch_sampler.jpg"><img src="docs/thumbs/stitch_sampler.jpg" width="172" alt="Cross-stitch · 十字绣"></a><br><sub><b>Cross-stitch</b><br>十字绣</sub></td><td align="center"><a href="examples/patch_camping.jpg"><img src="docs/thumbs/patch_camping.jpg" width="172" alt="Embroidered patches · 刺绣徽章"></a><br><sub><b>Embroidered patches</b><br>刺绣徽章</sub></td><td align="center"><a href="examples/perler_strawberry_coaster.jpg"><img src="docs/thumbs/perler_strawberry_coaster.jpg" width="172" alt="Perler beads · 拼豆"></a><br><sub><b>Perler beads</b><br>拼豆</sub></td></tr> </table> ### Ancient & historic · 古代与历史 <table> <tr><td align="center" colspan="2"><a href="examples/tomb_harvest.jpg"><img src="docs/thumbs/tomb_harvest.jpg" width="371" alt="Egyptian tomb painting · 古埃及墓室壁画"></a><br><sub><b>Egyptian tomb painting</b><br>古埃及墓室壁画</sub></td><td align="center" colspan="2"><a href="examples/shadowpuppet_cuju.jpg"><img src="docs/thumbs/shadowpuppet_cuju.jpg" width="371" alt="Shadow puppetry · 皮影戏"></a><br><sub><b>Shadow puppetry</b><br>皮影戏</sub></td></tr> <tr><td align="center"><a href="examples/cave_hunt.jpg"><img src="docs/thumbs/cave_hunt.jpg" width="172" alt="Cave painting · 洞穴壁画"></a><br><sub><b>Cave painting</b><br>洞穴壁画</sub></td><td align="center"><a href="examples/petroglyph_migration.jpg"><img src="docs/thumbs/petroglyph_migration.jpg" width="172" alt="Petroglyph · 岩画"></a><br><sub><b>Petroglyph</b><br>岩画</sub></td><td align="center"><a href="examples/blackfigure_games.jpg"><img src="docs/thumbs/blackfigure_games.jpg" width="172" alt="Greek black-figure vase · 古希腊黑绘陶瓶"></a><br><sub><b>Greek black-figure vase</b><br>古希腊黑绘陶瓶</sub></td><td align="center"><a href="examples/mosaic_harbor.jpg"><img src="docs/thumbs/mosaic_harbor.jpg" width="172" alt="Roman mosaic · 罗马马赛克"></a><br><sub><b>Roman mosaic</b><br>罗马马赛克</sub></td></tr> <tr><td align="center"><a href="examples/stainedglass_seasons.jpg"><img src="docs/thumbs/stainedglass_seasons.jpg" width="172" alt="Stained glass · 彩色玻璃花窗"></a><br><sub><b>Stained glass</b><br>彩色玻璃花窗</sub></td><td align="center"><a href="examples/illuminated_starchart.jpg"><img src="docs/thumbs/illuminated_starchart.jpg" width="172" alt="Illuminated manuscript · 泥金手抄本"></a><br><sub><b>Illuminated manuscript</b><br>泥金手抄本</sub></td><td align="center"><a href="examples/codex_ornithopter.jpg"><img src="docs/thumbs/codex_ornithopter.jpg" width="172" alt="Leonardo codex · 达·芬奇手稿"></a><br><sub><b>Leonardo codex</b><br>达·芬奇手稿</sub></td><td align="center"><a href="examples/delft_canal.jpg"><img src="docs/thumbs/delft_canal.jpg" width="172" alt="Delft tiles · 代尔夫特蓝瓷砖"></a><br><sub><b>Delft tiles</b><br>代尔夫特蓝瓷砖</sub></td></tr> </table> ### Retro tech & screens · 复古科技与屏幕 <table> <tr><td align="center"><a href="examples/pixel_rainy_cafe.png"><img src="docs/thumbs/pixel_rainy_cafe.jpg" width="172" alt="Pixel art · 像素风"></a><br><sub><b>Pixel art</b><br>像素风</sub></td><td align="center"><a href="examples/macpaint_garden.jpg"><img src="docs/thumbs/macpaint_garden.jpg" width="172" alt="1-bit paint program · 1-bit 早期画图软件"></a><br><sub><b>1-bit paint program</b><br>1-bit 早期画图软件</sub></td><td align="center"><a href="examples/crt_weather.jpg"><img src="docs/thumbs/crt_weather.jpg" width="172" alt="Green-screen CRT · 绿屏终端"></a><br><sub><b>Green-screen CRT</b><br>绿屏终端</sub></td><td align="center"><a href="examples/lineprinter_launch.jpg"><img src="docs/thumbs/lineprinter_launch.jpg" width="172" alt="ASCII art (line printer) · ASCII 字符画"></a><br><sub><b>ASCII art (line printer)</b><br>ASCII 字符画</sub></td></tr> <tr><td align="center"><a href="examples/lowpoly_canyon.jpg"><img src="docs/thumbs/lowpoly_canyon.jpg" width="172" alt="Low poly · 低多边形"></a><br><sub><b>Low poly</b><br>低多边形</sub></td><td align="center"><a href="examples/synthwave_coastline.jpg"><img src="docs/thumbs/synthwave_coastline.jpg" width="172" alt="Retro synthwave · 复古 Synthwave"></a><br><sub><b>Retro synthwave</b><br>复古 Synthwave</sub></td><td align="center"><a href="examples/vhs_birthday.jpg"><img src="docs/thumbs/vhs_birthday.jpg" width="172" alt="VHS home video · VHS 家庭录像"></a><br><sub><b>VHS home video</b><br>VHS 家庭录像</sub></td><td align="center"><a href="examples/cyberpunk_neon_street.jpg"><img src="docs/thumbs/cyberpunk_neon_street.jpg" width="172" alt="Cyberpunk · 赛博朋克"></a><br><sub><b>Cyberpunk</b><br>赛博朋克</sub></td></tr> <tr><td align="center"><a href="examples/rubberhose_morning.jpg"><img src="docs/thumbs/rubberhose_morning.jpg" width="172" alt="1930s rubber hose · 1930 年代黑白橡皮管动画"></a><br><sub><b>1930s rubber hose</b><br>1930 年代黑白橡皮管动画</sub></td><td align="center"><a href="examples/panel_radio.jpg"><img src="docs/thumbs/panel_radio.jpg" width="172" alt="Vintage instrument panel · 复古仪器面板"></a><br><sub><b>Vintage instrument panel</b><br>复古仪器面板</sub></td><td align="center"><a href="examples/thermal_kitchen.jpg"><img src="docs/thumbs/thermal_kitchen.jpg" width="172" alt="Thermal camera · 热成像"></a><br><sub><b>Thermal camera</b><br>热成像</sub></td><td align="center"><a href="examples/xray_luggage.jpg"><img src="docs/thumbs/xray_luggage.jpg" width="172" alt="X-ray · X 光片"></a><br><sub><b>X-ray</b><br>X 光片</sub></td></tr> </table> ### 3D, UI & diagrams · 3D、界面与图解 <table> <tr><td align="center"><a href="examples/soft3d_rise.jpg"><img src="docs/thumbs/soft3d_rise.jpg" width="172" alt="Soft 3D · 柔光 3D"></a><br><sub><b>Soft 3D</b><br>柔光 3D</sub></td><td align="center"><a href="examples/isometric_weather_island.jpg"><img src="docs/thumbs/isometric_weather_island.jpg" width="172" alt="Isometric 2.5D · 等轴 2.5D"></a><br><sub><b>Isometric 2.5D</b><br>等轴 2.5D</sub></td><td align="center"><a href="examples/aurora_morning.jpg"><img src="docs/thumbs/aurora_morning.jpg" width="172" alt="Aurora glass · 弥散玻璃"></a><br><sub><b>Aurora glass</b><br>弥散玻璃</sub></td><td align="center"><a href="examples/morph_water_cycle.jpg"><img src="docs/thumbs/morph_water_cycle.jpg" width="172" alt="Shape morph · 形变动画"></a><br><sub><b>Shape morph</b><br>形变动画</sub></td></tr> <tr><td align="center"><a href="examples/pastelui_packing.jpg"><img src="docs/thumbs/pastelui_packing.jpg" width="172" alt="Pastel UI · 粉彩界面"></a><br><sub><b>Pastel UI</b><br>粉彩界面</sub></td><td align="center"><a href="examples/obsidianui_reading_notes.jpg"><img src="docs/thumbs/obsidianui_reading_notes.jpg" width="172" alt="Obsidian UI · 笔记应用界面"></a><br><sub><b>Obsidian UI</b><br>笔记应用界面</sub></td><td align="center"><a href="examples/canvasboard_moving_plan.jpg"><img src="docs/thumbs/canvasboard_moving_plan.jpg" width="172" alt="Canvas board · 白板卡片"></a><br><sub><b>Canvas board</b><br>白板卡片</sub></td><td align="center"><a href="examples/flexoki_pour_over.jpg"><img src="docs/thumbs/flexoki_pour_over.jpg" width="172" alt="Flexoki paper · Flexoki 纸面"></a><br><sub><b>Flexoki paper</b><br>Flexoki 纸面</sub></td></tr> <tr><td align="center"><a href="examples/notebook_brewing.jpg"><img src="docs/thumbs/notebook_brewing.jpg" width="172" alt="Lab notebook × stickers · 实验笔记本 · 贴纸"></a><br><sub><b>Lab notebook × stickers</b><br>实验笔记本 · 贴纸</sub></td><td align="center"><a href="examples/grading_math_quiz.jpg"><img src="docs/thumbs/grading_math_quiz.jpg" width="172" alt="Exam grading · 阅卷批改"></a><br><sub><b>Exam grading</b><br>阅卷批改</sub></td><td align="center"><a href="examples/overlay_city_map.jpg"><img src="docs/thumbs/overlay_city_map.jpg" width="172" alt="Overlay sheets · 描图纸叠层"></a><br><sub><b>Overlay sheets</b><br>描图纸叠层</sub></td><td align="center"><a href="examples/chalk_lesson.jpg"><img src="docs/thumbs/chalk_lesson.jpg" width="172" alt="Chalkboard · 黑板板书"></a><br><sub><b>Chalkboard</b><br>黑板板书</sub></td></tr> </table> ## More · 更多 | Page · 页面 | What's in it · 内容 | |---|---| | [Styles](docs/STYLES.md) · [画风详解](docs/STYLES.zh.md) | What makes each style read as the real medium, and its module · 每种画风为什么像真的、对应的模块 | | [Principles](docs/PRINCIPLES.md) · [作画要点](docs/PRINCIPLES.zh.md) | The checklist Claude goes through before handing over a picture · Claude 交图前逐条自查的清单 | | [Usage · 用法](docs/USAGE.md) | Install notes, fonts, Python snippets, every example command · 安装、字体、代码示例、全部范例命令 | | [Gallery · 画廊](docs/GALLERY.md) | Every example at full size, with its title (≈ 57 MB) · 全部范例大图与标题 | | [Draw-on GIFs · 作画动图](docs/GIFS.md) | 91 GIFs of pictures being painted (≈ 104 MB) · 91 段作画过程动图 | | [SKILL.md](SKILL.md) | The full skill: workflow, API reference, failure-mode lists, animation · 完整 skill:流程、接口速查、毛病清单、做成动画 | ## Roadmap · 计划 - 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](https://github.com/cloveric) ### 友链 本开源项目已链接并认可 LINUX DO 社区。https://linux.do/.gitignore39 B78f6d807b9b5upstream ↗
__pycache__/ *.pyc .DS_Store /out*.pngdocs/GALLERY.md19 KBb063e98d7c19upstream ↗
# Claude Drawing · gallery · 画廊 [← README](../README.md) · [Styles](STYLES.md) · [画风](STYLES.zh.md) · [Principles](PRINCIPLES.md) · [作画要点](PRINCIPLES.zh.md) · [Usage · 用法](USAGE.md) · [Gallery · 画廊](GALLERY.md) · [GIFs · 动图](GIFS.md) > Every example at full size, with its title (about 57 MB of images). · 全部范例大图与标题(图片约 57 MB)。 ### Gallery · 画廊 | | | |---|---| | **八万四千法门** · *Many Paths, One Summit*<br><sub>Ink wash · 水墨</sub> | **月印万川** · *One Moon in Ten Thousand Rivers*<br><sub>Ink wash · 水墨</sub> | | <img src="../examples/bawansiqian.jpg" width="100%"> | <img src="../examples/moon_river.jpg" width="100%"> | | **秋日湖畔** · *Autumn Lake*<br><sub>Watercolour · 水彩</sub> | **水彩底纹** · *Watercolour Washes*<br><sub>Watercolour · 水彩 — a background for explainer videos · 讲解视频的背景</sub> | | <img src="../examples/watercolor_autumn.jpg" width="100%"> | <img src="../examples/watercolor_washes.jpg" width="100%"> | | **热气球小镇** · *Balloon Day*<br><sub>Paper collage · 剪纸拼贴</sub> | **午后甜点** · *Afternoon Dessert*<br><sub>Coloured pencil · 韩国彩铅</sub> | | <img src="../examples/papercut_balloons.jpg" width="100%"> | <img src="../examples/colorpencil_dessert.jpg" width="100%"> | | **夏空** · *Summer Sky*<br><sub>Anime · 日本动漫</sub> | **灵感生长** · *Growing Ideas*<br><sub>Editorial · 编辑风手绘</sub> | | <img src="../examples/anime_summer.jpg" width="100%"> | <img src="../examples/editorial_ideas.jpg" width="100%"> | | **麦田星空** · *Swirling Sky over the Wheat Field*<br><sub>Impasto oil · 油画厚涂</sub> | **富士曙** · *Fuji at Dawn*<br><sub>Ukiyo-e · 浮世绘</sub> | | <img src="../examples/oil_wheatfield.jpg" width="100%"> | <img src="../examples/ukiyoe_fuji.jpg" width="100%"> | | **雨夜咖啡店** · *Rainy Night Cafe*<br><sub>Pixel art · 像素风</sub> | **灯塔岛** · *Lighthouse Island*<br><sub>Stop-motion clay · 黏土定格</sub> | | <img src="../examples/pixel_rainy_cafe.png" width="100%"> | <img src="../examples/clay_lighthouse.jpg" width="100%"> | | **蓝晒植物** · *Sun-Print Botanicals*<br><sub>Cyanotype · 蓝晒</sub> | **家** · *Home Sampler*<br><sub>Cross-stitch · 十字绣</sub> | | <img src="../examples/cyanotype_botanicals.jpg" width="100%"> | <img src="../examples/stitch_sampler.jpg" width="100%"> | | **Aurora 64 收音机** · *Aurora 64 Radio*<br><sub>Vintage instrument panel · 复古仪器面板</sub> | **周末市集** · *Weekend Market*<br><sub>Sticker collage × receipt · 贴纸拼贴 · 小票</sub> | | <img src="../examples/panel_radio.jpg" width="100%"> | <img src="../examples/sticker_market.jpg" width="100%"> | | **咖啡萃取实验** · *Coffee Brewing Experiment*<br><sub>Lab notebook × stickers · 实验笔记本 · 贴纸</sub> | **为什么天空是蓝的** · *Why Is the Sky Blue?*<br><sub>Chalkboard · 黑板板书</sub> | | <img src="../examples/notebook_brewing.jpg" width="100%"> | <img src="../examples/chalk_lesson.jpg" width="100%"> | | **霓虹不夜城** · *Neon District*<br><sub>Cyberpunk · 赛博朋克</sub> | **早安吐司** · *Good Morning, Toast*<br><sub>Hand-drawn cartoon · 卡通手绘</sub> | | <img src="../examples/cyberpunk_neon_street.jpg" width="100%"> | <img src="../examples/cartoon_toaster.jpg" width="100%"> | | **岛上的气象站** · *Island Weather Station*<br><sub>Isometric 2.5D · 等轴 2.5D</sub> | **从这扇窗到那扇窗** · *From Window to Window*<br><sub>Continuous line art · 单线画</sub> | | <img src="../examples/isometric_weather_island.jpg" width="100%"> | <img src="../examples/lineart_paper_plane.jpg" width="100%"> | | **浮出** · *Rise*<br><sub>Soft 3D · 柔光 3D</sub> | **一滴水的旅程** · *A Drop's Round Trip*<br><sub>Shape morph · 形变动画</sub> | | <img src="../examples/soft3d_rise.jpg" width="100%"> | <img src="../examples/morph_water_cycle.jpg" width="100%"> | | **好奇心周刊 · 拆开看看** · *Curiosity Weekly · Take It Apart*<br><sub>Newspaper collage · 报刊拼贴</sub> | **晨间计划** · *Morning Plan*<br><sub>Aurora glassmorphism · 弥散玻璃</sub> | | <img src="../examples/newscollage_curiosity.jpg" width="100%"> | <img src="../examples/aurora_morning.jpg" width="100%"> | | **形与色** · *Form & Colour*<br><sub>Bauhaus geometric · 包豪斯几何</sub> | **海岸线 1987** · *Coastline 1987*<br><sub>Retro synthwave · 复古 Synthwave</sub> | | <img src="../examples/bauhaus_form_colour.jpg" width="100%"> | <img src="../examples/synthwave_coastline.jpg" width="100%"> | | **草莓杯垫** · *Strawberry Coaster*<br><sub>Perler beads · 拼豆</sub> | **迁徙季** · *Migration Season*<br><sub>Petroglyph · 岩画</sub> | | <img src="../examples/perler_strawberry_coaster.jpg" width="100%"> | <img src="../examples/petroglyph_migration.jpg" width="100%"> | | **尼罗河丰收** · *Harvest on the Nile*<br><sub>Egyptian tomb painting · 古埃及墓室壁画</sub> | **港口渔获** · *The Day's Catch*<br><sub>Roman mosaic · 罗马马赛克</sub> | | <img src="../examples/tomb_harvest.jpg" width="100%"> | <img src="../examples/mosaic_harbor.jpg" width="100%"> | | **四季之窗** · *Window of the Seasons*<br><sub>Stained glass · 彩色玻璃花窗</sub> | **星辰之书** · *Liber Stellarum*<br><sub>Illuminated manuscript · 泥金手抄本</sub> | | <img src="../examples/stainedglass_seasons.jpg" width="100%"> | <img src="../examples/illuminated_starchart.jpg" width="100%"> | | **扑翼机** · *The Ornithopter*<br><sub>Leonardo codex · 达·芬奇手稿</sub> | **剪影小像** · *Shades of the Wren Household*<br><sub>Silhouette · 剪影</sub> | | <img src="../examples/codex_ornithopter.jpg" width="100%"> | <img src="../examples/silhouette_family.jpg" width="100%"> | | **马戏团来了** · *The Circus Is Coming*<br><sub>Letterpress poster · 凸版印刷海报</sub> | **无线电** · *Radio*<br><sub>Soviet constructivism · 苏联构成主义</sub> | | <img src="../examples/letterpress_circus.jpg" width="100%"> | <img src="../examples/constructivism_radio.jpg" width="100%"> | | **夜行快车** · *Night Express*<br><sub>Art Deco · 装饰艺术</sub> | **火箭小队** · *Rocket Squad*<br><sub>Golden-age comic · 黄金时代漫画</sub> | | <img src="../examples/artdeco_express.jpg" width="100%"> | <img src="../examples/comic_rocket.jpg" width="100%"> | | **猫的六种心情** · *Six Moods of a Cat*<br><sub>Pop silkscreen · 波普丝网</sub> | **发射记录** · *Liftoff Trace*<br><sub>ASCII art (line printer) · ASCII 字符画(行式打印机)</sub> | | <img src="../examples/popart_cat_moods.jpg" width="100%"> | <img src="../examples/lineprinter_launch.jpg" width="100%"> | | **峡谷飞行** · *Canyon Run*<br><sub>Low poly · 低多边形</sub> | **放风筝** · *Hold On*<br><sub>Stencil graffiti · 喷漆模板涂鸦</sub> | | <img src="../examples/lowpoly_canyon.jpg" width="100%"> | <img src="../examples/stencil_kite.jpg" width="100%"> | | **三晚露营** · *Three Nights Out*<br><sub>Embroidered patches · 刺绣徽章</sub> | **灯塔剖面** · *Halvard Rock Light*<br><sub>Blueprint · 蓝图工程图</sub> | | <img src="../examples/patch_camping.jpg" width="100%"> | <img src="../examples/blueprint_lighthouse.jpg" width="100%"> | | **我的周末** · *My Weekend*<br><sub>Children's crayon · 儿童蜡笔画</sub> | **今天带伞吗** · *Bring an Umbrella?*<br><sub>Green-screen CRT terminal · 绿屏终端(荧光字符画)</sub> | | <img src="../examples/crayon_picnic.jpg" width="100%"> | <img src="../examples/crt_weather.jpg" width="100%"> | | **厨房里的温度** · *Kitchen Heat Map*<br><sub>Thermal camera · 热成像</sub> | **一阵风** · *The Gust*<br><sub>Delft tiles · 代尔夫特蓝瓷砖</sub> | | <img src="../examples/thermal_kitchen.jpg" width="100%"> | <img src="../examples/delft_canal.jpg" width="100%"> | | **篝火旁的岩洞** · *The Hunt by the Fire*<br><sub>Cave painting · 洞穴壁画</sub> | **窗台花园** · *Windowsill Garden*<br><sub>1-bit paint program · 1-bit 早期画图软件</sub> | | <img src="../examples/cave_hunt.jpg" width="100%"> | <img src="../examples/macpaint_garden.jpg" width="100%"> | | **赛跑与赛车** · *Games on a Vase*<br><sub>Greek black-figure vase · 古希腊黑绘陶瓶</sub> | **老街角的自行车** · *The Bread Run*<br><sub>Graphite pencil · 铅笔素描</sub> | | <img src="../examples/blackfigure_games.jpg" width="100%"> | <img src="../examples/graphite_bicycle.jpg" width="100%"> | | **行李安检** · *Security Check*<br><sub>X-ray · X 光片</sub> | **早晨的闹钟** · *Seven O'Clock*<br><sub>1930s rubber hose · 1930 年代黑白橡皮管动画</sub> | | <img src="../examples/xray_luggage.jpg" width="100%"> | <img src="../examples/rubberhose_morning.jpg" width="100%"> | | **雪夜归途** · *Homeward, First Snow*<br><sub>Linocut · 黑白麻胶版画</sub> | **吹蜡烛** · *Blow Out the Candles*<br><sub>VHS home video · VHS 家庭录像</sub> | | <img src="../examples/linocut_snowy_village.jpg" width="100%"> | <img src="../examples/vhs_birthday.jpg" width="100%"> | | **山间夜营** · *Night Camp*<br><sub>Flat vector · 扁平矢量</sub> | **小橡果的秋天** · *An Acorn's Autumn*<br><sub>Storybook animation · 绘本角色动画</sub> | | <img src="../examples/flatvector_night_camp.jpg" width="100%"> | <img src="../examples/storybook_acorn.jpg" width="100%"> | | **蛇梯棋大冒险** · *Snakes & Ladders, Round 7*<br><sub>Ballpoint doodle · 圆珠笔涂鸦</sub> | **海港步行图** · *Larkhaven on Foot*<br><sub>Overlay sheets · 描图纸叠层</sub> | | <img src="../examples/ballpoint_board_game.jpg" width="100%"> | <img src="../examples/overlay_city_map.jpg" width="100%"> | | **出发前,再查一遍行李** · *Pack Check*<br><sub>Pastel UI · 粉彩界面</sub> | **数学单元测验** · *Unit Test, Graded*<br><sub>Exam grading · 阅卷批改</sub> | | <img src="../examples/pastelui_packing.jpg" width="100%"> | <img src="../examples/grading_math_quiz.jpg" width="100%"> | | **蹴鞠** · *Cuju by Lamplight*<br><sub>Shadow puppetry · 皮影戏</sub> | **街角速写** · *Sketchbook Neighbours*<br><sub>Pen & wash · 钢笔淡彩</sub> | | <img src="../examples/shadowpuppet_cuju.jpg" width="100%"> | <img src="../examples/penwash_neighbours.jpg" width="100%"> | | **雨天三人像** · *Rainy-Day Portraits*<br><sub>Retro gouache · 复古水粉</sub> | **借伞** · *The Shared Umbrella*<br><sub>Blue picture book · 蓝调绘本</sub> | | <img src="../examples/gouache_rainy_day.jpg" width="100%"> | <img src="../examples/bluebook_shared_umbrella.jpg" width="100%"> | | **春水园林** · *Spring Water Garden*<br><sub>Jiangnan garden · 江南园林</sub> | **面馆** · *Noodle Counter*<br><sub>Dry-brush blocks · 干刷色块</sub> | | <img src="../examples/jiangnan_spring_water.jpg" width="100%"> | <img src="../examples/drybrush_noodle_counter.jpg" width="100%"> | | **夜的边上** · *The Kite at the Edge of Night*<br><sub>Twilight storybook · 暮色微缩绘本</sub> | **熔岩入海** · *Lava Meets the Sea*<br><sub>Hatched nocturne · 排线夜景</sub> | | <img src="../examples/twilight_paper_kite.jpg" width="100%"> | <img src="../examples/nocturne_lava_sea.jpg" width="100%"> | | **小王子 · 读书笔记** · *Reading Notes*<br><sub>Obsidian UI · 笔记应用界面</sub> | **搬家计划** · *Moving Plan*<br><sub>Canvas board · 白板卡片</sub> | | <img src="../examples/obsidianui_reading_notes.jpg" width="100%"> | <img src="../examples/canvasboard_moving_plan.jpg" width="100%"> | | **一杯手冲咖啡** · *Pour-over, in Five Diagrams*<br><sub>Flexoki paper · Flexoki 纸面</sub> | **大龟过河** · *The Tortoise Crossing*<br><sub>Warm pencil storybook · 暖调彩铅绘本</sub> | | <img src="../examples/flexoki_pour_over.jpg" width="100%"> | <img src="../examples/pencilbook_tortoise_crossing.jpg" width="100%"> | | **雨后的节日台阶街** · *Festival Steps After the Rain*<br><sub>Colour town · 彩色小镇</sub> | **橘猫围巾** · *The Marmalade Scarf*<br><sub>Pastel vignette · 色粉小像</sub> | | <img src="../examples/colortown_festival_steps.jpg" width="100%"> | <img src="../examples/pastelvignette_marmalade_scarf.jpg" width="100%"> | | **罐子里的小幽灵** · *The Ghost in the Jar*<br><sub>Poetic Halloween · 诗意万圣夜</sub> | **捧着一杯热的** · *Something Warm to Hold*<br><sub>Oil-pastel portrait · 油画棒肖像</sub> | | <img src="../examples/poetichalloween_ghost_jar.jpg" width="100%"> | <img src="../examples/oilpastel_warm_cup.jpg" width="100%"> | | **读书的午后** · *The Reading Hour*<br><sub>Sketchbook doodle · 手账线描</sub> | **放风筝** · *Kite Day*<br><sub>Sketchbook doodle · 手账线描 — a 16:9 page for explainer videos · 讲解视频用的宽页</sub> | | <img src="../examples/sketchbook_reading_hour.jpg" width="100%"> | <img src="../examples/sketchbook_kite_day.jpg" width="100%"> | | **雨天的星期六** · *A Rainy Saturday*<br><sub>Flat spot illustration · 日系扁平小插画</sub> | **雨天的星期六(宽页)** · *A Rainy Saturday, 16:9*<br><sub>Flat spot illustration · 日系扁平小插画 — the same five vignettes laid out 16:9 for explainer videos · 同样五幅小画排成讲解视频用的宽页</sub> | | <img src="../examples/spotillo_rainy_saturday.jpg" width="100%"> | <img src="../examples/spotillo_rainy_saturday_wide.jpg" width="100%"> | | **雪夜遛狗** · *The Evening Walk*<br><sub>Grainy picture book · 颗粒童书</sub> | **喂鸭子** · *Feeding the Ducks*<br><sub>Grainy picture book · 颗粒童书 — a 16:9 spread for explainer videos · 讲解视频用的宽页</sub> | | <img src="../examples/grainbook_snow_walk.jpg" width="100%"> | <img src="../examples/grainbook_duck_pond.jpg" width="100%"> | | **走过草丘 · 破晓** · *The Long Walk, Dawn*<br><sub>Dreamy hills · 柔光草丘 — a 1:2 phone wallpaper · 1:2 手机壁纸</sub> | **走过草丘 · 星夜** · *The Long Walk, Night*<br><sub>Dreamy hills · 柔光草丘 — the same walk under the milky way · 同一段路,银河下</sub> | | <img src="../examples/dreamhills_long_walk.jpg" width="100%"> | <img src="../examples/dreamhills_long_walk_night.jpg" width="100%"> | | **窗边的座位** · *The Window Seat*<br><sub>Sunlit greenery · 夏日光绿 — a 9:16 phone wallpaper · 9:16 手机壁纸</sub> | **溪边石阶** · *Steps Down to the Stream*<br><sub>Sunlit greenery · 夏日光绿 — the same light by a forest stream · 同样的光,林间溪边</sub> | | <img src="../examples/sunlitgreen_window_seat.jpg" width="100%"> | <img src="../examples/sunlitgreen_stream_steps.jpg" width="100%"> | Every mark above is computed: paper fibres, ink washes and mist, dry-brush strokes, pigment granulation and blooms, torn-paper edges, pencil wax on paper tooth, cel-shaded clouds, risograph grain and halftones, lit impasto relief, woodblock grain and bokashi, dithered pixels, plasticine lit like a film set, sunlight through leaves on Prussian blue, twisted thread on Aida cloth, machined knobs behind a backlit dial, die-cut vinyl with a laminate gloss, streaky thermal print, graphite catching the tooth of graph paper, highlighter pooling at the start of a swipe, chalk dust settling under half-erased lessons, rain-lit neon glass mirrored in a wet street, a blue-pencil rough under boiling brush ink, an island ray-traced under one soft sun, a single unbroken gold line, candy balls with softbox glints, one outline morphing through six shapes, halftone photos cut out with scissors, frosted glass blurring the real pixels behind it, screen-printed primaries out of register, a slit sun sinking behind a neon grid played off tape, hollow fuse beads on a pegboard melting together under an iron, pits knocked through desert varnish, a red grid showing through flaking plaster, stones laid row by row along an outline, daylight through leaded glass, burnished gold that mirrors the room, left-handed hatching in iron-gall ink, black paper cut with scissors, wood type printed a hair out of register, red and black plates slipping apart, airbrush fades inside knife-cut friskets, Ben-Day dots on yellowed newsprint, one photo key pulled across hand-painted colour, characters struck through a fading ribbon, flat-shaded triangles dithered to 15 bits, spray drifting past cut card, satin stitches catching the light by their angle, ink lines printed white on Prussian blue, wax scribbles skipping the paper's pits, phosphor glowing behind curved glass, heat leaking out of a kitchen, cobalt fired into tin glaze tile by tile, ochre blown onto rock lit by a fire, 1-bit patterns in an old paint program, slip silhouettes incised to the clay, graphite that never quite reaches black, X-rays adding up through a suitcase, grey cels shot on scratched film, gouge marks in a rolled-up block, a birthday smeared onto tape, seven flat colours lifting off each other, an acorn squashing and stretching through a world drawn as it goes, ballpoint ink blobbing at every corner of a hand-drawn game, inks multiplying through tracing paper on a light box, window cards floating on a pastel field over shadows tinted by it, a vermilion stamp running dry at one end, red ink pooling where the pen slowed down, dyed donkey hide glowing on a lamp-lit screen, gouache scumbled dry over a toned board, knit stitch by stitch, dry pastel blue under a scratchy brush line, with chalk rain on top, a spring garden built leaf by leaf, its tiled roofs and willows mirrored in a jade lake, a roller and a dry brush running out across cream paper, a dusk sky going over to stars above thousands of tiny wildflowers, a night sea laid stroke by stroke under the one warm light of lava meeting the water, a hill town of gouache houses, inked line by line and slate by slate, strung with bunting and mirrored in a wet square, a woman and her cat in soft pastel, the faces rubbed smooth, the hair and fur laid strand by strand, the coat breaking up into dry strokes on white paper, a porcelain child flushed red round the eyes, her burlap hat woven thread by thread, carrying a ghost whose glow warms the wool and the leaves, a winter coat laid in with dry oil-pastel strokes that skip the paper's tooth and run out in a comb of wax, a girl's hair drawn strand by strand in hair-thin ink above a jumper striped in colour pencil that overruns its own outline, flat shapes cut with a hand-wobbled edge, folds cut into them in white and one red thing in every vignette, a snowy cobalt evening laid shape by shape with a dry, chalky brush whose colour breaks into grain and frays at every edge, giant hills furred blade by blade, every blade lit on its own between a warm key and a cool sky, and summer trees built leaf by leaf, sunlit greens laid over shaded ones, their shadows falling blue across bleached whites. No diffusion model, no API, no stock art. It is just Python with **numpy + Pillow** on a CPU: from 0.1 s (pixel art) to about 45 s (the soft 3D ray tracer) per 1920×1080 image.docs/GIFS.md9.5 KB693db09e161eupstream ↗
# Claude Drawing · draw-on GIFs · 作画动图 [← README](../README.md) · [Styles](STYLES.md) · [画风](STYLES.zh.md) · [Principles](PRINCIPLES.md) · [作画要点](PRINCIPLES.zh.md) · [Usage · 用法](USAGE.md) · [Gallery · 画廊](GALLERY.md) · [GIFs · 动图](GIFS.md) > 91 GIFs, about 104 MB in total, so this page loads slowly. · 共 91 段动图、约 104 MB,加载较慢。 <p align="center"><img src="../examples/drawing_bawansiqian.gif" width="100%"><br><sub><b>Ink wash · 水墨</b> — every style below is drawn stage by stage like this (the storybook one is a real character animation) · 下面每种画风都是这样一步步画出来的(绘本角色动画是一段真正的角色动画)</sub></p> | Watercolour · 水彩 | Paper collage · 剪纸拼贴 | Coloured pencil · 韩国彩铅 | |---|---|---| |  |  |  | | **Anime · 日本动漫** | **Editorial · 编辑风手绘** | **Impasto oil · 油画厚涂** | |  |  |  | | **Ukiyo-e · 浮世绘木版画** | **Pixel art · 像素风** | **Stop-motion clay · 黏土定格** | |  |  |  | | **Cyanotype · 蓝晒** | **Cross-stitch · 十字绣** | **Retro panel · 复古仪器面板** | |  |  |  | | **Sticker collage × receipt · 贴纸拼贴 · 小票** | **Lab notebook × stickers · 实验笔记本 · 贴纸** | **Chalkboard · 黑板板书** | |  |  |  | | **Cyberpunk · 赛博朋克** | **Hand-drawn cartoon · 卡通手绘** | **Continuous line art · 单线画** | |  |  |  | | **Soft 3D · 柔光 3D** | **Shape morph · 形变动画** | **Newspaper collage · 报刊拼贴** | |  |  |  | | **Aurora glass · 弥散玻璃** | **Bauhaus geometric · 包豪斯几何** | **Retro synthwave · 复古 Synthwave** | |  |  |  | | **Isometric 2.5D · 等轴 2.5D** | **Perler beads · 拼豆** | **Petroglyph · 岩画** | |  |  |  | | **Egyptian tomb painting · 古埃及墓室壁画** | **Roman mosaic · 罗马马赛克** | **Stained glass · 彩色玻璃花窗** | |  |  |  | | **Illuminated manuscript · 泥金手抄本** | **Leonardo codex · 达·芬奇手稿** | **Silhouette · 剪影** | |  |  |  | | **Letterpress poster · 凸版印刷海报** | **Soviet constructivism · 苏联构成主义** | **Art Deco · 装饰艺术** | |  |  |  | | **Golden-age comic · 黄金时代漫画** | **Pop silkscreen · 波普丝网** | **ASCII art (line printer) · ASCII 字符画** | |  |  |  | | **Low poly · 低多边形** | **Stencil graffiti · 喷漆模板涂鸦** | **Embroidered patches · 刺绣徽章** | |  |  |  | | **Blueprint · 蓝图工程图** | **Children's crayon · 儿童蜡笔画** | **Green-screen CRT · 绿屏终端** | |  |  |  | | **Thermal camera · 热成像** | **Delft tiles · 代尔夫特蓝瓷砖** | **Cave painting · 洞穴壁画** | |  |  |  | | **1-bit paint program · 1-bit 早期画图软件** | **Greek black-figure vase · 古希腊黑绘陶瓶** | **Graphite pencil · 铅笔素描** | |  |  |  | | **X-ray · X 光片** | **1930s rubber hose · 1930 年代黑白橡皮管动画** | **Linocut · 黑白麻胶版画** | |  |  |  | | **VHS home video · VHS 家庭录像** | **Flat vector · 扁平矢量** | **Storybook animation · 绘本角色动画** | |  |  |  | | **Ballpoint doodle · 圆珠笔涂鸦** | **Overlay sheets · 描图纸叠层** | **Pastel UI · 粉彩界面** | |  |  |  | | **Exam grading · 阅卷批改** | **Shadow puppetry · 皮影戏** | **Pen & wash · 钢笔淡彩** | |  |  |  | | **Retro gouache · 复古水粉** | **Blue picture book · 蓝调绘本** | **Jiangnan garden · 江南园林** | |  |  |  | | **Dry-brush blocks · 干刷色块** | **Twilight storybook · 暮色微缩绘本** | **Hatched nocturne · 排线夜景** | |  |  |  | | **Obsidian UI · 笔记应用界面** | **Canvas board · 白板卡片** | **Flexoki paper · Flexoki 纸面** | |  |  |  | | **Warm pencil storybook · 暖调彩铅绘本** | **Pastel vignette · 色粉小像** | **Poetic Halloween · 诗意万圣夜** | |  |  |  | | **Oil-pastel portrait · 油画棒肖像** | **Ink wash · 水墨(月印万川)** | **Colour town · 彩色小镇** | |  |  |  | | **Sketchbook doodle · 手账线描** | **Sketchbook doodle · 手账线描(放风筝)** | **Flat spot illustration · 日系扁平小插画** | |  |  |  | | **Grainy picture book · 颗粒童书** | **Grainy picture book · 颗粒童书(喂鸭子)** | **Watercolour · 水彩(底纹)** | |  |  |  | | **Dreamy hills · 柔光草丘** | **Dreamy hills · 柔光草丘(星夜)** | **Dreamy hills · 柔光草丘(正午)** | |  |  |  | | **Sunlit greenery · 夏日光绿** | **Sunlit greenery · 夏日光绿(溪边石阶)** | **Sunlit greenery · 夏日光绿(傍晚)** | |  |  |  |docs/hero.jpg242 KB752887f858beupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/PRINCIPLES.md60 KBcc1be39d3732upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/PRINCIPLES.zh.md52 KBb9a8a2556c69upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/STYLES.md95 KB877f03293201upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/STYLES.zh.md82 KB6e60c785f661upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/anime_summer.jpg18 KBe92fcfa88699upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/artdeco_express.jpg28 KB1c9a4b424fc8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/aurora_morning.jpg17 KB4c78312dd24fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/ballpoint_board_game.jpg29 KBf1ee253fd45eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/bauhaus_form_colour.jpg26 KB628a7c86ea52upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/bawansiqian.jpg29 KB15be2dd1a41cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/blackfigure_games.jpg21 KB5950223280ccupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/bluebook_shared_umbrella.jpg32 KB1138f8df5728upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/blueprint_lighthouse.jpg25 KB9b9f5cb41c0dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/canvasboard_moving_plan.jpg16 KBca4d361305dcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/cartoon_toaster.jpg37 KB58784f7cca41upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/cave_hunt.jpg19 KB5f86ddd2a848upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/chalk_lesson.jpg25 KBa889be5ca44dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/clay_lighthouse.jpg27 KB4f4ce9217bd6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/codex_ornithopter.jpg22 KB139c038515e1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/colorpencil_dessert.jpg9.8 KB312a1599edf7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/colortown_festival_steps.jpg43 KBb68ca0ca4ce4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/comic_rocket.jpg54 KBa25f211541b9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/constructivism_radio.jpg29 KBc8bc80137b63upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/crayon_picnic.jpg52 KB7f48c240ec41upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/crt_weather.jpg23 KBe65e5937e57eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/cyanotype_botanicals.jpg23 KB6ed04915fe0bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/cyberpunk_neon_street.jpg22 KB340012a20febupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/delft_canal.jpg46 KBb3b299ab5f2dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/dreamhills_long_walk.jpg13 KB2a73d6a89f3eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/drybrush_noodle_counter.jpg18 KB7ec5e866db9eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/editorial_ideas.jpg23 KB125dbef38784upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/flatvector_night_camp.jpg17 KBabbb83ed8967upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/flexoki_pour_over.jpg19 KB0fb0fdfe543bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/gouache_rainy_day.jpg31 KB6ba37b133c89upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/grading_math_quiz.jpg22 KBa9618ce26c8bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/grainbook_snow_walk.jpg31 KBdc97ff6cd6f6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/graphite_bicycle.jpg20 KBd558c9046f44upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/illuminated_starchart.jpg29 KB21e044a8636fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/isometric_weather_island.jpg15 KB6859e219a38fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/jiangnan_spring_water.jpg32 KBe97dcf54b116upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/letterpress_circus.jpg36 KB664ed85655c3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/lineart_paper_plane.jpg7.3 KBd08bc0a50fe9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/lineprinter_launch.jpg27 KB5ebbb305e7c3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/linocut_snowy_village.jpg40 KB8dfa6027c45bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/lowpoly_canyon.jpg33 KB9c128808968fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/macpaint_garden.jpg51 KB57878dd5147aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/morph_water_cycle.jpg21 KB04263368ecc8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/mosaic_harbor.jpg52 KBcc7fb6eb937fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/newscollage_curiosity.jpg36 KB8390d0acaa41upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/nocturne_lava_sea.jpg19 KBc11d6ad12ebeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/notebook_brewing.jpg26 KB97fffbb73bb5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/obsidianui_reading_notes.jpg13 KB339851b36165upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/oil_wheatfield.jpg74 KB44bec0620937upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/oilpastel_warm_cup.jpg14 KBfbbc9ccd5ccaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/overlay_city_map.jpg30 KBf175220df3e3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/panel_radio.jpg24 KB980797028972upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/papercut_balloons.jpg18 KB41bad3bbe858upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/pastelui_packing.jpg17 KB4e0ac927c044upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/pastelvignette_marmalade_scarf.jpg11 KBb2ddbd4c05b7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/patch_camping.jpg25 KB6ccf669944a0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/pencilbook_tortoise_crossing.jpg32 KBa8cceabec476upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/penwash_neighbours.jpg30 KB850e9647a8c0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/perler_strawberry_coaster.jpg25 KBb8a8d230b376upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/petroglyph_migration.jpg20 KB8846b70cc779upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/pixel_rainy_cafe.jpg30 KB49ed7510ea30upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/poetichalloween_ghost_jar.jpg17 KB98aab85ebe53upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/popart_cat_moods.jpg34 KBe5ccf09fc455upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/rubberhose_morning.jpg32 KBb7025583a028upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/shadowpuppet_cuju.jpg63 KB9dea9e1ed89aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/silhouette_family.jpg28 KBe92f25cd6b78upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/sketchbook_reading_hour.jpg12 KB08fa89ffcd6aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/soft3d_rise.jpg23 KBb5101e6a8fedupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/spotillo_rainy_saturday_wide.jpg13 KBe058edfb838cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/stainedglass_seasons.jpg30 KBd444dccf0e06upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/stencil_kite.jpg23 KB82bcef64bc0eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/sticker_market.jpg27 KBc5cb8f213ff6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/stitch_sampler.jpg36 KBfd3b7032312dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/storybook_acorn.jpg20 KBd2b52fd50326upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/sunlitgreen_window_seat.jpg29 KB4b82843893d4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/synthwave_coastline.jpg28 KBce225caeb8e9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/thermal_kitchen.jpg18 KB0259cb890a2aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/tomb_harvest.jpg80 KBdbf1e1bdafaeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/twilight_paper_kite.jpg22 KB85924d3fe2dfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/ukiyoe_fuji.jpg25 KB86ce9f9bae22upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/vhs_birthday.jpg31 KB00560b3b4485upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/watercolor_autumn.jpg36 KBdacab5b14009upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/thumbs/xray_luggage.jpg29 KB73d57910cc8dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
docs/USAGE.md12 KB82f83edd89d0upstream ↗
# Claude Drawing · install & examples · 安装与范例 [← README](../README.md) · [Styles](STYLES.md) · [画风](STYLES.zh.md) · [Principles](PRINCIPLES.md) · [作画要点](PRINCIPLES.zh.md) · [Usage · 用法](USAGE.md) · [Gallery · 画廊](GALLERY.md) · [GIFs · 动图](GIFS.md) ## English ### Install ```bash git clone https://github.com/cloveric/claude-drawing-skill.git ~/.claude/skills/claude-drawing pip install -r ~/.claude/skills/claude-drawing/requirements.txt # numpy, Pillow ``` Titles and notes need a CJK font. macOS Kaiti/Songti, Linux Noto CJK and Windows KaiTi/SimSun are found automatically; you can also set `INKPAINT_FONT=/path/to/font`. Many styles also look for common Latin system fonts (a sans, a rounded bold, a script and a handwriting face, via `core.latin_font`); override any of them with `INKPAINT_FONT_<STYLE>`, e.g. `INKPAINT_FONT_HAND`. No font files are bundled. ### Quick start ```python import sys; sys.path.insert(0, "lib") # ink wash from inkpaint import Painting p = Painting(1920, 1080, seed=7); p.paper() far = p.ridge(560, peaks=[(420, 150, 330), (1650, 110, 260)]); p.wash(far, dens=0.16, decay=170, mist_y=700) main = p.peak(1130, 252, shoulders=[(1380, 70, 90)]); p.wash(main, dens=0.46, decay=240, mist_y=920) p.cun(main, 530, 1730, shadow_x=1130); p.trails(main, (1130, 252), n=16, red_index=7) p.mist(960, 70, 0.8); p.sun(1500, 190, 46); p.save("ink.png") # watercolour from watercolor import Watercolor, hexc from core import blob_pts w = Watercolor(1920, 1080, seed=1); w.paper() w.gradient_wash(0, 540, top=hexc('#8fb0cf'), bottom=hexc('#f2cfae')) leaf = w.shape(blob_pts(900, 760, 260, 90, rough=0.1), soft=2.5) w.glaze(leaf, hexc('#a9c46b'), 0.75, edge=0.55, gran=0.35, bloom=1); w.save("watercolour.png") # paper collage from papercut import Collage c = Collage(1920, 1080, seed=2); c.background('#232d66', texture='kraft') c.piece(mask=c.circle_mask(1360, 300, 150), colour='#f6d77a', texture='crayon') c.face(1360, 310, 128, mood='sleep'); c.save("collage.png") ``` Every style has a complete example: `python3 examples/<name>.py out.png --stages stages/`. `--stages` also writes the draw-on snapshots. ## 中文 ### 安装 ```bash git clone https://github.com/cloveric/claude-drawing-skill.git ~/.claude/skills/claude-drawing pip install -r ~/.claude/skills/claude-drawing/requirements.txt # numpy、Pillow ``` 题字和纸条需要中文字体。macOS 的楷体/宋体、Linux 的 Noto CJK、Windows 的楷体/宋体都会自动找到,也可以用 `INKPAINT_FONT=字体路径` 指定。不少画风还会找常见的西文字体(无衬线、圆体、花体、手写体,见 `core.latin_font`),可用 `INKPAINT_FONT_<风格>` 指定,比如 `INKPAINT_FONT_HAND`。仓库里不附带任何字体文件。 ### 快速上手 水墨、水彩、剪纸的最小示例见上方英文部分的代码。每种画风都有完整范例: ```bash python3 examples/bawansiqian.py out.png --stages stages/ # 水墨:八万四千法门 python3 examples/moon_river.py out.png # 水墨:月印万川 python3 examples/watercolor_autumn.py out.png # 水彩:秋日湖畔 python3 examples/watercolor_washes.py out.png --layout cover # 水彩:底纹背景(--layout bill、--seed N 出变体) python3 examples/papercut_balloons.py out.png # 剪纸:热气球小镇 python3 examples/colorpencil_dessert.py out.png # 韩国彩铅:午后甜点 python3 examples/anime_summer.py out.png # 日本动漫:夏空 python3 examples/editorial_ideas.py out.png # 编辑风:灵感生长 python3 examples/oil_wheatfield.py out.png # 油画厚涂:麦田星空 python3 examples/ukiyoe_fuji.py out.png # 浮世绘:富士曙 python3 examples/pixel_rainy_cafe.py out.png # 像素风:雨夜咖啡店 python3 examples/clay_lighthouse.py out.png # 黏土定格:灯塔岛 python3 examples/cyanotype_botanicals.py out.png # 蓝晒:蓝晒植物 python3 examples/stitch_sampler.py out.png # 十字绣:家 python3 examples/panel_radio.py out.png # 复古仪器面板:Aurora 64 收音机 python3 examples/sticker_market.py out.png # 贴纸拼贴 · 小票:周末市集 python3 examples/notebook_brewing.py out.png # 实验笔记本 · 贴纸:咖啡萃取实验 python3 examples/chalk_lesson.py out.png # 黑板板书:为什么天空是蓝的 python3 examples/cyberpunk_neon_street.py out.png # 赛博朋克:霓虹不夜城 python3 examples/cartoon_toaster.py out.png # 卡通手绘:早安吐司 python3 examples/isometric_weather_island.py out.png # 等轴 2.5D:岛上的气象站 python3 examples/lineart_paper_plane.py out.png # 单线画:从这扇窗到那扇窗 python3 examples/soft3d_rise.py out.png # 柔光 3D:浮出 python3 examples/morph_water_cycle.py out.png # 形变动画:一滴水的旅程 python3 examples/newscollage_curiosity.py out.png # 报刊拼贴:好奇心周刊 · 拆开看看 python3 examples/aurora_morning.py out.png # 弥散玻璃:晨间计划 python3 examples/bauhaus_form_colour.py out.png # 包豪斯几何:形与色 python3 examples/synthwave_coastline.py out.png # 复古 Synthwave:海岸线 1987 python3 examples/perler_strawberry_coaster.py out.png # 拼豆:草莓杯垫 python3 examples/petroglyph_migration.py out.png # 岩画:迁徙季 python3 examples/tomb_harvest.py out.png # 古埃及墓室壁画:尼罗河丰收 python3 examples/mosaic_harbor.py out.png # 罗马马赛克:港口渔获 python3 examples/stainedglass_seasons.py out.png # 彩色玻璃花窗:四季之窗 python3 examples/illuminated_starchart.py out.png # 泥金手抄本:星辰之书 python3 examples/codex_ornithopter.py out.png # 达·芬奇手稿:扑翼机 python3 examples/silhouette_family.py out.png # 剪影:剪影小像 python3 examples/letterpress_circus.py out.png # 凸版印刷海报:马戏团来了 python3 examples/constructivism_radio.py out.png # 苏联构成主义:无线电 python3 examples/artdeco_express.py out.png # 装饰艺术:夜行快车 python3 examples/comic_rocket.py out.png # 黄金时代漫画:火箭小队 python3 examples/popart_cat_moods.py out.png # 波普丝网:猫的六种心情 python3 examples/lineprinter_launch.py out.png # ASCII 字符画(行式打印机):发射记录 python3 examples/lowpoly_canyon.py out.png # 低多边形:峡谷飞行 python3 examples/stencil_kite.py out.png # 喷漆模板涂鸦:放风筝 python3 examples/patch_camping.py out.png # 刺绣徽章:三晚露营 python3 examples/blueprint_lighthouse.py out.png # 蓝图工程图:灯塔剖面 python3 examples/crayon_picnic.py out.png # 儿童蜡笔画:我的周末 python3 examples/crt_weather.py out.png # 绿屏终端 CRT:今天带伞吗 python3 examples/thermal_kitchen.py out.png # 热成像:厨房里的温度 python3 examples/delft_canal.py out.png # 代尔夫特蓝瓷砖:运河小镇 · 一阵风 python3 examples/cave_hunt.py out.png # 洞穴壁画:篝火旁的岩洞 python3 examples/macpaint_garden.py out.png # 1-bit 早期画图软件:窗台花园 python3 examples/blackfigure_games.py out.png # 古希腊黑绘陶瓶:赛跑与赛车 python3 examples/graphite_bicycle.py out.png # 铅笔素描:老街角的自行车 python3 examples/xray_luggage.py out.png # X 光片:行李安检 python3 examples/rubberhose_morning.py out.png # 1930 年代黑白橡皮管动画:早晨的闹钟 python3 examples/linocut_snowy_village.py out.png # 黑白麻胶版画:雪夜归途 python3 examples/vhs_birthday.py out.png # VHS 家庭录像:吹蜡烛 python3 examples/flatvector_night_camp.py out.png # 扁平矢量:山间夜营 python3 examples/storybook_acorn.py out.jpg --gif out.gif # 绘本角色动画:小橡果的秋天 python3 examples/ballpoint_board_game.py out.png # 圆珠笔涂鸦:蛇梯棋大冒险 python3 examples/overlay_city_map.py out.jpg --stages stages/ # 描图纸叠层:海港步行图 python3 examples/pastelui_packing.py out.jpg --stages stages/ # 粉彩界面:出发前,再查一遍行李 python3 examples/grading_math_quiz.py out.jpg --stages stages/ # 阅卷批改:数学单元测验 python3 examples/shadowpuppet_cuju.py out.jpg --stages stages/ # 皮影戏:蹴鞠 python3 examples/penwash_neighbours.py out.jpg --stages stages/ # 钢笔淡彩:街角速写 python3 examples/gouache_rainy_day.py out.jpg --stages stages/ # 复古水粉:雨天三人像 python3 examples/bluebook_shared_umbrella.py out.jpg --stages stages/ # 蓝调绘本:借伞 python3 examples/jiangnan_spring_water.py out.jpg --stages stages/ # 江南园林:春水园林 python3 examples/drybrush_noodle_counter.py out.jpg --stages stages/ # 干刷色块:面馆 python3 examples/twilight_paper_kite.py out.jpg --stages stages/ # 暮色微缩绘本:夜的边上 python3 examples/nocturne_lava_sea.py out.jpg --stages stages/ # 排线夜景:熔岩入海 python3 examples/obsidianui_reading_notes.py out.jpg --stages stages/ # 笔记应用界面:小王子读书笔记 python3 examples/canvasboard_moving_plan.py out.jpg --stages stages/ # 白板卡片:搬家计划 python3 examples/flexoki_pour_over.py out.jpg --stages stages/ # Flexoki 纸面:一杯手冲咖啡 python3 examples/pencilbook_tortoise_crossing.py out.jpg --stages stages/ # 暖调彩铅绘本:大龟过河 python3 examples/colortown_festival_steps.py out.jpg --stages stages/ # 彩色小镇:雨后的节日台阶街 python3 examples/pastelvignette_marmalade_scarf.py out.jpg --stages stages/ # 色粉小像:橘猫围巾 python3 examples/poetichalloween_ghost_jar.py out.jpg --stages stages/ # 诗意万圣夜:罐子里的小幽灵 python3 examples/oilpastel_warm_cup.py out.jpg --stages stages/ # 油画棒肖像:捧着一杯热的 python3 examples/sketchbook_reading_hour.py out.jpg --stages stages/ # 手账线描:读书的午后 python3 examples/sketchbook_kite_day.py out.jpg --stages stages/ # 手账线描:放风筝(16:9) python3 examples/spotillo_rainy_saturday.py out.jpg --stages stages/ # 日系扁平小插画:雨天的星期六(--layout wide 出 16:9) python3 examples/grainbook_snow_walk.py out.jpg --stages stages/ # 颗粒童书:雪夜遛狗(--layout wide 出 16:9) python3 examples/grainbook_duck_pond.py out.jpg --stages stages/ # 颗粒童书:喂鸭子(16:9) python3 examples/dreamhills_long_walk.py out.jpg --stages stages/ # 柔光草丘:走过草丘(1:2 竖版壁纸,--preset night 星夜、noon 正午) python3 examples/dreamhills_long_walk.py out.jpg --layout wide # 柔光草丘:同一幅画排成 16:9 python3 examples/sunlitgreen_window_seat.py out.jpg --stages stages/ # 夏日光绿:窗边的座位(9:16 竖版壁纸,--layout wide 出 16:9,--preset late 傍晚金光) python3 examples/sunlitgreen_stream_steps.py out.jpg --stages stages/ # 夏日光绿:溪边石阶(9:16,--layout wide 出 16:9) ```examples/anime_summer.jpg240 KB63d5fd385f67upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/anime_summer.py5.5 KBe8b033299553upstream ↗
"""Example (Japanese anime background): Summer Sky / 夏空 — towering cel-shaded cumulus, sun bloom and lens flare, a country road with power lines, and a girl in a straw hat seen from behind. Pure code, no image model. python3 anime_summer.py [out.png] [--stages DIR] """ import os, sys sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) import numpy as np from anime import Anime, hexc from core import spline, fbm1d, blur out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'anime_summer.png' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None a = Anime(1920, 1080, seed=720) rng = a.rng HOR = 640 VX, VY = 1000, HOR # vanishing point # ---- sky, high wisps, towering clouds lit from the upper left a.sky('#1a4fb8', '#4c9be6', '#d3efff', horizon=HOR) for (x, y, w) in [(300, 120, 520), (820, 70, 380), (1650, 110, 300)]: wisp = a.poly(spline([(x - w / 2, y + 10), (x - w / 4, y - 8), (x + w / 3, y - 4), (x + w / 2, y + 6), (x, y + 16), (x - w / 2, y + 10)], 10)) a.fill(blur(wisp, 6), '#ffffff', 0.45) a.cumulus(1330, HOR - 20, 980, 560, seed=3) a.cumulus(330, HOR - 10, 640, 240, seed=4) a.cumulus(760, HOR - 5, 360, 130, seed=5) a.stage('sky') # ---- distant hills and fields hills = [(0, HOR + 12)] + [(x, HOR - 22 - 26 * np.sin(x / 210 + 0.5) - 12 * fbm1d(40, 8, 3, 9)[i]) for i, x in enumerate(np.linspace(0, 1920, 40))] + [(1920, HOR + 12)] a.fill(a.poly(hills), '#5f8fae') a.fill(a.poly(hills) * (a.YY > HOR - 30), '#4d7c9c', 0.8) a.field(HOR, colours=('#86cf5e', '#62b54f'), bands=9) # rice-paddy rows converging on the vanishing point (thin darker lines) for k in range(-18, 19): if k == 0: continue x_bottom = VX + k * 160 a.lines([(VX + k * 3, VY + 2), (x_bottom, 1080)], 1.6, '#4f9a44', 0.5) a.stage('fields') # ---- the road road = [(VX - 6, VY), (VX + 6, VY), (1260, 1080), (620, 1080)] a.fill(a.poly(road), '#cfc6b2') a.fill(a.poly([(VX, VY), (VX + 6, VY), (1260, 1080), (1000, 1080)]), '#b9b09b', 0.7) # shaded half for side in (-1, 1): x_b = 1260 if side > 0 else 620 a.lines([(VX + side * 5, VY), (x_b - side * 26, 1080)], 5, '#f4f1e8', 0.9) # power poles in perspective along the right side, with sagging wires tops = [] for i in range(7): t = (0.82 ** (i * 1.6)) x = VX + 40 + (1640 - VX - 40) * t base = VY + (1040 - VY) * t hgt = 30 + 560 * t tops.append(a.pole(x, base, hgt, width=max(2, 12 * t))) for i in range(len(tops) - 1): for dy in (0, 12): a.wire((tops[i][0] - 30 * (0.82 ** (i * 1.6)), tops[i][1] + dy), (tops[i + 1][0], tops[i + 1][1] + dy * 0.8), sag=40 * (0.82 ** (i * 1.6)), width=1.8) a.wire((tops[0][0], tops[0][1]), (1920 + 40, tops[0][1] - 120), sag=60, width=2.2) a.wire((tops[0][0], tops[0][1] + 12), (1920 + 40, tops[0][1] - 90), sag=60, width=2.2) a.stage('road') # ---- tall grass in the foreground corners for (x0, x1) in [(0, 480), (1500, 1920)]: for _ in range(90): x = rng.uniform(x0, x1); h = rng.uniform(80, 200) lean = rng.normal(0, 30) blade = [(x - 7, 1085), (x + lean, 1085 - h), (x + 7, 1085)] a.fill(a.poly(blade), rng.choice(['#3f8f3c', '#4ea447', '#2f7331'])) # ---- girl in a straw hat, seen from behind (clean line art + two-tone cel shading) GX, GY = 880, 950 # feet INK = '#3b2d3c' legs = [[(GX - 24, GY - 110), (GX - 22, GY)], [(GX + 20, GY - 110), (GX + 22, GY)]] for L in legs: a.lines(L, 22, '#f2cfb4'); a.lines(L, 22, '#e3b393', 0.35) a.fill(a.poly([(GX - 60, GY - 4), (GX + 64, GY - 4), (GX + 60, GY + 10), (GX - 58, GY + 10)]), '#000000', 0.12) # ground shadow dress = [(GX - 48, GY - 330), (GX + 48, GY - 330), (GX + 100, GY - 96), (GX - 100, GY - 96)] a.fill(a.poly(dress), '#fbfbff') a.fill(a.poly([(GX + 10, GY - 330), (GX + 48, GY - 330), (GX + 100, GY - 96), (GX + 22, GY - 96)]), '#c9d6f2') # shadow side for fx in (-40, 0, 38): a.lines([(GX + fx * 0.4, GY - 240), (GX + fx, GY - 98)], 1.8, '#9fb2dc') a.lines(dress, 3, INK, closed=True) for side in (-1, 1): # arms arm = [(GX + side * 46, GY - 322), (GX + side * 64, GY - 250), (GX + side * 70, GY - 185)] a.lines(arm, 16, '#f2cfb4'); a.lines(arm, 16, '#e3b393', 0.3 if side < 0 else 0.0) hair = spline([(GX - 40, GY - 360), (GX - 60, GY - 300), (GX - 56, GY - 230), (GX - 30, GY - 205), (GX, GY - 214), (GX + 30, GY - 205), (GX + 56, GY - 230), (GX + 60, GY - 300), (GX + 40, GY - 360)], 10).tolist() a.fill(a.poly(hair + [(GX, GY - 400)]), '#5a3b2e') for hx in (-26, -8, 12, 30): a.lines(spline([(GX + hx * 0.6, GY - 350), (GX + hx, GY - 300), (GX + hx * 1.1, GY - 250)], 6), 2, '#8a5a44', 0.8) a.lines(hair, 3, INK) # straw hat: crown, brim (cel shaded), red ribbon brim = [(GX + 118 * np.cos(t), GY - 372 + 34 * np.sin(t)) for t in np.linspace(0, 2 * np.pi, 80, endpoint=False)] a.fill(a.poly(brim), '#eed094') a.fill(a.poly(brim) * (a.YY > GY - 372), '#d9b36e', 0.9) crown = spline([(GX - 58, GY - 380), (GX - 52, GY - 430), (GX, GY - 448), (GX + 52, GY - 430), (GX + 58, GY - 380)], 10).tolist() a.fill(a.poly(crown + [(GX, GY - 372)]), '#f3da9f') a.fill(a.poly([(GX - 58, GY - 392), (GX + 58, GY - 392), (GX + 58, GY - 376), (GX - 58, GY - 376)]), '#d64553') a.lines(brim, 3, INK, closed=True); a.lines(crown, 3, INK) a.stage('girl') # ---- light: sun behind the upper left, bloom, sparkles, vignette a.sun_flare(470, 110, strength=1.0) a.sparkles(28, box=(250, 40, 900, 420)) a.bloom(0.86, 20, 0.35) a.vignette(0.2) a.save(out, stages_dir=stages) print('saved', out)examples/artdeco_express.jpg449 KBbdd9d364182dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/artdeco_express.py4.5 KBbea08ff37e36upstream ↗
"""Example (Art Deco / Streamline poster): NIGHT EXPRESS — a 1930s airbrushed railway poster for a (fictional) overnight train from the city to the coast. It tells one small thing: the night express pulls out at 23:40 -- the clock on the tallest tower says twenty to twelve -- and runs out of the lit city over the river viaduct toward the coast, sleeping-car blinds already half drawn. A full moon rises over the stepped skyline inside a sunburst of alternating rays, searchlights sweep the sky, the river mirrors it all in ripple dashes; the streamlined locomotive (bullet nose, gold speed stripes that converge on the nose) comes at us with its headlamp beam. Every surface is a sprayed gradient through a cut frisket -- no outlines anywhere. No image model. python3 artdeco_express.py [out.jpg] [--stages DIR] """ import os, sys, time sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) from artdeco import ArtDeco, GOLD, IVORY out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'artdeco_express.jpg' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None t0 = time.time() a = ArtDeco(1920, 1080, seed=1938) W, H = a.W, a.H HZ = 690 # horizon row (the camera is level) MX, MY, MR = 1190, 432, 100 # the moon # ---- 1. the sky: one long airbrushed fade, midnight blue down to the green glow over the city a.sky([(0, '#060d24'), (0.38, '#0d1f3f'), (0.72, '#1b4a5c'), (1, '#4c9488')], bottom=HZ) a.stage('sky') # ---- 2. moonburst: alternating rays, then the moon and its halo a.burst(MX, MY, rays=40, contrast=0.13, reach=1300, colour='#cfeadb', glow=0.55, phase=4.5, bottom=HZ) a.moon(MX, MY, MR) a.stage('moonburst') # ---- 3. the far city in the haze, searchlights behind it for x, ang, ln in ((1560, 116, 900), (840, 62, 820), (1720, 98, 700)): a.searchlight(x, HZ - 210, ang, ln, spread=1.7, strength=0.2) far = [(640, 70, 150), (700, 60, 210), (760, 80, 120), (905, 70, 230), (990, 64, 170), (1060, 76, 220), (1300, 70, 200), (1370, 60, 250), (1590, 80, 230), (1680, 60, 280), (1760, 90, 190), (1850, 70, 250)] for x, w, h in far: a.tower(x, HZ, [(w, h * 0.6), (w * 0.72, h * 0.28), (w * 0.45, h * 0.12)], far=0.72, flutes=3, windows=0.12, light=-1 if x < MX else 1, ledge=2) a.stage('far_city') # ---- 4. the near towers: set-backs, fluting, lit windows; the clock tower says 11:40 a.tower(820, HZ, [(120, 140), (92, 70), (60, 50)], flutes=4, windows=0.4, light=-1, spire=110, spire_w=22, far=0.25) a.tower(985, HZ, [(110, 190), (80, 80), (52, 46)], flutes=5, slits=4, light=-1, spire=60, far=0.2) a.tower(1290, HZ, [(96, 120), (70, 70)], flutes=4, windows=0.3, light=1, far=0.35) cx, cy = a.tower(1470, HZ, [(170, 170), (132, 80), (100, 64)], flutes=6, windows=0.45, light=1, ledge=3, top_windows=False) a.clock(cx, cy + 33, 23, 11, 40) # departure time: twenty to twelve top = a.crown(cx, cy, 100, steps=3) a.tower(cx, top + 3, [(6, 3)], mast=22, ledge=0) a.tower(1665, HZ, [(150, 160), (110, 110), (70, 56)], flutes=5, slits=5, light=1, spire=90, spire_w=20, far=0.15) a.tower(1835, HZ, [(140, 240), (96, 80)], flutes=4, windows=0.35, light=1, far=0.3) a.stage('towers') # ---- 5. the river: mirrors the sky and the city in ripple dashes a.water(HZ, stops=((0, '#1f5560'), (0.35, '#0f2c40'), (1, '#050b1d')), reflect=0.7) a.stage('river') # ---- 6-8. the streamliner on its viaduct: friskets, modelling, lights a.camera(f=1500, cx=960, horizon=HZ, height=12.0) r = a.express(nose=(-6.9, 23.8), vp_x=1180, cars=9, moon=(MX, MY)) a.frisket(r) a.stage('friskets') a.model(r) a.stage('modelling') a.lights(r, beam_len=760, reflect=False) a.stage('lights') # ---- 9. lettering, small print, gilt border title = 'NIGHT EXPRESS' cap = 124 wt = a.deco_width(title, cap, track=0.16) a.lettering(title, W / 2, 228, cap, track=0.16, anchor='m', shadow=(6, 6)) sw = a.caption('OVERNIGHT · FROM THE CITY TO THE COAST', W / 2, 286, 25, colour='#e9dcbc', track=0.42, anchor='ms') a.rule(W / 2 - wt / 2, W / 2 - sw / 2 - 28, 277, 2, GOLD) a.rule(W / 2 + sw / 2 + 28, W / 2 + wt / 2, 277, 2, GOLD) a.caption('DEPARTS 23:40', 1880 - 60, 1000, 30, colour=IVORY, track=0.36, anchor='rs') a.caption('SLEEPING CARS · DINING CAR · ARRIVES AT DAWN', 1880 - 60, 1036, 19, colour='#d8c9a4', track=0.38, anchor='rs') a.border() a.stage('lettering') # ---- the print a.finish() a.save(out, stages_dir=stages) print(f'{out} {time.time() - t0:.1f}s')examples/aurora_morning.jpg438 KBf089324c10ddupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/aurora_morning.py7.8 KBdd4bfcde697dupstream ↗
"""Example (aurora glassmorphism): 晨间计划 · Morning Plan — one weekday morning at 08:26, told by a stack of frosted-glass widgets over a sunrise-coloured aurora: the plan card (3 of 5 done, the deep-work block running now), a focus ring counting down that block, today's weather (a glossy sun behind a glass cloud), the focus settings (do-not-disturb on, rain noise at 40 %), the last seven days of focus time, and a reminder pill for the 9:00 stand-up. Warm gradients belong to the morning plan, cool ones to focus. No image model. python3 aurora_morning.py [out.jpg] [--stages DIR] """ import os, sys sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) from aurora import Aurora, INK, WARM, COOL, MINT, WHITE out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'aurora_morning.jpg' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None a = Aurora(1920, 1080, seed=5) # ---- the aurora: a sunrise wash, warm at the top, cool below, one pale ribbon of light across it a.backdrop(base='#f6f2fb', blobs=[(260, 150, 560, 380, '#ffb28c', 1.0), # apricot (980, 40, 640, 300, '#ffe29a', 0.9), # butter (the sun is up) (1700, 220, 520, 440, '#bba2ff', 1.0), # lilac (880, 640, 520, 400, '#ff9cc9', 0.8), # pink (200, 930, 600, 400, '#86cbff', 1.0), # sky (1640, 960, 620, 380, '#8feccd', 0.9), # mint (1330, 600, 420, 320, '#a7bfff', 0.7)], # periwinkle ribbons=[([(-120, 560), (420, 520), (1000, 600), (1500, 600), (2040, 470)], 70, '#fff8f0', 1.4), ([(-100, 1080), (600, 1020), (1300, 1010), (2040, 1000)], 60, '#c6b2ff', 1.0), ([(900, -40), (1320, 60), (1700, 40), (2040, -20)], 60, '#ffd0e4', 0.9)], grain=0.019) a.sparkles(46) a.stage('aurora') a.orb(596, 150, 104, ('#fff0dc', '#ffa2b8', '#8e6bff')) a.orb(1700, 628, 100, ('#e3f7ff', '#6cc0ff', '#6a55ff')) a.orb(1175, 1000, 58, ('#f4fff9', '#8fe8c8', '#4f9dff')) a.stage('orbs') # ---- weather (behind the plan card) w = a.glass(130, 110, 590, 500, radius=38) a.text('今天 · 晴', w.x0 + 40, w.y0 + 62, 24, INK, 'medium', alpha=0.62) a.text('21°', w.x0 + 34, w.y0 + 176, 104, INK, 'light', spacing=-3) a.sun(w.x0 + 286, w.y0 + 100, 46) a.cloud(w.x0 + 318, w.y0 + 146, 128) a.text('微风 · 最高 26° 最低 15°', w.x0 + 40, w.y0 + 226, 21, INK, 'regular', alpha=0.6) pts = a.spark(w.x0 + 58, w.y0 + 272, w.x0 + 330, w.y0 + 318, [21, 22, 24, 25, 26], WARM, 3, fill=0.16, dots=(0,)) for i, (x, y) in enumerate(pts): a.text('现在' if i == 0 else f'{8 + i}时', x, w.y0 + 364, 18, INK, 'semibold' if i == 0 else 'regular', 'ms', alpha=0.85 if i == 0 else 0.5) a.stage('weather') # ---- focus settings (behind the plan card) c = a.glass(130, 560, 590, 970, radius=38) a.text('专注设置', c.x0 + 40, c.y0 + 64, 28, INK, 'semibold') a.text('FOCUS', c.x0 + 40, c.y0 + 96, 15, INK, 'semibold', alpha=0.4, spacing=3) a.text('勿扰模式', c.x0 + 40, c.y0 + 160, 24, INK, 'medium') a.text('只有闹钟会响', c.x0 + 40, c.y0 + 190, 18, INK, alpha=0.5) a.toggle(c.x0 + 270, c.y0 + 142, on=True) a.divider(c.x0 + 40, c.x0 + 350, c.y0 + 226) a.text('自动回复', c.x0 + 40, c.y0 + 272, 24, INK, 'medium') a.toggle(c.x0 + 270, c.y0 + 246, on=False) a.text('白噪音 · 雨声', c.x0 + 40, c.y0 + 334, 22, INK, 'medium', alpha=0.85) a.text('40%', c.x0 + 350, c.y0 + 334, 20, INK, 'medium', 'rs', alpha=0.55) a.slider(c.x0 + 44, c.x0 + 346, c.y0 + 368, 0.4) a.stage('settings') # ---- the plan: the card this morning is about p = a.glass(520, 200, 1190, 990, radius=44, blur=30, elevation=34, shadow=0.3) X0, X1 = p.x0 + 56, p.x1 - 56 a.stage('plan_glass') a.text('MORNING PLAN', X0, p.y0 + 66, 16, INK, 'semibold', alpha=0.45, spacing=3.5) a.text('周三', X1, p.y0 + 66, 20, INK, 'medium', 'rs', alpha=0.5) a.text('晨间计划', X0, p.y0 + 134, 56, INK, 'semibold') a.text('7:00 – 9:30 · 已完成 3 / 5', X0, p.y0 + 176, 22, INK, alpha=0.6) a.rrect(X0, p.y0 + 204, X1, p.y0 + 216, 6, WHITE, 0.5) a.rrect(X0, p.y0 + 204, X0 + (X1 - X0) * 0.6, p.y0 + 216, 6, grad=WARM) a.text('60%', X1, p.y0 + 176, 22, INK, 'semibold', 'rs', alpha=0.75) rows = [('07:00', '起床,喝一杯温水', '', 'done'), ('07:15', '拉伸', '10 分钟', 'done'), ('07:30', '早餐 · 燕麦和水果', '', 'done'), ('08:00', '深度工作 · 写方案', '', 'now'), ('09:00', '团队站会', '15 分钟', 'todo')] y = p.y0 + 286 cx = X0 + 20 for i, (t, title, note, st) in enumerate(rows): if i < len(rows) - 1: # the thread between the checks a.line([(cx, y + 26), (cx, y + 84 - 26)], 3, WHITE, 0.8 if st == 'done' else 0.5) if st == 'now': a.pill(X0 - 16, y - 38, X1 + 16, y + 38, blur=6, tint=0.5, shadow=0.14) a.check(cx, y, 20, 'now', COOL, frac=0.59) a.text(t, X0 + 58, y, 21, INK, 'semibold', 'lm', alpha=0.8) a.text(title, X0 + 146, y, 27, INK, 'semibold', 'lm') a.rrect(X1 - 128, y - 20, X1, y + 20, 20, grad=COOL, angle=0, shadow=0.15) a.text('进行中', X1 - 64, y, 19, WHITE, 'semibold', 'mm') else: a.check(cx, y, 20, st, WARM) al = 1.0 if st == 'done' else 0.9 a.text(t, X0 + 58, y, 21, INK, 'medium', 'lm', alpha=0.5) a.text(title, X0 + 146, y, 27, INK, 'medium', 'lm', alpha=0.62 if st == 'done' else 0.92) if note: a.text(note, X1, y, 20, INK, 'regular', 'rm', alpha=0.45) y += 84 a.pill(X0, p.y1 - 96, X0 + 170, p.y1 - 50, tint=0.5) a.text('+ 添加事项', X0 + 85, p.y1 - 73, 19, INK, 'medium', 'mm', alpha=0.8) a.pill(X0 + 186, p.y1 - 96, X0 + 356, p.y1 - 50, tint=0.5) a.text('明早照旧', X0 + 271, p.y1 - 73, 19, INK, 'medium', 'mm', alpha=0.8) a.stage('plan') # ---- focus ring: the deep-work block, 18:24 left of 45 minutes f = a.glass(1150, 96, 1570, 576, radius=40, elevation=30, shadow=0.3) a.text('专注中', f.x0 + 40, f.y0 + 62, 26, INK, 'semibold') a.text('45 分钟', f.x1 - 40, f.y0 + 62, 20, INK, 'medium', 'rs', alpha=0.5) a.ring(f.cx, f.y0 + 238, 118, 20, 26.6 / 45, COOL) a.text('18:24', f.cx, f.y0 + 250, 58, INK, 'semibold', 'ms', spacing=-1) a.text('深度工作 · 写方案', f.cx, f.y0 + 290, 19, INK, 'regular', 'ms', alpha=0.55) a.pill(f.x0 + 40, f.y1 - 92, f.cx - 10, f.y1 - 40, tint=0.5) a.text('暂停', (f.x0 + 40 + f.cx - 10) / 2, f.y1 - 66, 20, INK, 'medium', 'mm', alpha=0.8) a.rrect(f.cx + 10, f.y1 - 92, f.x1 - 40, f.y1 - 40, 26, grad=COOL, angle=0, shadow=0.18) a.text('休息 5 分钟', (f.cx + 10 + f.x1 - 40) / 2, f.y1 - 66, 20, WHITE, 'semibold', 'mm') a.stage('focus') # ---- the last seven days of focus time k = a.glass(1230, 636, 1810, 976, radius=38, blur=20) a.text('近 7 天专注', k.x0 + 40, k.y0 + 60, 24, INK, 'semibold') a.text('15.2', k.x0 + 40, k.y0 + 132, 60, INK, 'semibold', spacing=-1) wv = a.text_width('15.2', 60, 'semibold', -1) a.text('小时', k.x0 + 48 + wv, k.y0 + 132, 22, INK, 'medium', alpha=0.55) a.rrect(k.x0 + 40, k.y0 + 156, k.x0 + 150, k.y0 + 190, 17, grad=MINT, angle=0) a.text('↑ 18%', k.x0 + 95, k.y0 + 173, 18, WHITE, 'semibold', 'mm') a.bars(k.x0 + 244, k.y0 + 66, k.x1 - 30, k.y1 - 74, [2.8, 3.1, 1.2, 0.6, 3.6, 2.5, 1.4], 4.0, ['24', '25', '26', '27', '28', '29', '今天'], highlight=6, label_size=18) a.text('较上周', k.x0 + 162, k.y0 + 173, 18, INK, 'regular', 'lm', alpha=0.5) a.stage('week') # ---- the reminder pill at the top n = a.pill(660, 56, 1100, 146, blur=14, tint=0.4, shadow=0.22, elevation=18) a.app_icon(n.x0 + 22, n.y0 + 17, 56, WARM, '9', 30) a.text('9:00 团队站会', n.x0 + 94, n.y0 + 40, 22, INK, 'semibold', 'lm') a.text('还有 34 分钟 · 会议室 B', n.x0 + 94, n.y0 + 66, 17, INK, 'regular', 'lm', alpha=0.55) a.text('现在', n.x1 - 30, n.y0 + 40, 16, INK, 'regular', 'rm', alpha=0.45) a.save(out, stages)examples/ballpoint_board_game.jpg589 KBe1d51279334fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/ballpoint_board_game.py34 KB4e868c43ef0eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/bauhaus_form_colour.jpg491 KB3366fb8ba52aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/bauhaus_form_colour.py4.5 KB19e761034410upstream ↗
"""Example (Bauhaus geometric poster): 形与色 · Form & Colour — a screen-printed poster for a (fictional) foundation- course lecture. It diagrams one small idea: the sharper a shape's corners, the brighter its colour. Three shapes stand on a heavy black ground line, each in its colour: the triangle (three acute 60° corners) in yellow, the square (four right angles) in red, the circle (no corners at all) in blue, with angle marks drawn over them and big corner counts 3 / 4 / 0 underneath. Title 形与色, the thesis knocked out of a black bar, the lecture details, a construction grid, register targets, crop marks, a colour bar and a pencilled edition number. Printed screen by screen, light to dark: tint grid -> yellow -> red -> blue -> black. No image model. python3 bauhaus_form_colour.py [out.jpg] [--stages DIR] """ import os, sys, time sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) import numpy as np from bauhaus import Bauhaus, YELLOW, RED, BLUE, BLACK out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'bauhaus_form_colour.jpg' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None t0 = time.time() b = Bauhaus(1920, 1080, seed=19, misreg=2.6) W, H = b.W, b.H # ---- the sheet: cream stock, a 15 x 8 grid of 120 px modules inside a 60 px printer's margin b.paper(margin=60, module=120) GROUND = 840 # top of the black ground line (half a module under row 6) b.marks(targets=[(960, 30), (960, 1050), (30, 540), (1890, 540)], bar=(1712, 1040)) b.stage('paper') # ---- screen 0: pale tint, the construction grid b.grid() b.stage('grid') # ---- screen 1: yellow -- the triangle, three acute corners TX0, TX1 = 60, 600 b.pull(b.triangle(TX0, TX1, GROUND), YELLOW) b.stage('yellow') # ---- screen 2: red -- the square, four right angles SX0, SX1 = 720, 1200 b.pull(b.rect(SX0, GROUND - (SX1 - SX0), SX1, GROUND), RED) b.stage('red') # ---- screen 3: blue -- the circle, no corners CR = 240 CX, CY = 1560, GROUND - CR # the circle's centre and radius are cut out of the blue stencil, so they print as bare paper radius = np.maximum.reduce([b.circle(CX, CY, 12), b.bar(CX, CY, CX + CR - 18, CY, 7), b.text_mask('r', CX + CR / 2 - 6, CY - 20, 46, anchor='ms')]) b.pull(b.circle(CX, CY, CR), BLUE, knock=radius) b.stage('blue') # ---- screen 4: black -- ground line, thesis bar (type knocked out), angle marks b.pull(b.rect(60, GROUND, 1860, GROUND + 26), BLACK) knock = np.maximum(b.text_mask('角越尖,色越亮。', 752, 258, 58, font='cjk'), b.text_mask('SHARPER CORNERS · BRIGHTER COLOUR', 1830, 250, 20, anchor='rs', spacing=3.2)) b.pull(b.rect(720, 190, 1860, 282), BLACK, knock=knock) # triangle: the 60° corner b.pull(b.arc(TX0, GROUND, 96, 0, 60, 6), BLACK) b.text('60°', TX0 + 118, GROUND - 40, 34) # square: the right angle b.pull(np.maximum(b.bar(SX0, GROUND - 80, SX0 + 80, GROUND - 80, 6, cap='square'), b.bar(SX0 + 80, GROUND - 80, SX0 + 80, GROUND, 6, cap='square')), BLACK) b.text('90°', SX0 + 104, GROUND - 40, 34) b.stage('bars') # ---- black: the title b.text('形与色', 52, 262, 210, font='cjk') b.text('FORM & COLOUR', 720, 150, 56, spacing=2) b.stage('title') # ---- black: lecture details and the three captions under the ground line b.text('基础课 · 第 3 讲', 1860, 104, 32, font='cjk', anchor='rs') b.text('10 月 16 日 周五 19:00 · 北楼 204', 1860, 146, 23, font='cjk', anchor='rs') for x, n, l1, l2, l3 in [(TX0, '3', '三个锐角 → 黄', '最尖,所以最亮', 'TRIANGLE · 60° · YELLOW'), (SX0, '4', '四个直角 → 红', '最稳,所以最重', 'SQUARE · 90° · RED'), (1320, '0', '没有角 → 蓝', '最静,所以最深', 'CIRCLE · NO CORNERS · BLUE')]: b.text(n, x - 4, 1012, 150) nx = x + b.text_width(n, 150) + 26 b.text(l1, nx, 934, 34, font='cjk') b.text(l2, nx, 974, 24, font='cjk') b.text(l3, nx, 1008, 15, spacing=2.4) # margin slugs b.text('形与色 · FORM & COLOUR — 基础课讲座海报', 86, 38, 14, font='cjk_book', spacing=1.2) b.text('SHEET 03 / 12 · SCREEN PRINT · Y R B K', 1834, 38, 13, anchor='rs', spacing=2.2) b.text('丝网四色 · 先浅后深 · 黄 → 红 → 蓝 → 黑', 200, 1057, 14, font='cjk_book', spacing=1.2) # ---- after printing: the edition number in pencil b.pencil('7/40', 86, 1060, 28, pressure=0.85) b.save(out, stages) print(out, f'{time.time() - t0:.1f}s')examples/bawansiqian.jpg414 KB8285aa27d94bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/bawansiqian.py2.2 KB47ee579fd58aupstream ↗
"""范例:「八万四千法门」— 很多条路,同一个山顶。纯代码水墨,约 3 秒出图。 python3 bawansiqian.py [out.png] [--stages DIR] """ import os, sys sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) from inkpaint import Painting out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'bawansiqian.png' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None p = Painting(1920, 1080, seed=84000) p.paper() p.stage('宣纸') # far -> near: each wash occludes what is behind it far = p.ridge(560, peaks=[(420, 150, 330), (1650, 110, 260)], rough=26, rough_scale=220, seed=11) p.wash(far, dens=0.16, decay=170, tex=140, edge=0.25, mist_y=700, mist_h=110, seed=21) mid = p.ridge(690, peaks=[(700, 120, 260), (1580, 150, 300)], rough=30, rough_scale=160, seed=12) p.wash(mid, dens=0.26, decay=150, tex=110, edge=0.3, mist_y=800, mist_h=90, seed=31) p.stage('远山') SX, SY = 1130, 252 main = p.peak(SX, SY, height=560, left_w=360, right_w=470, shoulders=[(SX + 250, 70, 90), (SX - 300, 45, 110)], seed=13) p.wash(main, dens=0.46, decay=240, tex=90, edge=0.45, mist_y=920, mist_h=80, seed=41) p.cun(main, SX - 600, SX + 600, n=150, shadow_x=SX, max_y=960) p.moss(main, SX - 600, SX + 620, n=70) p.ridge_line(main, SX - 680, SX + 640) p.stage('主峰') paths = p.trails(main, (SX, SY), n=16, red_index=7, seed=5) p.mist(960, 70, 0.8) p.mist(760, 45, 0.55) for (i, t) in [(3, 0.45), (9, 0.35), (12, 0.6), (5, 0.3), (7, 0.62)]: q = paths[i][int(t * (len(paths[i]) - 1))] p.traveller(q[0], q[1]) p.pagoda(SX, SY) p.stage('小路') rock = 800 + 280 * ((p.xs / 640) ** 1.6) + 30 * __import__('inkpaint').fbm1d(1920, 70, 4, 91) rock[p.xs > 640] = 2000 p.rock(rock) p.pine((250, 1000), (330, 600), bend=70, branches=[((304, 760), (480, 705), -34), ((318, 690), (170, 648), 28), ((326, 640), (455, 588), -22), ((292, 830), (150, 808), 22)], extra_tufts=[(335, 590), (395, 612)]) p.stage('松石') p.sun(1500, 190, 46) p.birds([(1330, 300, 1.0), (1370, 322, 0.8), (1300, 334, 0.7)]) p.title_vertical('八万四千', 150, 150, 92) p.seal('法门', 262, 176, 40) p.save(out, stages_dir=stages) print('saved', out)examples/blackfigure_games.jpg347 KB88e7b56ca842upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/blackfigure_games.py4.6 KBebfe58a2eec9upstream ↗
"""Example (Greek black-figure vase / 古希腊黑绘陶瓶): 赛跑与赛车 · Games on a Vase. An Attic black-figure neck amphora on a museum plinth, and beside it the two friezes that run all the way round it, unrolled flat on a panel. Upper frieze: a four-horse chariot race -- on the front (the half you can see) the leader and, right on his tail, the challenger whose far trace horse is white; round the back the turning post, the straggler, the prize tripod and the official holding the victor's wreath. Lower frieze: the foot race -- five sprinters on the front, the finish post, the umpire with his forked rod, a table with the prize (a little amphora just like this one) and two stragglers round the back. Neck: palmettes and lotus; shoulder: black and red tongues; a running meander between the friezes; rays above the foot. Draw-on stages: thrown clay pot -> wheel-painted bands -> ornament -> silhouettes in slip -> incision -> added red and white -> firing (the slip turns glossy black) -> 2,500 years -> the rollout panel. No image model. python3 blackfigure_games.py [out.jpg] [--stages DIR] """ import os, sys, time sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) from blackfigure import BlackFigure out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'blackfigure_games.jpg' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None t0 = time.time() bf = BlackFigure(1920, 1080, seed=8) bf.museum(wall='#1c2427', plinth='#cbc2b4') H = 930 pot = bf.throw(cx=470, foot=990, height=H) Y = lambda f: f * H # heights on the pot as fractions of its height bf.stage('thrown') # ---- on the wheel: lip, neck, foot and the frame lines of every frieze pot.paint_handles() for a, b in [(0, .062), (.062, .080), (.212, .244), (.320, .326), (.570, .576), (.601, .606), (.722, .745), (.751, .756), (.850, .928), (.940, .994)]: pot.band(Y(a), Y(b)) bf.stage('wheel_bands') # ---- ornament pot.palmettes(Y(.084), Y(.210), n=5) pot.tongues(Y(.247), Y(.316)) pot.meander(Y(.578), Y(.600)) pot.rays(Y(.756), Y(.850)) pot.paint() bf.stage('ornament') # ---- upper frieze: the chariot race (x = arc length round the pot from the left handle; front half = 0..C/2) cz = pot.zone(Y(.326), Y(.570)) hw = 146 cz.quadriga(262, hw, white_horse=0, red_manes=(2,), bends=(0.20, -0.06, 0.12, -0.04)) cz.letters('ΗΟ ΠΑΙΣ', 262 - 0.62 * hw, cz.y0 + 16, size=13) cz.quadriga(700, hw, red_manes=(1, 3), bends=(0.14, -0.04, 0.07, -0.10)) cz.letters('ΚΑΛΟΣ', 700 - 0.55 * hw, cz.y0 + 16, size=13) cz.column(965, height=(cz.y1 - cz.y0) * 0.9) cz.letters('ΤΕΡΜΑ', 995, cz.y0 + 40, size=12, vertical=True) cz.bird(1275, cz.y0 + 34, size=44, facing=1, flap=0.1) cz.quadriga(1300, hw * 0.97, red_manes=(2,), bends=(0.04, 0.12, -0.05, 0.08)) cz.tripod(1540, height=(cz.y1 - cz.y0) * 0.6) cz.judge(1665, height=(cz.y1 - cz.y0) * 0.86, facing=-1, holds='wreath') cz.letters('ΚΑΛΟΣ', 1735, cz.y0 + 40, size=12, vertical=True, retro=True) # ---- lower frieze: the foot race rz = pot.zone(Y(.606), Y(.722)) for i, x in enumerate((95, 236, 377, 518, 660)): rz.runner(x, phase=i % 2, beard=(i == 2), back_arm='up' if i % 2 else 'down') rz.column(840, height=(rz.y1 - rz.y0) * 0.78, red=False) rz.judge(915, height=(rz.y1 - rz.y0) * 0.86, facing=-1, holds='rod') rz.prize_table(1020) rz.runner(1240, phase=1, back_arm='up') rz.runner(1410, phase=0, back_arm='down', beard=True) pot.paint() bf.stage('silhouettes') pot.incise() bf.stage('incision') pot.add_colour() bf.stage('added_colours') pot.fire() bf.stage('fired') # ---- 2,500 years: flaking white, encrustation and root marks, chips, a mended loss, a misfired patch pot.age(mend=(282, Y(.69), 34, 24), misfire=(pot.TW * 0.6, Y(.47), 70), chips=7, roots=14) bf.stage('aged') # ---- the panel: both friezes unrolled, front half and back half bands = [(Y(.326), Y(.576)), (Y(.576), Y(.606)), (Y(.606), Y(.728))] bf.panel((905, 52, 1872, 1028), title='赛跑与赛车', subtitle='黑绘颈柄双耳瓶 · 瓶身两圈饰带展开', english='Black-figure neck amphora: the two friezes unrolled', greek='ΤΕΘΡΙΠΠΟΝ · ΔΡΟΜΟΣ') bf.rollout(pot, bands, 1388, 258, scale=0.82, half=0, caption='A 面 · 正面(瓶上看得见的半圈)', ticks=('0°', '180°')) bf.rollout(pot, bands, 1388, 630, scale=0.82, half=1, caption='B 面 · 背面(转到瓶后才看得见)', ticks=('180°', '360°')) bf.legend(945, 1003, [('赤陶', 'clay'), ('黑釉', 'black'), ('刻线', 'incision'), ('加红', 'red'), ('加白', 'white')]) bf.save(out, stages) print(out, f'{time.time() - t0:.1f}s')examples/bluebook_shared_umbrella.jpg830 KBc7c2f385b816upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/bluebook_shared_umbrella.py32 KB0e2ebe1f5c86upstream ↗
"""Example (blue picture book): 借伞 · The Shared Umbrella -- one spread of a soft-blue modern picture book. Soft blue rain at a tiny bus stop. The shelter is far too small for a huge, shy, fluffy white bear, so a small girl in a blue raincoat stretches both arms as high as they will go and holds her coral-red umbrella over him. It covers exactly one thing: his nose. The rain runs off his ears and the top of his head, it lands on her own coral hair too, and she does not mind -- she is looking up at him, very pleased. He looks down at his paws, blushing. Under the empty shelter a snail has the whole dry bench to itself; in the big puddle by the lamppost a duck and two ducklings are having the best day of their lives. Drawn the way the illustrator works: blank paper -> blue colour blocks (sky block that stops short of the page edge, misty trees, bushes, coat, shelter, puddles) -> loose ink line -> dark scribbled masses -> coral accents and cheeks -> chalky whites -> rain, splashes and speckle -> printed on the page (gutter fold, page numbers). --stages writes those steps as snapshots for the draw-on. No image model. python3 bluebook_shared_umbrella.py [out.jpg] [--stages DIR] """ import os, sys, time sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) import numpy as np from bluebook import BlueBook, INK from core import blur, smoothstep, noise2d W, H = 1920, 1080 GUTTER = 960 RAIN_ANG = 80.0 # falling a little to the right SLANT = 1 / np.tan(np.deg2rad(RAIN_ANG)) def base_y(x): """the wavy line where the bushes meet the pavement""" return 906 + 7 * np.sin(np.asarray(x, np.float32) / 53.0) + 4 * np.sin(np.asarray(x, np.float32) / 17.0 + 1) # ---------------------------------------------------------------- the umbrella, tilted toward the bear TILT = np.deg2rad(25) AX = np.array([np.sin(TILT), -np.cos(TILT)]) # shaft axis, handle -> tip PX = np.array([np.cos(TILT), np.sin(TILT)]) # across the canopy RC = np.array([1300.0, 420.0]) # centre of the rim CAN_R, CAN_H = 134.0, 94.0 def at(u, w): """umbrella frame -> canvas: u across the canopy, w up the shaft""" return RC + PX * u + AX * w def canopy_pts(): th = np.linspace(0, np.pi, 40) dome = [at(CAN_R * np.cos(t), CAN_H * np.sin(t) ** 0.9) for t in th] # right rim -> tip -> left rim us = np.linspace(-CAN_R, CAN_R, 6) rim = [] for a, b in zip(us[:-1], us[1:]): for t in np.linspace(0, 1, 7)[1:]: rim.append(at(a + (b - a) * t, -9 * np.sin(np.pi * t))) return np.array(dome + rim, np.float32) def rib(ui): t = np.linspace(0, 1, 12) return np.array([at(ui * np.sin(x * np.pi / 2), CAN_H * np.cos(x * np.pi / 2) ** 0.9) for x in t], np.float32) class Spread: def __init__(self, b): self.b = b self.YY, self.XX = np.mgrid[0:H, 0:W].astype(np.float32) self.shapes() # ============================================================ shapes def shapes(self): b, X, Y = self.b, self.XX, self.YY S = self.S = {} # --- the bear: sitting, head tipped down-left, nose under the umbrella S['b_body'] = b.poly([(1430, 700), (1500, 600), (1640, 568), (1780, 610), (1858, 760), (1872, 900), (1820, 975), (1640, 990), (1470, 975), (1410, 880)]) S['b_head'] = b.ellipse(1585, 492, 168, 146, rot=-8) S['b_muz'] = b.ellipse(1416, 566, 92, 56, rot=-10) S['b_earL'] = b.ellipse(1492, 370, 40, 38); S['b_earR'] = b.ellipse(1690, 384, 38, 36) S['b_pawL'] = b.ellipse(1506, 742, 44, 34, rot=-25); S['b_pawR'] = b.ellipse(1556, 760, 40, 31, rot=18) S['b_footL'] = b.ellipse(1522, 962, 64, 30, rot=-6); S['b_footR'] = b.ellipse(1772, 968, 56, 27, rot=8) S['bear'] = np.maximum.reduce([S['b_body'], S['b_head'], S['b_muz'], S['b_earL'], S['b_earR'], S['b_footL'], S['b_footR']]) # --- the kid S['k_head'] = b.ellipse(1100, 652, 74, 70) S['k_ear'] = b.ellipse(1028, 668, 14, 16) S['k_hair'] = np.clip(S['k_head'] * smoothstep(636, 610, Y + 10 * np.sin((X - 1030) / 12.0)) + b.ellipse(1032, 618, 24, 19, rot=-30) + b.ellipse(1170, 610, 23, 18, rot=25), 0, 1) S['k_bunL'] = b.ellipse(1012, 596, 23, 17, rot=-35); S['k_bunR'] = b.ellipse(1190, 588, 22, 16, rot=30) S['k_coat'] = b.poly([(1078, 728), (1134, 728), (1150, 760), (1180, 884), (1106, 892), (1030, 884), (1060, 760)]) S['k_armR'] = b.band([(1146, 752), (1186, 690), (1212, 622)], 24, 19) # far arm, lower hand S['k_armL'] = b.band([(1128, 748), (1184, 664), (1226, 590)], 25, 19) # near arm, upper hand S['k_bootL'] = b.poly([(1066, 920), (1086, 920), (1090, 948), (1094, 958), (1048, 960), (1046, 948), (1064, 940)]) S['k_bootR'] = b.poly([(1112, 918), (1132, 918), (1134, 946), (1150, 952), (1150, 962), (1110, 962)]) S['kid'] = np.maximum.reduce([S['k_head'], S['k_ear'], S['k_hair'], S['k_bunL'], S['k_bunR'], S['k_coat'], S['k_armR'], S['k_armL'], b.band([(1080, 880), (1076, 930)], 12), b.band([(1118, 884), (1124, 930)], 12), S['k_bootL'], S['k_bootR']]) # --- the umbrella S['canopy'] = b.poly(canopy_pts(), smooth=False) # --- the bus stop, the lamp, the sign S['roof'] = b.poly([(512, 534), (908, 506), (914, 542), (508, 572)], smooth=False) S['seat'] = b.poly([(584, 796), (838, 792), (840, 812), (582, 816)], smooth=False) S['glass'] = b.poly([(572, 566), (864, 548), (866, 792), (570, 796)], smooth=False) S['bench'] = S['seat'] S['sign'] = b.ellipse(455, 398, 46, 46) S['lamp'] = b.poly([(152, 158), (198, 158), (206, 214), (144, 214)], smooth=False) # --- snail and ducks S['shell'] = b.ellipse(712, 762, 27, 25) S['slug'] = b.band([(668, 788), (700, 789), (740, 787), (762, 776), (770, 766)], 13, 17) S['snail'] = np.maximum(S['shell'], S['slug']) self.ducks = [(290, 978, 1.3), (436, 988, 0.74), (522, 996, 0.66)] # (x, y, size) S['ducks'] = np.zeros((H, W), np.float32) S['duck_parts'] = [] for (x, y, s) in self.ducks: body = b.poly([(x - 46 * s, y - 2 * s), (x - 30 * s, y - 24 * s), (x + 10 * s, y - 22 * s), (x + 36 * s, y - 10 * s), (x + 52 * s, y - 30 * s), (x + 44 * s, y + 4 * s), (x + 20 * s, y + 14 * s), (x - 30 * s, y + 12 * s)]) head = b.ellipse(x - 34 * s, y - 40 * s, 19 * s, 18 * s) bill = b.poly([(x - 50 * s, y - 42 * s), (x - 72 * s, y - 38 * s), (x - 70 * s, y - 31 * s), (x - 48 * s, y - 33 * s)]) S['duck_parts'].append((body, head, bill)) S['ducks'] = np.maximum.reduce([S['ducks'], body, head, bill]) # --- puddles self.puddles = [(330, 990, 262, 40, 3), (1300, 1006, 250, 36, 4), (770, 948, 112, 17, 5), (1840, 1016, 70, 14, 6)] S['puddles'] = np.maximum.reduce([b.blob(x, y, rx, ry, 0.06, sd) for x, y, rx, ry, sd in self.puddles]) # --- the rain shadow under the canopy (rain falls along RAIN_ANG) E1, E2 = at(-CAN_R, 0), at(CAN_R, 0) drop = lambda p: (p[0] + (975 - p[1]) * SLANT, 975) S['dry'] = np.maximum(b.poly([tuple(E1), tuple(E2), drop(E2), drop(E1)], smooth=False), S['canopy']) # --- bushes along the back self.bush_list = [(150, 820, 150, 92, 'blue', 11), (360, 800, 170, 108, 'teal', 12), (560, 832, 140, 76, 'blue', 13), (760, 812, 180, 100, 'teal', 14), (990, 826, 160, 90, 'blue', 15), (1190, 808, 190, 112, 'teal', 16), (1420, 830, 160, 84, 'blue', 17), (1620, 806, 190, 112, 'teal', 18), (1790, 830, 120, 84, 'blue', 19), (260, 868, 210, 56, 'teal', 20), (900, 872, 230, 52, 'teal', 21), (1500, 874, 260, 50, 'teal', 22)] S['bushes'] = [] for (x, y, rx, ry, col, sd) in self.bush_list: top = b.blob(x, y, rx, ry, 0.13, sd) base = (Y < base_y(X)) * (Y > y - ry * 0.2) * (np.abs(X - x) < rx * 0.92) S['bushes'].append((np.maximum(top, base.astype(np.float32)), col, sd)) S['front'] = np.maximum.reduce([S['bear'], S['kid'], S['canopy'], S['bench'], S['ducks'], S['snail'], S['glass']]) self.N = noise2d(H, W, 70, 3, 77) # ============================================================ 2 blue colour blocks def blue(self): b, S, X, Y = self.b, self.S, self.XX, self.YY keep_white = np.maximum.reduce([S['bear'], S['k_head'], S['k_hair'], S['k_bunL'], S['k_bunR'], S['k_ear'], S['canopy'], S['lamp'], S['ducks']]) b.block((62, 50, 1860, 906), 'powder', rough=10, corner=30, avoid=keep_white, halo=3, seed=31) # misty trees far behind trees = [(262, 600, 92, 118), (370, 650, 62, 80), (800, 560, 96, 130), (905, 640, 58, 76), (1760, 600, 86, 110)] far = np.zeros((H, W), np.float32) for i, (x, y, rx, ry) in enumerate(trees): far = np.maximum(far, b.blob(x, y, rx, ry, 0.22, 40 + i)) far = np.maximum(far, b.blob(x + rx * 0.35, y + ry * 0.25, rx * 0.6, ry * 0.55, 0.25, 60 + i)) far = np.maximum(far, b.band([(x + 4, y + ry * 0.5), (x - 2, 880)], 12, 20)) b.fill(far, '#a3c1e2', pressure=0.94, angle=-80, slip=0, loose=3, edge=9, dry_edge=0.65, mottle=0.12, streak=0.8, avoid=keep_white, halo=3, seed=41) for i, (x, y, rx, ry) in enumerate(trees): b.crayon([[(x - rx * 0.5 + k * rx * 0.33, y - ry * 0.4 + 16 * (k % 2)), (x - rx * 0.46 + k * rx * 0.35, y + ry * 0.55)] for k in range(4)], 'cornflower', width=7, pressure=0.55, dry=0.6, seed=50 + i) b.crayon([[(x + 2, y + ry * 0.2), (x - 1, 880)]], 'slate', width=8, pressure=0.6, dry=0.4, seed=55 + i) # bushes: one colour each, overlapping front = S['front'] for (m, col, sd) in S['bushes']: b.fill(m * (Y < base_y(X) + 4), col, pressure=0.95, angle=float(np.random.default_rng(sd).uniform(-75, -55)), loose=4, edge=10, dry_edge=0.6, mottle=0.12, avoid=front, halo=3, seed=sd) # shelter, sign, coat b.fill(S['glass'], '#cfe0f0', pressure=0.95, angle=80, slip=0, loose=2, edge=6, medium='gouache', alpha=0.82, seed=59) b.fill(S['roof'], 'teal', pressure=0.95, angle=-4, seed=60) b.fill(S['bench'] * (1 - S['snail']), 'cornflower', pressure=0.92, angle=-2, seed=61) b.fill(S['sign'], 'cobalt', pressure=0.95, angle=-30, seed=62) coat = np.maximum.reduce([S['k_coat'], S['k_armR'], S['k_armL']]) b.fill(coat, 'cobalt', pressure=0.95, angle=72, mottle=0.14, seed=63) b.fill(coat * smoothstep(1110, 1160, X + (Y - 760) * 0.3), 'deep', pressure=0.85, angle=70, slip=0, seed=64) # the bear's shadow side, pale and scratchy shade = S['bear'] * smoothstep(1740, 1830, X + 0.25 * (Y - 500) + 30 * np.sin(Y / 50)) b.fill(shade, 'mist', pressure=0.7, angle=60, loose=6, edge=20, dry_edge=0.85, slip=0, seed=65) under = S['bear'] * (blur(S['b_head'], 12) > 0.02) * (1 - S['b_head']) * (Y > 560) * (Y < 650) b.fill(under, 'mist', pressure=0.75, angle=10, loose=6, edge=12, dry_edge=0.8, slip=0, seed=66) b.fill(S['b_footL'] * (Y > 962) + S['b_footR'] * (Y > 966), 'mist', pressure=0.8, angle=0, seed=67) # puddles and the wet pavement b.fill(S['puddles'], 'blue', pressure=0.95, angle=4, loose=3, edge=10, dry_edge=0.6, avoid=S['ducks'], halo=2, slip=0, seed=70) for i, (x, y, rx, ry, sd) in enumerate(self.puddles): b.fill(b.blob(x - rx * 0.1, y + ry * 0.25, rx * 0.75, ry * 0.45, 0.1, sd + 9) * (1 - S['ducks']), 'deep', pressure=0.7, angle=2, slip=0, loose=3, seed=71 + i) r = np.random.default_rng(9) wet = [] for _ in range(26): x, y = r.uniform(80, 1840), r.uniform(925, 1050) L = r.uniform(40, 160) wet.append([(x, y), (x + L, y + r.uniform(-3, 3))]) b.crayon(wet, 'powder', width=7, pressure=0.6, dry=0.6, seed=72) # ============================================================ 3 the ink line def ink(self): b, S, X, Y = self.b, self.S, self.XX, self.YY # bear: fur silhouette in scalloped tufts, muzzle smooth b.fluff(S['b_head'] * (1 - S['b_muz']), 'ink', length=(18, 34), curl=0.55, width=4.2, seed=101) b.fluff(S['b_body'], 'ink', length=(20, 38), curl=0.5, width=4.2, avoid=np.maximum.reduce([blur(S['b_head'], 3) > 0.3, S['b_pawL'], S['b_pawR'], S['b_footL'] > 0.5, S['b_footR'] > 0.5, S['kid'] > 0.5]).astype(np.float32), seed=102) for e, (ex, ey, er) in ((S['b_earL'], (1492, 370, 40)), (S['b_earR'], (1690, 384, 38))): t = np.linspace(np.deg2rad(150), np.deg2rad(400), 30) b.ink(np.stack([ex + np.cos(t) * er, ey + np.sin(t) * er], 1), 4.4, seed=int(ex)) t = np.linspace(np.deg2rad(190), np.deg2rad(350), 14) b.ink(np.stack([ex + np.cos(t) * er * 0.55, ey + 4 + np.sin(t) * er * 0.5], 1), 2.6, seed=int(ex) + 1) t = np.linspace(np.deg2rad(95), np.deg2rad(335), 40) mx = 1416 + np.cos(t) * 92 * np.cos(np.deg2rad(-10)) - np.sin(t) * 56 * np.sin(np.deg2rad(-10)) my = 566 + np.cos(t) * 92 * np.sin(np.deg2rad(-10)) + np.sin(t) * 56 * np.cos(np.deg2rad(-10)) b.ink(np.stack([mx, my], 1), 4.4, swell=0.35, seed=103) b.dot(1340, 550, 21, 15, seed=104) # the dry nose b.ink([(1350, 565), (1356, 584), (1378, 594), (1398, 584)], 2.8, seed=105) b.eyes([(1474, 494), (1559, 489)], r=8.0, look=(-1.0, 1.0), seed=106) b.ink([(1462, 466), (1476, 460), (1492, 463)], 2.6, seed=107) # worried little brows b.ink([(1549, 459), (1564, 455), (1579, 459)], 2.6, seed=108) b.fluff(S['b_pawL'], 'ink', length=(14, 22), curl=0.4, width=3.0, gaps=0.2, seed=109) b.fluff(S['b_pawR'] * (1 - S['b_pawL']), 'ink', length=(14, 22), curl=0.4, width=3.0, gaps=0.2, seed=110) b.ink([(1475, 610), (1462, 660), (1474, 712)], 3.0, seed=111) # arm against the chest b.ink([(1610, 640), (1600, 700), (1580, 738)], 3.0, seed=112) for f, sd in ((S['b_footL'], 113), (S['b_footR'], 114)): b.fluff(f, 'ink', length=(16, 26), curl=0.4, width=3.0, gaps=0.15, seed=sd) for (x, y) in ((1500, 960), (1520, 956), (1540, 958), (1752, 966), (1770, 962), (1788, 965)): b.dot(x, y - 10, 4.5, 4.0, colour='slate', medium='crayon', seed=x) # kid b.head(1100, 652, 74, 70, width=5.2, ears=[(1028, 668, 14)], seed=120) b.eyes([(1082, 660), (1126, 654)], r=7.2, look=(0.8, -0.6), seed=121) b.smile(1108, 690, 18, 6, 2.8, tilt=-6, seed=122) b.ink([(1101, 668), (1097, 677), (1104, 679)], 2.3, seed=123) # a little nose b.outline([(1078, 728), (1134, 728), (1150, 760), (1180, 884), (1106, 892), (1030, 884), (1060, 760)], 4.6, smooth=False, open_=0.6, seed=124) b.ink([(1092, 730), (1102, 748), (1120, 730)], 3.0, seed=125) # collar for (x, y) in ((1106, 776), (1110, 812), (1113, 848)): b.dot(x, y, 3.6, seed=int(y)) b.ink([(1158, 764), (1198, 698), (1222, 630)], 4.2, swell=0.35, seed=127) b.ink([(1116, 742), (1172, 662), (1214, 596)], 4.2, swell=0.35, seed=128) b.ink([(1140, 760), (1176, 700)], 3.0, seed=129) for (x, y) in ((1214, 618), (1228, 584)): # mitten hands on the shaft b.outline(np.array([(x + 13 * np.cos(t), y + 11 * np.sin(t)) for t in np.linspace(0, 6.2, 12)]), 3.0, open_=0.3, seed=int(x + y)) b.ink([(1084, 884), (1080, 922)], 6.0, dry=0.1, seed=130) # stick legs b.ink([(1118, 888), (1124, 922)], 6.0, dry=0.1, seed=131) # umbrella b.outline(canopy_pts(), 4.8, smooth=False, open_=0.5, seed=140) for ui in (-66, 0, 66): b.ink(rib(ui), 2.8, seed=141 + ui) tip = at(0, CAN_H + 18) b.ink([at(0, CAN_H - 2), tip], 4.4, seed=142) hook = [at(0, -10), at(0, -150), at(0, -232), at(-6, -250), at(-20, -254), at(-30, -244)] b.ink(hook, 5.0, dry=0.15, seed=143) # bus stop b.outline([(512, 534), (908, 506), (914, 542), (508, 572)], 4.6, smooth=False, seed=150) b.ink([(560, 566), (556, 930)], 6.4, swell=0.3, seed=151); b.ink([(872, 540), (876, 930)], 6.4, swell=0.3, seed=152) b.outline([(584, 796), (838, 792), (840, 812), (582, 816)], 3.2, smooth=False, seed=153) b.ink([(574, 568), (570, 796)], 2.4, seed=154); b.ink([(862, 550), (866, 792)], 2.4, seed=155) for x in (604, 816): b.ink([(x, 816), (x + 4, 912)], 3.6, seed=x + 1) b.outline([(455 + 46 * np.cos(t), 398 + 46 * np.sin(t)) for t in np.linspace(0, 6.1, 24)], 3.6, seed=155) b.ink([(455, 444), (458, 930)], 5.0, seed=156) # snail, content on its dry bench t = np.linspace(0.3, 4.6 * np.pi, 60) rr = 26 * (1 - t / (5.2 * np.pi)) b.ink(np.stack([712 + rr * np.cos(t), 766 + rr * np.sin(t)], 1), 2.8, seed=157) b.ink([(664, 792), (690, 795), (736, 794), (764, 786), (778, 770), (772, 758), (760, 760)], 3.0, seed=158) b.ink([(768, 760), (760, 734)], 2.2, seed=159); b.ink([(776, 762), (786, 738)], 2.2, seed=160) b.dot(759, 731, 3.2); b.dot(787, 735, 3.2) b.smile(772, 774, 8, 3, 2.0, tilt=-20, seed=161) # lamppost b.outline([(152, 158), (198, 158), (206, 214), (144, 214)], 3.4, smooth=False, seed=161) b.ink([(140, 160), (175, 136), (210, 160)], 3.6, seed=162) b.ink([(175, 214), (173, 560), (176, 920)], 10.0, dry=0.35, swell=0.35, seed=163) b.ink([(160, 920), (192, 920)], 8.0, seed=164) # ducks for (x, y, s) in self.ducks: b.outline([(x - 46 * s, y - 2 * s), (x - 30 * s, y - 24 * s), (x + 10 * s, y - 22 * s), (x + 36 * s, y - 10 * s), (x + 52 * s, y - 30 * s), (x + 44 * s, y + 4 * s), (x + 20 * s, y + 14 * s), (x - 30 * s, y + 12 * s)], 3.0 * max(s, 0.7), open_=0.5, seed=int(x)) t = np.linspace(np.deg2rad(-30), np.deg2rad(250), 24) b.ink(np.stack([x - 34 * s + np.cos(t) * 19 * s, y - 40 * s + np.sin(t) * 18 * s], 1), 2.8 * max(s, 0.7), seed=int(x) + 1) b.dot(x - 38 * s, y - 44 * s, 3.2 * max(s, 0.6)) b.ink([(x - 6 * s, y - 8 * s), (x + 12 * s, y - 2 * s), (x + 24 * s, y - 10 * s)], 2.4 * max(s, 0.7), seed=int(x) + 2) # puddle lips and the ground line for (x, y, rx, ry, sd) in self.puddles: t = np.linspace(np.deg2rad(10), np.deg2rad(170), 30) b.ink(np.stack([x + np.cos(t) * rx * 0.98, y + np.sin(t) * ry * 0.95], 1), 3.0, dry=0.3, seed=sd + 200) r = np.random.default_rng(5) for _ in range(40): x, y = r.uniform(80, 1840), r.uniform(915, 1060) if S['puddles'][int(y), int(x)] > 0.3 or S['front'][int(y), int(x)] > 0.3: continue L = r.uniform(8, 26) b.ink([(x, y), (x + L, y + r.uniform(-2, 2))], r.uniform(1.8, 3.2), dry=0.4, seed=int(x * 7)) # ============================================================ 4 dark scribbled masses def dark(self): b, S, X, Y = self.b, self.S, self.XX, self.YY front = S['front'] for i, (m, col, sd) in enumerate(S['bushes']): r = np.random.default_rng(sd + 500) rows = np.flatnonzero(m.max(1) > 0.5) y0, y1 = rows[0], rows[-1] g = (Y - y0) / max(1, y1 - y0) + 0.9 * (self.N - 0.5) + 0.06 * np.sin(X / 9.0 + sd) dark = m * (g > (0.66 if col == 'teal' else 0.9)) * (1 - front) * (Y < base_y(X) + 4) b.scribble(dark.astype(np.float32), width=5.2, spacing=4.6 if col == 'teal' else 6.0, angle=r.uniform(68, 82) * r.choice([-1, 1]) % 180, colour=INK if col == 'teal' else 'navy', dry=0.5, overshoot=10, clip=1 - front, seed=sd + 1) xs = np.flatnonzero(m.max(0) > 0.5) b.blades(xs[0] + 10, xs[-1] - 10, lambda x: float(base_y(x)) + 8, n=int(len(xs) / 24), height=(40, 120 if col == 'teal' else 80), lean=r.uniform(-8, 8), width=4.6, dry=0.3, clip=1 - front, seed=sd + 2) b.blades(70, 1850, lambda x: float(base_y(x)) + 6, n=24, height=(20, 60), width=3.4, clip=1 - front, seed=520) # shelter roof underside, boots b.scribble(S['roof'] * (Y > 542 - (X - 508) * 0.07), width=3.6, spacing=4.0, angle=-6, dry=0.4, seed=530) for k in ('k_bootL', 'k_bootR'): b.fill(S[k], '#22232b', pressure=0.95, angle=10, slip=0, loose=1.5, edge=3, lanes=0, medium='gouache', seed=533) b.scribble(S[k], width=4.0, spacing=3.6, angle=20, dry=0.5, overshoot=2, seed=531 if k[-1] == 'L' else 532) # hatch: coat shadow, bench shadow, bear fur shadow b.hatch(S['k_coat'] * smoothstep(1120, 1150, X + (Y - 760) * 0.25), angle=74, spacing=7, length=(16, 34), width=2.2, dry=0.4, seed=540) b.hatch(S['seat'] * (X > 700) * (1 - S['snail']), angle=-80, spacing=9, length=(8, 12), width=2.0, seed=541) fur = S['bear'] * smoothstep(1730, 1800, X + 0.3 * (Y - 600)) * (1 - S['b_footR']) b.hatch(fur, angle=-70, spacing=16, length=(16, 30), width=3.0, colour='cornflower', medium='crayon', dry=0.55, bend=0.25, density=0.7, seed=542) b.hatch(S['b_body'] * (Y > 900) * (1 - np.maximum(S['b_footL'], S['b_footR'])), angle=-20, spacing=16, length=(16, 28), width=3.0, colour='cornflower', medium='crayon', dry=0.55, bend=0.25, density=0.6, seed=543) b.hatch(S['b_head'] * smoothstep(1700, 1745, X), angle=-60, spacing=14, length=(12, 22), width=2.6, colour='cornflower', medium='crayon', dry=0.55, bend=0.3, density=0.7, seed=544) # ============================================================ 5 coral accents and cheeks def accents(self): b, S, X, Y = self.b, self.S, self.XX, self.YY b.fill(S['canopy'], 'coral', pressure=0.96, angle=-30, loose=3, mottle=0.12, medium='crayon', seed=600) rshade = S['canopy'] * smoothstep(40, 110, (X - RC[0]) * PX[0] + (Y - RC[1]) * PX[1]) b.hatch(rshade, angle=60, spacing=6, length=(14, 30), width=3.0, colour='tomato', medium='crayon', dry=0.4, seed=601) hair = np.maximum.reduce([S['k_hair'], S['k_bunL'], S['k_bunR']]) b.fill(hair, 'coral', pressure=0.95, angle=20, loose=2.5, seed=602) b.crayon([[(1036 + k * 15, 596 + 6 * (k % 3)), (1042 + k * 15, 626 + 4 * (k % 2))] for k in range(10)], 'tomato', width=4, pressure=0.85, dry=0.3, seed=603) for (x, y) in ((1012, 596), (1190, 588)): # the bunches b.crayon([[(x - 12, y - 6 + k * 5), (x + 12, y - 4 + k * 5)] for k in range(3)], 'tomato', width=3, pressure=0.8, seed=int(x)) b.ink([(1036, 626), (1052, 612), (1080, 604), (1110, 598), (1140, 600), (1166, 614)], 2.6, dry=0.3, seed=604) b.ink([(1012, 584), (996, 594), (1004, 610)], 2.4, seed=605); b.ink([(1188, 576), (1206, 588), (1196, 602)], 2.4, seed=606) b.fill(S['k_head'] * (1 - hair) * (Y > 612), 'flesh', pressure=0.5, angle=30, loose=2, edge=6, dry_edge=0.5, lanes=0, seed=607) b.blush(1060, 686, 16, seed=608); b.blush(1144, 678, 15, seed=609) b.freckles(1101, 672, 4, 13, seed=610) b.blush(1503, 533, 24, seed=611); b.blush(1636, 522, 22, seed=612) b.blush(1336, 598, 9, seed=613, density=0.6) # flowers in the bushes, duck bills, snail shell, lamp glow r = np.random.default_rng(620) for (fx, fy, k) in ((120, 812, 3), (395, 770, 2), (690, 842, 2), (1000, 800, 3), (1340, 836, 2)): for j in range(k): x, y = fx + r.uniform(-28, 28), fy + r.uniform(-18, 18) if S['front'][int(y), int(x)] > 0.2: continue b.ink([(x, y + 4), (x + r.uniform(-6, 6), y + r.uniform(30, 50))], 2.2, seed=int(x) + j) b.flower(x, y, r.uniform(7.5, 10.5), 'coral', seed=int(x * 3) + j) for (body, head, bill) in S['duck_parts']: b.fill(bill, 'mustard', pressure=0.95, slip=0, loose=1, edge=3, lanes=0, medium='gouache', seed=630) b.fill(S['shell'], 'mustard', pressure=0.9, angle=40, loose=2, seed=631) b.fill(S['lamp'], 'butter', pressure=0.9, angle=0, loose=2, seed=632) b.crayon([[(175 + np.cos(a) * 44, 186 + np.sin(a) * 44), (175 + np.cos(a) * 64, 186 + np.sin(a) * 64)] for a in np.deg2rad([200, 235, 270, 305, 340])], 'mustard', width=5, pressure=0.8, seed=633) # ============================================================ 6 chalky whites def chalk(self): b, S, X, Y = self.b, self.S, self.XX, self.YY for i, (x, y, w, h) in enumerate([(380, 160, 300, 110), (1120, 128, 250, 92), (1690, 178, 240, 92)]): b.chalk(b.cloud(x, y, w, h, 5, seed=700 + i), pressure=0.82, angle=-6, seed=700 + i) b.chalk([[(x - w * 0.35, y + h * 0.3), (x + w * 0.3, y + h * 0.32)]], width=8, pressure=0.6, seed=710 + i) b.fluff(S['bear'] * (1 - S['kid']) * (1 - S['canopy']), 'chalk', length=(18, 30), width=5.5, reach=(0.35, 0.75), seed=720) b.chalk([[(1222, 380), (1262, 352), (1300, 338)], [(1240, 404), (1272, 384)]], width=6, pressure=0.75, seed=721) b.chalk([[(1384, 600), (1410, 596)]], width=4, pressure=0.8, seed=722) for (x, y, rx, ry, sd) in self.puddles: r = np.random.default_rng(sd) for k in range(2 if rx < 120 else 4): cx, cy = x + r.uniform(-0.6, 0.6) * rx, y + r.uniform(-0.3, 0.2) * ry if S['ducks'][int(cy), int(cx)] > 0.3: continue b.ripples(cx, cy, r.uniform(14, 30), r.uniform(4, 6), rings=2, width=2.6, seed=sd * 10 + k) for (x, y, s) in self.ducks: b.ripples(x, y + 14 * s, 60 * s, 9 * s, rings=2, width=2.6, seed=int(x) + 3) b.chalk([[(620, 600), (660, 560)], [(640, 640), (700, 580)], [(780, 620), (820, 580)]], width=5, pressure=0.55, seed=730) # glass glints in the shelter # a tiny white bus on the round sign b.chalk(b.poly([(428, 382), (478, 382), (484, 408), (426, 410)], smooth=False), pressure=0.95, angle=0, edge=2, dry_edge=0.3, loose=1, seed=731) b.dot(440, 412, 4.6, colour='navy', medium='gouache'); b.dot(470, 412, 4.6, colour='navy', medium='gouache') for x in (436, 452, 468): b.dot(x, 391, 4.0, 3.4, colour='cobalt', medium='gouache') b.chalk([[(1092, 762), (1088, 860)]], width=6, pressure=0.6, seed=732) # coat sheen b.chalk([[(1200, 960), (1260, 962)], [(1330, 1000), (1420, 1002)]], width=5, pressure=0.6, seed=733) # ============================================================ 7 rain, splashes, speckle def rain(self): b, S, X, Y = self.b, self.S, self.XX, self.YY sky = (b.rect(70, 60, 1850, 1060, rough=6, seed=31) > 0.5).astype(np.float32) dry = np.maximum(S['dry'], S['canopy']) b.rain(sky * (Y < 905), n=560, angle=RAIN_ANG, length=(10, 40), width=(1.6, 3.0), colour='deep', avoid=dry, seed=800) b.rain(sky * (Y < 905), n=260, angle=RAIN_ANG, length=(10, 30), width=(1.6, 2.6), colour='cornflower', avoid=dry, seed=804) b.rain(sky * (Y < 905), n=240, angle=RAIN_ANG, length=(12, 28), width=(1.8, 3.0), colour='chalk', avoid=dry, seed=801) b.rain(S['bear'] * (1 - S['dry']), n=45, angle=RAIN_ANG, length=(12, 24), width=(1.6, 2.4), colour='powder', avoid=dry, seed=802) b.rain((80, 905, 1840, 1050), n=140, angle=RAIN_ANG, length=(10, 22), width=(1.5, 2.4), colour='cornflower', avoid=dry, seed=803) r = np.random.default_rng(810) for (x, y) in [(1060, 592), (1100, 584), (1140, 590), (1010, 580), (1192, 572), (1080, 588)]: # on her hair b.splash(x, y, 15, 'chalk', n=5, width=2.6, seed=int(x)) for (x, y) in [(1004, 612), (1200, 604), (1036, 640)]: # drips off her bunches b.ink([(x, y), (x + 1, y + 12)], 3.0, colour='deep', dry=0.2, seed=int(x) + 3) b.dot(x + 2, y + 24, 2.6, 3.5, colour='deep', medium='crayon') for (x, y) in [(1520, 352), (1600, 344), (1680, 360), (1470, 360), (1700, 372), (1750, 420)]: # bear's head b.splash(x, y, 13, 'deep', n=4, width=2.2, seed=int(x) + 1) for u in (-110, -60, -10, 40, 90): # on the canopy p = at(u, CAN_H * np.sqrt(max(0.05, 1 - (u / CAN_R) ** 2)) + 2) b.splash(p[0], p[1], 12, 'chalk', n=4, width=2.4, up=-90 + np.degrees(TILT) * 0.6, seed=int(u) + 900) for u in (-130, -80, 30, 82, 130): # drips off the rim p = at(u, -10) b.ink([(p[0], p[1] + 6), (p[0] + 1.5, p[1] + 16)], 3.2, colour='deep', dry=0.2, seed=int(u) + 950) b.dot(p[0] + 3, p[1] + 28, 2.6, 3.4, colour='deep', medium='crayon') for (x, y) in [(1692, 336), (1500, 335), (1066, 668), (1150, 696)]: # drops on ear tips and cheeks b.dot(x, y + 18, 3.0, 4.2, colour='deep', medium='crayon') b.dot(x - 1, y + 16, 1.0, colour='chalk', medium='chalk') for (x, y, rx, ry, sd) in self.puddles: for k in range(3): xx = x + r.uniform(-0.7, 0.7) * rx b.splash(xx, y + r.uniform(-0.3, 0.3) * ry, 9, 'chalk', n=3, width=2.0, seed=sd * 7 + k) # coral reflection of the umbrella in the puddle refl = [] for j, (y, x0, x1) in enumerate([(990, 1222, 1392), (998, 1236, 1380), (1006, 1258, 1362), (1014, 1282, 1338)]): cuts = np.sort(r.uniform(x0, x1, 2)) for a, c in ((x0, cuts[0] - 5), (cuts[0] + 4, cuts[1] - 5), (cuts[1] + 4, x1)): if c - a > 8: refl.append([(a, y + r.uniform(-1, 1)), (c, y + r.uniform(-1, 1))]) b.crayon(refl, 'coral', width=6, pressure=0.8, dry=0.45, alpha=0.8, medium='gouache', seed=820) b.crayon([[(1300, 1016), (1300, 1034)]], 'ink', width=3, pressure=0.6, dry=0.5, seed=821) b.spatter(sky, 'ink', n=55, size=(0.8, 3.6), avoid=np.maximum(S['bear'], S['kid']), seed=830) b.spatter(sky, 'chalk', n=160, size=(0.8, 3.2), avoid=np.maximum(S['bear'], S['canopy']), seed=831) b.speckle(sky, 'chalk', n=1400, size=(0.5, 1.4), seed=832) b.speckle((60, 900, 1860, 1070), 'cornflower', n=500, size=(0.5, 1.5), seed=833) b.speckle(sky * (Y > 700), 'navy', n=500, size=(0.5, 1.3), seed=834) def finish(self): b = self.b b.folio(104, 1046, '14', 19); b.folio(1816, 1046, '15', 19) b.printed(1.0, gutter=GUTTER) PHASES = ('blue', 'ink', 'dark', 'accents', 'chalk', 'rain') def main(): out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'bluebook_shared_umbrella.jpg' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None T0 = time.time() tick = (lambda name: print(f'{name:10s} {time.time() - T0:5.1f}s')) if os.environ.get('BB_TIMING') else (lambda n: None) b = BlueBook(W, H, seed=21, keep_stages=bool(stages), stages_dir=stages) b.paper() b.stage('paper') sp = Spread(b) tick('setup') for ph in PHASES: getattr(sp, ph)() tick(ph) b.stage(ph) sp.finish() b.save(out, stages_dir=stages) tick('saved') print('saved', out) if __name__ == '__main__': main()examples/blueprint_lighthouse.jpg539 KB5c5ad3163d03upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/blueprint_lighthouse.py36 KB904d9efa647bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/canvasboard_moving_plan.jpg262 KB57afa7c7641fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/canvasboard_moving_plan.py14 KBe2bef206e07eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cartoon_toaster.jpg487 KBadb97e343319upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cartoon_toaster.py15 KBee9a3b239ad8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cave_hunt.jpg700 KB82c287fca180upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cave_hunt.py7.1 KBfb7a2f1b2b11upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/chalk_lesson.jpg408 KB4af19f9b01e8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/chalk_lesson.py10 KB8cebbae37e18upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/clay_lighthouse.jpg680 KBc30ef7f7e6f6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/clay_lighthouse.py12 KB066ea911919aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/codex_ornithopter.jpg452 KB1d34e64c16afupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/codex_ornithopter.py21 KBfe2f97e6bb5eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/colorpencil_dessert.jpg395 KB795ae2e83567upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/colorpencil_dessert.py7.8 KB6d740cf751d2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/colortown_festival_steps.jpg1.2 MB230b11ce37bdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/colortown_festival_steps.py17 KBf1aec16e6852upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/comic_rocket.jpg1.6 MB5a06c6152fe8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/comic_rocket.py29 KBfe878ef3fa62upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/constructivism_radio.jpg557 KB914860d0959bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/constructivism_radio.py13 KB2d45d938c4ffupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/crayon_picnic.jpg1.8 MBc734cc0b39acupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/crayon_picnic.py24 KB5d59756f64a9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/crt_weather.jpg415 KB3251debdc475upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/crt_weather.py11 KB5c68ef1ca94cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cyanotype_botanicals.jpg408 KBa4d155341a84upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cyanotype_botanicals.py7.6 KB3c9cbe3b3b0aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cyberpunk_neon_street.jpg527 KB234414ea8a3fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/cyberpunk_neon_street.py5.5 KBd9a27ee206eaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/delft_canal.jpg766 KB52699beea817upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/delft_canal.py17 KB52b62b58383aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_anime_summer.gif1.1 MB05b97383c66dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_artdeco_express.gif1.4 MBc5b1fe2d70dcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_aurora_morning.gif816 KB0062a75c7b2cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_ballpoint_board_game.gif606 KB5efe87d466b3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_bauhaus_form_colour.gif434 KB0208f3e40505upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_bawansiqian.gif3.1 MB590e969c54f2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_blackfigure_games.gif679 KB54229fe7449cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_bluebook_shared_umbrella.gif1015 KB10e42a651526upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_blueprint_lighthouse.gif784 KB7857da1fb9abupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_canvasboard_moving_plan.gif1.4 MB530313a36c65upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_cartoon_toaster.gif1.8 MB2add723b52b7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_cave_hunt.gif782 KBf9c01458c44eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_chalk_lesson.gif1.2 MB688a5769d303upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_clay_lighthouse.gif1.8 MB188760e97de1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_codex_ornithopter.gif496 KB8bd5682d12bcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_colorpencil_dessert.gif1.6 MBfa9bfe27cc5dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_colortown_festival_steps_wide.gif1018 KBd68d29292e94upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_comic_rocket.gif1.7 MBb180a24bbb96upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_constructivism_radio.gif508 KB494351eabb2bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_crayon_picnic.gif1.3 MBeafb941f56dbupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_crt_weather.gif761 KB44c912242f9fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_cyanotype_botanicals.gif1.3 MBc55d43437268upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_cyberpunk_neon_street.gif1.8 MB68181c66ededupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_delft_canal.gif1.5 MB6adcf939f297upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_dreamhills_long_walk.gif785 KBae5959285749upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_dreamhills_long_walk_night.gif819 KB1646e28dae14upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_dreamhills_long_walk_noon.gif822 KB9d09e27bda2cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_drybrush_noodle_counter.gif368 KBbea92a9bfd29upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_editorial_ideas.gif1.5 MB54baf2c4a588upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_flatvector_night_camp.gif527 KB4c665595089bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_flexoki_pour_over.gif564 KBcb416d340b49upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_gouache_rainy_day.gif1.7 MB2ca0382da928upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_grading_math_quiz.gif1.1 MB92b647b3b974upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_grainbook_duck_pond.gif927 KB66ef7229c322upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_grainbook_snow_walk.gif1.1 MBdf52b264d61eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_graphite_bicycle.gif1.2 MBf603acac5391upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_illuminated_starchart.gif827 KB1519409f6bd3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_isometric_weather_island.gif307 KB79ee8d393940upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_jiangnan_spring_water.gif1.5 MB91f19b44a108upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_letterpress_circus.gif1.2 MBbc6afa9e8c8cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_lineart_paper_plane.gif228 KB85a953c6ce72upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_lineprinter_launch.gif380 KBfc06f350da28upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_linocut_snowy_village.gif1.4 MB978934a559b7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_lowpoly_canyon.gif1.6 MBc3dd6c57d8d4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_macpaint_garden.gif429 KB035bab7d726bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_moon_river.gif522 KBf575582b06d3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_morph_water_cycle.gif321 KB0128daa352eeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_mosaic_harbor.gif1.5 MB17dacb8553a2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_newscollage_curiosity.gif927 KB0dce41f0f69bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_nocturne_lava_sea.gif1.1 MBf4556da9a17aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_notebook_brewing.gif1.9 MB2b7fe30f1fd4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_obsidianui_reading_notes.gif326 KB61bd86d0ba5eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_oil_wheatfield.gif2.3 MBef51030a14b1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_oilpastel_warm_cup.gif425 KBe621f341670fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_overlay_city_map.gif1.8 MB5628edc054dfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_panel_radio.gif1.5 MB6b86bf85ff49upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_papercut_balloons.gif1.1 MBa6cbf4c464e0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_pastelui_packing.gif343 KB87ce601cbe9dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_pastelvignette_marmalade_scarf.gif526 KBc827f2f5ea0aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_patch_camping.gif975 KB9314e1d52cf1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_pencilbook_tortoise_crossing.gif964 KB388ccace0087upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_penwash_neighbours.gif754 KB041f17463838upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_perler_strawberry_coaster.gif1019 KB912b975cba2fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_petroglyph_migration.gif1.4 MBd03a227087efupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_pixel_rainy_cafe.gif130 KB6c81f802f70cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_poetichalloween_ghost_jar.gif1.2 MBec5e42b2f2d6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_popart_cat_moods.gif652 KBf943787acecbupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_rubberhose_morning.gif1.5 MB184c8de6fde3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_shadowpuppet_cuju.gif1.7 MB4796b20ac3e8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_silhouette_family.gif513 KBe3b2d57e2d02upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_sketchbook_kite_day.gif300 KB4ff9d52bb556upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_sketchbook_reading_hour.gif326 KB8b2516aea645upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_soft3d_rise.gif1.9 MBbc747ad61757upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_spotillo_rainy_saturday.gif197 KB7a97fc380bc4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_stainedglass_seasons.gif1.7 MB988fa76cba08upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_stencil_kite.gif1.2 MB1df220d9e606upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_sticker_market.gif1.3 MBd39da7f56cdcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_stitch_sampler.gif2.5 MB27f8b9905233upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_storybook_acorn.gif549 KBc4e91753cbefupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_sunlitgreen_stream_steps.gif962 KB72b73de0066eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_sunlitgreen_window_seat.gif1.1 MB17049f797d8eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_sunlitgreen_window_seat_late.gif1.0 MB83c604487b9fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_synthwave_coastline.gif1.2 MBb8804378969aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_thermal_kitchen.gif674 KB6ecada275955upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_tomb_harvest.gif1.8 MB7f5629cc1b17upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_twilight_paper_kite.gif854 KB8061fb6391b2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_ukiyoe_fuji.gif1.5 MB4102388e0baaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_vhs_birthday.gif1.8 MB18400010cdedupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_watercolor_autumn.gif3.6 MB904d7f8c0b54upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_watercolor_washes.gif624 KB1f81534cc1ccupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drawing_xray_luggage.gif1.1 MBea73dfd19cecupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/dreamhills_long_walk.jpg1.1 MB216a22633711upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/dreamhills_long_walk.py12 KB75615785d862upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/dreamhills_long_walk_night.jpg1.2 MB3a67311c699dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drybrush_noodle_counter.jpg405 KB3a5543cd3302upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/drybrush_noodle_counter.py6.7 KB97353361bfcdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/editorial_ideas.jpg780 KBdf8111d4c8d7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/editorial_ideas.py5.7 KB0011be7f8946upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/flatvector_night_camp.jpg253 KB282d007ff481upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/flatvector_night_camp.py5.3 KBc26020f40eb9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/flexoki_pour_over.jpg216 KBbe645ff3a104upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/flexoki_pour_over.py14 KB932ed13dc6efupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/gouache_rainy_day.jpg722 KBaf88cd16868fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/gouache_rainy_day.py40 KB27ccb7f5d2eaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/grading_math_quiz.jpg428 KBb6a359c72938upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/grading_math_quiz.py9.4 KB8a32601d5d67upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/grainbook_duck_pond.jpg1.2 MB1a5c3e7586f0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/grainbook_duck_pond.py8.6 KB7ee19a8f6227upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/grainbook_snow_walk.jpg1.8 MBb0ede82b1b92upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/grainbook_snow_walk.py8.0 KB5311b4a5489bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/graphite_bicycle.jpg558 KBc1df250eeda2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/graphite_bicycle.py35 KB99b77ee9facfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/illuminated_starchart.jpg518 KBbc9d455d216bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/illuminated_starchart.py5.5 KB4e48c46f23ffupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/isometric_weather_island.jpg229 KB10e58e70790aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/isometric_weather_island.py11 KB5abc18c0fec8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/jiangnan_spring_water.jpg694 KBd361f895b098upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/jiangnan_spring_water.py17 KBacfdb6ffaca0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/letterpress_circus.jpg614 KB0e6fc4899161upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/letterpress_circus.py21 KB5d4895bc2370upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/lineart_paper_plane.jpg111 KBe8672d713435upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/lineart_paper_plane.py6.4 KBfc1fa334acb8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/lineprinter_launch.jpg503 KB50ab30849865upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/lineprinter_launch.py12 KB37dc0565e61bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/linocut_snowy_village.jpg642 KBe09f2a62926cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/linocut_snowy_village.py17 KB9a9d1c7077d2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/lowpoly_canyon.jpg620 KB62c0760cb240upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/lowpoly_canyon.py4.2 KB30cf3fc1e2a7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/macpaint_garden.jpg908 KB11759e47edd4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/macpaint_garden.py19 KBa0e50b74c351upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/moon_river.jpg380 KB659d473771c0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/moon_river.py5.2 KBf545b350e48bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/morph_water_cycle.jpg388 KB7b66cad869fbupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/morph_water_cycle.py8.5 KB372de9b68a80upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/mosaic_harbor.jpg1.4 MB0d9dc68a153dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/mosaic_harbor.py20 KB65697dd85e5fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/newscollage_curiosity.jpg752 KB815595d35f64upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/newscollage_curiosity.py11 KB8f5be7e3ea91upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/nocturne_lava_sea.jpg642 KBb109f2ea3b19upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/nocturne_lava_sea.py18 KBe23c1cd48493upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/notebook_brewing.jpg483 KB82a83bc002d5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/notebook_brewing.py7.2 KB8d881e8957a9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/obsidianui_reading_notes.jpg184 KB8d2610906a8bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/obsidianui_reading_notes.py13 KBd6ab39f50843upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/oil_wheatfield.jpg956 KB55d17a2df2c2upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/oil_wheatfield.py5.1 KB2c85ce304289upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/oilpastel_warm_cup.jpg1.1 MBe5fbb99a4ec5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/oilpastel_warm_cup.py28 KBbdd646f66916upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/overlay_city_map.jpg550 KB58591ddf4963upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/overlay_city_map.py25 KBe52f86225b8bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/panel_radio.jpg463 KBdcbcbd52421aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/panel_radio.py5.0 KB2acdf85a329dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/papercut_balloons.jpg233 KBa80e91622a62upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/papercut_balloons.py7.6 KB5e60694b1ed8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pastelui_packing.jpg233 KBf3ce2ebfeca4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pastelui_packing.py12 KB103bc8a620c4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pastelvignette_marmalade_scarf.jpg478 KB71440aac71faupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pastelvignette_marmalade_scarf.py30 KB1cdf70cad5f6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/patch_camping.jpg1.2 MB9058c82f8bb1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/patch_camping.py12 KB3989a41ea0d3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pencilbook_tortoise_crossing.jpg1.2 MB7f3d17d44171upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pencilbook_tortoise_crossing.py39 KBb69f16c58345upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/penwash_neighbours.jpg588 KB5599a44f6ce0upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/penwash_neighbours.py26 KB039b644ce625upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/perler_strawberry_coaster.jpg512 KB2e1333d63199upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/perler_strawberry_coaster.py5.7 KBfd2358c123cdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/petroglyph_migration.jpg866 KB18407528d4eaupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/petroglyph_migration.py4.4 KB82dcfe162261upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pixel_rainy_cafe.png24 KB74b59d2ba61eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/pixel_rainy_cafe.py5.3 KBf7d7858eb7d1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/poetichalloween_ghost_jar.jpg528 KB10826fa7532eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/poetichalloween_ghost_jar.py34 KBdfd504114240upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/popart_cat_moods.jpg706 KB49d6c1bd2903upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/popart_cat_moods.py21 KBbf9fb6dbfda8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/rubberhose_morning.jpg964 KBdaf10ab5faf3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/rubberhose_morning.py4.2 KBd9fff4ec1e3cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/shadowpuppet_cuju.jpg615 KBe9ac60ecdf07upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/shadowpuppet_cuju.py11 KBa0640b9f71efupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/silhouette_family.jpg448 KB49b30d8c5200upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/silhouette_family.py19 KBd2500b521a3aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sketchbook_kite_day.jpg339 KBf822384ed5eeupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sketchbook_kite_day.py14 KBbf54951d0a41upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sketchbook_reading_hour.jpg435 KBef55db03834eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sketchbook_reading_hour.py22 KBead1b0f00fb7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/soft3d_rise.jpg279 KB486fe9db014fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/soft3d_rise.py3.4 KBf8036212cf84upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/spotillo_rainy_saturday.jpg336 KBa89efd8dcd65upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/spotillo_rainy_saturday.py11 KBd742d3732e08upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/spotillo_rainy_saturday_wide.jpg244 KB9c537951e917upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/stainedglass_seasons.jpg535 KB0af37df0742aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/stainedglass_seasons.py23 KB7795f3e8b7a5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/stencil_kite.jpg801 KBd469ac22d04cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/stencil_kite.py17 KB3bba7d955ab9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sticker_market.jpg412 KB5c64b98987afupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sticker_market.py14 KB563eb14abfe4upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/stitch_sampler.jpg900 KB3e209b7627d6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/stitch_sampler.py7.0 KB6b25873b2d2dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/storybook_acorn.jpg326 KB4132a62afb80upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/storybook_acorn.py18 KB461fabd96cc7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sunlitgreen_stream_steps.jpg1007 KB35a82541ff47upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sunlitgreen_stream_steps.py10 KB4fb6e1b80009upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sunlitgreen_window_seat.jpg866 KB04e70b5a177eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/sunlitgreen_window_seat.py15 KB6184fe848957upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/synthwave_coastline.jpg552 KBc49ec04d8d61upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/synthwave_coastline.py2.8 KB23ea5b2a929cupstream ↗
"""Example (synthwave): 海岸线 1987 · Coastline 1987 — a home video of the last sunset of summer 1987, played back off a worn tape: a striped sun sinking into the sea behind a low wireframe island, its reflection broken into glowing bars on the water; a coast road with neon edges running to a small lit city at the vanishing point; a magenta grid across the land, wireframe mountains beyond; palm silhouettes rimmed by the sunset; one car's tail lights heading for the city; chrome COASTLINE with a neon-script "Last Sunset"; VCR on-screen display (PLAY, date and time), chroma bleed, a tracking band and scanlines. No image model. python3 synthwave_coastline.py [out.jpg] [--stages DIR] """ import os, sys, time sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'lib')) from synthwave import Synthwave, MAGENTA, CYAN, PINK out = sys.argv[1] if len(sys.argv) > 1 and not sys.argv[1].startswith('--') else 'synthwave_coastline.jpg' stages = sys.argv[sys.argv.index('--stages') + 1] if '--stages' in sys.argv else None t0 = time.time() s = Synthwave(1920, 1080, seed=1987, horizon=610, vp_x=1060, focal=1100, eye=3.5, record=stages is not None) # ---- dusk sky and stars s.sky() s.stars(n=1700, bright=16) s.stage('sky') # ---- the striped sun sinking into the sea s.sun(560, 585, 255, bands=8, band_top=0.36) s.stage('sun') # ---- far shore: a low wireframe island in front of the sun, mountains beyond the land, the city at the road's end s.mountains(-2700, -1250, 1650, 2300, 60, cell=(70, 120), level=0.7) s.mountains(230, 1500, 900, 1750, 210, cell=(52, 85), taper=(True, False)) s.skyline(5, 175, 780, heights=(14, 60), widths=(10, 24), tall=(112, 100), windows=0.22) s.stage('far') # ---- the neon grid, the sea, the coast road s.floor(MAGENTA, spacing=(2.4, 2.4), width=0.07) s.stage('grid') s.sea(coast=-9.0) s.neon_line(-9.0, CYAN, width=0.16, level=1.0) s.road(-7.0, -2.0) s.stage('sea') # ---- palms along the beach and the roadside, one car heading for the city for X, Z, h, lean in ((-8.3, 29, 11.5, -0.07), (-8.4, 47, 10.5, 0.09), (-8.2, 82, 10.0, -0.05)): s.palm(X, Z, h, lean) for X, Z, h, lean in ((-0.9, 104, 11.0, -0.04), (-0.9, 73, 10.0, 0.06), (-0.9, 52, 11.5, -0.03), (-0.9, 36, 10.5, 0.05)): s.palm(X, Z, h, lean) s.car(-3.4, 31) s.stage('palms') # ---- lettering s.caption('海岸线 1987 · 夏天的最后一次日落', 1450, 96, 27, CYAN, rules=(70, 20)) s.chrome_text('COASTLINE', 1450, 215, 150) s.neon_script('Last Sunset', 1575, 352, 112, PINK, rot=7) s.stage('title') # ---- played back off tape s.osd('PLAY ▶', 84, 70, px=6) s.osd('PM 7:42', 1836, 960, px=5, anchor='rb') s.osd('AUG.31 1987', 1836, 1010, px=5, anchor='rb') s.vhs() s.save(out, stages_dir=stages) print('saved', out, f'{time.time() - t0:.1f}s')examples/thermal_kitchen.jpg321 KB78877ca72642upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/thermal_kitchen.py26 KBfe4fb3565d3eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/tomb_harvest.jpg879 KB951413085b0fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/tomb_harvest.py11 KB167957292fdcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/twilight_paper_kite.jpg510 KB4f611fa40f46upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/twilight_paper_kite.py14 KB52f1b79b6ef8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/ukiyoe_fuji.jpg488 KB5f2d63aadb91upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/ukiyoe_fuji.py4.7 KB093f1064347fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/vhs_birthday.jpg596 KBa7d27e278e6bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/vhs_birthday.py6.3 KB1f27121cf6c3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/watercolor_autumn.jpg371 KB0f880490d011upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/watercolor_autumn.py6.0 KB9701c2c44bb9upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/watercolor_washes.jpg371 KB651e272463adupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/watercolor_washes.py6.8 KB9b2791d6461aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/xray_luggage.jpg662 KB205c5d193386upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/xray_luggage.py27 KB281c2447149eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/anime.py8.7 KB44362ddc8f9eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/artdeco.py56 KB1482f9ce518bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/aurora.py35 KB2c3263327ed6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/ballpoint.py51 KBbcaf84a6b2d3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/bauhaus.py29 KB36dc3432f33fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/blackfigure.py67 KB8d99c7d3766fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/bluebook.py57 KB21dc35f5274dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/blueprint.py48 KB05ae481efe18upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/canvasboard.py66 KB0adc36ec7f97upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/cartoon.py52 KB1ae282d2416bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/cave.py72 KBbae5609a9bb6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/chalk.py53 KBb56166db855fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/clay.py18 KBca423998c81cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/codex.py59 KB3d344dbb5d3cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/colorpencil.py8.1 KBfc27201259f8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/colortown.py116 KB02e2d94e5f36upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/comic.py57 KB602f96974276upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/constructivism.py48 KB4e50e8fa260cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/core.py13 KBc54841ab2b0eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/crayon.py41 KB4a3f26f692dbupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/crt.py58 KBb6fd7646d866upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/cyanotype.py12 KB915a1d90e8d6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/cyberpunk.py81 KB9aab16071f88upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/delft.py85 KB831a5db5da44upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/dreamhills.py60 KB52e7499f6ff5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/drybrush.py69 KB20351fb1f381upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/editorial.py6.8 KB145e97e45844upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/flatvector.py32 KBbf1da6ee7a20upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/flexoki.py54 KB5a15c35efeb1upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/gouache.py61 KB6c3a9e2a34a5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/grading.py72 KBde4ac8bd062eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/grainbook.py80 KB6698d0105e84upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/graphite.py36 KB5e060a21c174upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/illuminated.py89 KBef1c04d61a36upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/inkpaint.py15 KB3e523a154aacupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/isometric.py77 KB42acc02b8654upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/jiangnan.py117 KB9a09bef6ad6aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/letterpress.py55 KBb1f6d58be529upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/lineart.py28 KB68f7d166a19dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/lineprinter.py49 KB9a5edd1072ddupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/linocut.py48 KB8ed56bb4df04upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/lowpoly.py67 KB4aa02eff5296upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/macpaint.py53 KBb75ae535f413upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/morph.py36 KBa3394aa95b03upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/mosaic.py53 KB475ef064b35bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/newscollage.py72 KBa4fdbd2a51fcupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/nocturne.py57 KB9f3c63b46c1dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/notebook.py47 KB58656bf959adupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/obsidianui.py53 KB7eb21ce17119upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/oilpaint.py8.1 KB3b1d5f316f1fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/oilpastel.py55 KB057bbbe9b111upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/overlay.py45 KB90222c6afad5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/panel.py22 KB37503d362f68upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/papercut.py10 KB300ce60204b3upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/pastelui.py55 KB2470a26c3c74upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/pastelvignette.py74 KB4818e8bd4c85upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/patch.py43 KB8b2c0856a486upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/pencilbook.py82 KB75bf6a10bc6eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/penwash.py61 KBd754d2e67991upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/perler.py60 KB0928ba7d4419upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/petroglyph.py44 KBd0905ca50553upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/pixelart.py6.8 KB1377fd0bb0f8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/poetichalloween.py105 KB1340f7fb49daupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/popart.py28 KBd4affc43121bupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/rubberhose.py75 KBb12bf00aac07upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/shadowpuppet.py74 KB0b7cdd875750upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/silhouette.py46 KB0b384123415aupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/sketchbook.py54 KB4a9bdd25c1abupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/soft3d.py51 KB03ddb03ac666upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/spotillo.py72 KB1ebdecb6c6a6upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/stainedglass.py55 KB43605342202cupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/stencil.py56 KB277977b0dad8upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/sticker.py44 KBcf6405c36670upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/stitch.py22 KB10a6e0ef37a5upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/storybook.py85 KBc62bc933d267upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/sunlitgreen.py81 KB77991be17d20upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/synthwave.py56 KB79c57c8682d7upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/thermal.py40 KB8655cc871960upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/tomb.py97 KB070ba322180dupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/twilight.py91 KB1af28eef8e2eupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/ukiyoe.py8.2 KB5443ff923196upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/vhs.py70 KB553ad83e7098upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/watercolor.py10 KBded98491dbdfupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
lib/xray.py47 KB527d17146679upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
LICENSE1.0 KBa68c2e09ef00upstream ↗
Contents are not inlined in the catalog. Open the upstream file.
requirements.txt25 B220ee24b7653upstream ↗
numpy>=1.24 Pillow>=10.0
Plain-text copy, no login: /skill-bundles/cloveric-claude-drawing-skill.md