Claude paints with code: a Claude Code skill for procedural illustration in 83 styles, from ink wash (水墨), watercolour and ukiyo-e to stained glass, Roman mosaic, Art Deco, shadow puppets, pastel UI, sketchbook doodles, spot illustrations, grainy picture books, dreamy hills, sunlit greenery. No image model: numpy + Pillow on a CPU, draw-on GIFs.
Python agent-skillsanimechinese-paintingclaudeclaude-codeclaude-skillscolored-pencilcreative-codingcross-stitcheditorial-illustrationgenerative-artink-wash-paintingoil-paintingpaper-collagepixel-artprocedural-generationrisographshanshuiukiyo-ewatercolor
Add sunlit greenery style (83 total): the window seat
cloveric6af36dc717b6
diff --git a/README.md b/README.mdindex 5a202e6..8709f9d 100644--- a/README.md+++ b/README.md@@ -6,7 +6,7 @@</p><p align="center">- <a href="#styles--画风">82 styles · 画风</a> · + <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> · @@ -14,11 +14,11 @@</p><p align="center">- <a href="#styles--画风"><img src="docs/hero.jpg" width="100%" alt="Twelve of the 82 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>+ <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-two 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 录像带。+**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;每一步都能存下来,做成「一步步画出来」的动画。@@ -28,7 +28,7 @@<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 88 GIFs · 全部动图</a></sub>+ <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 · 安装@@ -58,14 +58,15 @@ python3 examples/<name>.py out.png # one per style · 每## Styles · 画风-Eighty-two 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)+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"><a href="examples/bawansiqian.jpg"><img src="docs/thumbs/bawansiqian.jpg" width="172" alt="Ink wash · 水墨"></a><br><sub><b>Ink wash</b><br>水墨</sub></td><td align="center"><a href="examples/watercolor_autumn.jpg"><img src="docs/thumbs/watercolor_autumn.jpg" width="172" alt="Watercolour · 水彩"></a><br><sub><b>Watercolour</b><br>水彩</sub></td><td align="center"><a href="examples/oil_wheatfield.jpg"><img src="docs/thumbs/oil_wheatfield.jpg" width="172" 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></tr>-<tr><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><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></tr>+<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 · 铅笔、钢笔与色粉@@ -129,8 +130,8 @@ Eighty-two styles in eight families — click any picture for the full-size imag| [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 (≈ 55 MB) · 全部范例大图与标题 |-| [Draw-on GIFs · 作画动图](docs/GIFS.md) | 88 GIFs of pictures being painted (≈ 100 MB) · 88 段作画过程动图 |+| [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 · 计划diff --git a/SKILL.md b/SKILL.mdindex 417a1b5..a5a5c1b 100644--- a/SKILL.md+++ b/SKILL.md@@ -1,6 +1,6 @@---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)、扁平矢量(分层几何色块、七色、层间投影)、绘本角色动画(小角色挤压拉伸的真动画)、圆珠笔涂鸦(蓝红圆珠笔线稿、墨团、彩铅、页边涂鸦)、描图纸叠层(灯箱上的黑线底图 + 一张张单色描图纸叠片:正片叠底、套准十字、定位钉、绘图胶带)、粉彩界面 · Pastel UI(产品发布片式的界面画面:纯色粉彩底与大光斑、macOS 窗口卡片、胶囊与粗黑标题色条、状态标签与 ✓ / ✗ 徽章、放大镜、从卡片边探头的扁平小图标)、阅卷批改 · Exam Grading(绿毛毡桌上被红笔批改的答题卡:定位黑块、考号涂卡、得分格与阅卷栏、长尾夹夹住的标准答案卡、油墨不均的朱红印章、立体红笔、波浪线 / 圈 / 引线 / 批注 / 叉 / 圈起来的分数)、皮影戏 · Shadow Puppetry(油灯照亮的幕布上,雕空、透明染色的驴皮关节人偶:镂空纹样、阳刻空脸、雉翎盔头、线结与操纵杆、离幕时虚化的双影;雕花戏台、红漆金字牌匾、红灯笼)、钢笔淡彩 · Pen & Wash(速写小卡上的针管笔线稿 + 松散淡彩:线条抖、出头、不闭合,颜色错位出线、留白缝、干边与颗粒,不铺满的背景色块;大头、圆眼镜、点点眼、红鼻子的呆萌小人;卡片拍在木桌上,旁边放着针管笔和水笔)、复古水粉 · Retro Gouache(复古绘本风的水粉大头像:不透明水粉从暗到亮一层层盖上去,单色背景用干笔皴擦;大红鼻子、腮红、圆眼和大耳朵用几阶色值塑出来;看得见针脚的毛衣和毛线帽,一根根的头发和胡子,毛毡;最后是印刷书页的纸纹)、蓝调绘本 · Blue Picture Book(软蓝色调的现代绘本跨页:几乎只用粉蓝、矢车菊蓝、深青蓝三阶蓝加黑墨和纸白,只点一点珊瑚红、粉色腮红和芥末黄;毛笔 / 墨铅笔线干、抖、断,粗细不匀,线不闭合,暗部用快速来回的乱线排出来;颜色是干蜡笔、粉彩、干水粉,错位出线,纸纹的白点透出来;白粉笔痕压在蓝上,甩点和细尘;背景蓝块毛边、不到纸边;大圆脑袋、带高光的点点眼、点彩腮红和雀斑、火柴腿穿靴子的小人,乱线毛边的白色毛绒动物;最后印在书上:中缝和页码)、江南园林 · Jiangnan Garden(细笔园林春景,数字水粉插画:成千上万片叶形小笔触按一个太阳堆出树冠,暗芯、亮边、一簇簇的高光;白色和淡粉的繁花是一簇簇圆点花瓣,枝条从缝里露出来;垂柳是一绺一绺发丝般的细枝挂满小叶;黛瓦飞檐是真的瓦垄:筒瓦板瓦一行行、檐口瓦当滴水、翘起的翼角和卷起的脊头;粉墙月洞门、冰裂纹漏窗、翡翠绿槅扇和挂落、红灯笼、匾额;九曲石桥、石阶、小木船;碧绿湖面倒映岸上的一切,更柔、更暗,加涟漪和细竖纹;睡莲、白鹭;从前景花枝到雾里青山层层退远,墙上桥上落着叶影;最后一方小红印)、干刷色块 · Dry-Brush Blocks(mid-century 海报 / 水粉拼贴式的编辑插画:米白纸上几大块干笔或滚筒刷出的色块,颜色严格限定在森林绿、鼠尾草绿、青蓝、藏蓝、近黑和朱红,外加一点天蓝、淡青瓷和米色;每块颜色在自己的笔刷坐标系里刷:一道道平行的笔,起笔饱满、收笔干枯,两侧几乎是直边,两端梳成长短不一的毛齿,块里有顺笔的鬃毛纹、皴擦斑和露出来的纸色;背后的大色板用滚筒:近乎平涂、成簇的细点、干的两侧和几道细刮痕;色块像丝网套印或撕纸拼贴一样叠起来,撕口带一圈浅色纤维边;人物拆成几个大块面:亮暗两半朝不同方向刷的外套、几块肤色平面拼的头、粗黑框眼镜、干笔皴擦的白胡子;瓶子是竖刷的深色剪影加一道高光和小块标签;一旁一个小朱红方块;不勾线、不做渐变;最后像胶印:轻微柔化、纸纹、暗部零星白点、纸上细尘)、暮色微缩绘本 · Twilight Storybook(温柔、怀旧的黄昏绘本单页,满是微缩细节:大片粉彩黄昏天空,从顶上的薰衣草紫经玫瑰、蜜桃到地平线的暖金,柔和的平底云带、细细的光线和一轮低垂的淡日;一侧天空已经入夜:星空、带暗带的银河、弯月、流星,昼夜交界经过淡紫和靛蓝,不发灰;下面是一层层粉彩条纹的起伏山丘,拼布似的田、细细的垄、小圆树;前景是几万朵小野花铺成的坡,坡顶是色点,越往下越大:雏菊、矢车菊、虞美人、波斯菊、金盏花、毛茛、羽扇豆、勿忘我,夜的一侧整片变成月光蓝;很小、扁平、可爱的原创角色;上面叠一层科学图版的语言:圆形的「detail a」放大图,细墨线、排线、尺寸标注、标签和比例尺,几行灰色的小写英文手写字;最后是细颗粒、光晕、暗角和底边一道撕纸边)、排线夜景 · Hatched Nocturne(彩铅 / 色粉排线式的小幅夜景版画:天空、云、山和海全由密密的短笔触叠成,每片区域的笔触顺着同一股「风」走——天空斜着流、蒸汽绕着云团卷、山坡顺着坡向、海面横着长拖,每一笔色相和明度都差一点,笔毛分道、拖干的笔尾、纸纹里漏出的细缝,没有一处平滑渐变;深靛蓝、藏青、冷灰蓝的夜色里只有一个暖色光源,光是一层层加上去的发光笔触:核心黄白、外圈橙红、再外是被照亮的笔触,被照亮的蒸汽按「光 × 受光」上色,所以是红橙而不是粉;发光的细丝(会蜿蜒、分股、末端亮珠)、火星、星点;海面上被横向笔触打碎的倒影和光柱;几十像素高的小人靠一点亮色(围巾)点出来;最后装裱成小版画:米白纸边、压印的版痕、左下铅笔小标题、右下更小的说明,用细的普通字体)、笔记应用界面 · Obsidian UI(讲解片里的深色笔记应用窗口:近黑页面上一团淡紫光晕,窗口里有标签栏、细长图标栏、带缩进线的文件列表、粗黑 H1 下一道紫色短条、属性块和「#标签」、紫色的内部链接和行内代码、带语法色的 mermaid 代码块——点「阅读」后渲染成扁平深色的流程图,一个节点亮紫——紫色左边的引用标注,右栏关系图谱里被链接的笔记亮成紫色光点;全画只有一个紫色强调色,不画官方 logo)、白板卡片 · Canvas Board(深色笔记应用的白板视图:深色页面上一扇应用窗口——红黄绿三点和「.canvas」标签页的标签栏、左边一列线性图标——里面是一块随镜头平移缩放的灰点阵无限白板;分组框和浮在框上方的组名,深色圆角卡片带 2 px 的卡片色边(红、橙、黄、绿、青、紫)和一层很淡的同色底,卡片之间是从边的中点沿法线弯出去的曲线连线,末端实心箭头、中间一块白板底色的标签;卡片里是 Markdown:标题、正文、紫色高亮、等宽行内代码、勾选清单(勾上时紫色方框弹出、对勾画出、文字变灰加删除线)、紫色竖条的引用、紫色标签胶囊、颜色编号胶囊;图片卡片上方写文件名,里面可以用手绘笔触画草图(每笔画两遍、略弯、出头,手写体批注);右上角一列缩放按钮;全画只有一个紫色强调色加卡片色;所有东西都记在白板坐标里、每次按镜头重画,任意缩放都锐利,镜头能平移缩放、卡片能掉落、连线能一点点画出来)、Flexoki 纸面 · Flexoki Paper(文档站式的图解页:暖白纸(#FFFCF0) 上的墨黑字和一串暖灰,几张不描边、不投影的浅灰圆角卡片,粗黑中文标题、灰色英文类型名、等宽编号;卡片里的图照轻量图表渲染器的样子画——比底色差一级的框和 2 px 灰边(直角、圆角、胶囊、菱形、圆柱、圆)、墨线末端一个小的实心三角箭头、普通半粗体标签垫一块底色,虚线生命线和回复、带纸色缝的饼图、细网格上的柱状图、表头着色的对比表;Flexoki 的橙、红、蓝、绿、紫、青只放在有意义的地方,橙色聚焦框、黑底胶囊、字距收紧的大数字;能做成图一边一边画出来、数字滚动的动图)、暖调彩铅绘本 · Warm Pencil Storybook(暖白、有齿纹的纸上一层层叠涂的彩色铅笔绘本页:天空、山坡、草、水、一只大而温柔的生物和一个小小的孩子,全由顺着形体走向的细铅笔线叠成——天空横向长排线,山坡顺着坡势,龟壳绕着每块盾片的生长纹,脖子横过褶皱,雨衣顺着衣褶,苔藓和头发一簇簇顺毛;每块先铺一层浅色底,再上固有色、背光处叠同色系的深色,受光处罩一层暖色、阴影里罩一层冷色,每层角度错开一点、笔触交叉;蜡只挂在纸齿的峰上,同一批纸坑一层层都透出细白点,压得重、叠得多的地方才慢慢合上;后画的东西先留白再铺背景,颜色不互相混;毛是一绺一绺的:根部散开、尖端聚拢、顺着毛向,每绺受光一侧亮、背光一侧暗;没有墨线、没有黑色,只有很淡的同色轮廓;黄昏的暖光:灯笼和窗灯是一层层橙黄的发光叠涂(不是一团光晕,也不是放射线),低低的太阳给受光一侧一道暖边;水里的倒影也是一笔笔横排线;附带树、小房子、石头、鳞片、野花、纸灯笼和穿雨衣提灯笼的小孩等绘本部件)、彩色小镇 · Colour Town(不透明水粉平涂加细细的深棕墨线画的童话山城街景:高高窄窄的房子漆成番茄红、芥末黄、青绿、薄荷、珊瑚、奶白,一排压一排堆上山坡,近大远小、前后遮挡;深蓝灰的石板曼莎屋顶是一片片瓦错缝铺出来的,带老虎窗、烟囱和赤陶烟囱帽、电视天线;白色钟楼、淡蓝的天和奶白的云;三角彩旗串在好几层深度上斜穿街道,远处的小、近处的大,每面旗有一道深一点的折痕;红色爬藤玫瑰、溢出来的窗台花箱、铁艺阳台、石头台阶和扶手、路灯、吊挂的店招、拱门和彩色木门、写着字的店面和条纹遮阳篷;前景是湿亮的街面,把整条街倒映成一道道竖向的笔触;每块颜色都是带一点笔刷纹理的不透明平涂,边缘像手画的那样微微抖,和描线不完全对齐;墨线分成几段、粗细略有变化,方框的转角偶尔出头;墨是半透明的,压在红墙上是深红棕,压在玻璃上近乎黑;窗户排得整齐,但每扇都略有不同;一整面墙可以用透视单应贴成往消失点收的峡谷墙;几乎没有投影;附带钟楼、台阶、矮墙、栏杆、树、花盆、彩旗、路灯、店招、海报、咖啡桌、猫和概括的小人等部件)、色粉小像 · Pastel Vignette(白纸上的绘本角色小像,软色粉加一点水粉:一个人和他的小动物,半身、略偏一边,四周大片留白,不画背景色块、不加边框,画面在边上用干笔散开、融进白纸;颜色柔和、粉粉的——浅粉蓝的衣服上看得见顺着衣褶的干笔、奶油色的毛衣、暖肤色——只有一组暖橙饱和(橘猫、绒球、蝴蝶结这类);脸是揉开的平滑色粉:大圆眼、深色虹膜和两点白高光、一大圈腮红、红鼻尖、小嘴;头发和毛是成百上千根细丝,一绺一绺,有几根飞出轮廓,毛的轮廓蓬松地融进后面的东西;几乎不描线,只有眼皮、鼻翼、脸的背光侧几道细的软线;背后至多一枝叶子和一层很淡的铅笔小镇;附带圆眼、眉毛、腮红、鼻子、嘴、发丝、毛簇、蓬松轮廓、叶子和枝条等部件)、诗意万圣夜 · Poetic Halloween(忧郁、带一点超现实的秋夜 / 万圣节绘本肖像,暗色画板上的不透明水粉加细彩铅排线,再印出来:瓷白的脸,鼻子、脸颊、眼皮和眼睛四周泛着很重的红晕(平滑的一层红加单像素的细红斑点),下眼睑一道湿红,厚眼皮半闭、往外眼角垂,小嘴不笑,体积极简;头发是一整块雕塑般的实体——刀切一样平的齐刘海、乌黑(或银白)的波波头,几乎看不见发丝,只有一道柔和的光泽;衣物是摸得着的织物:粗麻 / 毛毡帽子(一上一下交织的粗线、线间的黑孔、毛边)、粗针织围巾和手套、斜纹织出来的格子呢外套;底子暗而沉——靛蓝夜空和星星、浓密的深色叶丛;每幅只有一处发光的点睛:眼睛和衣摆尖发着暖光的床单小幽灵,暖光照亮身边的叶子、毛线和脸的下侧;满画面一层细的印刷颗粒;附带重眼皮眼、红晕、长鼻子、小嘴、光泽带、粗麻、针织、罗纹、格子呢、毛边、掌状叶和叶丛、暖光照明和光晕、小幽灵、星星等部件)、油画棒肖像 · Oil-Pastel Portrait(白色糙面纸上的油画棒 / 蜡笔干刷人物小像,人浮在白纸上、不画背景(至多一抹天色或一块干刷的黑色投影):颜色收得紧而浓——藏红花黄 / 金盏黄、偏青的藏青和黑、一种冷蓝,加橙色腮红和橙红嘴唇;毛衣、帽子、大衣、围巾这类大块颜色用一道道平行的干笔铺满,蜡只挂在纸纹的凸起上、跳过纸坑,所以每块颜色里都撒着顺着笔拉长的纸纹白点,笔触的收尾是硬的、一把长短不一的梳齿;黑色蜡笔只点在要紧处:眼睛、眉毛、鼻孔、几笔轮廓和衣褶,不勾满轮廓线;脸就是纸本身,背光一侧几笔桃色,两块排线的橙色腮红,平涂的橙红嘴唇——简化、略歪、有表情;头发是几笔松而有劲的长笔触,针织的条纹是一段段短而粗的色条;附带干笔铺色、蜡笔线、排线腮红、短色条、干刷投影、热气、黑眼睛、粗眉、嘴唇、长发丝等部件)、手账线描 · Sketchbook Doodle(速写本里的一页小画:暖米白、带一点粉的纸上大片空着,一个小小的人物加两三件稀疏的小道具浮在纸上,不画地面和背景;发丝细的深色墨线,略抖,起笔轻、收笔挑出一个细尖,轮廓一两笔画完、接口不闭合,偶尔断开;头发是一根根分开的细线,一起顺着一个方向起伏,线与线之间露着纸;脸小而简单——闭着的弧线眼加几根睫毛(或两个小黑点)、一笔鼻子、小小的红嘴、两颗圆圆的粉腮红;衣服用彩铅和马克笔涂成一道道松散的彩虹条纹(红、黄、青绿、橙、品红、蓝),条与条之间留着纸白,每条的上下边各自游移,有的冲出墨线、有的够不到,看得见彩铅的颗粒和顺笔的道子,颜色压在一起会变(红压黄成橙);道具用细的彩色线:单片叶子带人字形叶脉排线(或在填色里留白的叶脉)、小花、几根细线叠成的小树、一缕带卷的热气、一只团着睡觉的猫;附带抖线墨线、不闭合的轮廓、发丝、条纹、彩铅 / 马克笔上色、圆腮红、闭眼、点眼、小红嘴、叶子、小花、细线树、热气、短毛刺、小涂鸦等部件)、日系扁平小插画 · Flat Spot Illustration(几幅日常小事的小插画散在白纸上,中间留足白,不画地面和背景(至多一个水洼或一道小影子):每块颜色都是平涂的不透明色块,没有渐变和明暗,只有极淡的印刷颗粒,边缘略不规整、像手剪或马克笔铺出来的;颜色克制——藏青、灰蓝和粉蓝、芥末黄、橄榄绿和墨绿、几种灰、近黑的头发,皮肤就是白纸,每幅小画里只有一个反复出现的暖红(伞、锅、碗、马克杯、一双袜子);线很少:同色的两块之间留一道白缝,深色衣服上的衣褶和接缝刻成白线,浅色衣服上画深一号的线,深色细线只画侧脸、手指和家具腿;脸几乎空白,一点眼、侧脸线上一个鼻头;头发是鼓包的一整块深色,刻两三根白发丝;手像连指手套,指缝是红线;小动作交给手画的小记号:热气的 S 形、惊讶的三短线、z、雨点;附带手剪边的平涂形状、白缝、自动选色的衣褶线、用简单零件拼的人(站、走、坐、蹲、躺)和手、鞋,伞、锅、马克杯、碗、托特包、自行车、长椅、扶手椅、沙发、猫、盆栽等道具,热气、惊讶线、z、雨等记号)、颗粒童书 · Grainy Picture Book(满幅不留白的 mid-century 童书页,颜色少而饱和:钴蓝 / 群青的夜空或灰蓝底、朱红 / 番茄红、橙、松绿、奶油色、桃粉色的雪和黑头发;每样东西都是一大块平涂的形状,用干的、粉笔似的颗粒笔刷铺出来——颜色碎成细沙似的颗粒和深浅小点,顺着笔触有淡淡的干笔条纹,偶尔跳过纸齿露出底下的奶油底色,边缘是干笔扫出来的毛茸茸的碎边;没有描线,形状和形状色块相接,只有几笔深色蜡笔点睛(窗格、牵绳、笑嘴);亮面是一侧更浅的干笔擦扫,投影是压在上面的一块平的深色;脸简单而甜:黑白大圆眼或点点眼、珊瑚色圆腮红、小嘴、扣子或三角鼻子;天空一级一级分层、层与层之间干笔交错,不用数码渐变;附带干颗粒填色、干笔擦扫、分层天空、斑块、投影、光圈、干笔和蜡笔点睛线、颗粒小点,甜脸零件、波波头 / 长发 / 短发 / 发髻、毛线帽,站 / 走 / 坐的小孩,亮灯的红色小屋、羽状松树、远处小冷杉、圆树、灌木、松枝丛、杯子、纸盒、纸袋、盆栽、芦苇、草丛、路灯、小狗、鸭子、栅栏,雪、星、月牙、炊烟、热气、涟漪、脚印)、柔光草丘 · Dreamy Hills(极简、梦幻的 1:2 竖版手机壁纸:巨大柔软的起伏草丘占下半幅,每座山都盖着一层天鹅绒似的「绒毛」——几万根细小、收尖、略弯的草叶笔触顺着坡面的流向梳过去,山脊上一圈毛边立在天空前;每座山的颜色是一片柔和发光的色场:光落在坡顶,转开的地方是粉彩的边缘光带,一座山沉到另一座后面的谷里是偏冷的阴影,颜色常常是超现实的(薰衣草紫配杏色、藏红花黄配粉、夜里的焦橙配藏青、草绿);上半幅是干净、略带渐变的深蓝天,一团柔软团块堆出来、向阳一面泛暖的积云,或者夜里的星星、银河和彗星;底边一条密密的高草带,几朵小野花,全画面一层细的胶片颗粒;某条山脊上一个只有几十像素高、正在走路的人,是全画唯一的尺度;附带山脊样条和前后遮挡、坡面流向场、按根部排序分块合成的草毛笔触、暖冷两条色带的光照模型、坡顶边缘光、先挡掉主光的谷底遮挡、四套色场调色板(草绿 / 薰衣草和杏色 / 藏红花 / 夜里的焦橙)、天空渐变和太阳光晕、积云、星星和十字星芒、银河、彗星、远处小树、前景草带和五瓣野花、小人(可提一盏发光的小灯)、泛光和胶片颗粒)。用户说「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、家庭录像、录像带、扁平插画、扁平风、矢量插画、绘本动画、角色动画、挤压拉伸、圆珠笔、圆珠笔涂鸦、原子笔、页边涂鸦、课本涂鸦、手画棋盘、描图纸、硫酸纸、叠片、叠层、分色片、灯箱、拷贝台、透光台、套准、定位钉、粉彩界面、粉彩 UI、Dot 风、Dot 那种风格、产品发布会界面、发布会质感、窗口卡片、macOS 窗口、界面卡片、讲解片界面页、小图标探头、阅卷、阅卷批改、批改、判卷、改卷、改作业、答题卡、试卷、考卷、测验卷、红笔批改、红笔打分、打分数、盖章批改、朱红印章、标准答案卡、长尾夹、讲解片评测 / 打分页、皮影、皮影戏、影子戏、驴皮影、灯影戏、皮影人偶、雕花戏台、戏台牌匾、亮相、钢笔淡彩、淡彩、淡彩速写、钢笔淡彩小人、针管笔、勾线笔、针管笔加水彩、线稿上色、速写卡片、速写本小人、水彩小卡、城市速写、街头速写、水笔、自来水笔、复古水粉、水粉、水粉画、不透明水粉、哑光丙烯、复古绘本、绘本插画、绘本大头像、童书插画、复古童书、大头像、大鼻子人物、针织毛衣、麻花毛衣、毛线帽、毛毡帽、卷发、胡子、蓝调绘本、蓝色绘本、软蓝绘本、蓝调童书、软蓝童书插画、蓝色童书插画、蓝色系绘本、限色绘本、蓝白绘本、现代绘本跨页、手绘绘本跨页、绘本跨页、绘本内页、干笔墨线、墨铅笔线、粉彩蜡笔质感绘本、白色毛绒动物、毛绒白熊、点彩腮红、江南园林、园林春景、春水园林、中式园林插画、古典园林插画、国风园林插画、苏式园林、细笔园林、园林风景插画、水榭、临水茶榭、亭台楼阁、粉墙黛瓦、黛瓦白墙、飞檐翘角、翼角起翘、月洞门、漏窗、冰裂纹窗、槅扇、挂落、九曲桥、曲桥、垂柳园林、碧水倒影、园林倒影、睡莲池、数字水粉风景、细腻厚涂风景、干刷色块、干笔色块、干刷、干刷插画、干笔插画、滚筒刷、滚筒色块、色块插画、大色块插画、毛边色块、刷痕色块、粗刷笔触、mid-century、世纪中期插画、中世纪现代插画、复古编辑插画、复古海报插画、水粉拼贴、撕纸色块、限色海报、暮色微缩绘本、暮色绘本、黄昏绘本、微缩绘本、黄昏转夜、昼夜交界、日夜交界、半边黄昏半边星空、粉彩黄昏、粉紫晚霞、黄昏星空、银河插画、野花坡、野花草坡、花海插画、萤火虫、放风筝插画、拼布山丘、条纹田野、小圆树、细节放大图、局部放大图、技术细节小窗、科学图版风插画、手写英文小字、晚安绘本、治愈系绘本插画、排线夜景、排线风夜景、彩铅夜景、色粉夜景、粉彩排线、短笔触夜景、笔触夜空、方向笔触、夜景版画、小版画、限量版画风、版画装裱、版痕、纸边标题、铅笔题字、夜景插画、夜空插画、深蓝夜景、靛蓝夜空、冷暖对比夜景、唯一暖光、夜里的火光、发光的云、被照亮的云、红色精灵闪电、精灵闪电、火山夜景、熔岩入海、熔岩、岩浆、火山喷发插画、海上风暴、海面倒影、光柱倒影、火星飞溅、星点、看海的人、礁石上的人、远处的小人、小人比例尺、雪夜篝火、渔火、笔记应用界面、笔记软件界面、笔记 App 界面、Obsidian 风、Obsidian 界面、Obsidian 风格、黑曜石笔记、深色笔记界面、暗色主题界面、Markdown 笔记、Markdown 编辑器、双链笔记、内部链接、关系图谱、知识图谱界面、图谱视图、局部图谱、反向链接、文件列表、侧边栏、标签页、属性栏、行内代码、代码块、mermaid、mermaid 流程图、代码块渲染成图、源码 / 阅读切换、阅读视图、引用标注、callout、读书笔记界面、知识库界面、第二大脑、讲解片里的笔记应用、应用窗口演示、白板卡片、无限白板、白板视图、画布视图、Canvas 视图、Obsidian Canvas、Obsidian 白板、笔记应用白板、卡片白板、卡片和连线、节点和连线、带箭头的连线、弯曲连线、连线标签、分组框、点阵背景、点阵白板、深色白板、深色界面卡片、彩色边卡片、勾选清单卡片、待办卡片、引用卡片、图片卡片、草图卡片、手绘平面图、缩放按钮、镜头平移、镜头缩放、卡片掉落动画、连线画出来、搬家计划、旅行计划白板、活动计划白板、头脑风暴白板、项目拆解白板、计划白板、Flexoki、Flexoki 纸面、Flexoki 配色、Flexoki 风、暖白纸、米白纸面、墨黑字、文档站风格、文档页图解、技术文档配图、图解页、一页图解、讲解片图表页、几张图讲清楚、流程图、画流程图、时序图、序列图、饼图、柱状图、条形图、对比表、参数对比、图表合集、图表墙、Mermaid 风、Mermaid 图、图表渲染器、灰底圆角框、小三角箭头、橙色聚焦框、数字滚动、计时器大数字、配方图解、步骤图解、手冲咖啡图解、菜谱图解、工作流程图解、暖调彩铅绘本、暖调彩铅、彩铅绘本、彩铅童书、彩铅童书插画、彩色铅笔绘本、彩色铅笔童书、软彩铅、彩铅叠涂、层层叠涂的彩铅、顺着形体排线、纸齿白点、纸纹透白、怀旧童书、翻绘本的感觉、温暖怀旧的绘本、暖色绘本页、巨物与小孩、大动物和小孩、巨大温柔的生物、温柔的巨兽、大乌龟、巨龟、老乌龟、背着花园的乌龟、龟背上的小花园、大龟过河、过河、小溪、踏脚石、提灯笼的小孩、黄色雨衣、纸灯笼、亮灯的窗、亮灯的小房子、黄昏小镇、成簇的毛、顺毛、毛一绺一绺、苔藓、金黄的树、彩色小镇、彩色房子、彩色街景、童话小镇、童话街景、治愈小镇、理想的生活环境、欧洲小镇、山城小镇、钟楼小镇、彩虹小镇、彩旗、三角彩旗、彩旗串、彩旗街、节日街道、节日早晨、钟楼、白色钟楼、洋葱顶、石板屋顶、曼莎屋顶、老虎窗、烟囱帽、电视天线、风向标、爬藤玫瑰、窗台花箱、铁艺阳台、台阶街、石头台阶、拱门下的台阶、湿街倒影、雨后街道、雨后的广场、水粉街景、水粉加描线、水粉平涂加细线、细节多到看不完、小红书彩色小镇、色粉小像、色粉画、软色粉、色粉笔触、色粉质感、色粉加水粉、粉彩笔触、粉彩质感、绘本角色、绘本人物、绘本小像、角色小像、人物小像、半身像、人和宠物、人和猫、人和狗、主人和宠物、抱着猫、抱着狗、橘猫、大橘、毛茸茸的猫、毛茸茸的狗、狐狸、猫围巾、把猫当围巾、白底插画、留白插画、不画背景、边缘散开、干笔散开、画到边上就散了、大眼睛、大圆眼、大腮红、红鼻头、红鼻尖、发丝、一根根头发、头发丝、飞丝、毛绒绒、蓬松的毛、温柔的小像、治愈系角色、Midjourney 色粉风、诗意万圣夜、诗意万圣节、万圣节、万圣夜、万圣节插画、万圣节绘本、万圣节头像、秋夜、秋夜插画、忧郁绘本、忧郁风、超现实绘本、诡异又温柔、瓷白的脸、瓷娃娃脸、瓷偶、脸上的红晕、红眼眶、红眼圈、红鼻头、厚眼皮、半闭的眼睛、悲伤的眼睛、不笑的小嘴、波波头、黑色波波头、银白波波头、齐刘海、刀切刘海、粗麻、麻布、麻袋布、粗麻帽子、毛毡帽、粗针织围巾、毛线手套、格子呢、格纹外套、苏格兰格子、小幽灵、床单幽灵、发光的小幽灵、发光的眼睛、罐子里的幽灵、深色叶丛、星空肖像、Midjourney 万圣风、油画棒、油画棒肖像、油画棒人像、油画棒小像、油画棒插画、油画棒头像、蜡笔肖像、蜡笔干刷、干刷肖像、干刷人像、干笔人物、粗犷笔触、纸纹白点、露白的纸纹、手作感肖像、不完美的肖像、白底人物小像、白纸上的人物、藏红花黄、橙黄配藏青、芥末黄配藏青、条纹围巾、粗针织围巾、露指手套、捧着热饮、冒热气的纸杯、冬天的早市、冬日早晨、冻红的脸颊、橙色腮红、橙红嘴唇、黑色蜡笔线、Midjourney 油画棒风、手账线描、手账风、手账风插画、手账小画、手账插画、速写本插画、速写本小画、速写本的一页、线描小人、细线插画、细线手绘、发丝细的线、细墨线、童趣手绘、可爱手绘、治愈系手绘、彩虹条纹、条纹毛衣、彩虹毛衣、彩虹条纹毛衣、彩条衣服、彩铅条纹、马克笔条纹、粉腮红、圆腮红、闭着眼睛的小人、小红嘴、单片叶子、叶脉排线、细线小树、团着睡觉的猫、读书的女孩、小人物大留白、Midjourney 手账风、日系扁平小插画、日系扁平插画、扁平小插画、日系小插画、spot illustration、小插图、点缀插画、专栏插画、杂志小插画、生活小插画、日常小插画、生活方式插画、一天里的小事、日常小事、几幅小画、白底小插画、平涂色块小人、平涂插画、无描边插画、手剪边、白线衣褶、一个红色点睛、红色点睛、藏青芥末黄、空白的脸、侧脸线、一块黑头发、热气小曲线、惊讶三短线、雨天的星期六、下雨天在家、撑红伞、喂猫、午睡、看书喝茶、煮汤、颗粒童书、颗粒绘本、颗粒质感童书、颗粒质感插画、粉笔质感插画、粉笔颗粒、干笔颗粒、颗粒笔刷、甜美童书插画、甜美绘本、Midjourney 童书风、mid-century 童书、复古童书插画、满幅绘本页、满版童书插画、无描边童书、钴蓝夜空、群青夜空、钴蓝加朱红、雪夜小屋、红房子雪夜、桃粉色的雪、雪点、黑白大眼睛、点点眼、圆腮红、三角鼻子、羽状松树、遛狗、雪夜遛狗、喂鸭子、黄昏池塘、码头、柔光草丘、草丘壁纸、梦幻草丘、梦幻山丘、极简风景壁纸、极简梦幻壁纸、竖版手机壁纸、手机壁纸、锁屏壁纸、绒毛山丘、毛茸茸的山、天鹅绒草地、天鹅绒山丘、顺坡的草、草毛、发光的山丘、超现实配色风景、薰衣草色山丘、薰衣草和杏色、杏色山丘、藏红花黄山丘、黄色草丘、焦橙色山丘、夜里的橙色山丘、银河下的山丘、彗星和山丘、积云和草丘、一个人走在山脊上、山脊上的小人、孤独的行者、渺小的人和巨大的山、Midjourney 草丘、Midjourney 壁纸风),或 "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 / overlay sheets / tracing-paper overlays / light box / colour separations / registration marks / acetate overlay / pastel UI / Dot-style product film / launch-film interface / macOS window cards / exam grading / grading an answer sheet / red-pen marking / graded test paper / rubber-stamped answer sheet / shadow puppet / shadow puppetry / Chinese shadow play / leather shadow puppets / backlit puppet screen / pen and wash / pen & wash / line and wash / ink and watercolour / ink and watercolor / fineliner sketch / fineliner and watercolour / sketchbook characters / sketch cards / urban sketching / water brush / gouache / retro gouache / gouache portrait / gouache illustration / opaque gouache / matte acrylic / picture-book portrait / vintage picture book / retro children's book illustration / mid-century children's book / big-nosed character portrait / cable-knit sweater / knitted bobble hat / blue picture book / soft blue picture book / soft-blue children's book illustration / modern picture book / limited-palette picture book / picture-book spread / scratchy ink line / dry-brush ink line / ink pencil line / crayon and pastel texture / chalky white marks / blue and coral palette / fluffy white bear / Jiangnan garden / Chinese garden / classical Chinese garden illustration / Chinese water garden / spring garden illustration / lush painterly garden / waterside pavilion / moon gate / lattice windows / zigzag bridge / weeping willow garden / upturned eaves / grey-tiled roof / blossom trees and reflections / lily pond with egrets / digital gouache landscape / dry-brush blocks / dry brush illustration / dry-brushed colour blocks / roller texture / brush-textured shapes / mid-century illustration / mid-century modern poster / mid-century editorial illustration / gouache collage / torn-paper collage poster / limited palette poster / scumbled texture / vintage book cover illustration / twilight storybook / dusk picture book / dusk to night sky / day and night split sky / pastel sunset sky / Milky Way illustration / wildflower meadow / wildflower hill / patchwork hills / tiny round trees / fireflies / paper kite / magnified detail inset / detail callout circle / scientific plate overlay / handwritten lowercase captions / cozy miniature illustration / bedtime story illustration / hatched nocturne / hatched night scene / pastel hatching night / coloured-pencil nocturne / directional strokes / short brush strokes sky / night print with margins / small art print / plate mark / pencilled title and caption / indigo night with one warm light / glowing cloud lit from below / red sprites / lava entering the sea / volcano at night / glowing threads and sparks / broken reflection on the sea / tiny figures for scale / Obsidian UI / Obsidian-style note app / dark note-taking app / dark-theme Markdown editor / note app window / file explorer sidebar / wiki links / backlinks / graph view / local graph / knowledge graph UI / properties and tags / inline code / mermaid code block / mermaid flowchart rendered / source vs reading view / callout block / reading notes app / second brain UI / knowledge base screen / canvas board / infinite whiteboard / dotted board / note-app canvas view / Obsidian-style canvas / cards and connectors / curved arrows between cards / edge labels / group frames / coloured card borders / task-list card / quote card / image card with a sketch / hand-drawn floor plan / zoom controls / camera pan and zoom / cards dropping in / moving plan board / Flexoki / Flexoki paper / Flexoki palette / warm paper and ink / docs-site diagrams / explainer sheet / diagram sheet / Mermaid-style diagrams / lightweight diagram renderer / flowchart / sequence diagram / pie chart / bar chart / comparison table / diagram wall / grey-bordered boxes / small triangular arrowheads / orange focus ring / rolling numbers / recipe explainer / warm pencil storybook / coloured-pencil storybook / colored pencil picture book / soft pencil textures / layered coloured pencil / pencil strokes following the form / paper tooth specks / nostalgic children's storybook / giant gentle creature and a small child / giant tortoise / tortoise with a garden on its back / stepping stones / child with a lantern / yellow raincoat / paper lantern / lit windows at dusk / tufted fur in locks / Midjourney sref 3220081856 look without an image model / colour town / colorful European town / storybook street / fairy-tale town / candy-coloured houses / hill town / bunting / pennant flags / festival street / clock tower / onion dome / slate mansard roofs / dormers / chimney pots / TV aerials / climbing roses / window boxes / wrought-iron balconies / stepped lane / wet street reflection / gouache and ink cityscape / pastel vignette / soft pastel character / chalk pastel portrait / pastel textures and painterly brushstrokes / whimsical character design / picture-book character on white / person with a pet / girl and her cat / ginger cat / cat scarf / big round eyes / rosy cheeks / red-tipped nose / wispy hair strands / fluffy fur / feathered edges / vignette on white paper / Midjourney sref 455581803 look without an image model / poetic halloween / halloween portrait / autumn night portrait / melancholic picture book / surreal storybook portrait / porcelain face / red flush round the eyes / red-rimmed eyes / red nose / heavy-lidded sad eyes / blunt black bob / straight fringe / silver bob / burlap hat / felt hat / chunky knit scarf / knitted mittens / tartan coat / plaid coat / sheet ghost / little glowing ghosts / ghost in a jar / glowing eyes / dark foliage / starry night sky / Midjourney sref 3822619412 look without an image model / oil pastel / oil-pastel portrait / oil pastel illustration / wax crayon portrait / dry brush portrait / bold dry brush strokes / textured colors / beautifully imperfect portraits / handmade aesthetic / paper tooth showing through / white specks of paper / saffron and navy / mustard and navy / striped scarf / chunky knit scarf / fingerless gloves / steaming paper cup / winter morning portrait / orange blush / red-orange lips / black crayon accents / figure vignette on white / Midjourney sref 2703086978 look without an image model / sketchbook doodle / sketchbook illustration / whimsical hand-drawn illustration / delicate ink lines / playful colors / charming characters / beautiful sketchbook aesthetic / so simple yet full of personality / fine ink line drawing / hair drawn strand by strand / rainbow-striped sweater / striped jumper / colored-pencil stripes / marker stripes / round pink blush / closed eyes with lashes / tiny red lips / leaf with vein hatching / thin line trees / steam curl / curled-up sleeping cat / small figure on a big empty page / Midjourney sref 1970397074 look without an image model / flat spot illustration / spot illustrations / Japanese flat illustration / Japanese spot illustration / everyday life vignettes / small vignettes on white / editorial spot art / flat colour shapes / no outlines / hand-cut edges / white fold lines / one red accent / navy and mustard / powder blue / blank faces / dot eyes / black hair blob / steam squiggles / surprise marks / rainy day vignettes / slice of life illustration / grainy picture book / grainy children's book illustration / sweet children's book illustration / chalky grain / dry grainy brush / grain texture illustration / mid-century children's book / full-bleed picture book page / cobalt and vermilion / cobalt night sky / red cottage in the snow / peach snow / falling snow dots / big round eyes / dot eyes and rosy cheeks / feathery pines / walking the dog / feeding the ducks / children's book moodboard / dreamy hills / dreamy hills wallpaper / minimalist landscape wallpaper / dreamy phone wallpaper / tall phone wallpaper / velvet hills / furry hills / grass fur / rolling hills with a tiny walker / lone walker on a ridge / tiny figure for scale / surreal colour-field landscape / lavender and apricot hills / saffron hills / burnt-orange hills at night / milky way over the hills / comet over the hills / cumulus over grass hills" 时使用;也用于需要逐步画出(draw-on)动画的插画。单独说「剪纸」指剪纸拼贴、「刺绣」指十字绣、「丝网印刷 / screen print」指包豪斯几何;「打马赛克」是打码,不是马赛克画风;单说「蓝图」指蓝图工程图,「蓝晒 / 晒图」仍指蓝晒;「铅笔 / 素描」指铅笔素描,「彩铅」指韩国彩铅;「像素」仍指像素风,「1-bit / 黑白画图软件」指 1-bit 早期画图软件;「霓虹」仍指赛博朋克;「喷漆 / 街头涂鸦」仍指喷漆模板涂鸦,「圆珠笔 / 随手涂鸦 / 页边涂鸦」指圆珠笔涂鸦;「描图纸 / 硫酸纸 / 叠片 / 灯箱」指描图纸叠层(蓝图工程图那张描图布是晒成蓝图的,不是叠片);「Dot 风 / 粉彩界面 / 窗口卡片 / 发布会界面」指粉彩界面(纯色底 + 白色实心窗口卡片),要磨砂玻璃和弥散渐变仍用弥散玻璃;「阅卷 / 批改 / 答题卡 / 判卷 / 红笔打分」指阅卷批改,实验记录里的红笔圈和便利贴仍用实验笔记本,带「已付」橡皮章的小票拼贴仍用贴纸拼贴 · 小票;「皮影 / 皮影戏 / 影子戏」指皮影戏(透光的彩色驴皮人偶),黑纸剪出的侧影小像仍用剪影,彩纸剪贴仍用剪纸拼贴。「钢笔淡彩 / 淡彩速写 / 针管笔加水彩 / 线稿上色的速写小卡」指钢笔淡彩;单说「水彩」仍指水彩(风景、花卉的大片晕染),蓝铅笔稿 + 毛笔线 + 赛璐璐阴影的拟人小物仍用卡通手绘,「素描 / 铅笔」仍指铅笔素描。「水粉 / 复古水粉 / 绘本大头像 / 复古童书插画」指复古水粉(不透明水粉画的特写大头像);梵高式厚涂的风景、名画感仍用油画厚涂,扁平矢量、会挤压拉伸的小角色动画(「绘本动画」)仍用绘本角色动画,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,撞色多格的头像仍用波普丝网。「蓝调绘本 / 软蓝绘本 / 蓝色童书插画 / 绘本跨页」指蓝调绘本(软蓝限色的现代绘本跨页:干笔墨线 + 干蜡笔粉彩上色 + 白粉笔痕);单说「绘本」仍指绘本角色动画,「水粉 / 绘本大头像」仍指复古水粉,「编辑风 / Riso」仍指编辑风手绘,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,小孩自己画的蜡笔画仍用儿童蜡笔画。「江南园林 / 园林春景 / 中式园林插画 / 粉墙黛瓦 / 飞檐 / 月洞门 / 九曲桥」指江南园林(细笔数字水粉的园林春景:叶形小笔触堆出的繁茂树冠、繁花、垂柳、黛瓦飞檐、碧水倒影、层层远山);单说「水墨 / 山水」仍指水墨,单说「水彩」仍指水彩,动漫背景 / 赛璐璐天空仍指日本动漫,浮世绘仍是浮世绘;梵高式厚涂的风景仍用油画厚涂,皮影人偶的一场戏仍用皮影戏。「干刷色块 / 干笔色块 / 滚筒色块 / mid-century 海报插画」指干刷色块(米白纸上几大块干笔或滚筒刷出的限色色块,人物拆成几个大块面,背后一块纯色板、一旁一个小红方块);单说「水粉 / 绘本大头像」仍指复古水粉,「剪纸 / 彩纸拼贴」仍指剪纸拼贴,「丝网印刷 / screen print」仍指包豪斯几何,「Riso / 编辑风」仍指编辑风手绘,没有笔触的平滑几何色块仍用扁平矢量。「暮色微缩绘本 / 暮色绘本 / 黄昏转夜 / 昼夜交界 / 野花坡 / 细节放大图」指暮色微缩绘本(粉彩黄昏转入银河夜空、拼布山丘、几万朵小野花、很小的原创角色,加圆形放大图和手写小字);单说「绘本」仍指绘本角色动画,「蓝调绘本 / 软蓝绘本」仍指蓝调绘本,赛璐璐天空和夏日少年感仍用日本动漫,大片晕染的风景仍用水彩,整页的机械分解手稿仍用达·芬奇手稿,剖面和施工图仍用蓝图工程图。「排线夜景 / 彩铅或色粉夜景 / 短笔触夜空 / 夜景小版画 / 熔岩入海 / 精灵闪电 / 被照亮的云」指排线夜景(满画面顺着风向的短笔触、深蓝夜色里只有一个暖光、发光的丝和火星、碎的倒影、很小的人,装成带纸边和铅笔字的小版画);梵高式的厚涂漩涡和颜料浮雕仍用油画厚涂,明亮可爱的彩铅甜品仍用韩国彩铅,黑白石墨排线仍用铅笔素描,粉彩黄昏转入银河星空、满坡小野花仍用暮色微缩绘本,霓虹雨夜街道仍用赛博朋克。「Obsidian 风 / 笔记应用界面 / 深色笔记软件 / 双链笔记 / 关系图谱 / mermaid 代码块渲染成图」指笔记应用界面(深色主题的笔记应用窗口:文件列表、Markdown 正文、代码块切到阅读视图渲染成流程图、亮紫光点的关系图谱,只有一个紫色强调色);明亮的粉彩底和白色窗口卡片仍用粉彩界面,点阵无限白板上的卡片和弯曲连线用白板卡片,暖白纸面上的浅灰卡片图表用 Flexoki 纸面,磨砂玻璃和弥散渐变仍用弥散玻璃,绿屏荧光字符的老终端仍用绿屏终端 CRT,霓虹全息的未来界面仍用赛博朋克。「白板卡片 / 无限白板 / Canvas 视图 / 卡片和连线 / 点阵白板 / 分组框 / 带箭头的弯曲连线」指白板卡片(深色应用窗口里随镜头平移缩放的点阵白板:分组框、彩色边卡片、带箭头和标签的弯曲连线、清单 / 引用 / 草图卡片、右上角缩放按钮);笔记正文页、文件列表和关系图谱仍用笔记应用界面,暖白纸上的流程图、时序图和图表仍用 Flexoki 纸面,明亮的粉彩产品界面和检查结果仍用粉彩界面,一层层叠起来的图解仍用描图纸叠层。「Flexoki / Flexoki 纸面 / 暖白纸上的图解页 / Mermaid 那样的流程图、时序图、饼图、柱状图、对比表 / 讲解片里的图表页」指 Flexoki 纸面(暖白纸、墨黑字、不描边的浅灰圆角卡片,卡片里的图照轻量图表渲染器画:灰边框、墨线小三角箭头、普通标签,强调色只点在有意义的地方);手写粉笔的示意图仍用黑板板书,铅笔图表、荧光笔和便利贴仍用实验笔记本,彩色粉彩底、macOS 窗口和 ✓ / ✗ 徽章的产品界面仍用粉彩界面,深色笔记应用窗口仍用笔记应用界面,点阵无限白板上的卡片和连线仍用白板卡片,系统的微缩模型仍用等轴 2.5D,剖面和施工图仍用蓝图工程图。「暖调彩铅绘本 / 彩铅绘本 / 彩铅童书插画 / 巨物与小孩 / 大龟过河 / 纸齿白点 / 层层叠涂」指暖调彩铅绘本(暖白纸上满画面顺形体的彩铅叠涂、纸齿透出细白点、毛发成簇顺毛,大而温柔的生物和小小的孩子,黄昏暖光和橙黄的灯,没有墨线和黑色);单说「彩铅」仍指韩国彩铅(明亮可爱的甜品小物、粉嫩高光),黑白石墨仍用铅笔素描,软蓝限色、刮擦墨线加蜡笔颗粒的绘本跨页仍用蓝调绘本,粉彩黄昏转入星空、满坡小野花仍用暮色微缩绘本,不透明水粉的特写大头像仍用复古水粉,深蓝夜色里只有一个暖光的排线小版画仍用排线夜景;单说「绘本」仍指绘本角色动画。「彩色小镇 / 彩色房子 / 童话小镇 / 童话街景 / 彩旗街 / 钟楼小镇 / 水粉加描线的街景 / 有被这彩色小镇治愈到」指彩色小镇(水粉平涂加细墨线,密密的彩色房子堆上山坡,石板曼莎屋顶、白色钟楼、好几层三角彩旗、爬藤玫瑰和窗台花、湿街倒影);中式园林和古镇仍用江南园林,锡釉蓝砖上的运河小镇仍用代尔夫特蓝瓷砖,黑白刻版的雪村仍用黑白麻胶版画,彩纸剪出来的热气球小镇仍用剪纸拼贴,系统的微缩模型和小岛仍用等轴 2.5D,针管笔速写加淡彩的小卡仍用钢笔淡彩,水粉画的人物大头像仍用复古水粉,彩铅叠出来的黄昏小镇和巨物仍用暖调彩铅绘本,没有描线、没有笔触的几何色块仍用扁平矢量。「色粉小像 / 色粉画 / 绘本角色小像 / 人和宠物 / 猫围巾 / 白底不画背景、边上干笔散开的角色 / 大眼睛大腮红红鼻尖」指色粉小像(白纸上的半身角色小像,软色粉加一点水粉,大圆眼、大腮红、红鼻尖、一根根的发丝和蓬松的毛,柔和的粉蓝和奶油色里只有一组暖橙,边缘散进白纸);背后刷一块单色、看得见毛衣针脚的复古童书大头像仍用复古水粉,满画面彩铅叠涂、带天空和场景的黄昏绘本页仍用暖调彩铅绘本,软蓝限色、乱线墨线的绘本跨页仍用蓝调绘本,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,明亮可爱的彩铅甜品小物仍用韩国彩铅;「色粉夜景」仍指排线夜景,「粉彩界面」仍指产品界面。「诗意万圣夜 / 万圣节绘本 / 忧郁的瓷白脸 / 红眼眶红鼻头 / 黑色齐刘海波波头 / 粗麻帽子 / 发光的小幽灵」指诗意万圣夜(暗色画板上忧郁、超现实的秋夜绘本肖像:瓷白的脸泛红晕、半闭的厚眼皮、一整块的波波头、粗麻 / 针织 / 格子呢织物,靛蓝星空或深色叶丛里只有一处发光的点睛);白纸上不画背景、色调粉粉的角色小像仍用色粉小像,背后刷一块单色、大鼻子红脸蛋的复古童书大头像仍用复古水粉,满画面短排线、只有一个暖光的夜景小版画仍用排线夜景,粉彩黄昏转入星空的微缩风景仍用暮色微缩绘本,满画面彩铅叠涂的温暖黄昏童书页仍用暖调彩铅绘本。「油画棒 / 油画棒肖像 / 蜡笔干刷的人物 / 白纸上露着纸纹白点的粗笔触小像 / 橙黄配藏青」指油画棒肖像(浮在白色糙面纸上的人物小像:一道道平行干笔铺成的大块颜色里撒满纸纹白点,笔尾是硬的梳齿,藏红花黄、藏青、黑、一种冷蓝加橙色腮红和橙红嘴唇,黑色蜡笔只点在眼睛、眉毛和几处轮廓);同样白纸不画背景、但柔和粉粉、揉开的色粉小像仍用色粉小像,米白纸上几大块色加一块滚筒背景板的 mid-century 海报仍用干刷色块,小孩在糙纸上画的蜡笔画仍用儿童蜡笔画,梵高式厚涂的风景仍用油画厚涂。「手账线描 / 手账风 / 速写本小画 / 细线墨线加彩虹条纹 / 粉腮红闭着眼的小人」指手账线描(大片空着的暖米白纸上一个小人物和两三件道具:发丝细、略抖、不闭合的墨线,一根根分开的头发,彩铅和马克笔涂的彩虹条纹衣服,圆粉腮红、闭着的眼睛、小红嘴,单片叶子和细线小树);贴纸、小票、和纸胶带的「手帐拼贴」仍用贴纸拼贴 · 小票,橡木桌上针管笔加松散淡彩的速写小卡(「速写本小人」)仍用钢笔淡彩,满画面彩铅叠涂、带天空和场景的童书页仍用暖调彩铅绘本,白纸上粗笔干刷的人物小像仍用油画棒肖像,软色粉揉开、大圆眼的角色小像仍用色粉小像,草稿纸上的蓝色圆珠笔涂鸦仍用圆珠笔涂鸦。「日系扁平小插画 / spot illustration / 几幅日常小事的小插画 / 平涂色块的小人加一个红色点睛 / 白线衣褶」指日系扁平小插画(几幅小画散在白纸上:平涂的不透明色块、手剪似的边、极淡的颗粒,藏青、粉蓝、芥末黄、橄榄绿、灰和近黑的头发,每幅只有一个红色的东西,衣褶刻成白线,脸是白纸加一道侧脸线和一点眼);分层几何色块、层间投影的风景和夜景仍用扁平矢量,发丝细墨线加彩虹条纹、一个小人物占一页的仍用手账线描,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,米白纸上几大块干刷色的 mid-century 海报仍用干刷色块,白纸上粗笔干刷的人物小像仍用油画棒肖像,产品发布片的界面仍用粉彩界面。「颗粒童书 / 颗粒绘本 / 甜美童书插画 / 粉笔颗粒质感 / 钴蓝夜空加红房子」指颗粒童书(满幅的 mid-century 童书页:钴蓝和群青的天、朱红、橙、松绿、奶油色和桃粉色的雪,大块平涂的形状用干的粉笔颗粒笔刷铺,碎边、细颗粒和干笔条纹,没有描线,黑白大圆眼或点点眼加圆腮红);软蓝限色、乱线墨线的绘本跨页仍用蓝调绘本,白纸上不画背景、粗笔干刷的人物小像仍用油画棒肖像,背后刷一块单色、看得见毛衣针脚的复古童书大头像仍用复古水粉,粉彩黄昏转入星空的微缩风景仍用暮色微缩绘本,满画面彩铅叠涂的暖调童书页仍用暖调彩铅绘本,白纸上散着几幅平涂小画的仍用日系扁平小插画,米白纸上几大块干刷色的 mid-century 海报仍用干刷色块。「柔光草丘 / 草丘壁纸 / 梦幻草丘 / 绒毛山丘 / 极简风景壁纸 / 山脊上的小人」指柔光草丘(1:2 的极简梦幻手机壁纸:巨大的起伏草丘盖着顺坡流动的天鹅绒草毛,每座山是一片发光的超现实色场——坡顶亮、谷里冷,干净的深蓝天占一大半,一团柔软的积云,或者银河和彗星,山脊上一个只有几十像素高的人在走);赛璐璐平涂、硬边积雨云和夏日少年感仍用日本动漫,大片湿晕染的风景仍用水彩,梵高式厚涂笔触和颜料浮雕仍用油画厚涂,糖果色小球和鼓鼓的软字仍用柔光 3D,粉彩黄昏转入银河、拼布条纹山丘和满坡小野花加一个原创小角色和放大图的绘本页仍用暮色微缩绘本,满画面顺着风向的短笔触、只有一处暖光的夜景小版画仍用排线夜景,平涂色块加粉笔颗粒的 mid-century 童书页仍用颗粒童书。+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)、扁平矢量(分层几何色块、七色、层间投影)、绘本角色动画(小角色挤压拉伸的真动画)、圆珠笔涂鸦(蓝红圆珠笔线稿、墨团、彩铅、页边涂鸦)、描图纸叠层(灯箱上的黑线底图 + 一张张单色描图纸叠片:正片叠底、套准十字、定位钉、绘图胶带)、粉彩界面 · Pastel UI(产品发布片式的界面画面:纯色粉彩底与大光斑、macOS 窗口卡片、胶囊与粗黑标题色条、状态标签与 ✓ / ✗ 徽章、放大镜、从卡片边探头的扁平小图标)、阅卷批改 · Exam Grading(绿毛毡桌上被红笔批改的答题卡:定位黑块、考号涂卡、得分格与阅卷栏、长尾夹夹住的标准答案卡、油墨不均的朱红印章、立体红笔、波浪线 / 圈 / 引线 / 批注 / 叉 / 圈起来的分数)、皮影戏 · Shadow Puppetry(油灯照亮的幕布上,雕空、透明染色的驴皮关节人偶:镂空纹样、阳刻空脸、雉翎盔头、线结与操纵杆、离幕时虚化的双影;雕花戏台、红漆金字牌匾、红灯笼)、钢笔淡彩 · Pen & Wash(速写小卡上的针管笔线稿 + 松散淡彩:线条抖、出头、不闭合,颜色错位出线、留白缝、干边与颗粒,不铺满的背景色块;大头、圆眼镜、点点眼、红鼻子的呆萌小人;卡片拍在木桌上,旁边放着针管笔和水笔)、复古水粉 · Retro Gouache(复古绘本风的水粉大头像:不透明水粉从暗到亮一层层盖上去,单色背景用干笔皴擦;大红鼻子、腮红、圆眼和大耳朵用几阶色值塑出来;看得见针脚的毛衣和毛线帽,一根根的头发和胡子,毛毡;最后是印刷书页的纸纹)、蓝调绘本 · Blue Picture Book(软蓝色调的现代绘本跨页:几乎只用粉蓝、矢车菊蓝、深青蓝三阶蓝加黑墨和纸白,只点一点珊瑚红、粉色腮红和芥末黄;毛笔 / 墨铅笔线干、抖、断,粗细不匀,线不闭合,暗部用快速来回的乱线排出来;颜色是干蜡笔、粉彩、干水粉,错位出线,纸纹的白点透出来;白粉笔痕压在蓝上,甩点和细尘;背景蓝块毛边、不到纸边;大圆脑袋、带高光的点点眼、点彩腮红和雀斑、火柴腿穿靴子的小人,乱线毛边的白色毛绒动物;最后印在书上:中缝和页码)、江南园林 · Jiangnan Garden(细笔园林春景,数字水粉插画:成千上万片叶形小笔触按一个太阳堆出树冠,暗芯、亮边、一簇簇的高光;白色和淡粉的繁花是一簇簇圆点花瓣,枝条从缝里露出来;垂柳是一绺一绺发丝般的细枝挂满小叶;黛瓦飞檐是真的瓦垄:筒瓦板瓦一行行、檐口瓦当滴水、翘起的翼角和卷起的脊头;粉墙月洞门、冰裂纹漏窗、翡翠绿槅扇和挂落、红灯笼、匾额;九曲石桥、石阶、小木船;碧绿湖面倒映岸上的一切,更柔、更暗,加涟漪和细竖纹;睡莲、白鹭;从前景花枝到雾里青山层层退远,墙上桥上落着叶影;最后一方小红印)、干刷色块 · Dry-Brush Blocks(mid-century 海报 / 水粉拼贴式的编辑插画:米白纸上几大块干笔或滚筒刷出的色块,颜色严格限定在森林绿、鼠尾草绿、青蓝、藏蓝、近黑和朱红,外加一点天蓝、淡青瓷和米色;每块颜色在自己的笔刷坐标系里刷:一道道平行的笔,起笔饱满、收笔干枯,两侧几乎是直边,两端梳成长短不一的毛齿,块里有顺笔的鬃毛纹、皴擦斑和露出来的纸色;背后的大色板用滚筒:近乎平涂、成簇的细点、干的两侧和几道细刮痕;色块像丝网套印或撕纸拼贴一样叠起来,撕口带一圈浅色纤维边;人物拆成几个大块面:亮暗两半朝不同方向刷的外套、几块肤色平面拼的头、粗黑框眼镜、干笔皴擦的白胡子;瓶子是竖刷的深色剪影加一道高光和小块标签;一旁一个小朱红方块;不勾线、不做渐变;最后像胶印:轻微柔化、纸纹、暗部零星白点、纸上细尘)、暮色微缩绘本 · Twilight Storybook(温柔、怀旧的黄昏绘本单页,满是微缩细节:大片粉彩黄昏天空,从顶上的薰衣草紫经玫瑰、蜜桃到地平线的暖金,柔和的平底云带、细细的光线和一轮低垂的淡日;一侧天空已经入夜:星空、带暗带的银河、弯月、流星,昼夜交界经过淡紫和靛蓝,不发灰;下面是一层层粉彩条纹的起伏山丘,拼布似的田、细细的垄、小圆树;前景是几万朵小野花铺成的坡,坡顶是色点,越往下越大:雏菊、矢车菊、虞美人、波斯菊、金盏花、毛茛、羽扇豆、勿忘我,夜的一侧整片变成月光蓝;很小、扁平、可爱的原创角色;上面叠一层科学图版的语言:圆形的「detail a」放大图,细墨线、排线、尺寸标注、标签和比例尺,几行灰色的小写英文手写字;最后是细颗粒、光晕、暗角和底边一道撕纸边)、排线夜景 · Hatched Nocturne(彩铅 / 色粉排线式的小幅夜景版画:天空、云、山和海全由密密的短笔触叠成,每片区域的笔触顺着同一股「风」走——天空斜着流、蒸汽绕着云团卷、山坡顺着坡向、海面横着长拖,每一笔色相和明度都差一点,笔毛分道、拖干的笔尾、纸纹里漏出的细缝,没有一处平滑渐变;深靛蓝、藏青、冷灰蓝的夜色里只有一个暖色光源,光是一层层加上去的发光笔触:核心黄白、外圈橙红、再外是被照亮的笔触,被照亮的蒸汽按「光 × 受光」上色,所以是红橙而不是粉;发光的细丝(会蜿蜒、分股、末端亮珠)、火星、星点;海面上被横向笔触打碎的倒影和光柱;几十像素高的小人靠一点亮色(围巾)点出来;最后装裱成小版画:米白纸边、压印的版痕、左下铅笔小标题、右下更小的说明,用细的普通字体)、笔记应用界面 · Obsidian UI(讲解片里的深色笔记应用窗口:近黑页面上一团淡紫光晕,窗口里有标签栏、细长图标栏、带缩进线的文件列表、粗黑 H1 下一道紫色短条、属性块和「#标签」、紫色的内部链接和行内代码、带语法色的 mermaid 代码块——点「阅读」后渲染成扁平深色的流程图,一个节点亮紫——紫色左边的引用标注,右栏关系图谱里被链接的笔记亮成紫色光点;全画只有一个紫色强调色,不画官方 logo)、白板卡片 · Canvas Board(深色笔记应用的白板视图:深色页面上一扇应用窗口——红黄绿三点和「.canvas」标签页的标签栏、左边一列线性图标——里面是一块随镜头平移缩放的灰点阵无限白板;分组框和浮在框上方的组名,深色圆角卡片带 2 px 的卡片色边(红、橙、黄、绿、青、紫)和一层很淡的同色底,卡片之间是从边的中点沿法线弯出去的曲线连线,末端实心箭头、中间一块白板底色的标签;卡片里是 Markdown:标题、正文、紫色高亮、等宽行内代码、勾选清单(勾上时紫色方框弹出、对勾画出、文字变灰加删除线)、紫色竖条的引用、紫色标签胶囊、颜色编号胶囊;图片卡片上方写文件名,里面可以用手绘笔触画草图(每笔画两遍、略弯、出头,手写体批注);右上角一列缩放按钮;全画只有一个紫色强调色加卡片色;所有东西都记在白板坐标里、每次按镜头重画,任意缩放都锐利,镜头能平移缩放、卡片能掉落、连线能一点点画出来)、Flexoki 纸面 · Flexoki Paper(文档站式的图解页:暖白纸(#FFFCF0) 上的墨黑字和一串暖灰,几张不描边、不投影的浅灰圆角卡片,粗黑中文标题、灰色英文类型名、等宽编号;卡片里的图照轻量图表渲染器的样子画——比底色差一级的框和 2 px 灰边(直角、圆角、胶囊、菱形、圆柱、圆)、墨线末端一个小的实心三角箭头、普通半粗体标签垫一块底色,虚线生命线和回复、带纸色缝的饼图、细网格上的柱状图、表头着色的对比表;Flexoki 的橙、红、蓝、绿、紫、青只放在有意义的地方,橙色聚焦框、黑底胶囊、字距收紧的大数字;能做成图一边一边画出来、数字滚动的动图)、暖调彩铅绘本 · Warm Pencil Storybook(暖白、有齿纹的纸上一层层叠涂的彩色铅笔绘本页:天空、山坡、草、水、一只大而温柔的生物和一个小小的孩子,全由顺着形体走向的细铅笔线叠成——天空横向长排线,山坡顺着坡势,龟壳绕着每块盾片的生长纹,脖子横过褶皱,雨衣顺着衣褶,苔藓和头发一簇簇顺毛;每块先铺一层浅色底,再上固有色、背光处叠同色系的深色,受光处罩一层暖色、阴影里罩一层冷色,每层角度错开一点、笔触交叉;蜡只挂在纸齿的峰上,同一批纸坑一层层都透出细白点,压得重、叠得多的地方才慢慢合上;后画的东西先留白再铺背景,颜色不互相混;毛是一绺一绺的:根部散开、尖端聚拢、顺着毛向,每绺受光一侧亮、背光一侧暗;没有墨线、没有黑色,只有很淡的同色轮廓;黄昏的暖光:灯笼和窗灯是一层层橙黄的发光叠涂(不是一团光晕,也不是放射线),低低的太阳给受光一侧一道暖边;水里的倒影也是一笔笔横排线;附带树、小房子、石头、鳞片、野花、纸灯笼和穿雨衣提灯笼的小孩等绘本部件)、彩色小镇 · Colour Town(不透明水粉平涂加细细的深棕墨线画的童话山城街景:高高窄窄的房子漆成番茄红、芥末黄、青绿、薄荷、珊瑚、奶白,一排压一排堆上山坡,近大远小、前后遮挡;深蓝灰的石板曼莎屋顶是一片片瓦错缝铺出来的,带老虎窗、烟囱和赤陶烟囱帽、电视天线;白色钟楼、淡蓝的天和奶白的云;三角彩旗串在好几层深度上斜穿街道,远处的小、近处的大,每面旗有一道深一点的折痕;红色爬藤玫瑰、溢出来的窗台花箱、铁艺阳台、石头台阶和扶手、路灯、吊挂的店招、拱门和彩色木门、写着字的店面和条纹遮阳篷;前景是湿亮的街面,把整条街倒映成一道道竖向的笔触;每块颜色都是带一点笔刷纹理的不透明平涂,边缘像手画的那样微微抖,和描线不完全对齐;墨线分成几段、粗细略有变化,方框的转角偶尔出头;墨是半透明的,压在红墙上是深红棕,压在玻璃上近乎黑;窗户排得整齐,但每扇都略有不同;一整面墙可以用透视单应贴成往消失点收的峡谷墙;几乎没有投影;附带钟楼、台阶、矮墙、栏杆、树、花盆、彩旗、路灯、店招、海报、咖啡桌、猫和概括的小人等部件)、色粉小像 · Pastel Vignette(白纸上的绘本角色小像,软色粉加一点水粉:一个人和他的小动物,半身、略偏一边,四周大片留白,不画背景色块、不加边框,画面在边上用干笔散开、融进白纸;颜色柔和、粉粉的——浅粉蓝的衣服上看得见顺着衣褶的干笔、奶油色的毛衣、暖肤色——只有一组暖橙饱和(橘猫、绒球、蝴蝶结这类);脸是揉开的平滑色粉:大圆眼、深色虹膜和两点白高光、一大圈腮红、红鼻尖、小嘴;头发和毛是成百上千根细丝,一绺一绺,有几根飞出轮廓,毛的轮廓蓬松地融进后面的东西;几乎不描线,只有眼皮、鼻翼、脸的背光侧几道细的软线;背后至多一枝叶子和一层很淡的铅笔小镇;附带圆眼、眉毛、腮红、鼻子、嘴、发丝、毛簇、蓬松轮廓、叶子和枝条等部件)、诗意万圣夜 · Poetic Halloween(忧郁、带一点超现实的秋夜 / 万圣节绘本肖像,暗色画板上的不透明水粉加细彩铅排线,再印出来:瓷白的脸,鼻子、脸颊、眼皮和眼睛四周泛着很重的红晕(平滑的一层红加单像素的细红斑点),下眼睑一道湿红,厚眼皮半闭、往外眼角垂,小嘴不笑,体积极简;头发是一整块雕塑般的实体——刀切一样平的齐刘海、乌黑(或银白)的波波头,几乎看不见发丝,只有一道柔和的光泽;衣物是摸得着的织物:粗麻 / 毛毡帽子(一上一下交织的粗线、线间的黑孔、毛边)、粗针织围巾和手套、斜纹织出来的格子呢外套;底子暗而沉——靛蓝夜空和星星、浓密的深色叶丛;每幅只有一处发光的点睛:眼睛和衣摆尖发着暖光的床单小幽灵,暖光照亮身边的叶子、毛线和脸的下侧;满画面一层细的印刷颗粒;附带重眼皮眼、红晕、长鼻子、小嘴、光泽带、粗麻、针织、罗纹、格子呢、毛边、掌状叶和叶丛、暖光照明和光晕、小幽灵、星星等部件)、油画棒肖像 · Oil-Pastel Portrait(白色糙面纸上的油画棒 / 蜡笔干刷人物小像,人浮在白纸上、不画背景(至多一抹天色或一块干刷的黑色投影):颜色收得紧而浓——藏红花黄 / 金盏黄、偏青的藏青和黑、一种冷蓝,加橙色腮红和橙红嘴唇;毛衣、帽子、大衣、围巾这类大块颜色用一道道平行的干笔铺满,蜡只挂在纸纹的凸起上、跳过纸坑,所以每块颜色里都撒着顺着笔拉长的纸纹白点,笔触的收尾是硬的、一把长短不一的梳齿;黑色蜡笔只点在要紧处:眼睛、眉毛、鼻孔、几笔轮廓和衣褶,不勾满轮廓线;脸就是纸本身,背光一侧几笔桃色,两块排线的橙色腮红,平涂的橙红嘴唇——简化、略歪、有表情;头发是几笔松而有劲的长笔触,针织的条纹是一段段短而粗的色条;附带干笔铺色、蜡笔线、排线腮红、短色条、干刷投影、热气、黑眼睛、粗眉、嘴唇、长发丝等部件)、手账线描 · Sketchbook Doodle(速写本里的一页小画:暖米白、带一点粉的纸上大片空着,一个小小的人物加两三件稀疏的小道具浮在纸上,不画地面和背景;发丝细的深色墨线,略抖,起笔轻、收笔挑出一个细尖,轮廓一两笔画完、接口不闭合,偶尔断开;头发是一根根分开的细线,一起顺着一个方向起伏,线与线之间露着纸;脸小而简单——闭着的弧线眼加几根睫毛(或两个小黑点)、一笔鼻子、小小的红嘴、两颗圆圆的粉腮红;衣服用彩铅和马克笔涂成一道道松散的彩虹条纹(红、黄、青绿、橙、品红、蓝),条与条之间留着纸白,每条的上下边各自游移,有的冲出墨线、有的够不到,看得见彩铅的颗粒和顺笔的道子,颜色压在一起会变(红压黄成橙);道具用细的彩色线:单片叶子带人字形叶脉排线(或在填色里留白的叶脉)、小花、几根细线叠成的小树、一缕带卷的热气、一只团着睡觉的猫;附带抖线墨线、不闭合的轮廓、发丝、条纹、彩铅 / 马克笔上色、圆腮红、闭眼、点眼、小红嘴、叶子、小花、细线树、热气、短毛刺、小涂鸦等部件)、日系扁平小插画 · Flat Spot Illustration(几幅日常小事的小插画散在白纸上,中间留足白,不画地面和背景(至多一个水洼或一道小影子):每块颜色都是平涂的不透明色块,没有渐变和明暗,只有极淡的印刷颗粒,边缘略不规整、像手剪或马克笔铺出来的;颜色克制——藏青、灰蓝和粉蓝、芥末黄、橄榄绿和墨绿、几种灰、近黑的头发,皮肤就是白纸,每幅小画里只有一个反复出现的暖红(伞、锅、碗、马克杯、一双袜子);线很少:同色的两块之间留一道白缝,深色衣服上的衣褶和接缝刻成白线,浅色衣服上画深一号的线,深色细线只画侧脸、手指和家具腿;脸几乎空白,一点眼、侧脸线上一个鼻头;头发是鼓包的一整块深色,刻两三根白发丝;手像连指手套,指缝是红线;小动作交给手画的小记号:热气的 S 形、惊讶的三短线、z、雨点;附带手剪边的平涂形状、白缝、自动选色的衣褶线、用简单零件拼的人(站、走、坐、蹲、躺)和手、鞋,伞、锅、马克杯、碗、托特包、自行车、长椅、扶手椅、沙发、猫、盆栽等道具,热气、惊讶线、z、雨等记号)、颗粒童书 · Grainy Picture Book(满幅不留白的 mid-century 童书页,颜色少而饱和:钴蓝 / 群青的夜空或灰蓝底、朱红 / 番茄红、橙、松绿、奶油色、桃粉色的雪和黑头发;每样东西都是一大块平涂的形状,用干的、粉笔似的颗粒笔刷铺出来——颜色碎成细沙似的颗粒和深浅小点,顺着笔触有淡淡的干笔条纹,偶尔跳过纸齿露出底下的奶油底色,边缘是干笔扫出来的毛茸茸的碎边;没有描线,形状和形状色块相接,只有几笔深色蜡笔点睛(窗格、牵绳、笑嘴);亮面是一侧更浅的干笔擦扫,投影是压在上面的一块平的深色;脸简单而甜:黑白大圆眼或点点眼、珊瑚色圆腮红、小嘴、扣子或三角鼻子;天空一级一级分层、层与层之间干笔交错,不用数码渐变;附带干颗粒填色、干笔擦扫、分层天空、斑块、投影、光圈、干笔和蜡笔点睛线、颗粒小点,甜脸零件、波波头 / 长发 / 短发 / 发髻、毛线帽,站 / 走 / 坐的小孩,亮灯的红色小屋、羽状松树、远处小冷杉、圆树、灌木、松枝丛、杯子、纸盒、纸袋、盆栽、芦苇、草丛、路灯、小狗、鸭子、栅栏,雪、星、月牙、炊烟、热气、涟漪、脚印)、柔光草丘 · Dreamy Hills(极简、梦幻的 1:2 竖版手机壁纸:巨大柔软的起伏草丘占下半幅,每座山都盖着一层天鹅绒似的「绒毛」——几万根细小、收尖、略弯的草叶笔触顺着坡面的流向梳过去,山脊上一圈毛边立在天空前;每座山的颜色是一片柔和发光的色场:光落在坡顶,转开的地方是粉彩的边缘光带,一座山沉到另一座后面的谷里是偏冷的阴影,颜色常常是超现实的(薰衣草紫配杏色、藏红花黄配粉、夜里的焦橙配藏青、草绿);上半幅是干净、略带渐变的深蓝天,一团柔软团块堆出来、向阳一面泛暖的积云,或者夜里的星星、银河和彗星;底边一条密密的高草带,几朵小野花,全画面一层细的胶片颗粒;某条山脊上一个只有几十像素高、正在走路的人,是全画唯一的尺度;附带山脊样条和前后遮挡、坡面流向场、按根部排序分块合成的草毛笔触、暖冷两条色带的光照模型、坡顶边缘光、先挡掉主光的谷底遮挡、四套色场调色板(草绿 / 薰衣草和杏色 / 藏红花 / 夜里的焦橙)、天空渐变和太阳光晕、积云、星星和十字星芒、银河、彗星、远处小树、前景草带和五瓣野花、小人(可提一盏发光的小灯)、泛光和胶片颗粒)、夏日光绿 · Sunlit Greenery(明亮、高调的夏日白天,照动画背景美术和数码水粉的画法:枝叶由许多清晰的平涂叶簇叠成,深青绿的暗部、中绿、向阳的黄绿和一点浅色高光,叶缘是画出来的、略碎,树冠里透出小块天空,外圈散成一簇簇枝叶;晒白的白色(墙、靠垫、石头)受光处是暖奶油色、背光处是冷的蓝灰,交界处常有一道细暖线;叶影和光斑落在地板、墙和石头上;干净饱和的蓝天和一小团积云;清澈的水是透明的青绿,水底的卵石看得见,倒影碎成一道道横向的笔触;没有描线,都是硬边的形而不是模糊,带一点纸面和水粉的纹理;附带超采样 id 图的平涂多边形光栅器、大团块里排小团块的叶团明度场、按色阶从暗到亮铺形并沿边盖朝外叶簇的叶团画法、交错色阶、掏空的外圈和天空小洞、两半色的大叶枝、草丛、带树皮纹的树干、边缘是叶簇的叶影遮罩、冷色阴影和暖色阳光、鼓起来切成平涂色阶的体(靠垫、花盆、切面大石头和苔藓帽)、窗框、纱帘、门板、透视木地板、书和杯子、卵石床和碎成横笔的倒影、积云、纸纹)。用户说「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、家庭录像、录像带、扁平插画、扁平风、矢量插画、绘本动画、角色动画、挤压拉伸、圆珠笔、圆珠笔涂鸦、原子笔、页边涂鸦、课本涂鸦、手画棋盘、描图纸、硫酸纸、叠片、叠层、分色片、灯箱、拷贝台、透光台、套准、定位钉、粉彩界面、粉彩 UI、Dot 风、Dot 那种风格、产品发布会界面、发布会质感、窗口卡片、macOS 窗口、界面卡片、讲解片界面页、小图标探头、阅卷、阅卷批改、批改、判卷、改卷、改作业、答题卡、试卷、考卷、测验卷、红笔批改、红笔打分、打分数、盖章批改、朱红印章、标准答案卡、长尾夹、讲解片评测 / 打分页、皮影、皮影戏、影子戏、驴皮影、灯影戏、皮影人偶、雕花戏台、戏台牌匾、亮相、钢笔淡彩、淡彩、淡彩速写、钢笔淡彩小人、针管笔、勾线笔、针管笔加水彩、线稿上色、速写卡片、速写本小人、水彩小卡、城市速写、街头速写、水笔、自来水笔、复古水粉、水粉、水粉画、不透明水粉、哑光丙烯、复古绘本、绘本插画、绘本大头像、童书插画、复古童书、大头像、大鼻子人物、针织毛衣、麻花毛衣、毛线帽、毛毡帽、卷发、胡子、蓝调绘本、蓝色绘本、软蓝绘本、蓝调童书、软蓝童书插画、蓝色童书插画、蓝色系绘本、限色绘本、蓝白绘本、现代绘本跨页、手绘绘本跨页、绘本跨页、绘本内页、干笔墨线、墨铅笔线、粉彩蜡笔质感绘本、白色毛绒动物、毛绒白熊、点彩腮红、江南园林、园林春景、春水园林、中式园林插画、古典园林插画、国风园林插画、苏式园林、细笔园林、园林风景插画、水榭、临水茶榭、亭台楼阁、粉墙黛瓦、黛瓦白墙、飞檐翘角、翼角起翘、月洞门、漏窗、冰裂纹窗、槅扇、挂落、九曲桥、曲桥、垂柳园林、碧水倒影、园林倒影、睡莲池、数字水粉风景、细腻厚涂风景、干刷色块、干笔色块、干刷、干刷插画、干笔插画、滚筒刷、滚筒色块、色块插画、大色块插画、毛边色块、刷痕色块、粗刷笔触、mid-century、世纪中期插画、中世纪现代插画、复古编辑插画、复古海报插画、水粉拼贴、撕纸色块、限色海报、暮色微缩绘本、暮色绘本、黄昏绘本、微缩绘本、黄昏转夜、昼夜交界、日夜交界、半边黄昏半边星空、粉彩黄昏、粉紫晚霞、黄昏星空、银河插画、野花坡、野花草坡、花海插画、萤火虫、放风筝插画、拼布山丘、条纹田野、小圆树、细节放大图、局部放大图、技术细节小窗、科学图版风插画、手写英文小字、晚安绘本、治愈系绘本插画、排线夜景、排线风夜景、彩铅夜景、色粉夜景、粉彩排线、短笔触夜景、笔触夜空、方向笔触、夜景版画、小版画、限量版画风、版画装裱、版痕、纸边标题、铅笔题字、夜景插画、夜空插画、深蓝夜景、靛蓝夜空、冷暖对比夜景、唯一暖光、夜里的火光、发光的云、被照亮的云、红色精灵闪电、精灵闪电、火山夜景、熔岩入海、熔岩、岩浆、火山喷发插画、海上风暴、海面倒影、光柱倒影、火星飞溅、星点、看海的人、礁石上的人、远处的小人、小人比例尺、雪夜篝火、渔火、笔记应用界面、笔记软件界面、笔记 App 界面、Obsidian 风、Obsidian 界面、Obsidian 风格、黑曜石笔记、深色笔记界面、暗色主题界面、Markdown 笔记、Markdown 编辑器、双链笔记、内部链接、关系图谱、知识图谱界面、图谱视图、局部图谱、反向链接、文件列表、侧边栏、标签页、属性栏、行内代码、代码块、mermaid、mermaid 流程图、代码块渲染成图、源码 / 阅读切换、阅读视图、引用标注、callout、读书笔记界面、知识库界面、第二大脑、讲解片里的笔记应用、应用窗口演示、白板卡片、无限白板、白板视图、画布视图、Canvas 视图、Obsidian Canvas、Obsidian 白板、笔记应用白板、卡片白板、卡片和连线、节点和连线、带箭头的连线、弯曲连线、连线标签、分组框、点阵背景、点阵白板、深色白板、深色界面卡片、彩色边卡片、勾选清单卡片、待办卡片、引用卡片、图片卡片、草图卡片、手绘平面图、缩放按钮、镜头平移、镜头缩放、卡片掉落动画、连线画出来、搬家计划、旅行计划白板、活动计划白板、头脑风暴白板、项目拆解白板、计划白板、Flexoki、Flexoki 纸面、Flexoki 配色、Flexoki 风、暖白纸、米白纸面、墨黑字、文档站风格、文档页图解、技术文档配图、图解页、一页图解、讲解片图表页、几张图讲清楚、流程图、画流程图、时序图、序列图、饼图、柱状图、条形图、对比表、参数对比、图表合集、图表墙、Mermaid 风、Mermaid 图、图表渲染器、灰底圆角框、小三角箭头、橙色聚焦框、数字滚动、计时器大数字、配方图解、步骤图解、手冲咖啡图解、菜谱图解、工作流程图解、暖调彩铅绘本、暖调彩铅、彩铅绘本、彩铅童书、彩铅童书插画、彩色铅笔绘本、彩色铅笔童书、软彩铅、彩铅叠涂、层层叠涂的彩铅、顺着形体排线、纸齿白点、纸纹透白、怀旧童书、翻绘本的感觉、温暖怀旧的绘本、暖色绘本页、巨物与小孩、大动物和小孩、巨大温柔的生物、温柔的巨兽、大乌龟、巨龟、老乌龟、背着花园的乌龟、龟背上的小花园、大龟过河、过河、小溪、踏脚石、提灯笼的小孩、黄色雨衣、纸灯笼、亮灯的窗、亮灯的小房子、黄昏小镇、成簇的毛、顺毛、毛一绺一绺、苔藓、金黄的树、彩色小镇、彩色房子、彩色街景、童话小镇、童话街景、治愈小镇、理想的生活环境、欧洲小镇、山城小镇、钟楼小镇、彩虹小镇、彩旗、三角彩旗、彩旗串、彩旗街、节日街道、节日早晨、钟楼、白色钟楼、洋葱顶、石板屋顶、曼莎屋顶、老虎窗、烟囱帽、电视天线、风向标、爬藤玫瑰、窗台花箱、铁艺阳台、台阶街、石头台阶、拱门下的台阶、湿街倒影、雨后街道、雨后的广场、水粉街景、水粉加描线、水粉平涂加细线、细节多到看不完、小红书彩色小镇、色粉小像、色粉画、软色粉、色粉笔触、色粉质感、色粉加水粉、粉彩笔触、粉彩质感、绘本角色、绘本人物、绘本小像、角色小像、人物小像、半身像、人和宠物、人和猫、人和狗、主人和宠物、抱着猫、抱着狗、橘猫、大橘、毛茸茸的猫、毛茸茸的狗、狐狸、猫围巾、把猫当围巾、白底插画、留白插画、不画背景、边缘散开、干笔散开、画到边上就散了、大眼睛、大圆眼、大腮红、红鼻头、红鼻尖、发丝、一根根头发、头发丝、飞丝、毛绒绒、蓬松的毛、温柔的小像、治愈系角色、Midjourney 色粉风、诗意万圣夜、诗意万圣节、万圣节、万圣夜、万圣节插画、万圣节绘本、万圣节头像、秋夜、秋夜插画、忧郁绘本、忧郁风、超现实绘本、诡异又温柔、瓷白的脸、瓷娃娃脸、瓷偶、脸上的红晕、红眼眶、红眼圈、红鼻头、厚眼皮、半闭的眼睛、悲伤的眼睛、不笑的小嘴、波波头、黑色波波头、银白波波头、齐刘海、刀切刘海、粗麻、麻布、麻袋布、粗麻帽子、毛毡帽、粗针织围巾、毛线手套、格子呢、格纹外套、苏格兰格子、小幽灵、床单幽灵、发光的小幽灵、发光的眼睛、罐子里的幽灵、深色叶丛、星空肖像、Midjourney 万圣风、油画棒、油画棒肖像、油画棒人像、油画棒小像、油画棒插画、油画棒头像、蜡笔肖像、蜡笔干刷、干刷肖像、干刷人像、干笔人物、粗犷笔触、纸纹白点、露白的纸纹、手作感肖像、不完美的肖像、白底人物小像、白纸上的人物、藏红花黄、橙黄配藏青、芥末黄配藏青、条纹围巾、粗针织围巾、露指手套、捧着热饮、冒热气的纸杯、冬天的早市、冬日早晨、冻红的脸颊、橙色腮红、橙红嘴唇、黑色蜡笔线、Midjourney 油画棒风、手账线描、手账风、手账风插画、手账小画、手账插画、速写本插画、速写本小画、速写本的一页、线描小人、细线插画、细线手绘、发丝细的线、细墨线、童趣手绘、可爱手绘、治愈系手绘、彩虹条纹、条纹毛衣、彩虹毛衣、彩虹条纹毛衣、彩条衣服、彩铅条纹、马克笔条纹、粉腮红、圆腮红、闭着眼睛的小人、小红嘴、单片叶子、叶脉排线、细线小树、团着睡觉的猫、读书的女孩、小人物大留白、Midjourney 手账风、日系扁平小插画、日系扁平插画、扁平小插画、日系小插画、spot illustration、小插图、点缀插画、专栏插画、杂志小插画、生活小插画、日常小插画、生活方式插画、一天里的小事、日常小事、几幅小画、白底小插画、平涂色块小人、平涂插画、无描边插画、手剪边、白线衣褶、一个红色点睛、红色点睛、藏青芥末黄、空白的脸、侧脸线、一块黑头发、热气小曲线、惊讶三短线、雨天的星期六、下雨天在家、撑红伞、喂猫、午睡、看书喝茶、煮汤、颗粒童书、颗粒绘本、颗粒质感童书、颗粒质感插画、粉笔质感插画、粉笔颗粒、干笔颗粒、颗粒笔刷、甜美童书插画、甜美绘本、Midjourney 童书风、mid-century 童书、复古童书插画、满幅绘本页、满版童书插画、无描边童书、钴蓝夜空、群青夜空、钴蓝加朱红、雪夜小屋、红房子雪夜、桃粉色的雪、雪点、黑白大眼睛、点点眼、圆腮红、三角鼻子、羽状松树、遛狗、雪夜遛狗、喂鸭子、黄昏池塘、码头、柔光草丘、草丘壁纸、梦幻草丘、梦幻山丘、极简风景壁纸、极简梦幻壁纸、竖版手机壁纸、手机壁纸、锁屏壁纸、绒毛山丘、毛茸茸的山、天鹅绒草地、天鹅绒山丘、顺坡的草、草毛、发光的山丘、超现实配色风景、薰衣草色山丘、薰衣草和杏色、杏色山丘、藏红花黄山丘、黄色草丘、焦橙色山丘、夜里的橙色山丘、银河下的山丘、彗星和山丘、积云和草丘、一个人走在山脊上、山脊上的小人、孤独的行者、渺小的人和巨大的山、Midjourney 草丘、Midjourney 壁纸风、夏日光绿、光绿、夏日绿意、夏日绿植、日系绿植插画、绿植环绕、被绿植包围的房间、满窗绿树、窗外的绿树、窗边座位、窗边读书角、阳光房、白色房间的阳光、数码水粉绿植、平涂叶簇、清晰的叶子、树冠透光、树叶间的天空、斑驳光影、斑驳的光、叶影斑驳、叶间光斑、林间光斑、木漏れ日、晒白的白墙、冷蓝色阴影、暖奶油色阳光、清澈的溪水、溪边石阶、林间小溪、溪水和白石头、水底的卵石、碎成横笔的倒影、夏日绿色壁纸、清新绿植壁纸),或 "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 / overlay sheets / tracing-paper overlays / light box / colour separations / registration marks / acetate overlay / pastel UI / Dot-style product film / launch-film interface / macOS window cards / exam grading / grading an answer sheet / red-pen marking / graded test paper / rubber-stamped answer sheet / shadow puppet / shadow puppetry / Chinese shadow play / leather shadow puppets / backlit puppet screen / pen and wash / pen & wash / line and wash / ink and watercolour / ink and watercolor / fineliner sketch / fineliner and watercolour / sketchbook characters / sketch cards / urban sketching / water brush / gouache / retro gouache / gouache portrait / gouache illustration / opaque gouache / matte acrylic / picture-book portrait / vintage picture book / retro children's book illustration / mid-century children's book / big-nosed character portrait / cable-knit sweater / knitted bobble hat / blue picture book / soft blue picture book / soft-blue children's book illustration / modern picture book / limited-palette picture book / picture-book spread / scratchy ink line / dry-brush ink line / ink pencil line / crayon and pastel texture / chalky white marks / blue and coral palette / fluffy white bear / Jiangnan garden / Chinese garden / classical Chinese garden illustration / Chinese water garden / spring garden illustration / lush painterly garden / waterside pavilion / moon gate / lattice windows / zigzag bridge / weeping willow garden / upturned eaves / grey-tiled roof / blossom trees and reflections / lily pond with egrets / digital gouache landscape / dry-brush blocks / dry brush illustration / dry-brushed colour blocks / roller texture / brush-textured shapes / mid-century illustration / mid-century modern poster / mid-century editorial illustration / gouache collage / torn-paper collage poster / limited palette poster / scumbled texture / vintage book cover illustration / twilight storybook / dusk picture book / dusk to night sky / day and night split sky / pastel sunset sky / Milky Way illustration / wildflower meadow / wildflower hill / patchwork hills / tiny round trees / fireflies / paper kite / magnified detail inset / detail callout circle / scientific plate overlay / handwritten lowercase captions / cozy miniature illustration / bedtime story illustration / hatched nocturne / hatched night scene / pastel hatching night / coloured-pencil nocturne / directional strokes / short brush strokes sky / night print with margins / small art print / plate mark / pencilled title and caption / indigo night with one warm light / glowing cloud lit from below / red sprites / lava entering the sea / volcano at night / glowing threads and sparks / broken reflection on the sea / tiny figures for scale / Obsidian UI / Obsidian-style note app / dark note-taking app / dark-theme Markdown editor / note app window / file explorer sidebar / wiki links / backlinks / graph view / local graph / knowledge graph UI / properties and tags / inline code / mermaid code block / mermaid flowchart rendered / source vs reading view / callout block / reading notes app / second brain UI / knowledge base screen / canvas board / infinite whiteboard / dotted board / note-app canvas view / Obsidian-style canvas / cards and connectors / curved arrows between cards / edge labels / group frames / coloured card borders / task-list card / quote card / image card with a sketch / hand-drawn floor plan / zoom controls / camera pan and zoom / cards dropping in / moving plan board / Flexoki / Flexoki paper / Flexoki palette / warm paper and ink / docs-site diagrams / explainer sheet / diagram sheet / Mermaid-style diagrams / lightweight diagram renderer / flowchart / sequence diagram / pie chart / bar chart / comparison table / diagram wall / grey-bordered boxes / small triangular arrowheads / orange focus ring / rolling numbers / recipe explainer / warm pencil storybook / coloured-pencil storybook / colored pencil picture book / soft pencil textures / layered coloured pencil / pencil strokes following the form / paper tooth specks / nostalgic children's storybook / giant gentle creature and a small child / giant tortoise / tortoise with a garden on its back / stepping stones / child with a lantern / yellow raincoat / paper lantern / lit windows at dusk / tufted fur in locks / Midjourney sref 3220081856 look without an image model / colour town / colorful European town / storybook street / fairy-tale town / candy-coloured houses / hill town / bunting / pennant flags / festival street / clock tower / onion dome / slate mansard roofs / dormers / chimney pots / TV aerials / climbing roses / window boxes / wrought-iron balconies / stepped lane / wet street reflection / gouache and ink cityscape / pastel vignette / soft pastel character / chalk pastel portrait / pastel textures and painterly brushstrokes / whimsical character design / picture-book character on white / person with a pet / girl and her cat / ginger cat / cat scarf / big round eyes / rosy cheeks / red-tipped nose / wispy hair strands / fluffy fur / feathered edges / vignette on white paper / Midjourney sref 455581803 look without an image model / poetic halloween / halloween portrait / autumn night portrait / melancholic picture book / surreal storybook portrait / porcelain face / red flush round the eyes / red-rimmed eyes / red nose / heavy-lidded sad eyes / blunt black bob / straight fringe / silver bob / burlap hat / felt hat / chunky knit scarf / knitted mittens / tartan coat / plaid coat / sheet ghost / little glowing ghosts / ghost in a jar / glowing eyes / dark foliage / starry night sky / Midjourney sref 3822619412 look without an image model / oil pastel / oil-pastel portrait / oil pastel illustration / wax crayon portrait / dry brush portrait / bold dry brush strokes / textured colors / beautifully imperfect portraits / handmade aesthetic / paper tooth showing through / white specks of paper / saffron and navy / mustard and navy / striped scarf / chunky knit scarf / fingerless gloves / steaming paper cup / winter morning portrait / orange blush / red-orange lips / black crayon accents / figure vignette on white / Midjourney sref 2703086978 look without an image model / sketchbook doodle / sketchbook illustration / whimsical hand-drawn illustration / delicate ink lines / playful colors / charming characters / beautiful sketchbook aesthetic / so simple yet full of personality / fine ink line drawing / hair drawn strand by strand / rainbow-striped sweater / striped jumper / colored-pencil stripes / marker stripes / round pink blush / closed eyes with lashes / tiny red lips / leaf with vein hatching / thin line trees / steam curl / curled-up sleeping cat / small figure on a big empty page / Midjourney sref 1970397074 look without an image model / flat spot illustration / spot illustrations / Japanese flat illustration / Japanese spot illustration / everyday life vignettes / small vignettes on white / editorial spot art / flat colour shapes / no outlines / hand-cut edges / white fold lines / one red accent / navy and mustard / powder blue / blank faces / dot eyes / black hair blob / steam squiggles / surprise marks / rainy day vignettes / slice of life illustration / grainy picture book / grainy children's book illustration / sweet children's book illustration / chalky grain / dry grainy brush / grain texture illustration / mid-century children's book / full-bleed picture book page / cobalt and vermilion / cobalt night sky / red cottage in the snow / peach snow / falling snow dots / big round eyes / dot eyes and rosy cheeks / feathery pines / walking the dog / feeding the ducks / children's book moodboard / dreamy hills / dreamy hills wallpaper / minimalist landscape wallpaper / dreamy phone wallpaper / tall phone wallpaper / velvet hills / furry hills / grass fur / rolling hills with a tiny walker / lone walker on a ridge / tiny figure for scale / surreal colour-field landscape / lavender and apricot hills / saffron hills / burnt-orange hills at night / milky way over the hills / comet over the hills / cumulus over grass hills / sunlit greenery / summer greenery / living surrounded by greenery / room full of plants / window full of trees / sunlit window seat / sunlit white room / anime background painting of leaves / painted leaf clusters / crisp painted foliage / flat leaf clusters / dappled sunlight / dappled light and leaf shadows / komorebi / sun-bleached whites with cool shadows / clear forest stream / stone steps to a stream / pebbles under clear water / reflections broken into strokes / summer greenery phone wallpaper" 时使用;也用于需要逐步画出(draw-on)动画的插画。单独说「剪纸」指剪纸拼贴、「刺绣」指十字绣、「丝网印刷 / screen print」指包豪斯几何;「打马赛克」是打码,不是马赛克画风;单说「蓝图」指蓝图工程图,「蓝晒 / 晒图」仍指蓝晒;「铅笔 / 素描」指铅笔素描,「彩铅」指韩国彩铅;「像素」仍指像素风,「1-bit / 黑白画图软件」指 1-bit 早期画图软件;「霓虹」仍指赛博朋克;「喷漆 / 街头涂鸦」仍指喷漆模板涂鸦,「圆珠笔 / 随手涂鸦 / 页边涂鸦」指圆珠笔涂鸦;「描图纸 / 硫酸纸 / 叠片 / 灯箱」指描图纸叠层(蓝图工程图那张描图布是晒成蓝图的,不是叠片);「Dot 风 / 粉彩界面 / 窗口卡片 / 发布会界面」指粉彩界面(纯色底 + 白色实心窗口卡片),要磨砂玻璃和弥散渐变仍用弥散玻璃;「阅卷 / 批改 / 答题卡 / 判卷 / 红笔打分」指阅卷批改,实验记录里的红笔圈和便利贴仍用实验笔记本,带「已付」橡皮章的小票拼贴仍用贴纸拼贴 · 小票;「皮影 / 皮影戏 / 影子戏」指皮影戏(透光的彩色驴皮人偶),黑纸剪出的侧影小像仍用剪影,彩纸剪贴仍用剪纸拼贴。「钢笔淡彩 / 淡彩速写 / 针管笔加水彩 / 线稿上色的速写小卡」指钢笔淡彩;单说「水彩」仍指水彩(风景、花卉的大片晕染),蓝铅笔稿 + 毛笔线 + 赛璐璐阴影的拟人小物仍用卡通手绘,「素描 / 铅笔」仍指铅笔素描。「水粉 / 复古水粉 / 绘本大头像 / 复古童书插画」指复古水粉(不透明水粉画的特写大头像);梵高式厚涂的风景、名画感仍用油画厚涂,扁平矢量、会挤压拉伸的小角色动画(「绘本动画」)仍用绘本角色动画,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,撞色多格的头像仍用波普丝网。「蓝调绘本 / 软蓝绘本 / 蓝色童书插画 / 绘本跨页」指蓝调绘本(软蓝限色的现代绘本跨页:干笔墨线 + 干蜡笔粉彩上色 + 白粉笔痕);单说「绘本」仍指绘本角色动画,「水粉 / 绘本大头像」仍指复古水粉,「编辑风 / Riso」仍指编辑风手绘,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,小孩自己画的蜡笔画仍用儿童蜡笔画。「江南园林 / 园林春景 / 中式园林插画 / 粉墙黛瓦 / 飞檐 / 月洞门 / 九曲桥」指江南园林(细笔数字水粉的园林春景:叶形小笔触堆出的繁茂树冠、繁花、垂柳、黛瓦飞檐、碧水倒影、层层远山);单说「水墨 / 山水」仍指水墨,单说「水彩」仍指水彩,动漫背景 / 赛璐璐天空仍指日本动漫,浮世绘仍是浮世绘;梵高式厚涂的风景仍用油画厚涂,皮影人偶的一场戏仍用皮影戏。「干刷色块 / 干笔色块 / 滚筒色块 / mid-century 海报插画」指干刷色块(米白纸上几大块干笔或滚筒刷出的限色色块,人物拆成几个大块面,背后一块纯色板、一旁一个小红方块);单说「水粉 / 绘本大头像」仍指复古水粉,「剪纸 / 彩纸拼贴」仍指剪纸拼贴,「丝网印刷 / screen print」仍指包豪斯几何,「Riso / 编辑风」仍指编辑风手绘,没有笔触的平滑几何色块仍用扁平矢量。「暮色微缩绘本 / 暮色绘本 / 黄昏转夜 / 昼夜交界 / 野花坡 / 细节放大图」指暮色微缩绘本(粉彩黄昏转入银河夜空、拼布山丘、几万朵小野花、很小的原创角色,加圆形放大图和手写小字);单说「绘本」仍指绘本角色动画,「蓝调绘本 / 软蓝绘本」仍指蓝调绘本,赛璐璐天空和夏日少年感仍用日本动漫,大片晕染的风景仍用水彩,整页的机械分解手稿仍用达·芬奇手稿,剖面和施工图仍用蓝图工程图。「排线夜景 / 彩铅或色粉夜景 / 短笔触夜空 / 夜景小版画 / 熔岩入海 / 精灵闪电 / 被照亮的云」指排线夜景(满画面顺着风向的短笔触、深蓝夜色里只有一个暖光、发光的丝和火星、碎的倒影、很小的人,装成带纸边和铅笔字的小版画);梵高式的厚涂漩涡和颜料浮雕仍用油画厚涂,明亮可爱的彩铅甜品仍用韩国彩铅,黑白石墨排线仍用铅笔素描,粉彩黄昏转入银河星空、满坡小野花仍用暮色微缩绘本,霓虹雨夜街道仍用赛博朋克。「Obsidian 风 / 笔记应用界面 / 深色笔记软件 / 双链笔记 / 关系图谱 / mermaid 代码块渲染成图」指笔记应用界面(深色主题的笔记应用窗口:文件列表、Markdown 正文、代码块切到阅读视图渲染成流程图、亮紫光点的关系图谱,只有一个紫色强调色);明亮的粉彩底和白色窗口卡片仍用粉彩界面,点阵无限白板上的卡片和弯曲连线用白板卡片,暖白纸面上的浅灰卡片图表用 Flexoki 纸面,磨砂玻璃和弥散渐变仍用弥散玻璃,绿屏荧光字符的老终端仍用绿屏终端 CRT,霓虹全息的未来界面仍用赛博朋克。「白板卡片 / 无限白板 / Canvas 视图 / 卡片和连线 / 点阵白板 / 分组框 / 带箭头的弯曲连线」指白板卡片(深色应用窗口里随镜头平移缩放的点阵白板:分组框、彩色边卡片、带箭头和标签的弯曲连线、清单 / 引用 / 草图卡片、右上角缩放按钮);笔记正文页、文件列表和关系图谱仍用笔记应用界面,暖白纸上的流程图、时序图和图表仍用 Flexoki 纸面,明亮的粉彩产品界面和检查结果仍用粉彩界面,一层层叠起来的图解仍用描图纸叠层。「Flexoki / Flexoki 纸面 / 暖白纸上的图解页 / Mermaid 那样的流程图、时序图、饼图、柱状图、对比表 / 讲解片里的图表页」指 Flexoki 纸面(暖白纸、墨黑字、不描边的浅灰圆角卡片,卡片里的图照轻量图表渲染器画:灰边框、墨线小三角箭头、普通标签,强调色只点在有意义的地方);手写粉笔的示意图仍用黑板板书,铅笔图表、荧光笔和便利贴仍用实验笔记本,彩色粉彩底、macOS 窗口和 ✓ / ✗ 徽章的产品界面仍用粉彩界面,深色笔记应用窗口仍用笔记应用界面,点阵无限白板上的卡片和连线仍用白板卡片,系统的微缩模型仍用等轴 2.5D,剖面和施工图仍用蓝图工程图。「暖调彩铅绘本 / 彩铅绘本 / 彩铅童书插画 / 巨物与小孩 / 大龟过河 / 纸齿白点 / 层层叠涂」指暖调彩铅绘本(暖白纸上满画面顺形体的彩铅叠涂、纸齿透出细白点、毛发成簇顺毛,大而温柔的生物和小小的孩子,黄昏暖光和橙黄的灯,没有墨线和黑色);单说「彩铅」仍指韩国彩铅(明亮可爱的甜品小物、粉嫩高光),黑白石墨仍用铅笔素描,软蓝限色、刮擦墨线加蜡笔颗粒的绘本跨页仍用蓝调绘本,粉彩黄昏转入星空、满坡小野花仍用暮色微缩绘本,不透明水粉的特写大头像仍用复古水粉,深蓝夜色里只有一个暖光的排线小版画仍用排线夜景;单说「绘本」仍指绘本角色动画。「彩色小镇 / 彩色房子 / 童话小镇 / 童话街景 / 彩旗街 / 钟楼小镇 / 水粉加描线的街景 / 有被这彩色小镇治愈到」指彩色小镇(水粉平涂加细墨线,密密的彩色房子堆上山坡,石板曼莎屋顶、白色钟楼、好几层三角彩旗、爬藤玫瑰和窗台花、湿街倒影);中式园林和古镇仍用江南园林,锡釉蓝砖上的运河小镇仍用代尔夫特蓝瓷砖,黑白刻版的雪村仍用黑白麻胶版画,彩纸剪出来的热气球小镇仍用剪纸拼贴,系统的微缩模型和小岛仍用等轴 2.5D,针管笔速写加淡彩的小卡仍用钢笔淡彩,水粉画的人物大头像仍用复古水粉,彩铅叠出来的黄昏小镇和巨物仍用暖调彩铅绘本,没有描线、没有笔触的几何色块仍用扁平矢量。「色粉小像 / 色粉画 / 绘本角色小像 / 人和宠物 / 猫围巾 / 白底不画背景、边上干笔散开的角色 / 大眼睛大腮红红鼻尖」指色粉小像(白纸上的半身角色小像,软色粉加一点水粉,大圆眼、大腮红、红鼻尖、一根根的发丝和蓬松的毛,柔和的粉蓝和奶油色里只有一组暖橙,边缘散进白纸);背后刷一块单色、看得见毛衣针脚的复古童书大头像仍用复古水粉,满画面彩铅叠涂、带天空和场景的黄昏绘本页仍用暖调彩铅绘本,软蓝限色、乱线墨线的绘本跨页仍用蓝调绘本,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,明亮可爱的彩铅甜品小物仍用韩国彩铅;「色粉夜景」仍指排线夜景,「粉彩界面」仍指产品界面。「诗意万圣夜 / 万圣节绘本 / 忧郁的瓷白脸 / 红眼眶红鼻头 / 黑色齐刘海波波头 / 粗麻帽子 / 发光的小幽灵」指诗意万圣夜(暗色画板上忧郁、超现实的秋夜绘本肖像:瓷白的脸泛红晕、半闭的厚眼皮、一整块的波波头、粗麻 / 针织 / 格子呢织物,靛蓝星空或深色叶丛里只有一处发光的点睛);白纸上不画背景、色调粉粉的角色小像仍用色粉小像,背后刷一块单色、大鼻子红脸蛋的复古童书大头像仍用复古水粉,满画面短排线、只有一个暖光的夜景小版画仍用排线夜景,粉彩黄昏转入星空的微缩风景仍用暮色微缩绘本,满画面彩铅叠涂的温暖黄昏童书页仍用暖调彩铅绘本。「油画棒 / 油画棒肖像 / 蜡笔干刷的人物 / 白纸上露着纸纹白点的粗笔触小像 / 橙黄配藏青」指油画棒肖像(浮在白色糙面纸上的人物小像:一道道平行干笔铺成的大块颜色里撒满纸纹白点,笔尾是硬的梳齿,藏红花黄、藏青、黑、一种冷蓝加橙色腮红和橙红嘴唇,黑色蜡笔只点在眼睛、眉毛和几处轮廓);同样白纸不画背景、但柔和粉粉、揉开的色粉小像仍用色粉小像,米白纸上几大块色加一块滚筒背景板的 mid-century 海报仍用干刷色块,小孩在糙纸上画的蜡笔画仍用儿童蜡笔画,梵高式厚涂的风景仍用油画厚涂。「手账线描 / 手账风 / 速写本小画 / 细线墨线加彩虹条纹 / 粉腮红闭着眼的小人」指手账线描(大片空着的暖米白纸上一个小人物和两三件道具:发丝细、略抖、不闭合的墨线,一根根分开的头发,彩铅和马克笔涂的彩虹条纹衣服,圆粉腮红、闭着的眼睛、小红嘴,单片叶子和细线小树);贴纸、小票、和纸胶带的「手帐拼贴」仍用贴纸拼贴 · 小票,橡木桌上针管笔加松散淡彩的速写小卡(「速写本小人」)仍用钢笔淡彩,满画面彩铅叠涂、带天空和场景的童书页仍用暖调彩铅绘本,白纸上粗笔干刷的人物小像仍用油画棒肖像,软色粉揉开、大圆眼的角色小像仍用色粉小像,草稿纸上的蓝色圆珠笔涂鸦仍用圆珠笔涂鸦。「日系扁平小插画 / spot illustration / 几幅日常小事的小插画 / 平涂色块的小人加一个红色点睛 / 白线衣褶」指日系扁平小插画(几幅小画散在白纸上:平涂的不透明色块、手剪似的边、极淡的颗粒,藏青、粉蓝、芥末黄、橄榄绿、灰和近黑的头发,每幅只有一个红色的东西,衣褶刻成白线,脸是白纸加一道侧脸线和一点眼);分层几何色块、层间投影的风景和夜景仍用扁平矢量,发丝细墨线加彩虹条纹、一个小人物占一页的仍用手账线描,针管笔线稿加淡彩的速写小卡仍用钢笔淡彩,米白纸上几大块干刷色的 mid-century 海报仍用干刷色块,白纸上粗笔干刷的人物小像仍用油画棒肖像,产品发布片的界面仍用粉彩界面。「颗粒童书 / 颗粒绘本 / 甜美童书插画 / 粉笔颗粒质感 / 钴蓝夜空加红房子」指颗粒童书(满幅的 mid-century 童书页:钴蓝和群青的天、朱红、橙、松绿、奶油色和桃粉色的雪,大块平涂的形状用干的粉笔颗粒笔刷铺,碎边、细颗粒和干笔条纹,没有描线,黑白大圆眼或点点眼加圆腮红);软蓝限色、乱线墨线的绘本跨页仍用蓝调绘本,白纸上不画背景、粗笔干刷的人物小像仍用油画棒肖像,背后刷一块单色、看得见毛衣针脚的复古童书大头像仍用复古水粉,粉彩黄昏转入星空的微缩风景仍用暮色微缩绘本,满画面彩铅叠涂的暖调童书页仍用暖调彩铅绘本,白纸上散着几幅平涂小画的仍用日系扁平小插画,米白纸上几大块干刷色的 mid-century 海报仍用干刷色块。「柔光草丘 / 草丘壁纸 / 梦幻草丘 / 绒毛山丘 / 极简风景壁纸 / 山脊上的小人」指柔光草丘(1:2 的极简梦幻手机壁纸:巨大的起伏草丘盖着顺坡流动的天鹅绒草毛,每座山是一片发光的超现实色场——坡顶亮、谷里冷,干净的深蓝天占一大半,一团柔软的积云,或者银河和彗星,山脊上一个只有几十像素高的人在走);赛璐璐平涂、硬边积雨云和夏日少年感仍用日本动漫,大片湿晕染的风景仍用水彩,梵高式厚涂笔触和颜料浮雕仍用油画厚涂,糖果色小球和鼓鼓的软字仍用柔光 3D,粉彩黄昏转入银河、拼布条纹山丘和满坡小野花加一个原创小角色和放大图的绘本页仍用暮色微缩绘本,满画面顺着风向的短笔触、只有一处暖光的夜景小版画仍用排线夜景,平涂色块加粉笔颗粒的 mid-century 童书页仍用颗粒童书。「夏日光绿 / 光绿 / 满窗绿树 / 被绿植包围的房间 / 斑驳光影 / 叶间光斑 / 溪边石阶」指夏日光绿(明亮高调的夏日白天,照动画背景美术和数码水粉的画法:树冠和植物是一层层清晰的平涂叶簇,深青绿到黄绿几种绿,叶缘略碎、透出小块天空;晒白的白墙、靠垫和石头受光暖、背光冷蓝灰;叶影和光斑落满地板、墙和石头;干净的饱和蓝天加一小团积云;清澈的水下看得见卵石,倒影碎成横笔;没有描线、不靠模糊);赛璐璐平涂加线稿、硬边积雨云、电线杆和人物背影的夏日天空仍用日本动漫,中式园林、黛瓦飞檐、垂柳和花树仍用江南园林,大片湿晕染的风景仍用水彩,背后刷一块单色的复古童书大头像仍用复古水粉,发光色场的起伏草丘和山脊上的小人仍用柔光草丘,平涂色块加粉笔颗粒的 mid-century 童书页仍用颗粒童书,没有笔触的分层几何色块风景仍用扁平矢量。---# Claude 绘图@@ -96,6 +96,7 @@ description: Claude 绘图 / Claude Drawing —— 不借助任何生图模型| 日系扁平小插画 · Flat Spot Illustration | `lib/spotillo.py` · `SpotIllustration` | `examples/spotillo_rainy_saturday.py` 雨天的星期六 · A Rainy Saturday(1500×2000 的白纸上散着五幅小画,讲两个人下雨的星期六:一个人撑着红伞出门,托特包里探出一根大葱和一截法棍,一脚踩进水洼溅起几道水花,伞外斜斜地下着雨;一个人系着米色围裙,在橱柜台面上用木勺搅一锅红珐琅锅里的汤,三缕热气卷上来;沙发上午睡,红袜子搭在扶手边,一本书扣在胸口,z z,黑猫在沙发前团成一团也睡着;一个人蹲下来把一碗猫粮放到地上,黑猫刚发现,头顶三道惊讶的短线;一个人窝在橄榄绿的扶手椅里低头看书,小凳上一只红马克杯冒着热气;每幅一个红色的东西(伞、锅、袜子、碗、马克杯),平涂色块、手剪似的边、白线刻出的衣褶和同色之间的白缝,脸是白纸加侧脸线和一点眼;一幅一幅画,最后统一加雨、热气、惊讶线和 z;`--layout wide` 把同样五幅排成 1920×1080(动图和画廊的宽页用),`--stages` 出空纸和五幅小画 6 个阶段加成品) | 约 1 秒 || 颗粒童书 · Grainy Picture Book | `lib/grainbook.py` · `GrainBook` | `examples/grainbook_snow_walk.py` 雪夜遛狗 · The Evening Walk(1600×2000 的满幅童书竖页:下雪的晚上,天从顶上的深藏青一级一级亮到山边的亮钴蓝,层与层之间干笔交错,一弯奶油色的月牙,雪点飘着;坡上一座朱红小屋,屋顶积着桃粉色的雪,窗里亮着黄灯、窗格是两道棕色蜡笔,烟囱冒出三团粉笔似的淡烟,小屋两边和画面两侧是羽状的野松,远处山脊上一排小冷杉;前面桃粉色的雪地上,一个戴芥末黄毛线帽、围红围巾、穿亮蓝外套的小孩牵着一只姜黄色的小狗往家走,红牵绳垂成一道弧,身后一串脚印,脚下一块平的淡紫投影,两个下角是几丛松枝;每块颜色都是干的颗粒笔刷铺出来的,碎边、细沙颗粒、顺笔的干条纹,没有描线;`--layout wide` 把同一页排成 1920×1080(动图用),`--stages` 出空页、天、山脊、小屋和松树、雪地、小孩、小狗、牵绳 8 个阶段加成品);`examples/grainbook_duck_pond.py` 喂鸭子 · Feeding the Ducks(1920×1080 的黄昏跨页:天从钴蓝经过一道浅色转成杏色和橙色,番茄红的太阳落到对岸的深色树后面,在水面上碎成一道道橙色的短笔;左边一条木码头伸进灰蓝的池塘,一个黑长发、黑白大圆眼、圆腮红的小女孩坐在码头尽头,两条腿悬在水上,身边一个牛皮纸袋,手一扬撒出一串面包屑;三只鸭子朝她游过来,身后荡开几道涟漪;右下角睡莲叶和芦苇,天上两只归鸟) | 约 10 秒 / 5 秒 || 柔光草丘 · Dreamy Hills | `lib/dreamhills.py` · `DreamHills` | `examples/dreamhills_long_walk.py` 走过草丘 · The Long Walk(1200×2400 的 1:2 手机壁纸,同一个脚本三个时辰:`--preset dawn` 破晓(默认)——薰衣草紫和杏色:低低的太阳在右边远山后面,照到的坡都是暖的杏色,其余的草被天光照成丁香紫,谷里偏冷;天占上半幅,从深蓝渐变到地平线上的桃粉,太阳那边一团暖光,一团柔软团块堆出来的积云向阳一面泛杏色,低处一团小云,最远的山脊上一排小树;中间最大的那座山顶上一个穿蓝衣服的人往右走(34 像素高),底边一条深紫的高草带,开着白色和蓝色的小花;`--preset night` 星夜——深蓝夜空里满天星、一条斜穿画面的银河、一颗彗星,焦橙色的山被画外左边的光照亮、另一侧沉进藏青的阴影,每道山脊上方的谷里泛冷蓝;最高的山顶上一个穿白衣服、提着一盏发光小灯的人;`--preset noon` 正午——藏红花黄的山丘、淡蓝的天和地平线上的一排积云,人从一道山肩上走下来,底下一条开满蓝色矢车菊的深色草带;`--layout wide` 把同一幅画排成 1920×1080(动图和视频用);`--stages` 出空白画布、天空、云或星空、每一座山(小人和他那座山一起)共 7–8 个阶段加成品) | 约 6 秒 |+| 夏日光绿 · Sunlit Greenery | `lib/sunlitgreen.py` · `SunlitGreen` | `examples/sunlitgreen_window_seat.py` 窗边的座位 · The Window Seat(1152×2048 的 9:16 手机壁纸:一间白色的屋子,一扇白框高窗里满是夏天的树,透出干净的蓝天和一小团积云——近处一棵树的树冠一片叶子一片叶子地画,外圈散成一簇簇、透出天空和细枝,后面是平涂的树团和远处的树林;窗下一张内嵌的窗边座,门板凹进去,亚麻坐垫上靠着藏青格子、白色和橙色三个靠垫,一本摊开的书、一杯茶,靠垫上落满冷蓝色的叶影;窗边一幅半透明的纱帘,左边一盆树冠用叶簇画的小榕树,天花板上垂下一盆垂叶植物,右下角一丛深色大叶探进画面,凳子上两本书;左墙上一块带窗格十字和叶影的暖色光斑,从窗里照进来的阳光铺在木地板上,碎成叶影;`--preset late` 是同一间屋子的傍晚金光(薰衣草色的墙、琥珀色的光斑、叶子偏金,只用来做动图);`--layout wide` 把同一间屋子排成 1920×1080,`--stages` 出空纸、天、远树、近树、墙和窗、墙上的光斑、地板、窗边座、照进来的光 9 个阶段加成品);`examples/sunlitgreen_stream_steps.py` 溪边石阶 · Steps Down to the Stream(1152×2048:两棵树的树冠框出一块蓝天和一小团积云,下面一段浅色石阶从溪边爬上绿坡、钻进阳光下的灌木丛,阶面上落着叶影;前景是一条清澈的溪——透明的青绿下看得见卵石,树、天和石头的倒影碎成横向的笔触——几块晒白的大石头立在水里,顶上暖奶油色、背光处冷蓝灰,头上长着苔藓,水线处一道亮的涟漪;右边一枝大叶探进来;`--layout wide` 排成 1920×1080,`--stages` 出空纸、天、远处的树林、绿坡和石阶、灌木和草、树干和树冠、溪水、水里的石头 8 个阶段加成品) | 约 4 秒 / 6 秒 |各画风共用 `lib/core.py` 里的底层工具:噪声、模糊、样条曲线、多边形遮罩、有机轮廓 `blob_pts`、毛笔 `bristle_stroke`、中文字体查找;新四种还用到补零平移 `shift`、文字遮罩 `text_mask`、西文字体查找 `latin_font`/`load_font`,以及高度图打光 `height_normals`、`height_shadow`(沿光线步进的投影)、`ambient_occlusion`。@@ -181,7 +182,8 @@ description: Claude 绘图 / Claude Drawing —— 不借助任何生图模型- 一个小人物的小日常(读书、喝茶、浇花、撸猫、放风筝,「一个人慢慢地做一件小事」),手账、日记和读书笔记的配图,小红书封面和头像,讲解片里「轻松的小场景 / 生活方式 / 慢下来」的页,要一眼就是「手账风 / 速写本里的小画」——大片空着的暖米白纸,发丝细、略抖、不闭合的墨线,一根根分开的头发,彩铅马克笔涂的彩虹条纹衣服,圆圆的粉腮红、闭着的眼睛和小红嘴,道具只有两三件(单片叶子、小花、细线小树、一缕热气、团着睡觉的猫) → 手账线描(要橡木桌上的速写小卡、针管笔加松散淡彩、搞笑的街坊用钢笔淡彩;要满画面彩铅叠涂、天空和场景俱全的温暖童书页用暖调彩铅绘本;要软蓝限色、乱线墨线的绘本跨页用蓝调绘本;要白纸上粗笔干刷的人物小像用油画棒肖像;要软色粉揉开、大圆眼的角色小像用色粉小像;要小孩画的蜡笔画用儿童蜡笔画;要草稿纸上的圆珠笔涂鸦用圆珠笔涂鸦);- 几件日常小事排在一张白纸上(喝一杯热的、下雨天出门、煮汤、喂猫、看书、午睡、骑车、做饭),杂志 / 书籍内页和专栏的小插图(spot illustration),生活方式和「一天里的几个瞬间」,讲解片里「几个使用场景 / 一组小习惯 / 生活的几个片段」的页,要一眼就是「日系扁平小插画」——几幅小画散在白纸上、不画地面和背景,每块颜色都是平涂的不透明色块,边缘略不规整,颜色克制(藏青、灰蓝和粉蓝、芥末黄、橄榄绿和墨绿、几种灰、近黑的头发),每幅里只有一个红色的东西,衣褶用白线刻进颜色里,线很少,脸几乎空白(一点眼、一道侧脸线) → 日系扁平小插画(要分层几何色块、层间投影的风景和夜景用扁平矢量;要发丝细的墨线加彩铅条纹、一个小人物占一页用手账线描;要针管笔线稿加淡彩、搞笑的街坊速写小卡用钢笔淡彩;要米白纸上几大块干刷色、背后一块色板的 mid-century 海报用干刷色块;要白纸上粗笔干刷的人物小像用油画棒肖像;要产品发布片的界面页用粉彩界面);- 温暖、甜、像翻开一本 mid-century 童书的一页:一个小孩和一只小动物的一件小事(牵着小狗回家、喂鸭子、捧一杯热的、雪地里走一走),冬夜和黄昏、下雪的小镇、亮灯的小屋、池塘和松林,童书封面和内页、贺卡和海报、小红书封面,讲解片里「温暖的一幕 / 回家 / 小小的日常」的满幅画面,要一眼就是「颗粒质感的甜美童书插画」——满幅不留白,颜色少而饱和(钴蓝 / 群青、朱红、橙、松绿、奶油色、桃粉色的雪),大块平涂的形状用干的粉笔颗粒笔刷铺出来,碎边和细沙颗粒,没有描线,脸是黑白大圆眼或点点眼加圆腮红 → 颗粒童书(要软蓝限色、乱线墨线的绘本跨页用蓝调绘本;要白纸上不画背景、油画棒干刷的人物小像用油画棒肖像;要单人大头像、看得见毛衣针脚用复古水粉;要粉彩黄昏转入星空、满坡野花用暮色微缩绘本;要满画面彩铅叠涂的暖光童书页用暖调彩铅绘本;要白纸上散着几幅平涂小画用日系扁平小插画;要米白纸上几大块干刷色的 mid-century 海报用干刷色块);-- 安静、辽阔、梦幻、带一点孤独的「一个人走在很大的风景里」:手机和电脑壁纸、锁屏、歌单和播客封面、冥想 / 助眠 / 治愈类内容的主视觉,讲解片里「远方 / 出发 / 慢下来 / 一个人」的空镜和章节页,要一眼就是「极简梦幻的草丘壁纸」——巨大柔软的山丘盖着顺坡流动的天鹅绒草毛,每座山是一片发光的超现实色场(薰衣草和杏色、藏红花黄、夜里的焦橙和藏青、草绿),干净的深蓝天占一大半,一团积云或者银河和彗星,山脊上一个几十像素高的小人 → 柔光草丘(要赛璐璐平涂、硬边积雨云的夏日背景美术用日本动漫;要湿晕染的风景用水彩;要梵高式厚涂用油画厚涂;要糖果色 3D 小球和软字用柔光 3D;要粉彩黄昏转入星空、拼布山丘和满坡小野花加原创小角色用暮色微缩绘本;要满画面短笔触、只有一处暖光的夜景小版画用排线夜景;要平涂色块加粉笔颗粒的童书页用颗粒童书)。+- 安静、辽阔、梦幻、带一点孤独的「一个人走在很大的风景里」:手机和电脑壁纸、锁屏、歌单和播客封面、冥想 / 助眠 / 治愈类内容的主视觉,讲解片里「远方 / 出发 / 慢下来 / 一个人」的空镜和章节页,要一眼就是「极简梦幻的草丘壁纸」——巨大柔软的山丘盖着顺坡流动的天鹅绒草毛,每座山是一片发光的超现实色场(薰衣草和杏色、藏红花黄、夜里的焦橙和藏青、草绿),干净的深蓝天占一大半,一团积云或者银河和彗星,山脊上一个几十像素高的小人 → 柔光草丘(要赛璐璐平涂、硬边积雨云的夏日背景美术用日本动漫;要湿晕染的风景用水彩;要梵高式厚涂用油画厚涂;要糖果色 3D 小球和软字用柔光 3D;要粉彩黄昏转入星空、拼布山丘和满坡小野花加原创小角色用暮色微缩绘本;要满画面短笔触、只有一处暖光的夜景小版画用排线夜景;要平涂色块加粉笔颗粒的童书页用颗粒童书);+- 明亮、清新、「夏天的光和满眼的绿」:一间被绿植包围的白色屋子、满窗的树、窗边读书的角落、林间的溪水和石阶、树荫下的小路,手机壁纸和锁屏、小红书封面、生活方式和家居、旅行和夏天的配图,讲解片里「休息一下 / 慢下来 / 夏天」的空镜和章节页,要一眼就是「动画背景美术 / 数码水粉」——一层层清晰的平涂叶簇、斑驳的叶影和光斑、晒白的白色加冷蓝的阴影、清澈的水 → 夏日光绿(要赛璐璐平涂加线稿、硬边积雨云和人物的夏日天空用日本动漫;要中式园林、黛瓦和花树用江南园林;要大片湿晕染用水彩;要发光色场的极简草丘壁纸用柔光草丘)。每种画风一幅范例作为质量基准(范例都不用禅意主题);水墨另加一幅「月印万川」(留白托月、水面倒影)。@@ -1451,6 +1453,26 @@ from core import spline, curve, blob_pts, fbm1d, blur, polygon_mask- 颜色用 `PAINTS` 里的名字(天:navy night midnight cobalt azure sky sky_pale cornflower lavender lilac mist peach_sky apricot_sky rose_sky;地:grass grass_deep moss cream peach apricot saffron marigold ember rust violet indigo plum;光:white warm_white gold pink_light ice;人和花:shirt_blue shirt_red shirt_white shirt_yellow trousers skin hair cornflower_blue flower_white flower_coral flower_yellow)或 '#rrggbb'。- 走过草丘把三个时辰 × 两种版式收在 `SCENES` 里(天空色标、云或夜空、从远到近的山脊控制点和每座山的参数、远处小树、小人在哪座山上、前景草带),同一个 `scene()` 画竖版壁纸(`--layout page`,1200×2400)或 16:9(`--layout wide`,1920×1080)。+**夏日光绿 `SunlitGreen`**:+- 思路:照日本动画背景美术和数码水粉那类「夏天满眼绿」的插画:所有东西都是硬边的平涂形,先远后近一层层画(天、远树、中树、近树、屋子、光、近处的植物);绿植是成千上万片清晰的平涂叶子按明暗一层层叠出来的;白色的东西先画受光的颜色、再盖冷色叶影(或者先画背光、再挖出暖色光斑);水最后画,照着已经画好的东西出倒影。+ - 光栅器:一批多边形按序号画进 2 倍超采样的 id 图(Pillow),id 查颜色和不透明度,再 2×2 平均回原尺寸:边是硬的、有抗锯齿;列表顺序就是覆盖顺序;一片叶子几微秒,一幅画几万片叶子。多边形的边先细分再轻轻抖一下(`_wobble`),是画出来的边、不是尺子画的。+ - 叶团 `canopy()`:团块 (cx, cy, rx, ry[, shade]) 是大穹顶,里面排满小团块(半径约 `sub` 片叶子),每个小团块是一个向阳一面亮的小穹顶;小团块法线和大穹顶法线混合,加噪声、越往下越暗、缝里遮挡,得到明度,按 `levels` 切成几种平涂绿(`tones`,深 → 亮)。每个色阶从暗到亮各画一层:`fill=1`(远树、中树)是一整块实心的形,`fill=0`(近处的树)只用叶子铺(最暗的一层总是实心的底);每层的整条边都盖一圈朝外的小叶簇,所以亮的叶团压在暗的上面、边是一片片叶子,轮廓也全是叶子;`mottle` 把一部分叶子换成上下一个色阶(亮叶暗叶交错);`airy` 用粗噪声把团块外圈掏空,边缘散成一簇簇、中间透出天空;`holes` 在里面打天空小洞(取那个高度的天色、提亮),洞边再压几片叶子,`twigs` 在洞里露出细枝;`glint` 在最亮的叶子上撒浅色高光;`hole_colour` 给室内的植物用墙色代替天色。+ - 近处的叶子 `spray()`:枝条(点列,从根到梢)上一片片大叶子,梢头一圈莲座叶;每片叶子沿中脉分成两半平涂,朝阳的一半亮一个色阶,向阳的叶子有浅色中脉和一道细的暖边,背阴的叶子中脉是深的;先画背阴的、再画向阳的。`grass()` 一丛丛平涂草叶;`limb()` 树干和枝,向阳一侧一条亮带,`bark` 加顺纹理的树皮笔触。+ - 光:`leaf_shadow()` 出一张斑驳的叶影遮罩——低频场给出大块阴影,阴影边缘是一圈朝外的尖叶簇,阳光里散着几簇叶影,阴影里打出小光斑;`squash` 把它压扁给透视里的地板用。`shade()` 在画好的东西上盖冷色阴影(乘一个蓝灰:奶油色变蓝灰、暖石头变紫灰、黄绿草变青绿);`sunlight()` 盖暖色阳光(和奶油色做滤色,`tint` 再乘一点颜色,给傍晚更深的琥珀色);`dapple()` 在一块区域上一步做完。两种用法:先画受光的颜色、再盖叶影(`mode='shade'`),或者先画背光、再盖一块光斑(比如窗的形状)、光斑里挖出叶影(`mode='sun'` 或直接 `sunlight()`)。+ - 实体 `soft()`:任意轮廓先鼓成高度场(边上像枕头,`dome` 更圆,`facets` 用几个随机平面切出石头的面),打光后切成几个平涂色阶;`levels='q'` 按分位数切、保证每个色阶都出现;`warm` 在明暗交界画一道细暖线;`clean` 把小到看不出形体的色块岛并掉(不然像洞)。基于它的有 `rock()`(晒白的大石头和苔藓帽;`wet=` 时站在水里:水下的部分染上水色,有自己的碎倒影和水线一道亮涟漪)、`cushion()`(鼓鼓的靠垫,可画条纹或格子)、`pot()`(按圆柱分的竖色带);还有 `box()`、`panel()`(凹进去的门板)、`face()`、`window()`(白窗框:受光面加冷色的侧面,返回玻璃的遮罩)、`curtain()`(半透明纱帘的褶)、`boards()`(一点透视的木地板)、`book()`、`mug()`、`gradient()`、`strokes()`(一块区域里看得见的笔触)。+ - 水 `water()`:先画卵石床,透过透明的青绿(离观者越远越深越蓝);再把 `line` 以上已经画好的画面倒过来(`reflect_scale` 拉长),每条细横带各自左右错开一点,横向抹开、压成十几种颜色,再用一层横向的尖头笔触去裁:远处连成一片镜面,近处稀疏成簇、露出水底;最后几道浅色的天光。要先画完它要倒映的东西。+ - 天:`sky()` 三段渐变(会记住,树冠里的天空小洞按高度取色);`cloud()` 小积云:团块排在平底的穹顶上,高度场融开,沿噪声扭过的边界切成三个平涂色阶,边是硬的、略碎,小洞会被填上。+ - 收尾:`finish()` 只记参数、在 render 里加(每张阶段快照都和成品一致,要在画第一笔之前调用):最亮处的泛光、往浅色空气提一点、很淡的纸纹和细颗粒。+- 构造:`SunlitGreen(W, H, seed, keep_stages=True, stages_dir=None, light=(-0.55, -0.7, 0.45))`,`light` 是指向太阳的方向(x 右、y 下、z 朝观者);先 `finish()` 再画。坐标是画面像素,y 向下;`k` = min(W, H) / 1000。画布一开始是暖白的纸色(动图的第一帧)。+- 天:`sky(top, mid, bottom, y0, y1, mid_at)`、`sky_at(y)`;`cloud(cx, base, w, h, seed, light, tones, n, levels, rough, merge)`(`base` 是平的云底)。+- 植物:`canopy(clumps, tones, leaf, light, holes, far, sub, levels, noise, bottom_dark, blend, haze, edge_leaves, sprinkle, width, shape, hole_size, fill, glint, mottle, twigs, twig_colour, hole_colour, airy, seed)`——`leaf` 叶长(× k,远树 7–10、近树 20–24),`far` 往雾色里混;`spray(stems, leaf, width, tones, rosette, along, droop, bend, light, rim, rim_w, midrib, stem, stem_w, far, seed, lit_bias)`;`grass(x0, x1, y, h, n, tones, lean, width, far, curve, seed, ys)`;`limb(path, w0, w1, colour, lit, lit_w, alpha, bark, seed)`。+- 光:`leaf_shadow(box, cover, leaf, squash, scale, flecks, seed)` 返回遮罩;`shade(mask, tint, strength, add, add_k)`;`sunlight(mask, colour, strength, tint)`;`dapple(region, cover, leaf, squash, scale, flecks, mode, strength, tint, colour, seed)` 返回用到的遮罩。+- 实体:`soft(pts, tones, light, bevel, levels, noise, wobble, warm, warm_w, facets, flat, dome, clean, seed, clip)`、`rock(cx, cy, rx, ry, tones, facets, rough, flat_base, moss, warm, bevel, wet, seed, light)`、`face(pts, colour, alpha, wobble, seed)`、`box(front, top, side, tones)`(返回三个面的遮罩)、`panel(x0, y0, x1, y1, colour, lit, shade, bevel)`、`window(x0, y0, x1, y1, cols, rows, frame, bar, colour, lit, shade, depth)`(`rows` 可以是横档位置的列表)、`cushion(cx, cy, w, h, tones, round_, tilt, bulge, stripes, light, bevel, seed)`(`stripes=(颜色, 条数, 宽度, 角度[, True 再加一组横的成格子])`)、`curtain(x0, x1, y0, y1, folds, tones, alpha, sway, seed)`、`boards(y0, y1, vp, n, x_span, tones, gap, gap_w, seed)`、`pot(cx, top, w, h, colour, rim, light)`、`book(cx, cy, w, h, open_, cover, tilt)`、`mug(cx, base, w, h, colour, handle, tea)`;还有 `fill`、`poly`、`mask`、`gradient`、`strokes`。+- 水:`water(box, line, mask, deep, mid, shallow, reflect, near_reflect, stroke, density, pebbles, pebble_size, ripple, sky_glints, reflect_scale, seed)` 返回水面遮罩。+- 输出:`render()`、`composite()`、`stage(name)`、`save(path, stages_dir)`;`save('x.jpg')` 默认 quality 92、4:4:4 色度。+- 颜色用 `PAINTS` 里的名字(天:sky_top sky sky_low sky_hole haze cloud cloud_half cloud_shade;叶:leaf_deep leaf_shade leaf_mid leaf_light leaf_sun leaf_glint;树皮:bark bark_light;白:white_sun white white_half white_shade white_deep;木头:wood_sun wood wood_shade wood_deep;石头:stone_sun stone stone_half stone_shade stone_deep warm_edge;苔藓:moss_sun moss moss_shade;水:water_deep water water_shallow pebble;点睛:blue_cloth orange_cloth terracotta book_red book_teal book_mustard paper)或 '#rrggbb';叶子的色阶用 `LEAVES` 的名字('summer' 'gold' 'moss')或一个从暗到亮的颜色列表。+- 两个范例都把版式收在 `LAYOUTS` 里(`page` 1152×2048、`wide` 1920×1080:窗、屋里的东西、各团树的位置),同一个 `scene()` 画两种版式;窗边的座位另有 `PRESETS`(`noon` 正午、`late` 傍晚金光:天色、阳光颜色和 `tint`、墙色、叶子色阶)。+**顺序**:都是先远后近、先大后小,文字最后叠加。水墨的雾要画在它该吞没的东西之后;水彩的叶梗要先画,并且只画在叶子外面。## 三、毛病清单(都真实出现过)@@ -2819,6 +2841,30 @@ from core import spline, curve, blob_pts, fbm1d, blur, polygon_mask| 正午远处一大片加了蓝雾的山,成了灰粉色 | 藏红花的雾改成暖白,中间补一座中景山 || 小人迈步太小,看起来是站着 | `stride` 0.5 → 0.9 |+**夏日光绿**++| 问题 | 改法 |+|---|---|+| 叶子撒成满树均匀的彩色碎片,像噪点、像西兰花 | 改成按色阶一层层画的形:每个色阶是一整块,只在边上盖朝外的叶簇;明暗来自大团块里排的小团块,各自向阳一面亮 |+| 色阶的实心块边是糊的,叶子下面露出圆滚滚的平滑团块 | 实心块改成阈值后只做约 1 像素的抗锯齿;近处的树 `fill=0` 只用叶子铺,只有最暗的一层是实心底 |+| 天空小洞是一块块直边的蓝色多边形,像漏了颜色 | 洞的颜色往浅天色里提,洞边再压三片叶子,洞的轮廓变成叶子围出来的凹边 |+| 「碎片」形状的叶子像水晶、像菱形 | 换成带尖的卵形叶子和 9 边的圆叶混用 |+| 亮的叶团是一整片均匀的黄绿 | `mottle`:一部分叶子换成上下一个色阶,亮叶暗叶交错 |+| 树冠是一个满满当当的圆球 | `airy`:粗噪声把团块外圈掏空,边缘散成一簇簇、透出天空;噪声太细(不到 4 片叶子的尺度)会被边上的叶子重新填满,看不出来 |+| 积云是一串叠起来的小球,有一朵中间有个洞 | 团块的高度场先融开再算法线、切三个色阶;覆盖率做一次闭合,填掉小洞 |+| 屋子灰扑扑的,墙上的光斑几乎看不见 | 墙的底色用偏冷的浅灰蓝(背光),光斑用暖奶油色滤色、强度 1,明暗才分得开 |+| 地板的叶影像一滩泼出来的颜料、像一个个小动物剪影 | 阴影块的边改成一圈朝外的尖叶簇,叶子放大到 34 px × k,散在阳光里的叶影减到一半 |+| 窗台上的阳光是一条直边的白带,把靠垫拦腰截断 | 靠垫直接画成受光的颜色,再用 `dapple(mode='shade')` 盖冷蓝的叶影 |+| 靠垫是一块扁平的板,中间只有一个颜色 | `soft()` 加 `dome` 让中间也有起伏,`levels='q'` 按分位数切色阶 |+| 花盆底角一块孤立的深蓝椭圆,石头底部几个蓝色小圆点,像破洞 | 花盆改成按圆柱的竖色带;`soft(clean=…)` 把太小的色块岛并掉 |+| 树皮笔触是一个个水滴形的深点,像豹纹 | 改成又细又长、顺着树干、颜色只差一点的纹理 |+| 水面是均匀的绿色碎横线,看不出倒影 | 倒影改成整个画面倒过来、每条横带左右错开、横向抹开再压成十几种颜色,用横笔触去裁;远处连成镜面,近处稀疏 |+| 水是一片发灰的灰绿,看不到天光 | 水底改成橄榄青绿加饱和的卵石,近处的倒影覆盖率 0.08 → 0.32,`reflect_scale` 1.4,天的蓝色映到近处 |+| 水里的石头像浮在水面上 | `wet=`:水下部分染上水色、石头自己的碎倒影、水线一道亮涟漪 |+| 石阶像悬在空中的梯子横档 | 石阶嵌进一块绿坡,两边的灌木压住石阶两端,每级下面一道深色的缝,阶面盖叶影 |+| 前景的盆栽像一架挂满塑料叶的梯子 | 换成树冠用 `canopy()` 画的小榕树(`hole_colour` 用墙色),近处只留一丛深色大叶 |+| 傍晚的光斑在浅色墙上还是淡奶油色 | `sunlight(tint=…)`:滤色之后再乘一点琥珀色 |+## 四、做成动画- 各画风都有 `stage(name)` 和 `save(path, stages_dir)`,按阶段依次淡入叠化,就是「一幅画被逐步画出来」。README 里的动图就是这样做的。@@ -2949,6 +2995,12 @@ from core import spline, curve, blob_pts, fbm1d, blur, polygon_mask- 调色板:第一帧是暖灰的空白画布,只给 8 色;228 色只从和它不同的像素里切(末帧 ×3、饱和色 ×3、暗色 ×2);再强制放 15 个点睛色(小人的衣服和裤子、蓝色和白色的花、花心、提灯的橙),剩下的从末帧误差超过 12 级的像素里切;最后 1 色是纯品红,当「和上一帧相同」的透明占位色。- 固定 4×4 Bayer(约 ±2.4 级),末帧不加抖动、精确发送;和屏上已显示颜色差不到 5 级(叠化帧)或 3 级(关键帧)的像素沿用上一帧。- 结果:破晓 37 帧、12.05 秒、0.80 MB;星夜 38 帧、12.05 秒、0.84 MB;正午 41 帧、13.40 秒、0.84 MB;按解码结果逐帧自检(和应显示的画面最大差 0),末帧误差中位数 3 / 3 / 2、p99 16 / 18 / 24。+- 夏日光绿的动图(脚本在 `workspace_projects/arte10/work/make_gif_sunlitgreen.py`,三张共用):+ - 两个范例都是 1152×2048 的竖版壁纸,不硬塞进 16:9、也不裁:范例有 `--layout wide`,把同一间屋子、同一处溪边按 16:9 重新摆成 1920×1080,动图用这一版的阶段,缩成 720×405(LANCZOS)。墙上一行三张:窗边的座位、溪边石阶,再加只在动图里出现的 `--preset late`(同一间屋子的傍晚金光),凑满一行、不留空格。+ - 阶段:窗边的座位是空纸 → 天和云 → 远树和中树 → 近处的树 → 墙和窗 → 墙上的光斑和纱帘 → 地板 → 窗边座和靠垫 → 照进来的光 → 成品(植物和凳子);溪边石阶是空纸 → 天和云 → 远处的树林 → 绿坡和石阶 → 灌木、草和岸边的石头 → 树干和树冠 → 溪水 → 水里的石头 → 成品(近处的大叶枝)。每段 900 毫秒加 5 帧叠化,末帧停 2600 毫秒;叠化一片片铺上去。+ - 调色板:第一帧是暖白的空纸,只给 8 色;228 色只从和它不同的像素里切(末帧 ×3、饱和色 ×3、暗色 ×2);再强制放 15 个点睛色(藏青格子和橙色靠垫、红色和芥末黄的书、茶、两种天蓝、黄绿和深青绿的叶子、青绿的水、受光的奶油白),剩下的从末帧误差超过 12 级的像素里切;最后 1 色是纯品红,当「和上一帧相同」的透明占位色。+ - 固定 4×4 Bayer(约 ±2.3 级),末帧不加抖动、精确发送;和屏上已显示颜色差不到 5 级(叠化帧)或 3 级(关键帧)的像素沿用上一帧。+ - 结果:窗边的座位 48 帧、14.75 秒、1.14 MB;溪边石阶 42 帧、13.40 秒、0.98 MB;傍晚 48 帧、14.75 秒、1.07 MB;按解码结果逐帧自检(和应显示的画面最大差 0),末帧误差中位数 2 / 3 / 2、p99 27 / 27 / 21(几万片小叶子的细边比柔光草丘的草毛更吃调色板)。- 绘本角色动画的动图是真动画,不是阶段叠化:`Storybook.gif()` 按时间逐帧渲染,720×405、15 fps(GIF 延时只能写厘秒,按累计取整写成 7、7、6 厘秒交替),共用一张加权调色板 + 固定 4×4 Bayer,没变的像素记成品红透明,151 帧(动作 9.95 秒 + 末帧停 1.4 秒)约 0.56 MB;范例加 `--gif out.gif` 出这张,`--stages` 的关键帧仍可喂给上面的阶段动图工具。- 形变动画可以直接出真动画:`Morph.at(keys, T)` 给出全局时间 T 的轮廓,逐帧渲染即可。- 更细的逐笔动画:把一组笔画单独画到透明层上导出,再用 Motion Canvas 遮罩按顺序显现。这个还没做成现成接口。@@ -3039,6 +3091,7 @@ lib/sketchbook.py 手账线描(暖米白纸:直方图均衡的细纸纹lib/spotillo.py 日系扁平小插画(按弧长重采样、沿法向推周期起伏的手剪边,3 倍超采样的包围盒小块光栅化、细噪声取阈值的毛边,不透明平涂,clip / avoid;按中尺度噪声断续的白缝;两头收尖的细线、按底色自动选白或深一号的衣褶线;按头高给关节的姿势预设(站、走、坐、蹲、伸手)、整个人转角度、hooks 插道具的人:粗管袖子和裤腿、在自己坐标系里搭的宽松上衣、白纸脸加侧脸线和点眼、鼓包头发刻白发丝、指头鼓包和红指缝的手、球鞋 / 袜子脚、帽子;马克杯、碗、锅、托特包、伞、自行车、长椅、椅子、扶手椅、沙发、小凳、桌子、橱柜、盆栽、书、猫、窗;热气、惊讶线、z、雨、运动短线、影子;渲染时的斑驳、细颗粒、发白小点、纸纹和极轻的柔化)lib/grainbook.py 颗粒童书(每页一次的纸齿 / 颗粒 / 中尺度 / 大斑驳 / 斑点纹理;按 7.5° 用到才生成、存成 uint8 大方块、随机偏移读取的条纹纹理;包围盒大小的 Region 遮罩与并、交、差;一次干颗粒填色:顺笔毛边、碎边深一圈、往边上掉的压力和跳色、亮暗条纹调色、细颗粒和大斑驳,涂色 / 正片叠底 / 滤色;分层天空和干扫过渡、斑块、干笔擦扫、投影、光圈;干笔、蜡笔点睛线、颗粒小点;黑白大眼、点点眼、腮红、鼻、嘴、眉,四种发型、毛线帽,站 / 走 / 坐的小孩;小屋、羽状松、远处冷杉、圆树、灌木、松枝丛、杯子、纸盒、纸袋、盆栽、芦苇、草丛、路灯、小狗、鸭子、栅栏;雪、星、月牙、炊烟、热气、涟漪、脚印;渲染时的颗粒、深浅斑点和极轻柔化)lib/dreamhills.py 柔光草丘(四套暖冷两条色带的调色板;多段线性光天空渐变和太阳光晕;穹顶上排团块、底部撑起、上部冒小团块、取最高球面、平滑并限斜率的高度场打光、团块软边并集覆盖的积云;幂律亮度的星和四芒星芒、银河、彗星;Catmull-Rom 山脊和前后遮挡;从轮廓法线转向观者、保留朝向、按山脊铺的噪声明暗带的伪法线;包裹主光、天光、坡顶边缘光、先挡主光的谷底遮挡、指数色调曲线、暖冷色带混合、雾;按根部排序抖动分块、沿草长和横向取样、双线性 bincount 撒点的几万根草毛笔触,每根草自己的法线、暗冷的根和偏向主光的尖;远山小树;前景高草带和五瓣野花;8 倍超采样的走路小人、边缘光、影子、脚前的草和发光的小灯;渲染时的柔化、泛光和胶片颗粒)+lib/sunlitgreen.py 夏日光绿(超采样 id 图的平涂多边形光栅器和抖过的画出来的边;三段天空渐变和按高度取天色;高度场融开、三个平涂色阶、填掉小洞的积云;大团块排小团块、按色阶从暗到亮铺实心形或只铺叶子、沿边盖朝外叶簇、交错色阶、掏空外圈、天空小洞和细枝、高光的叶团;两半色、中脉和暖边的大叶枝;草丛、带亮带和树皮纹的树干;边缘是叶簇的斑驳叶影遮罩、冷色阴影、暖色阳光和琥珀色;鼓成高度场、切面、分位数色阶、暖色交界线、并掉小色块的平涂体;晒白的大石头、苔藓帽和站在水里的倒影与涟漪;条纹和格子靠垫、圆柱色带的花盆、窗框、纱帘、门板、透视木地板、书、杯子;卵石床、透明青绿、错开抹开压色的倒影和横笔触裁出的水面;泛光、提亮、纸纹和细颗粒)examples/*.py 范例脚本;*.jpg 成品;drawing_*.gif 逐步画出的动图中文字体:自动找 Kaiti/Songti(macOS)、Noto CJK(Linux)、KaiTi/SimSun(Windows),或设 INKPAINT_FONT西文字体(后来新增的画风用):core.latin_font(style) 按 sans / sans_bold / rounded / script / hand / typewriter 等找系统字体,可用 INKPAINT_FONT_<STYLE> 指定;字体文件不要放进仓库diff --git a/docs/GALLERY.md b/docs/GALLERY.mdindex 1c541bc..b063e98 100644--- a/docs/GALLERY.md+++ b/docs/GALLERY.md@@ -2,7 +2,7 @@[← 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 55 MB of images). · 全部范例大图与标题(图片约 55 MB)。+> Every example at full size, with its title (about 57 MB of images). · 全部范例大图与标题(图片约 57 MB)。### Gallery · 画廊@@ -96,5 +96,7 @@| <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, and giant hills furred blade by blade, every blade lit on its own between a warm key and a cool sky. 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.+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.diff --git a/docs/GIFS.md b/docs/GIFS.mdindex a74b8b7..693db09 100644--- a/docs/GIFS.md+++ b/docs/GIFS.md@@ -2,7 +2,7 @@[← README](../README.md) · [Styles](STYLES.md) · [画风](STYLES.zh.md) · [Principles](PRINCIPLES.md) · [作画要点](PRINCIPLES.zh.md) · [Usage · 用法](USAGE.md) · [Gallery · 画廊](GALLERY.md) · [GIFs · 动图](GIFS.md)-> 88 GIFs, about 100 MB in total, so this page loads slowly. · 共 88 段动图、约 100 MB,加载较慢。+> 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>@@ -65,3 +65,5 @@|  |  |  || **Dreamy hills · 柔光草丘** | **Dreamy hills · 柔光草丘(星夜)** | **Dreamy hills · 柔光草丘(正午)** ||  |  |  |+| **Sunlit greenery · 夏日光绿** | **Sunlit greenery · 夏日光绿(溪边石阶)** | **Sunlit greenery · 夏日光绿(傍晚)** |+|  |  |  |diff --git a/docs/PRINCIPLES.md b/docs/PRINCIPLES.mdindex 7609960..cc1be39 100644--- a/docs/PRINCIPLES.md+++ b/docs/PRINCIPLES.md@@ -193,3 +193,12 @@- a key from the front makes a night scene look like day — light from the side and a little behind;- a cumulus built from a row of balls is cotton wool, and a front puff's own soft edge lets the sky through as a dark crease — puffs on a dome, a solid row underneath, coverage from the union of every puff;- thin, see-through foreground blades read as straw — wider, opaque blades that light up only at the tip.+- **Sunlit greenery**: the leaves carry the picture — build every mass from a few flat greens laid darkest first, each edge stamped with leaves, and keep the crowns airy; paint whites in their sunlit colour and lay cool leaf shadows over them. Watch for accidental reads:+ - leaves scattered evenly over a whole crown read as confetti, noise or broccoli — paint each tone as one shape with a leafy edge;+ - a crown with a full, smooth silhouette is a ball — thin its outer zone into separate sprays with sky between;+ - straight-edged blue chips inside a crown look like missing paint — pale them and lay leaves back over their rims;+ - a sun patch on a mid-grey wall barely shows — keep the shaded wall a cool, light grey-blue and the sun a warm cream at full strength;+ - leaf shadows made of round blobs look like spilled paint — fringe every shadow mass with pointed leaf clusters;+ - a reflection painted as even dashes on teal is texture, not water — mirror the scene, shift each band, flatten it, and cut it into strokes that thin out toward the viewer;+ - a boulder cut flat on the water floats — tint its submerged part, give it a broken reflection and a ripple line;+ - tiny isolated tone islands on a stone or a pot read as holes — merge them away.diff --git a/docs/PRINCIPLES.zh.md b/docs/PRINCIPLES.zh.mdindex 80eb680..b9a8a25 100644--- a/docs/PRINCIPLES.zh.md+++ b/docs/PRINCIPLES.zh.md@@ -193,3 +193,12 @@- 主光从正面打,夜景就像白天——从侧后方掠过来;- 一排球摞起来的积云像棉花团,前面团块自己的软边会让天空透出来成一道深折痕——团块排在穹顶上、底下一排撑住,覆盖率取所有团块的并集;- 又细又透的前景草像一把稻草——草要宽、不透明,只在草尖那一段变亮。+- **夏日光绿**:画面靠叶子撑——每个叶团用几种平涂绿从暗到亮一层层铺,每层的边盖一圈叶子,树冠要透气;白色的东西先画受光的颜色,再盖冷色的叶影。小心看错:+ - 叶子在整个树冠上撒得一样匀,像彩色碎纸、噪点或西兰花——每个色阶画成一整块、边上是叶子;+ - 轮廓又满又圆的树冠是一个球——把外圈掏空成一簇簇,中间透出天空;+ - 树冠里直边的蓝色碎片像漏了颜色——提浅,洞边再压几片叶子;+ - 中灰的墙上光斑几乎看不出来——背光的墙用偏冷的浅灰蓝,光斑用暖奶油色、强度给满;+ - 圆团团的叶影像泼出来的颜料——每块阴影的边缘都要是一圈尖叶簇;+ - 青绿上一排匀匀的横线是纹理,不是水——把画面倒过来、每条横带错开、压平颜色,再裁成越往近处越稀的横笔触;+ - 在水面上切平的石头像浮着——水下部分染水色,加碎倒影和一道涟漪;+ - 石头和花盆上孤立的小色块岛像破洞——把它们并掉。diff --git a/docs/STYLES.md b/docs/STYLES.mdindex bb12032..877f032 100644--- a/docs/STYLES.md+++ b/docs/STYLES.md@@ -2,11 +2,11 @@[← README](../README.md) · [Styles](STYLES.md) · [画风](STYLES.zh.md) · [Principles](PRINCIPLES.md) · [作画要点](PRINCIPLES.zh.md) · [Usage · 用法](USAGE.md) · [Gallery · 画廊](GALLERY.md) · [GIFs · 动图](GIFS.md)-**Claude paints with code — no image model.** Eighty-two styles, from ink wash and impasto oil to clay, cyanotype, stained glass, a Roman mosaic, Delft tiles, a cyberpunk street, a ray-traced ball pit, low-poly 3D, a thermal camera, an X-ray, a VHS tape, a synthwave sunset, a pastel product-film UI, an answer sheet marked in red, a lamp-lit shadow-puppet play, pen-and-wash sketch cards, retro gouache picture-book portraits, a soft-blue picture-book spread, a Jiangnan water garden in spring, a dry-brushed mid-century poster, a dusk picture-book page where the sky turns to stars, a hatched night print of lava meeting the sea, a dark note-taking app rendering its diagram, an infinite canvas of cards, a five-diagram sheet on warm Flexoki paper, a warm coloured-pencil storybook spread, a colour town of gouache houses strung with bunting, a soft-pastel vignette of a woman wearing her ginger cat as a scarf, a melancholic Halloween portrait of a porcelain-faced child carrying a glowing ghost home in a jar, an oil-pastel portrait of a woman warming her hands on a paper cup on a winter morning, a sketchbook doodle of a girl in a rainbow-striped jumper reading on a stool while her cat sleeps at her feet, a sheet of flat Japanese spot illustrations of a rainy Saturday with one red thing in every vignette, a grainy, chalky picture-book page of a child walking a little dog home through the snow on a cobalt evening and a tall phone wallpaper of giant hills furred in velvety grass, glowing lavender and apricot at dawn, with one walker a few pixels tall on the crest.+**Claude paints with code — no image model.** Eighty-three styles, from ink wash and impasto oil to clay, cyanotype, stained glass, a Roman mosaic, Delft tiles, a cyberpunk street, a ray-traced ball pit, low-poly 3D, a thermal camera, an X-ray, a VHS tape, a synthwave sunset, a pastel product-film UI, an answer sheet marked in red, a lamp-lit shadow-puppet play, pen-and-wash sketch cards, retro gouache picture-book portraits, a soft-blue picture-book spread, a Jiangnan water garden in spring, a dry-brushed mid-century poster, a dusk picture-book page where the sky turns to stars, a hatched night print of lava meeting the sea, a dark note-taking app rendering its diagram, an infinite canvas of cards, a five-diagram sheet on warm Flexoki paper, a warm coloured-pencil storybook spread, a colour town of gouache houses strung with bunting, a soft-pastel vignette of a woman wearing her ginger cat as a scarf, a melancholic Halloween portrait of a porcelain-faced child carrying a glowing ghost home in a jar, an oil-pastel portrait of a woman warming her hands on a paper cup on a winter morning, a sketchbook doodle of a girl in a rainbow-striped jumper reading on a stool while her cat sleeps at her feet, a sheet of flat Japanese spot illustrations of a rainy Saturday with one red thing in every vignette, a grainy, chalky picture-book page of a child walking a little dog home through the snow on a cobalt evening, a tall phone wallpaper of giant hills furred in velvety grass, glowing lavender and apricot at dawn, with one walker a few pixels tall on the crest, and a white room full of summer light, where the trees outside the window are painted leaf by leaf and their shadows fall blue across the cushions and the floor.### What it is-A [Claude Code](https://claude.com/claude-code) skill and a small painting library with eighty-two styles:+A [Claude Code](https://claude.com/claude-code) skill and a small painting library with eighty-three styles:| Style | Module | What makes it read as the real medium ||---|---|---|@@ -92,6 +92,7 @@ A [Claude Code](https://claude.com/claude-code) skill and a small painting libra| **Flat spot illustration (日系扁平小插画)** | `lib/spotillo.py` · `SpotIllustration` | Japanese-style spot illustrations of everyday life: several small vignettes floating on white with generous space between them — no ground, no background, at most a puddle or a sliver of shadow. Every shape is one flat, opaque colour with no gradient or shading, only a faint print grain; its outline is pushed in and out by a periodic wobble before it is cut, so edges are slightly irregular, never vector-perfect. A restrained palette — navy, slate and powder blue, mustard, olive and forest green, greys, near-black hair, skin left as the paper — with one warm red that recurs as the accent in every vignette (an umbrella, a pot, a bowl, a mug, a pair of socks). Lines are few: `gap=` cuts a thin white gap round a shape so an arm reads against a sweater of the same colour, `fold()` cuts folds and seams in white into dark cloth (a shade darker on pale cloth), and thin dark lines draw only a profile, fingers and furniture legs. People are built from simple parts in a fixed back-to-front order by `person()` — a pose preset ('stand', 'walk', 'sit', 'crouch', 'reach'), joints overridden in head units, the whole figure turned to lie down, hooks to slip a prop between the layers — with paper-white faces (a profile line and a dot eye), lumpy hair blobs with white strands cut in and mitten hands with red finger lines. Little hand marks tell the action: steam squiggles, three dashes of surprise, z's, rain || **Grainy picture book (颗粒童书)** | `lib/grainbook.py` · `GrainBook` | the sweet, grainy mid-century children's-book look: a full-bleed page — no margin, no vignette — in a small, saturated palette (cobalt and ultramarine skies or a dusty-blue ground, vermilion and tomato red, orange, pine green, cream, peach snow, black hair). Everything is one big flat shape laid with a dry, chalky brush: `fill()` thresholds the shape's softened mask against a streak texture (made once per 7.5° of stroke direction and read at a random offset), the paper tooth and a mid-scale noise, so every edge frays into a crumbly fringe along the stroke and is a shade darker there; a pressure that falls off toward the edge skips the tooth, so the cream underlayer shows through in specks; the colour drifts lighter and darker along faint dry streaks over a sandy grain. No outlines — shapes meet colour to colour, with a few dark crayon accents (window bars, a lead, a smile). Skies are painted in steps by `bands()`, each colour dry-brushed up into the one above (`blend`), never a digital gradient; light is a lighter dry scumble, shadows are flat multiplied shapes. Sweet faces from parts — big round black-and-white eyes or dot eyes, coral cheeks, a button or triangle nose, a tiny mouth — and `child()` standing, walking or sitting on an edge, with bob, long, short or bun hair and a knitted hat; props for a red cottage with lit windows, feathery pines, small far firs, round trees, shrubs, a cup, a parcel, a paper bag, reeds, a lamp, a dog and ducks; snow, stars, a crescent moon, chimney smoke, ripples, footprints || **Dreamy hills (柔光草丘)** | `lib/dreamhills.py` · `DreamHills` | the minimalist, dreamy hills wallpaper: a tall 1:2 picture with a clean, deep sky over half of it, giant soft hills below, and one person a few pixels tall walking on a crest for scale. Each hill is a Catmull-Rom ridge painted back to front; every pixel gets a pseudo normal that is the silhouette's outward normal on the ridge and turns toward the viewer down the face while keeping the side the swell faces, bent by a noise height field laid out along the ridge, so soft bands of light follow every hill. It is lit by a key (`key_dir`) and a sky fill, a crest rim, and a trough occlusion above every nearer ridge that takes the key away first, so troughs cool as well as darken; the light becomes a value through 1 − exp(−E), and the colour is a `warm` ramp at that value mixed toward a `cool` ramp by the sky's share — the two ramps are the luminous, surreal colour field (lavender / apricot, saffron / pink, ember / navy, grass green). Over a slightly darker base go tens of thousands of fine, tapered, bent grass blades that follow the slope (the silhouette normal on the crest, so the fringe stands against the sky, then up, plus wind and a slow swirl), each lit with its own jittered normal, cool at the root and warm at the tip; they are splatted with bilinear `np.bincount` and composited back to front in jittered chunks. The sky is a smooth multi-stop gradient with a sun glow; `cloud()` builds a cumulus from soft puffs on a dome with rounded heads, smooths and slope-limits the height field so the puffs melt together, and lights it with a warm key and cool crevices; at night `stars()`, `milky_way()` and `comet()`. Plus small far trees, a band of tall backlit grass with five-petal wildflowers along the bottom, a walker drawn at 8x with a rim light, a shadow and an optional glowing lantern, bloom and a fine film grain that also dithers the sky |+| **Sunlit greenery (夏日光绿)** | `lib/sunlitgreen.py` · `SunlitGreen` | bright, high-key summer daylight as an anime background painter or a digital-gouache illustrator paints it — no outlines, hard-edged flat shapes, a faint paper tooth. The leaves carry it: `canopy()` packs every mass with small sub-clump domes that each catch the sun, cuts that light into a few flat greens (deep teal-green, mid green, yellow-lime, a pale glint) and paints them darkest first, each tone as one shape (solid for far trees, leaves only for near ones) whose whole edge is stamped with leaf clusters pointing outward, so sunlit leaves lie over shaded ones with crisp, leafy edges; some leaves swap a tone (`mottle`), the outer zone thins into separate sprays (`airy`), and small holes show the sky and twigs. `spray()` paints near branches of big leaves, each two flat halves split at the midrib. Leaf shadows (`leaf_shadow()`: shadow masses fringed with leaf clusters, loose sprays, sun flecks) are laid over sunlit surfaces as a blue-grey multiply or cut out of warm, window-shaped sun patches, so sun-bleached whites are warm cream in the light and cool blue-grey in the shade; `soft()` puffs any outline into a few flat tones (cushions, pots, faceted boulders with moss caps and a thin warm terminator). Clear water: a pebbled bed under transparent teal, the scene mirrored with every thin band shifted sideways, smeared, flattened to a few paints and cut into horizontal strokes, with boulders standing in it that have their own broken reflections and a ripple line. Every shape goes through a 2× supersampled id-map rasteriser, so one picture holds tens of thousands of leaves |Ask Claude to *"draw it yourself"*, *"paint this with code"*, or *"claude绘图"*, and name a style if you like. Claude then:diff --git a/docs/STYLES.zh.md b/docs/STYLES.zh.mdindex ce19dc4..6e60c78 100644--- a/docs/STYLES.zh.md+++ b/docs/STYLES.zh.md@@ -2,11 +2,11 @@[← README](../README.md) · [Styles](STYLES.md) · [画风](STYLES.zh.md) · [Principles](PRINCIPLES.md) · [作画要点](PRINCIPLES.zh.md) · [Usage · 用法](USAGE.md) · [Gallery · 画廊](GALLERY.md) · [GIFs · 动图](GIFS.md)-**不用生图模型,Claude 用代码一笔一笔作画。** 八十二种画风,从水墨、油画到黏土、蓝晒、彩色玻璃花窗、罗马马赛克、代尔夫特蓝瓷砖、赛博朋克、光线追踪的小球海、低多边形 3D、热成像、X 光片、VHS 录像带、Synthwave 落日、产品发布片式的粉彩界面、红笔批改的答题卡、油灯下的皮影戏、钢笔淡彩的速写小卡、复古水粉的绘本大头像、蓝调绘本的雨天跨页、江南园林的春水园景、干刷色块的 mid-century 海报、暮色微缩绘本里转入星空的黄昏、排线夜景里流进海里的熔岩、深色笔记应用里渲染出的流程图、卡片铺开的无限白板、Flexoki 暖纸上的五图图解、暖调彩铅叠出来的绘本跨页、挂满彩旗的水粉彩色小镇、把橘猫当围巾的色粉小像、捧着罐中小幽灵的诗意万圣夜、冬天早上捧着一杯热饮的油画棒肖像、穿彩虹条纹毛衣、坐在小凳上读书的手账线描、每幅一个红色点睛、讲一个雨天星期六的日系扁平小插画、钴蓝雪夜里牵着小狗回家、满纸粉笔颗粒的颗粒童书和一个人走过天鹅绒草丘、破晓时薰衣草紫配杏色的柔光草丘手机壁纸。+**不用生图模型,Claude 用代码一笔一笔作画。** 八十三种画风,从水墨、油画到黏土、蓝晒、彩色玻璃花窗、罗马马赛克、代尔夫特蓝瓷砖、赛博朋克、光线追踪的小球海、低多边形 3D、热成像、X 光片、VHS 录像带、Synthwave 落日、产品发布片式的粉彩界面、红笔批改的答题卡、油灯下的皮影戏、钢笔淡彩的速写小卡、复古水粉的绘本大头像、蓝调绘本的雨天跨页、江南园林的春水园景、干刷色块的 mid-century 海报、暮色微缩绘本里转入星空的黄昏、排线夜景里流进海里的熔岩、深色笔记应用里渲染出的流程图、卡片铺开的无限白板、Flexoki 暖纸上的五图图解、暖调彩铅叠出来的绘本跨页、挂满彩旗的水粉彩色小镇、把橘猫当围巾的色粉小像、捧着罐中小幽灵的诗意万圣夜、冬天早上捧着一杯热饮的油画棒肖像、穿彩虹条纹毛衣、坐在小凳上读书的手账线描、每幅一个红色点睛、讲一个雨天星期六的日系扁平小插画、钴蓝雪夜里牵着小狗回家、满纸粉笔颗粒的颗粒童书、一个人走过天鹅绒草丘、破晓时薰衣草紫配杏色的柔光草丘手机壁纸,和一间满是夏天阳光的白色屋子——窗外的树一片叶子一片叶子地画,蓝色的叶影落满靠垫和地板。### 这是什么-一个 [Claude Code](https://claude.com/claude-code) skill,加上一个小巧的绘图库,内置八十二种画风:+一个 [Claude Code](https://claude.com/claude-code) skill,加上一个小巧的绘图库,内置八十三种画风:| 画风 | 模块 | 为什么看起来像真的 ||---|---|---|@@ -92,6 +92,7 @@| **日系扁平小插画** | `lib/spotillo.py` · `SpotIllustration` | 日系的生活小插画(spot illustration):几幅日常小事的小画散在白纸上,中间留足白,不画地面和背景,至多一个水洼或一道小影子。每块颜色都是平涂的不透明色块,没有渐变和明暗,只有极淡的印刷颗粒;下刀前轮廓先沿法向推一个周期的起伏,所以边略不规整,不像矢量那么光。颜色克制——藏青、灰蓝和粉蓝、芥末黄、橄榄绿和墨绿、几种灰、近黑的头发,皮肤就是白纸——每幅里只有一个反复出现的暖红(伞、锅、碗、马克杯、一双袜子)。线很少:`gap=` 在一块颜色周围刻一道白缝,同色的胳膊和毛衣才分得开;`fold()` 在深色布料上刻白色的衣褶和接缝(浅色布料上画深一号的线);深色细线只画侧脸、手指和家具腿。人由 `person()` 用简单零件按从后往前的顺序拼:姿势预设(站、走、坐、蹲、伸手),以头高为单位改关节,整个人转过来就能躺下,`hooks` 在两层之间插进道具;脸是白纸加一道侧脸线和一点眼,头发是鼓包的一整块、刻两三根白发丝,手像连指手套、指缝是红线。小动作交给手画的小记号:热气的 S 形、惊讶的三短线、z、雨点 || **颗粒童书** | `lib/grainbook.py` · `GrainBook` | 甜美、带颗粒的 mid-century 童书味:满幅的一页,不留白、不做小像,颜色少而饱和(钴蓝和群青的天或灰蓝底、朱红和番茄红、橙、松绿、奶油色、桃粉色的雪、黑头发)。每样东西都是一大块平涂的形状,用干的粉笔颗粒笔刷铺:`fill()` 把形状的遮罩轻轻模糊后,对条纹纹理(按笔触方向每 7.5° 生成一张、从随机偏移处读)、纸齿和中尺度噪声取阈值,边缘碎成顺着笔触的毛边、那一圈颜色深一点;压力往边上掉、跳过纸齿,底下的奶油色一点点露出来;颜色顺着淡淡的干笔条纹忽深忽浅,压在细沙似的颗粒上。没有描线,形状和形状色块相接,只有几笔深色蜡笔点睛(窗格、牵绳、笑嘴)。天空由 `bands()` 一级一级画,每一层再往上干扫一段(`blend`),不用数码渐变;亮面是更浅的干笔擦扫,投影是一块平的正片叠底。甜脸用零件拼:黑白大圆眼或点点眼、珊瑚色圆腮红、扣子或三角鼻子、小嘴;`child()` 站、走或坐在边上,波波头、长发、短发或发髻,毛线帽;道具有亮灯的红色小屋、羽状松树、远处小冷杉、圆树、灌木、杯子、纸盒、纸袋、芦苇、路灯、小狗和鸭子;还有雪、星、月牙、炊烟、涟漪、脚印 || **柔光草丘** | `lib/dreamhills.py` · `DreamHills` | 极简、梦幻的草丘壁纸:1:2 竖幅,干净的深蓝天占一半,下面是巨大柔软的山丘,山脊上一个几十像素高的人在走,是唯一的尺度。每座山是一条 Catmull-Rom 山脊,从后往前画;每个像素一个伪法线:山脊上是轮廓的外法线,往下转向观者,同时保留这座山朝哪一边,再被一张沿山脊铺的噪声高度场掰弯,所以柔和的明暗带顺着每座山走。光是主光(`key_dir`)加天光、坡顶边缘光,以及每道更近山脊上方先挡主光的谷底遮挡(谷里不只变暗、还变冷);光照经 1 − exp(−E) 成为明度,颜色取 `warm` 色带在这个明度上的颜色,再按天光的占比混向 `cool` 色带——两条色带就是发光的超现实色场(薰衣草 / 杏色、藏红花 / 粉、焦橙 / 藏青、草绿)。在略暗的底色上盖几万根顺坡的细草笔触(山脊上顺轮廓法线、毛边立在天空前,往下转向竖直,加风和慢涡旋),每根用自己抖过的法线打光,根冷尖暖;用双线性 `np.bincount` 撒点,按根部抖动分块从后往前合成。天空是多段平滑渐变加太阳光晕;`cloud()` 把柔软团块排在有圆头的穹顶上,高度场平滑并限斜率、团块融在一起,暖色主光、冷的缝隙;夜里有 `stars()`、`milky_way()`、`comet()`。还有远山小树、底边逆光的高草带和五瓣野花、8 倍超采样带边缘光和影子的走路小人(可提一盏发光的小灯),泛光和顺便给天空抖动的细胶片颗粒 |+| **夏日光绿** | `lib/sunlitgreen.py` · `SunlitGreen` | 明亮、高调的夏日白天,照动画背景美术和数码水粉的画法:没有描线,都是硬边的平涂形,带一点纸纹。重点在叶子:`canopy()` 把每个叶团排满小团块,各自是向阳一面亮的小穹顶,明度切成几种平涂绿(深青绿、中绿、黄绿和一点浅色高光),从暗到亮一层层画,每个色阶是一整块形(远树实心,近树只用叶子铺),整条边盖一圈朝外的叶簇,所以向阳的叶子压在背阴的上面、边是一片片清晰的叶子;一部分叶子换一个色阶(`mottle`),外圈掏空成一簇簇(`airy`),小洞里透出天空和细枝。`spray()` 画近处的大叶枝,每片叶子沿中脉分成两半平涂。叶影(`leaf_shadow()`:边缘是叶簇的阴影块、散开的叶影和小光斑)以蓝灰色相乘盖在受光的东西上,或者从窗形的暖色光斑里挖出来,所以晒白的白色受光处是暖奶油色、背光处是冷蓝灰;`soft()` 把任意轮廓鼓成几个平涂色阶的体(靠垫、花盆、带苔藓帽和细暖交界线的切面大石头)。清澈的水:透明青绿下的卵石床,画面倒过来,每条细横带左右错开、横向抹开、压成几种颜色、裁成横笔触,水里的石头有自己的碎倒影和一道涟漪。所有形都走 2 倍超采样的 id 图光栅器,一幅画能放几万片叶子 |对 Claude 说「claude绘图」「你自己画」「用代码画」,也可以指定画风。它会:1. **先定构图**:层次、焦点、留白,而且画面要图解内容本身;diff --git a/docs/USAGE.md b/docs/USAGE.mdindex e7f9901..82f83ed 100644--- a/docs/USAGE.md+++ b/docs/USAGE.md@@ -146,4 +146,6 @@ python3 examples/grainbook_snow_walk.py out.jpg --stages stages/ # 颗粒童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)```diff --git a/docs/thumbs/bawansiqian.jpg b/docs/thumbs/bawansiqian.jpgindex df16e0d..15be2dd 100644Binary files a/docs/thumbs/bawansiqian.jpg and b/docs/thumbs/bawansiqian.jpg differdiff --git a/docs/thumbs/oil_wheatfield.jpg b/docs/thumbs/oil_wheatfield.jpgindex 1466f7d..44bec06 100644Binary files a/docs/thumbs/oil_wheatfield.jpg and b/docs/thumbs/oil_wheatfield.jpg differdiff --git a/docs/thumbs/sunlitgreen_window_seat.jpg b/docs/thumbs/sunlitgreen_window_seat.jpgnew file mode 100644index 0000000..4b82843Binary files /dev/null and b/docs/thumbs/sunlitgreen_window_seat.jpg differdiff --git a/docs/thumbs/watercolor_autumn.jpg b/docs/thumbs/watercolor_autumn.jpgindex 0e87766..dacab5b 100644Binary files a/docs/thumbs/watercolor_autumn.jpg and b/docs/thumbs/watercolor_autumn.jpg differdiff --git a/examples/drawing_sunlitgreen_stream_steps.gif b/examples/drawing_sunlitgreen_stream_steps.gifnew file mode 100644index 0000000..72b73deBinary files /dev/null and b/examples/drawing_sunlitgreen_stream_steps.gif differdiff --git a/examples/drawing_sunlitgreen_window_seat.gif b/examples/drawing_sunlitgreen_window_seat.gifnew file mode 100644index 0000000..17049f7Binary files /dev/null and b/examples/drawing_sunlitgreen_window_seat.gif differdiff --git a/examples/drawing_sunlitgreen_window_seat_late.gif b/examples/drawing_sunlitgreen_window_seat_late.gifnew file mode 100644index 0000000..83c6044Binary files /dev/null and b/examples/drawing_sunlitgreen_window_seat_late.gif differdiff --git a/examples/sunlitgreen_stream_steps.jpg b/examples/sunlitgreen_stream_steps.jpgnew file mode 100644index 0000000..35a8254Binary files /dev/null and b/examples/sunlitgreen_stream_steps.jpg differdiff --git a/examples/sunlitgreen_stream_steps.py b/examples/sunlitgreen_stream_steps.pynew file mode 100644index 0000000..4fb6e1b--- /dev/null+++ b/examples/sunlitgreen_stream_steps.py@@ -0,0 +1,159 @@+"""Example (sunlit greenery): 溪边石阶 · Steps Down to the Stream -- a clear forest stream in summer light.++A 9:16 phone wallpaper in the anime background-painting / digital gouache manner: two leafy trees frame a window of+clean blue sky with a small cumulus; under them a flight of pale stone steps climbs a green bank between sunlit+bushes, dappled with leaf shadows; in front a clear stream -- a pebbled bed seen through transparent teal, the trees,+the sky and the stones mirrored in broken horizontal strokes -- with sun-bleached white boulders standing in it,+warm cream on top and cool blue-grey in the shade, moss on their crowns and a ripple line where they meet the water;+a branch of big leaves leans in from the right. No outlines, no image model: every leaf is a flat painted shape.+--layout page (1152 x 2048, the wallpaper) or wide (1920 x 1080: the same place laid out 16:9, for the draw-on GIF+and for video); --stages DIR writes a snapshot after each step (blank, sky, far woods, the bank and steps, bushes+and grass, trunks and canopy, the water, the boulders -- then the final with the near branch).+python3 sunlitgreen_stream_steps.py [out.jpg] [--layout page|wide] [--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 sunlitgreen import SunlitGreen++# Every layout: canvas, the waterline, the sky (bottom y), the cloud, two rows of far woods, the bank outline, the+# steps (bottom centre, top centre, widths, count), bushes on either side, bank rocks, trunks and limbs, the canopy+# clumps overhead, the boulders in the stream and the near branch.+LAYOUTS = {+ 'page': dict(+ size=(1152, 2048), line=1260, sky_y1=1000, cloud=(560, 560, 280, 120),+ far=[dict(y=760, dy=120, x0=-40, step=80, n=16, r=(90, 110), far=0.42, leaf=8),+ dict(y=950, dy=80, x0=-40, step=95, n=13, r=(100, 110), far=0.25, leaf=9)],+ bank=[(-10, 860), (180, 800), (380, 740), (560, 760), (760, 860), (1160, 900)],+ steps=dict(n=10, x0=520, x1=310, w0=330, w1=140, rise=480),+ bush_l=[(60, 900, 170, 120, 0.05), (220, 1010, 120, 80, 0.06), (130, 1130, 170, 100, 0.08), (300, 1190, 90, 60, 0.1),+ (330, 870, 70, 50, 0.04), (300, 770, 90, 50, 0.03)],+ bush_r=[(700, 980, 120, 90, 0.04), (870, 940, 190, 130, 0.02), (1060, 1000, 170, 130, 0.04), (760, 1150, 140, 90, 0.08),+ (1000, 1170, 170, 90, 0.1), (560, 830, 60, 45, 0.02)],+ grass=[(250, 760, -6, 46, 420), (0, 1152, 4, 38, 800)],+ bank_rocks=[(150, -8, 160, 62), (930, -6, 200, 72), (690, -2, 80, 30)],+ trunks=[([(70, 1270), (90, 900), (60, 500), (90, 0)], 120, 80, '#5f6460', '#a3a49a'),+ ([(980, 1180), (1000, 800), (960, 400), (990, 0)], 60, 40, '#6a6c66', '#acab9f')],+ limbs=[([(80, 520), (260, 380), (420, 300)], 30, 12, '#5f6460', '#a3a49a'),+ ([(985, 600), (840, 470), (720, 420)], 24, 10, '#6a6c66', '#acab9f')],+ canopy=[(80, 120, 260, 200, 0.05), (300, 60, 230, 150, 0.0), (180, 330, 200, 140, 0.08), (420, 260, 140, 100, 0.04),+ (1000, 120, 240, 200, 0.02), (840, 60, 200, 130, 0.0), (1040, 400, 180, 160, 0.06), (860, 330, 150, 110, 0.05),+ (40, 560, 150, 160, 0.1), (1110, 650, 120, 140, 0.12)],+ water=dict(pebbles=320, pebble_size=34, stroke=(150, 10)),+ boulders=[(300, 1430, 160, 70), (820, 1520, 190, 85), (160, 1860, 230, 120), (1010, 1930, 200, 120), (600, 1700, 120, 50)],+ branch=[[(1190, 760), (1080, 820), (960, 900), (860, 990)], [(1190, 760), (1110, 900), (1050, 1010)],+ [(1190, 690), (1050, 680), (930, 720)], [(1190, 860), (1120, 1000), (1100, 1120)]], branch_leaf=88),+ 'wide': dict(+ size=(1920, 1080), line=690, sky_y1=560, cloud=(1120, 250, 260, 110),+ far=[dict(y=420, dy=70, x0=-40, step=90, n=24, r=(90, 80), far=0.42, leaf=7),+ dict(y=530, dy=50, x0=-40, step=105, n=20, r=(100, 70), far=0.25, leaf=8)],+ bank=[(-10, 520), (500, 470), (760, 420), (980, 440), (1300, 500), (1930, 520)],+ steps=dict(n=8, x0=900, x1=780, w0=260, w1=120, rise=235),+ bush_l=[(560, 520, 150, 90, 0.05), (690, 590, 100, 60, 0.06), (600, 660, 150, 60, 0.08), (430, 600, 140, 80, 0.06),+ (760, 470, 60, 40, 0.03), (790, 440, 70, 40, 0.03)],+ bush_r=[(1040, 560, 110, 70, 0.04), (1180, 530, 170, 100, 0.02), (1350, 580, 160, 90, 0.04), (1120, 660, 130, 50, 0.08),+ (960, 450, 50, 35, 0.02)],+ grass=[(680, 1100, -4, 34, 300), (0, 1920, 3, 30, 1100)],+ bank_rocks=[(440, -6, 150, 52), (1300, -5, 180, 60), (1060, -2, 70, 26)],+ trunks=[([(330, 700), (345, 500), (320, 250), (340, 0)], 90, 66, '#5f6460', '#a3a49a'),+ ([(1560, 650), (1575, 450), (1545, 220), (1565, 0)], 56, 40, '#6a6c66', '#acab9f')],+ limbs=[([(335, 260), (480, 170), (620, 120)], 24, 10, '#5f6460', '#a3a49a'),+ ([(1560, 300), (1430, 210), (1320, 180)], 20, 8, '#6a6c66', '#acab9f')],+ canopy=[(330, 90, 300, 150, 0.05), (590, 40, 240, 110, 0.0), (180, 260, 220, 120, 0.08), (520, 200, 140, 80, 0.04),+ (60, 120, 160, 160, 0.04), (1560, 90, 300, 150, 0.02), (1330, 40, 240, 100, 0.0), (1720, 260, 220, 130, 0.06),+ (1400, 210, 150, 80, 0.05), (1870, 120, 140, 150, 0.04), (90, 420, 140, 130, 0.1), (1840, 470, 120, 120, 0.12)],+ water=dict(pebbles=420, pebble_size=28, stroke=(150, 8)),+ boulders=[(640, 780, 150, 56), (1250, 820, 170, 66), (300, 960, 210, 90), (1560, 990, 190, 90), (920, 920, 110, 40)],+ branch=[[(1960, 380), (1850, 430), (1740, 490), (1650, 560)], [(1960, 380), (1880, 500), (1830, 600)],+ [(1960, 320), (1830, 310), (1720, 340)], [(1960, 460), (1900, 580), (1890, 680)]], branch_leaf=78),+}+++def scene(g, L, stage):+ W, H = g.W, g.H+ LINE = L['line']+ r = np.random.default_rng(4)+ # ---- sky and the far woods+ g.sky(top='#2470d0', mid='#4a93e0', bottom='#b0d6f0', y0=0, y1=L['sky_y1'], mid_at=0.45)+ cx, cy, cw, ch = L['cloud']+ g.cloud(cx, cy, cw, ch, seed=6)+ stage('sky')+ for j, F in enumerate(L['far']):+ cl = [(F['x0'] + i * F['step'] + r.random() * 30, F['y'] + r.random() * F['dy'], F['r'][0] + r.random() * 40,+ F['r'][1] + r.random() * 30, 0.03 + 0.02 * j) for i in range(F['n'])]+ g.canopy(cl, leaf=F['leaf'], far=F['far'], seed=5 + 3 * j, holes=0.45 - 0.15 * j, fill=1.0)+ stage('far_woods')+ # ---- the far bank: a green slope with stone steps set into it+ slope = g.face(L['bank'] + [(W + 10, LINE + 6), (-10, LINE + 6)], '#6b9e55', wobble=2)+ g.gradient(slope, '#5e9450', '#86b45c', axis=0, p0=min(p[1] for p in L['bank']), p1=LINE)+ g.strokes(slope, n=int(300 * W * H / 2.36e6), size=40, var=0.06, angle=-20, seed=13)+ S = L['steps']+ n = S['n']+ stp = np.zeros((H, W), np.float32)+ sc = g.k / 1.152+ for i in reversed(range(n)):+ t = i / (n - 1)+ f = t ** 0.85+ cx_ = S['x0'] + (S['x1'] - S['x0']) * f + 18 * sc * np.sin(i * 1.7)+ wd = S['w0'] + (S['w1'] - S['w0']) * f+ yb = LINE - 6 - S['rise'] * (1 - (1 - t) ** 1.3)+ rh, td = (28 - 15 * f) * sc, (34 - 21 * f) * sc+ sk = (r.random() - 0.5) * 8 * sc+ riser = [(cx_ - wd / 2, yb - rh + sk), (cx_ + wd / 2, yb - rh - sk), (cx_ + wd / 2 - 3, yb), (cx_ - wd / 2 + 3, yb)]+ tread = [(cx_ - wd / 2 + 6, yb - rh - td + sk * 0.6), (cx_ + wd / 2 - 6, yb - rh - td - sk * 0.6),+ (cx_ + wd / 2, yb - rh - sk), (cx_ - wd / 2, yb - rh + sk)]+ g.face([(cx_ - wd / 2 - 4, yb - 2), (cx_ + wd / 2 + 4, yb - 2), (cx_ + wd / 2, yb + 5), (cx_ - wd / 2, yb + 5)],+ '#3f6e46', alpha=0.6)+ f_, t_, _ = g.box(front=riser, top=tread, tones=('#d9c3ad', 'stone_sun', 'stone_shade'), wobble=1.6, seed=40 + i)+ stp = np.maximum(stp, np.maximum(f_, t_))+ g.dapple(stp, cover=0.42, leaf=15, squash=0.55, scale=4, seed=12)+ g.dapple(slope * (1 - stp), cover=0.5, leaf=15, squash=0.55, scale=4, seed=14, tint=(0.6, 0.72, 0.84))+ stage('steps')+ # ---- bushes along both sides of the steps, grass, rocks on the bank+ for j, side in enumerate(('bush_l', 'bush_r')):+ g.canopy(L[side], leaf=13, seed=21 + j, holes=0.15, fill=0.6, glint=0.5, hole_colour='#3e7a52')+ for (x0, x1, dy, h, nn) in L['grass']:+ g.grass(x0, x1, LINE + dy, h, n=nn, seed=23 + int(x0))+ for i, (x, dy, rx, ry) in enumerate(L['bank_rocks']):+ g.rock(x, LINE + dy, rx, ry, seed=60 + i, moss=0.5)+ stage('bushes')+ # ---- trunks and the canopy overhead, with sky holes+ for i, (path, w0, w1, c, lt) in enumerate(L['trunks']):+ g.limb(path, w0, w1, colour=c, lit=lt, bark=0.8, seed=71 + i)+ for path, w0, w1, c, lt in L['limbs']:+ g.limb(path, w0, w1, colour=c, lit=lt)+ g.canopy(L['canopy'], leaf=21, seed=26, holes=1.0, fill=0.15, sub=2.6, glint=0.6, mottle=0.3, twigs=12, airy=1.0,+ levels=(0.0, 0.36, 0.5, 0.63, 0.76))+ stage('canopy')+ # ---- the stream: pebbled bed, transparent teal, broken reflections+ g.water((0, LINE, W, H), line=LINE, seed=9, ripple=5, reflect=0.9, near_reflect=0.32, reflect_scale=1.4, density=1.0,+ **L['water'])+ stage('water')+ rocks = np.zeros((H, W), np.float32)+ for i, (x, y, rx, ry) in enumerate(L['boulders']):+ rocks = np.maximum(rocks, g.rock(x, y, rx, ry, seed=80 + i, moss=0.25 if i % 2 else 0.0, wet='water'))+ g.dapple(rocks, cover=0.4, leaf=20, scale=5, seed=88)+ stage('boulders')+ # ---- a branch of big leaves leaning in over the water+ g.spray(L['branch'], leaf=L['branch_leaf'], width=0.42, rosette=(5, 7), along=0.42, seed=91, bend=0.06)+++def main():+ a = sys.argv[1:]+ opt = lambda k, d: a[a.index(k) + 1] if k in a else d+ layout, stages = opt('--layout', 'page'), opt('--stages', None)+ name = 'sunlitgreen_stream_steps' + ('' if layout == 'page' else '_wide')+ out = a[0] if a and not a[0].startswith('--') else name + '.jpg'+ L = LAYOUTS[layout]+ T0 = time.time()+ W, H = L['size']+ g = SunlitGreen(W, H, seed=33, keep_stages=bool(stages), stages_dir=stages, light=(-0.5, -0.75, 0.45))+ g.finish()+ g.stage('blank')+ scene(g, L, g.stage)+ g.save(out, stages_dir=stages)+ print('saved', out, f'{time.time() - T0:.1f}s')+++if __name__ == '__main__':+ main()diff --git a/examples/sunlitgreen_window_seat.jpg b/examples/sunlitgreen_window_seat.jpgnew file mode 100644index 0000000..04e70b5Binary files /dev/null and b/examples/sunlitgreen_window_seat.jpg differdiff --git a/examples/sunlitgreen_window_seat.py b/examples/sunlitgreen_window_seat.pynew file mode 100644index 0000000..6184fe8--- /dev/null+++ b/examples/sunlitgreen_window_seat.py@@ -0,0 +1,219 @@+"""Example (sunlit greenery): 窗边的座位 · The Window Seat -- a white room full of summer light and a window to the trees.++A 9:16 phone wallpaper in the anime background-painting / digital gouache manner: a tall white-framed window full of+leafy trees and a clean blue sky with one small cumulus, a built-in window seat with a linen cushion, a navy check+pillow, a white one and an orange one, an open book and a cup of tea; a sheer curtain, a potted fig and a trailing+plant hanging from the ceiling; a sun patch with a window cross and leaf shadows on the wall, and the light through+the window falling across the wooden floor, broken by leaf shadows -- sun-bleached whites with warm cream light and+cool blue-grey shade. No outlines, no image model: every leaf is a flat painted shape.+--layout page (1152 x 2048, the wallpaper) or wide (1920 x 1080: the same room laid out 16:9, for the draw-on GIF+and for video); --preset noon (default) or late (the same room in late-afternoon gold, used only for a GIF);+--stages DIR writes a snapshot after each step (blank, sky, far trees, the near tree, the wall and window, the+sun on the wall, the floor, the seat, the light through the window, the plants -- then the final).+python3 sunlitgreen_window_seat.py [out.jpg] [--layout page|wide] [--preset noon|late] [--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 sunlitgreen import SunlitGreen++# Every layout: canvas, the window box (x0, y0, x1, y1), its columns and transom, the view outside (cloud; far,+# middle and near foliage clumps (cx, cy, rx, ry, shade); the near tree's trunk and limbs), the wall's sun patch,+# curtain, seat, floor, pillows and props, the light patch on the floor, the potted fig, the hanging plant, the stool+# and the foreground plant.+LAYOUTS = {+ 'page': dict(+ size=(1152, 2048), win=(300, 150, 1070, 1200), cols=2, transom=0.22, mid_at=0.4,+ cloud=(470, 600, 300, 130),+ far=dict(y=1060, x0=220, step=70, n=13, r=(70, 70)),+ mid=[(380, 930, 140, 120, 0.04), (470, 860, 120, 100, 0), (330, 1030, 150, 110, 0.08), (520, 1010, 150, 110, 0.04),+ (640, 1060, 140, 100, 0.06)],+ trunk=[[(960, 1240), (930, 900), (900, 640), (880, 430)], 70, 34],+ limbs=[[[(915, 760), (800, 640), (700, 560)], 26, 10], [[(895, 560), (1000, 420), (1090, 330)], 22, 9]],+ near=[(860, 330, 200, 150, 0.0), (1010, 250, 170, 140, 0.02), (720, 470, 150, 110, 0.08),+ (990, 560, 170, 140, 0.05), (850, 620, 140, 110, 0.12), (640, 260, 150, 110, 0.02),+ (1060, 760, 130, 120, 0.12), (480, 200, 110, 80, 0.05)],+ patch=[(0, 300), (262, 262), (262, 1150), (0, 1230)], cross_x=(118, 140), cross_y=(590, 562, 18),+ curtain=(975, 1160, 70, 1560, 5),+ seat=dict(x0=250, x1=1110, top=1262, front=1330, floor=1565, xpad=10, panels=[(290, 660), (700, 1070)]),+ vp=(640, 980), boards=22,+ cushion=(680, 1266, 870, 74),+ pillows=[(420, 1165, 235, 200, -8, 'check'), (625, 1180, 210, 175, 6, 'white'), (960, 1185, 195, 165, 10, 'orange')],+ book=(800, 1250, 170, 70, -4), mug=(1030, 1262, 48, 52),+ floor_patch=[(250, 1575), (1110, 1575), (1152, 1880), (520, 1880)], bar=[(660, 1575), (690, 1575), (900, 1880), (860, 1880)],+ fig=dict(x=175, pot=1770, s=1.0, crown=[(150, 1080, 105, 95, 0.04), (70, 1190, 95, 90, 0.08), (240, 1160, 95, 90, 0.0),+ (150, 1280, 110, 85, 0.06), (250, 1330, 80, 70, 0.04), (55, 1370, 85, 75, 0.1),+ (190, 990, 80, 70, 0.02), (300, 1240, 60, 60, 0.02)]),+ hang=150, hang_len=1.0,+ stool=(820, 1040, 1730), fg=(1230, 2100, 1.0)),+ 'wide': dict(+ size=(1920, 1080), win=(560, 60, 1400, 640), cols=3, transom=0.24, mid_at=0.42,+ cloud=(760, 280, 260, 110),+ far=dict(y=575, x0=500, step=68, n=15, r=(60, 52)),+ mid=[(640, 470, 110, 90, 0.04), (730, 420, 100, 80, 0), (600, 560, 120, 80, 0.08), (770, 545, 120, 80, 0.04),+ (900, 590, 110, 70, 0.06)],+ trunk=[[(1250, 700), (1235, 520), (1215, 360), (1200, 240)], 52, 26],+ limbs=[[[(1225, 430), (1130, 360), (1050, 320)], 20, 8], [[(1210, 330), (1300, 250), (1380, 200)], 17, 7]],+ near=[(1180, 170, 170, 110, 0.0), (1330, 120, 150, 100, 0.02), (1060, 270, 130, 80, 0.08),+ (1310, 330, 140, 100, 0.05), (1190, 370, 120, 80, 0.12), (980, 110, 130, 80, 0.02),+ (1380, 470, 110, 90, 0.12), (840, 80, 100, 60, 0.05)],+ patch=[(1530, 150), (1880, 110), (1880, 640), (1530, 690)], cross_x=(1700, 1720), cross_y=(360, 330, 16),+ curtain=(1340, 1500, 20, 880, 5),+ seat=dict(x0=470, x1=1490, top=688, front=742, floor=890, xpad=10, panels=[(510, 970), (1010, 1450)]),+ vp=(960, 560), boards=30,+ cushion=(980, 692, 1030, 60),+ pillows=[(680, 610, 190, 160, -8, 'check'), (860, 620, 170, 140, 6, 'white'), (1290, 622, 160, 135, 10, 'orange')],+ book=(1090, 680, 140, 56, -4), mug=(1395, 690, 46, 50),+ floor_patch=[(470, 898), (1490, 898), (1920, 1080), (760, 1080)], bar=[(940, 898), (968, 898), (1250, 1080), (1210, 1080)],+ fig=dict(x=260, pot=830, s=0.82, crown=[(240, 380, 95, 85, 0.04), (165, 470, 85, 80, 0.08), (325, 455, 85, 80, 0.0),+ (240, 560, 100, 75, 0.06), (330, 600, 70, 60, 0.04), (150, 630, 75, 65, 0.1),+ (275, 300, 70, 60, 0.02), (380, 520, 55, 55, 0.02)]),+ hang=120, hang_len=0.7,+ stool=(1560, 1760, 930), fg=(1960, 1130, 0.8)),+}+PRESETS = {+ 'noon': dict(seed=21, light=(-0.55, -0.72, 0.42), sky=('#2470d0', '#4a93e0', '#a8d2f0'), sun='#fff1d2', tint=0.0,+ floor_sun='#ffeccb', wall=('#d9dde6', '#e9e7e4'), tones=None),+ 'late': dict(seed=21, light=(-0.75, -0.45, 0.5), sky=('#2a5cb6', '#6a9ad6', '#f4c493'), sun='#ffe0b4', tint=0.5,+ floor_sun='#ffc888', wall=('#cfcbdc', '#ddd5d8'),+ tones='gold'),+}+++def scene(g, L, P, stage):+ W, H = g.W, g.H+ X0, Y0, X1, Y1 = L['win']+ tones = P['tones']+ # ---- outside: sky, a cloud, far / middle / near trees+ g.sky(*P['sky'], y0=Y0, y1=Y1, mid_at=L['mid_at'])+ cx, cy, cw, ch = L['cloud']+ g.cloud(cx, cy, cw, ch, seed=4)+ stage('sky')+ r = np.random.default_rng(2)+ F = L['far']+ far = [(F['x0'] + i * F['step'] + r.random() * 20, F['y'] + r.random() * 30, F['r'][0] + r.random() * 30,+ F['r'][1] + r.random() * 20, 0.04) for i in range(F['n'])]+ g.canopy(far, leaf=7, far=0.38, seed=5, holes=0.3, fill=1.0, tones=tones)+ g.canopy(L['mid'], leaf=10, seed=7, holes=0.5, fill=0.85, glint=0.4, tones=tones)+ stage('trees')+ path, w0, w1 = L['trunk']+ g.limb(path, w0, w1, colour='#6a665e', lit='#b8ad9c', bark=0.6, seed=71)+ for path, w0, w1 in L['limbs']:+ g.limb(path, w0, w1, colour='#6a665e', lit='#b8ad9c')+ g.canopy(L['near'], leaf=22, seed=6, holes=1.1, fill=0.0, sub=2.5, glint=0.6, mottle=0.3, twigs=10, airy=1.0,+ levels=(0.0, 0.34, 0.47, 0.6, 0.74), tones=tones)+ stage('near_tree')+ # ---- the room: wall (with the window opening), reveal, window frame, curtain+ OX0, OY0, OX1, OY1 = X0 - 26, Y0 - 26, X1 + 26, Y1 + 34+ opening = np.zeros((H, W), np.float32); opening[OY0:OY1, OX0:OX1] = 1+ wall = 1 - opening+ g.gradient(wall, P['wall'][0], P['wall'][1], axis=0, p0=0, p1=L['seat']['floor'])+ g.strokes(wall, n=int(220 * W * H / 2.36e6), size=70, var=0.018, angle=-80, seed=3)+ g.face([(OX0, OY0), (OX1, OY0), (X1, Y0), (X0, Y0)], 'white_shade')+ g.face([(OX0, OY0), (X0, Y0), (X0, Y1), (OX0, OY1)], 'white_half')+ g.face([(OX1, OY0), (OX1, OY1), (X1, Y1), (X1, Y0)], 'white_sun')+ g.face([(OX0, OY1), (OX1, OY1), (X1, Y1), (X0, Y1)], 'white_sun')+ g.window(X0, Y0, X1, Y1, cols=L['cols'], rows=[L['transom']], frame=16, bar=9)+ stage('window')+ # a sun patch on the wall (from a window out of frame): a window cross and leaf shadows inside it+ pt = np.array(L['patch'], np.float32)+ patch = g.mask([pt])+ cx0, cx1 = L['cross_x']; yl, yr, th = L['cross_y']+ xl, xr = pt[:, 0].min(), pt[:, 0].max()+ cross = g.mask([np.array([(cx0, pt[0, 1] + (pt[1, 1] - pt[0, 1]) * (cx0 - xl) / (xr - xl) - 4), (cx1, pt[0, 1] + (pt[1, 1] - pt[0, 1]) * (cx1 - xl) / (xr - xl) - 4),+ (cx1, pt[3, 1] + (pt[2, 1] - pt[3, 1]) * (cx1 - xl) / (xr - xl) + 4), (cx0, pt[3, 1] + (pt[2, 1] - pt[3, 1]) * (cx0 - xl) / (xr - xl) + 4)], np.float32),+ np.array([(xl, yl), (xr, yr), (xr, yr + th), (xl, yl + th)], np.float32)])+ sh = g.leaf_shadow((xl - 10, pt[:, 1].min() - 10, xr + 10, pt[:, 1].max() + 10), cover=0.32, leaf=17, scale=5, seed=8)+ g.sunlight(patch * (1 - cross) * (1 - sh), colour=P['sun'], strength=1.0, tint=P['tint'])+ g.curtain(L['curtain'][0], L['curtain'][1], L['curtain'][2], L['curtain'][3], folds=L['curtain'][4], alpha=0.72,+ seed=4, sway=0.03)+ stage('wall_sun')+ # ---- floor and the window seat+ S = L['seat']+ g.boards(S['floor'] - 10, H, L['vp'], n=L['boards'], tones=('#c3a790', '#c9ab93', '#cdb098', '#c6aa95'), gap='#8f7c80')+ stage('floor')+ sx0, sx1 = S['x0'], S['x1']+ g.box(front=[(sx0, S['front']), (sx1, S['front']), (sx1, S['floor']), (sx0, S['floor'])],+ top=[(sx0 - S['xpad'], S['top']), (sx1 + S['xpad'], S['top']), (sx1, S['front']), (sx0, S['front'])],+ tones=('#e4e5e8', 'white_sun', 'white_shade'))+ ph = S['floor'] - S['front']+ for a, b in S['panels']:+ g.panel(a, S['front'] + ph * 0.18, b, S['floor'] - ph * 0.16, colour='#dfe1e6', lit='#eceae6', shade='#b9c4d6')+ g.face([(sx0, S['floor'] - 10), (sx1, S['floor'] - 10), (sx1, S['floor'] + 10), (sx0, S['floor'] + 10)], 'white_shade',+ wobble=0.3)+ cx, cy, cw, chh = L['cushion']+ cushions = g.cushion(cx, cy, cw, chh, round_=0.35, seed=11, tones=('#c6c3c8', '#e3d8c8', '#f1e7d6', '#fbf4e6'))+ kinds = {'check': dict(tones=('#1e3570', '#26468e', '#2f56a6', '#3d68b8'), stripes=('#e8ecf4', 6, 0.06, -8, True)),+ 'white': dict(tones=('#b8c2d4', '#dcdde2', '#f2eee6', '#fdf9f0')),+ 'orange': dict(tones=('#a64a2a', '#c75d33', 'orange_cloth', '#f29a5e'))}+ for i, (px, py, pw, ph_, tilt, kind) in enumerate(L['pillows']):+ cushions = np.maximum(cushions, g.cushion(px, py, pw, ph_, round_=0.7, tilt=tilt, bulge=0.12, seed=12 + i,+ **kinds[kind]))+ bx, by, bw, bh, bt = L['book']+ g.book(bx, by, bw, bh, tilt=bt)+ mx, my, mw, mh = L['mug']+ g.mug(mx, my, mw, mh)+ stage('seat')+ # ---- the light through the window: leaf shadows over the sunlit cushions, a sun patch on the floor+ g.dapple(cushions, cover=0.3, leaf=24, squash=0.7, scale=4, seed=19, flecks=0.3)+ win = g.mask([np.array(L['floor_patch'], np.float32)])+ bars = g.mask([np.array(L['bar'], np.float32)])+ sh2 = g.leaf_shadow((0, S['floor'] - 20, W, H), cover=0.3, leaf=34, squash=0.5, scale=4, seed=9, flecks=0.3)+ g.sunlight(win * (1 - bars) * (1 - sh2), colour=P['floor_sun'], strength=0.85, tint=P['tint'] * 0.6)+ stage('light')+ # ---- props and plants: the stool with books, the potted fig, the hanging plant, a plant in the foreground+ k0, k1, ky = L['stool']+ g.box(front=[(k0, ky + 30), (k1, ky + 30), (k1, ky + 60), (k0, ky + 60)],+ top=[(k0 + 10, ky), (k1 - 10, ky), (k1, ky + 30), (k0, ky + 30)], tones=('wood_shade', 'wood_sun', 'wood_deep'))+ for x in (k0 + 20, k1 - 30):+ g.face([(x, ky + 60), (x + 18, ky + 60), (x + 22, ky + 230), (x + 4, ky + 230)], 'wood')+ g.face([(x + 12, ky + 60), (x + 18, ky + 60), (x + 22, ky + 230), (x + 16, ky + 230)], 'wood_shade')+ km = (k0 + k1) / 2+ g.book(km, ky - 15, (k1 - k0) * 0.68, 30, open_=False, cover='book_red', tilt=-3)+ g.book(km - 5, ky - 40, (k1 - k0) * 0.6, 26, open_=False, cover='book_mustard', tilt=4)+ Fg = L['fig']+ fx, fp, s = Fg['x'], Fg['pot'], Fg['s']+ top_y = min(c[1] for c in Fg['crown'])+ for path, w0, w1 in (([(fx - 5, fp + 20), (fx - 15, fp - (fp - top_y) * 0.4), (fx - 35, fp - (fp - top_y) * 0.75),+ (fx - 25, top_y + 60 * s)], 13 * s, 6 * s),+ ([(fx + 5, fp + 20), (fx + 30, fp - (fp - top_y) * 0.35), (fx + 75, fp - (fp - top_y) * 0.6)], 11 * s, 5 * s),+ ([(fx, fp - (fp - top_y) * 0.25), (fx - 65, fp - (fp - top_y) * 0.42), (fx - 115, fp - (fp - top_y) * 0.48)],+ 8 * s, 4 * s)):+ g.limb(path, w0, w1, colour='#6f5f50', lit='#a89480')+ g.canopy(Fg['crown'], leaf=19, seed=31, holes=0.6, fill=0.0, sub=2.2, glint=0.5, mottle=0.3, hole_colour='#e8e7e6',+ light=(0.6, -0.65, 0.45), levels=(0.0, 0.36, 0.5, 0.63, 0.76), tones=tones)+ g.pot(fx, fp, 220 * s, 230 * s, colour='#e9e4da')+ hx, hl = L['hang'], L['hang_len']+ vines = [[(hx, -10), (hx - 10, 160 * hl), (hx - 30, 330 * hl), (hx - 22, 470 * hl)], [(hx, -10), (hx + 40, 150 * hl), (hx + 80, 280 * hl)],+ [(hx, -10), (hx - 55, 120 * hl), (hx - 90, 260 * hl), (hx - 98, 380 * hl)],+ [(hx, -10), (hx + 15, 220 * hl), (hx + 28, 420 * hl), (hx + 20, 600 * hl)]]+ g.spray(vines, leaf=58, width=0.68, rosette=(2, 3), along=0.42, stem_w=2.2, seed=16, droop=0.6, bend=0.06, tones=tones)+ g.pot(hx, -40, 150, 90, colour='#d8d2c4')+ ex, ey, es = L['fg']+ fg = [[(ex, ey), (ex - 110 * es, ey - 140 * es), (ex - 210 * es, ey - 200 * es)],+ [(ex, ey), (ex - 80 * es, ey - 200 * es), (ex - 120 * es, ey - 320 * es)],+ [(ex, ey), (ex - 170 * es, ey - 70 * es), (ex - 300 * es, ey - 90 * es)],+ [(ex, ey), (ex - 40 * es, ey - 200 * es), (ex - 30 * es, ey - 340 * es)]]+ g.spray(fg, leaf=170 * es, width=0.5, rosette=(3, 4), along=0.5, stem_w=5, seed=33, bend=0.07, lit_bias=-0.2,+ tones=tones)+++def main():+ a = sys.argv[1:]+ opt = lambda k, d: a[a.index(k) + 1] if k in a else d+ layout, preset, stages = opt('--layout', 'page'), opt('--preset', 'noon'), opt('--stages', None)+ name = 'sunlitgreen_window_seat' + ('' if preset == 'noon' else '_' + preset) + ('' if layout == 'page' else '_wide')+ out = a[0] if a and not a[0].startswith('--') else name + '.jpg'+ L, P = LAYOUTS[layout], PRESETS[preset]+ T0 = time.time()+ W, H = L['size']+ g = SunlitGreen(W, H, seed=P['seed'], keep_stages=bool(stages), stages_dir=stages, light=P['light'])+ g.finish()+ g.stage('blank')+ scene(g, L, P, g.stage)+ g.save(out, stages_dir=stages)+ print('saved', out, f'{time.time() - T0:.1f}s')+++if __name__ == '__main__':+ main()diff --git a/lib/sunlitgreen.py b/lib/sunlitgreen.pynew file mode 100644index 0000000..77991be--- /dev/null+++ b/lib/sunlitgreen.py@@ -0,0 +1,1347 @@+"""sunlitgreen -- 夏日光绿 / Sunlit Greenery: bright summer daylight in the anime background-painting / digital+gouache manner -- crisp painted leaf clusters, dappled sunlight, sun-bleached whites with cool shadows, clear water+(numpy + Pillow only).++The look: a high-key summer day, as a background painter for an anime film would paint it. Foliage is built from+many crisp, flat leaf shapes in a few greens -- deep teal-green in the shade, mid green, yellow-lime in the sun, a+pale glint -- with leafy, slightly broken edges and small holes of sky through the canopy. Whites (walls, cushions,+boulders) are sun-bleached: warm cream in the light, cool blue-grey in the shade, often with a thin warm line where+the two meet. Leaf shadows and light patches lie across floors, walls and stones. The sky is a clean saturated blue+with a small cumulus; water is a transparent teal over a pebbled bed with its reflection broken into horizontal+painted strokes. No ink outlines anywhere, hard-edged shapes rather than blur, a faint paper / gouache tooth.++Model+ rasteriser Everything is a flat polygon of paint. A batch of polygons is drawn by index into a 2x supersampled+ id map (Pillow), the ids look up colour and alpha, and the map is box-averaged back to 1x: crisp,+ anti-aliased edges, painter's order = list order, a few microseconds a leaf, so a picture holds tens+ of thousands of leaves. Edges are subdivided and jittered a little (`_wobble`): painted, not ruled.+ foliage `canopy()` paints a mass the way a background painter does. Its clumps (cx, cy, rx, ry[, shade])+ are big domes packed with smaller sub-clumps (radius ~ `sub` leaves), each a little dome that catches+ the sun on its lit side; their normals, blended with the big dome's, a little noise, darkening toward+ the bottom and crevice occlusion give a light value, cut into the flat greens at `levels`. Each tone,+ darkest first, is painted as a shape (solid when `fill` is 1 -- a far or middle mass -- or only leaves+ when `fill` is 0 -- a near, leafy tree) whose whole edge is stamped with small leaf clusters pointing+ out of it, so lighter areas lie over darker ones with crisp leafy edges and the silhouette is all+ leaves; `mottle` swaps some leaves one tone up or down (lit and shaded leaves interleave). `airy`+ thins the outer zone of the mass with a coarse noise, so the edge breaks into separate sprays with sky+ between; `holes` punches pale sky chips (the sky colour at that height) inside, with leaves laid back+ over their rims and `twigs` showing in them; `glint` sprinkles pale highlights on the sunniest leaves.+ `spray()` is near foliage: twigs with big single leaves along them and a rosette at the tip, every leaf+ two flat halves split at the midrib (the half toward the sun a tone lighter), sunlit ones with a pale+ midrib and a thin warm edge, laid shaded-first. `grass()` tufts of flat blades, `limb()` trunks and+ branches with a lit stripe and bark grain.+ light `leaf_shadow()` makes a dappled mask: big shadow masses from a low-frequency field whose edges are+ fringes of leaf clusters pointing outward, loose leaf sprays out in the sun and small sun flecks in the+ shade, squashed for a floor seen in perspective. `shade()` lays a cool shadow over what is painted (a+ blue-grey multiply: cream goes blue-grey, warm stone violet-grey, lime grass teal); `sunlight()` warm+ light (a screen with cream, `tint` for the deeper amber of a late sun); `dapple()` does both on a+ region. Paint a surface in its sunlit colours and lay leaf shadows over it, or in its shade and lay a+ sun patch (a window shape, say) with leaf shadows cut out of it.+ solids `soft()` puffs any outline into a height field (pillow-like at the edges, `dome` for rounder,+ `facets` random planes for stone), lights it and cuts it into a few flat tones; `levels='q'` puts the+ boundaries at quantiles so every tone shows; `warm` draws a thin warm line on the terminator; `clean`+ dissolves tone islands too small to read as form. `rock()` (a sun-bleached boulder with moss caps; with+ `wet=` it stands in water: a submerged body tinted by the water, its own broken reflection and a+ ripple line), `cushion()` (plump, with painted stripes or checks), `pot()` (cylinder bands), `box()`,+ `panel()`, `face()`, `window()` (white bars with a sunlit face and a cool reveal; returns the glass),+ `curtain()` (sheer, translucent folds), `boards()` (a floor in one-point perspective), `book()`,+ `mug()`, `gradient()` and `strokes()` (visible brush patches inside an area).+ water `water()` paints a pebbled bed seen through transparent teal (deeper and bluer away from the viewer),+ then the picture above `line` mirrored (`reflect_scale` stretches it), every thin horizontal band+ shifted sideways by its own amount, smeared sideways and flattened to a few paints, and cut by a+ coverage of tapered horizontal strokes -- continuous far away, clustered and sparse near the viewer,+ where the bed shows -- plus a few pale sky glints. Paint everything it mirrors first.+ sky `sky()` a clean three-stop gradient (remembered, so canopy holes take the sky colour at their height);+ `cloud()` a small cumulus: puffs on a dome with a flat base, the height field merged, three flat tones+ along noise-warped boundaries, a crisp slightly broken edge.+ finish `finish()` only records the finishing (applied in render, so every stage snapshot matches): bloom on+ the brightest parts, a slight lift toward a pale air colour, a faint paper tooth and fine grain.++API (picture pixel coordinates, y down; colours are PAINTS names, '#rrggbb' or RGB triples; leaf tones a LEAVES+ name -- 'summer' 'gold' 'moss' -- or a list deep -> sunlit; k = min(W, H) / 1000 scales default sizes; light is+ a direction toward the sun: x right, y down, z toward the viewer)+ picture SunlitGreen(W, H, seed, keep_stages, stages_dir, light); finish(paper, grain, bloom, lift) -- first+ sky sky(top, mid, bottom, y0, y1, mid_at); sky_at(y); cloud(cx, base, w, h, seed, light, tones, n, levels,+ rough, merge)+ foliage canopy(clumps, tones, leaf, light, holes, far, sub, levels, noise, bottom_dark, blend, haze,+ edge_leaves, sprinkle, width, shape, hole_size, fill, glint, mottle, twigs, twig_colour, hole_colour,+ airy, seed); spray(stems, leaf, width, tones, rosette, along, droop, bend, light, rim, rim_w, midrib,+ stem, stem_w, far, seed, lit_bias); grass(x0, x1, y, h, n, tones, lean, width, far, curve, seed, ys);+ limb(path, w0, w1, colour, lit, lit_w, alpha, bark, seed)+ light leaf_shadow(box, cover, leaf, squash, scale, flecks, seed) -> mask; shade(mask, tint, strength, add,+ add_k); sunlight(mask, colour, strength, tint); dapple(region, cover, leaf, squash, scale, flecks,+ mode='shade'|'sun', strength, tint, colour, seed)+ solids soft(pts, tones, light, bevel, levels, noise, wobble, warm, warm_w, facets, flat, dome, clean, seed,+ clip); rock(cx, cy, rx, ry, tones, facets, rough, flat_base, moss, warm, bevel, wet, seed, light);+ face(pts, colour, alpha, wobble, seed); box(front, top, side, tones); panel(x0, y0, x1, y1, colour,+ lit, shade, bevel); window(x0, y0, x1, y1, cols, rows, frame, bar, colour, lit, shade, depth) -> glass;+ cushion(cx, cy, w, h, tones, round_, tilt, bulge, stripes, light, bevel, seed); curtain(x0, x1, y0,+ y1, folds, tones, alpha, sway, seed); boards(y0, y1, vp, n, x_span, tones, gap, gap_w, seed);+ pot(cx, top, w, h, colour, rim, light); book(cx, cy, w, h, open_, cover, tilt); mug(cx, base, w, h,+ colour, handle, tea); fill(mask, colour, alpha); poly(pts, colour); mask(polys); gradient(mask, c0,+ c1, axis, p0, p1); strokes(mask, n, size, var, angle, spread, aspect, seed)+ water water(box, line, mask, deep, mid, shallow, reflect, near_reflect, stroke, density, pebbles,+ pebble_size, ripple, sky_glints, reflect_scale, seed) -> mask+ output render(); composite(); stage(name); save(path, stages_dir) -- save('x.jpg') quality 92, 4:4:4 chroma++ import sys; sys.path.insert(0, 'lib')+ from sunlitgreen import SunlitGreen+ g = SunlitGreen(1152, 2048, seed=3); g.finish()+ g.sky(y1=1200); g.cloud(400, 500, 300, 130)+ g.canopy([(700, 400, 260, 200), (900, 600, 220, 180), (560, 640, 200, 150)], leaf=22, fill=0.0, holes=1.0,+ airy=1.0, mottle=0.3)+ m = g.rock(500, 1500, 260, 120, moss=0.3)+ g.dapple(m, cover=0.4, leaf=20)+ g.save('greenery.jpg')+"""+import io+import os+import numpy as np+from PIL import Image, ImageDraw+from core import blur, noise2d, spline, smoothstep, blob_pts++PAINTS = {+ # sky+ 'sky_top': '#2a76d4', 'sky': '#4b94e0', 'sky_low': '#9fcbee', 'sky_hole': '#c4def2', 'haze': '#b7d3e4',+ 'cloud': '#ffffff', 'cloud_half': '#e8eef8', 'cloud_shade': '#c3d1e6',+ # leaves, deep -> sunlit+ 'leaf_deep': '#1d4c47', 'leaf_shade': '#2d6b54', 'leaf_mid': '#55924f', 'leaf_light': '#97c05a',+ 'leaf_sun': '#cadf7c', 'leaf_glint': '#f3eb98',+ 'bark': '#4a4038', 'bark_light': '#9a8a78',+ # whites (sunlit cream -> cool shade)+ 'white_sun': '#fdf7ea', 'white': '#efebe4', 'white_half': '#d9dde4', 'white_shade': '#b4c2d6',+ 'white_deep': '#8f9fba',+ # wood, stone, moss+ 'wood_sun': '#f0cfa2', 'wood': '#ddb07e', 'wood_shade': '#a68a7c', 'wood_deep': '#7a6670',+ 'stone_sun': '#fbf3e6', 'stone': '#f0dcc2', 'stone_half': '#e8c3a0', 'stone_shade': '#a9b1c8',+ 'stone_deep': '#7f87a8',+ 'warm_edge': '#ec9f6c', 'moss_sun': '#b6d050', 'moss': '#6fa040', 'moss_shade': '#3f7346',+ # water+ 'water_deep': '#1a5a58', 'water': '#3a8a80', 'water_shallow': '#9cc2a6', 'pebble': '#a9a676',+ # accents+ 'blue_cloth': '#2e5aa8', 'orange_cloth': '#e2733a', 'terracotta': '#cf7a52', 'book_red': '#c8553d',+ 'book_teal': '#3e8a8a', 'book_mustard': '#d9a93a', 'paper': '#f4f1ea',+}+++# Leaf palettes, deep shade -> sunlit (+ an optional glint): canopy / spray / grass take a name or a list.+LEAVES = {+ 'summer': ['leaf_deep', 'leaf_shade', 'leaf_mid', 'leaf_light', 'leaf_sun', 'leaf_glint'],+ 'gold': ['#1f4a48', '#30674e', '#5f9148', '#a7bb4a', '#e2cf6a', '#f6eaa0'], # late-afternoon sun+ 'moss': ['moss_shade', 'moss', 'moss_sun', '#d8e88a'],+}+++def _leaves(tones, n=None):+ t = LEAVES[tones] if isinstance(tones, str) else (tones or LEAVES['summer'])+ return list(t[:n]) if n else list(t)+++def hexc(c):+ """'#rrggbb', a PAINTS name or an RGB triple -> float32 sRGB 0..1"""+ if not isinstance(c, str): return np.asarray(c, np.float32)+ h = PAINTS.get(c, c).lstrip('#')[:6]+ return np.array([int(h[i:i + 2], 16) for i in (0, 2, 4)], np.float32) / 255+++def mix(a, b, t):+ return hexc(a) * (1 - t) + hexc(b) * t+++def _hblur(a, sigma):+ """blur along x only (three box passes)"""+ if sigma <= 0: return a+ w = int(np.sqrt(12 * sigma * sigma / 3 + 1)); w += (w % 2 == 0); rr = w // 2+ out = a.astype(np.float32)+ for _ in range(3):+ c = np.cumsum(np.pad(out, [(0, 0), (rr + 1, rr)], mode='edge'), axis=1, dtype=np.float64)+ out = ((c[:, w:] - c[:, :-w]) / w).astype(np.float32)+ return out+++def _rot(pts, ang):+ c, s = np.cos(ang), np.sin(ang)+ return np.stack([pts[..., 0] * c - pts[..., 1] * s, pts[..., 0] * s + pts[..., 1] * c], -1)+++def _wobble(pts, amp, r, step=None):+ """subdivide a closed polygon and jitter it a little (a painted, not ruled, edge)"""+ P = np.asarray(pts, np.float32)+ if amp <= 0: return P+ out = []+ n = len(P)+ for i in range(n):+ a, b = P[i], P[(i + 1) % n]+ L = float(np.hypot(*(b - a)))+ k = max(1, int(L / (step or max(amp * 6, 4))))+ t = np.arange(k, dtype=np.float32)[:, None] / k+ out.append(a + (b - a) * t)+ Q = np.concatenate(out)+ d = np.roll(Q, -1, 0) - np.roll(Q, 1, 0)+ nrm = np.stack([-d[:, 1], d[:, 0]], 1) / (np.linalg.norm(d, axis=1, keepdims=True) + 1e-6)+ w = np.convolve(np.concatenate([r.standard_normal(len(Q)), ]), np.ones(3) / 3, 'same')+ return Q + nrm * (w * amp)[:, None]+++class SunlitGreen:+ PAINTS = PAINTS++ def __init__(self, W=1152, H=2048, seed=0, keep_stages=True, stages_dir=None, light=(-0.55, -0.7, 0.45)):+ if W * H > 4096 * 4096: raise ValueError('picture larger than 4096 x 4096')+ self.W, self.H, self.seed = W, H, seed+ self.k = min(W, H) / 1000+ self.rng = np.random.default_rng(seed)+ self.keep_stages, self.stages_dir = keep_stages, stages_dir+ self.stages, self._n_stages = [], 0+ self.C = np.empty((H, W, 3), np.float32)+ self.C[:] = hexc('paper')+ self.light = np.asarray(light, np.float32) / np.linalg.norm(light)+ self.fin = None+ self.sky_stops = None++ def _r(self, seed=None):+ return np.random.default_rng(int(self.rng.integers(1 << 30)) if seed is None else seed)++ # ================================================================== rasteriser+ def _paint(self, polys, cols, alpha=None, ss=2, target=None, clip=None, mask_only=False):+ """paint polygons in order (later covers earlier). polys: list of (n, 2) arrays in picture px; cols: (N, 3).+ Every polygon's index goes into a supersampled id map (Pillow), the ids look up colour and alpha, and the+ map is box-averaged back to 1x, so edges are crisp but anti-aliased. Returns the coverage over its box."""+ polys = [p for p in polys if len(p) >= 3]+ if not polys: return None+ H, W = self.H, self.W+ allp = np.concatenate(polys)+ x0 = max(int(np.floor(allp[:, 0].min())) - 1, 0); x1 = min(int(np.ceil(allp[:, 0].max())) + 2, W)+ y0 = max(int(np.floor(allp[:, 1].min())) - 1, 0); y1 = min(int(np.ceil(allp[:, 1].max())) + 2, H)+ if x1 <= x0 or y1 <= y0: return None+ w, h = x1 - x0, y1 - y0+ im = Image.new('I', (w * ss, h * ss), 0)+ d = ImageDraw.Draw(im)+ off = np.array([x0, y0], np.float32)+ for i, p in enumerate(polys):+ d.polygon(((p - off) * ss).ravel().tolist(), fill=i + 1)+ ids = np.asarray(im, np.int32)+ N = len(polys)+ if mask_only:+ cov = (ids > 0).astype(np.float32).reshape(h, ss, w, ss).mean((1, 3))+ M = np.zeros((H, W), np.float32); M[y0:y1, x0:x1] = cov+ return M+ tab = np.zeros((N + 1, 4), np.float32)+ tab[1:, :3] = np.asarray(cols, np.float32).reshape(-1, 3)[:N] if len(np.asarray(cols).shape) > 1 \+ else np.asarray(cols, np.float32)[None]+ tab[1:, 3] = 1.0 if alpha is None else np.broadcast_to(np.asarray(alpha, np.float32), (N,))+ tab[:, :3] *= tab[:, 3:4]+ px = tab[ids].reshape(h, ss, w, ss, 4).mean((1, 3))+ A = px[..., 3]+ if clip is not None:+ c = clip[y0:y1, x0:x1]+ A = A * c; px[..., :3] *= c[..., None]+ T = self.C if target is None else target+ T[y0:y1, x0:x1] = T[y0:y1, x0:x1] * (1 - A[..., None]) + px[..., :3]+ return (y0, y1, x0, x1, A)++ def mask(self, polys, ss=2):+ """coverage mask (H, W) of a list of polygons"""+ M = self._paint([np.asarray(p, np.float32) for p in polys], None, ss=ss, mask_only=True)+ return np.zeros((self.H, self.W), np.float32) if M is None else M++ def fill(self, mask, colour, alpha=1.0):+ m = (mask * alpha)[..., None]+ self.C = self.C * (1 - m) + hexc(colour)[None, None] * m++ def poly(self, pts, colour, alpha=1.0, wobble=0.0, seed=None):+ P = np.asarray(pts, np.float32)+ if wobble: P = _wobble(P, wobble * self.k, self._r(seed))+ self._paint([P], hexc(colour)[None], alpha=alpha)++ # ================================================================== shapes+ def _shapes(self, xs, ys, L, Wd, ang, shape, r, jit=0.12):+ """N leaf / chip polygons centred at (xs, ys), length L, width Wd, angle ang (radians, 0 = right)"""+ N = len(xs)+ if N == 0: return np.zeros((0, 3, 2), np.float32)+ L = np.broadcast_to(np.asarray(L, np.float32), (N,)); Wd = np.broadcast_to(np.asarray(Wd, np.float32), (N,))+ if shape == 'leaf': # pointed tip, rounded base; x along the leaf, centred on its middle+ t = np.linspace(0, 1, 7, dtype=np.float32)+ hw = np.sin(np.pi * t ** 0.72) * (1 - 0.12 * t) * 0.5+ tpl = np.concatenate([np.stack([t, hw], 1), np.stack([t[::-1], -hw[::-1]], 1)[1:-1]]) - [0.5, 0]+ P = np.repeat(tpl[None], N, 0)+ elif shape == 'blade':+ t = np.linspace(0, 1, 5, dtype=np.float32)+ hw = (1 - t) ** 0.9 * 0.5+ tpl = np.concatenate([np.stack([t, hw], 1), np.stack([t[::-1], -hw[::-1]], 1)[1:]])+ P = np.repeat(tpl[None], N, 0)+ else: # 'chip' irregular 5-7 gon / 'round'+ K = 7 if shape == 'chip' else 9+ a = np.sort(r.random((N, K)).astype(np.float32), 1) * 2 * np.pi if shape == 'chip' else \+ np.repeat(np.linspace(0, 2 * np.pi, K, endpoint=False, dtype=np.float32)[None], N, 0)+ if shape == 'chip': a = a + np.linspace(0, 2 * np.pi, K, endpoint=False)[None] * 0.6 - a * 0.6+ rad = (0.62 + 0.38 * r.random((N, K))).astype(np.float32) if shape == 'chip' else \+ (0.86 + 0.14 * r.random((N, K))).astype(np.float32) * (1 + 0.12 * np.cos(np.linspace(0, 2 * np.pi, K, endpoint=False)))[None]+ P = np.stack([np.cos(a) * rad * 0.5, np.sin(a) * rad * 0.5], -1)+ P = P * np.stack([L, Wd], 1)[:, None, :]+ if jit: P = P + r.standard_normal(P.shape).astype(np.float32) * jit * Wd[:, None, None] * 0.5+ P = _rot(P, np.asarray(ang, np.float32)[:, None] if np.ndim(ang) else ang)+ return P + np.stack([xs, ys], 1)[:, None, :].astype(np.float32)++ def _clusters(self, cx, cy, n, L, W, ang, spread, shape, r, out=0.55):+ """leaf clusters: n leaves around every centre, radiating near `ang` (+- spread)"""+ m = len(cx)+ if m == 0: return np.zeros((0, 3, 2), np.float32)+ k = r.integers(n[0], n[1] + 1, m)+ idx = np.repeat(np.arange(m), k)+ a = np.asarray(ang, np.float32)[idx] + (r.random(len(idx)) - 0.5) * 2 * spread+ s = (0.75 + 0.5 * r.random(len(idx))).astype(np.float32)+ ln = L * s+ d = ln * (out * (0.5 + 0.7 * r.random(len(idx))))+ xs = cx[idx] + np.cos(a) * d+ ys = cy[idx] + np.sin(a) * d+ if shape == 'mix':+ pick = r.random(len(idx)) < 0.65+ A = self._shapes(xs[pick], ys[pick], ln[pick], ln[pick] * W, a[pick], 'leaf', r)+ B = self._shapes(xs[~pick], ys[~pick], ln[~pick] * 0.78, ln[~pick] * W * 1.25, a[~pick], 'round', r)+ order = np.concatenate([np.nonzero(pick)[0], np.nonzero(~pick)[0]])+ allp = [None] * len(idx)+ for j, p in zip(order, list(A) + list(B)): allp[j] = p+ return allp+ return list(self._shapes(xs, ys, ln, ln * W, a, shape, r))++ # ================================================================== sky+ def sky(self, top='sky_top', mid='sky', bottom='sky_low', y0=0, y1=None, mid_at=0.45):+ """clean saturated summer sky: a smooth vertical gradient (top -> mid -> bottom over y0..y1)"""+ H, W = self.H, self.W+ y1 = H if y1 is None else y1+ stops = [(y0, hexc(top)), (y0 + (y1 - y0) * mid_at, hexc(mid)), (y1, hexc(bottom))]+ self.sky_stops = stops+ ys = np.arange(H, dtype=np.float32)+ col = np.stack([np.interp(ys, [s[0] for s in stops], [s[1][c] for s in stops]) for c in range(3)], 1)+ self.C[:] = col[:, None, :]++ def sky_at(self, y):+ if self.sky_stops is None: return np.repeat(hexc('sky_hole')[None], np.size(y), 0)+ st = self.sky_stops+ y = np.atleast_1d(y).astype(np.float32)+ return np.stack([np.interp(y, [s[0] for s in st], [s[1][c] for s in st]) for c in range(3)], 1)++ def cloud(self, cx, base, w, h, seed=None, light=None, tones=('cloud', 'cloud_half', 'cloud_shade'),+ n=30, levels=(0.6, 0.44), rough=0.25, merge=0.05):+ """a small summer cumulus: puffs on a dome with a flat base; their height field is merged (blurred) so the+ puffs melt into one mass, lit by the sun and cut into three flat tones (sunlit white, a pale blue half+ tone, a cool shade underneath) along noise-warped boundaries, with a crisp, slightly broken edge"""+ r = self._r(seed)+ lt = self.light if light is None else np.asarray(light, np.float32) / np.linalg.norm(light)+ u = (r.random(n) * 2 - 1) * 0.92+ xs = cx + u * w / 2+ top = h * np.clip(1 - u * u, 0, 1) ** 0.6+ t = r.random(n)+ rad = h * (0.16 + 0.2 * r.random(n)) * (0.55 + 0.45 * np.clip(1 - np.abs(u), 0, 1))+ ys = base - rad * 0.6 - (top - rad * 0.9).clip(0) * t+ pad = 6+ x0, x1 = int(max(0, (xs - rad).min() - pad)), int(min(self.W, (xs + rad).max() + pad))+ y0, y1 = int(max(0, (ys - rad).min() - pad)), int(min(self.H, base + 2))+ if x1 <= x0 or y1 <= y0: return+ gy, gx = np.mgrid[y0:y1, x0:x1].astype(np.float32)+ hh, ww = gy.shape+ en = noise2d(hh, ww, max(5, h * 0.06), 3, int(r.integers(1 << 30))) - 0.5+ hgt = np.zeros(gx.shape, np.float32)+ for X, Y, R in zip(xs, ys, rad):+ q = 1 - ((gx - X) / R) ** 2 - ((gy - Y) / R) ** 2 + en * rough+ hgt = np.maximum(hgt, np.sqrt(np.clip(q, 0, 1)) * R)+ cov = (hgt > 0).astype(np.float32) * (gy < base - 1)+ cov = np.maximum(cov, (blur(cov, h * 0.07) > 0.62).astype(np.float32) * (gy < base - 1)) # no pinholes+ cov = smoothstep(0.3, 0.7, blur(cov, 0.6))+ hs = blur(hgt, h * merge)+ gyy, gxx = np.gradient(hs)+ nzv = np.ones_like(hs) * 0.6+ nn = np.sqrt(gxx ** 2 + gyy ** 2 + nzv ** 2)+ lc = np.array([lt[0], lt[1] - 0.25, lt[2] * 0.5]); lc /= np.linalg.norm(lc)+ v = (-gxx * lc[0] - gyy * lc[1] + nzv * lc[2]) / nn+ v = 0.5 + 0.5 * v + (noise2d(hh, ww, max(6, h * 0.1), 3, int(r.integers(1 << 30))) - 0.5) * 0.28+ v -= smoothstep(base - h * 0.7, base, gy) * 0.32+ T = [hexc(c) for c in tones]+ col = np.where((v > levels[0])[..., None], T[0], np.where((v > levels[1])[..., None], T[1], T[2]))+ reg = self.C[y0:y1, x0:x1]+ self.C[y0:y1, x0:x1] = reg * (1 - cov[..., None]) + col * cov[..., None]++ # ================================================================== foliage+ def _subclumps(self, K, sub, r):+ """sub-clumps packed inside the big clumps: (x, y, radius, z of the big dome there)"""+ out = []+ for cx, cy, rx, ry, _ in K:+ n = int(np.pi * rx * ry / (sub * sub) * 1.6) + 3+ a = r.random(n) * 2 * np.pi+ d = np.sqrt(r.random(n)) * 0.92+ xs, ys = cx + np.cos(a) * d * rx, cy + np.sin(a) * d * ry+ rad = sub * (0.7 + 0.6 * r.random(n))+ rad = np.minimum(rad, np.minimum(rx, ry) * 0.6)+ z = np.sqrt(np.clip(1 - d * d, 0, 1)) * min(rx, ry)+ out.append(np.stack([xs, ys, rad, z], 1))+ return np.concatenate(out).astype(np.float32)++ def _field(self, K, S, box, lt, noise, bottom_dark, blend, r, edge):+ """per-pixel coverage, light value and outward direction of a foliage mass inside box"""+ x0, y0, x1, y1 = box+ gy, gx = np.mgrid[y0:y1, x0:x1].astype(np.float32)+ h, w = gy.shape+ hgt = np.full((h, w), -1e9, np.float32)+ nx = np.zeros((h, w), np.float32); ny = np.zeros((h, w), np.float32)+ bnx = np.zeros((h, w), np.float32); bny = np.zeros((h, w), np.float32)+ bsh = np.zeros((h, w), np.float32)+ en = noise2d(h, w, max(6.0, edge * 2), 2, int(r.integers(1 << 30))) - 0.5+ for (sx, sy, sr, sz) in S:+ i0, i1 = int(max(sy - sr - y0, 0)), int(min(sy + sr - y0 + 1, h))+ j0, j1 = int(max(sx - sr - x0, 0)), int(min(sx + sr - x0 + 1, w))+ if i1 <= i0 or j1 <= j0: continue+ dx = (gx[i0:i1, j0:j1] - sx) / sr; dy = (gy[i0:i1, j0:j1] - sy) / sr+ q = 1 - dx * dx - dy * dy + en[i0:i1, j0:j1] * 0.5+ hz = np.sqrt(np.clip(q, 0, 1)) * sr + sz+ better = (q > 0) & (hz > hgt[i0:i1, j0:j1])+ hgt[i0:i1, j0:j1] = np.where(better, hz, hgt[i0:i1, j0:j1])+ nx[i0:i1, j0:j1] = np.where(better, dx, nx[i0:i1, j0:j1])+ ny[i0:i1, j0:j1] = np.where(better, dy, ny[i0:i1, j0:j1])+ cov = hgt > -1e8+ for cx, cy, rx, ry, shade in K:+ u, v = (gx - cx) / rx, (gy - cy) / ry+ ins = (u * u + v * v < 1.0) & cov+ bnx = np.where(ins, u, bnx); bny = np.where(ins, v, bny); bsh = np.where(ins, shade, bsh)+ nz = np.sqrt(np.clip(1 - nx * nx - ny * ny, 0, 1))+ bz = np.sqrt(np.clip(1 - bnx * bnx - bny * bny, 0, 1))+ Nx, Ny, Nz = nx * blend + bnx * (1 - blend), ny * blend + bny * (1 - blend), nz * blend + bz * (1 - blend) + 0.1+ nn = np.sqrt(Nx * Nx + Ny * Ny + Nz * Nz) + 1e-6+ val = (Nx * lt[0] + Ny * lt[1] + Nz * lt[2]) / nn+ hg = np.where(cov, hgt, 0)+ ao = blur(hg, 6 * self.k) - hg+ top, bot = y0, y1+ val = 0.5 + 0.5 * val+ val += (noise2d(h, w, 40 * self.k, 3, int(r.integers(1 << 30))) - 0.5) * noise+ val -= bottom_dark * (gy - top) / (bot - top + 1) + bsh + np.clip(ao, 0, None) * 0.004 / self.k+ return cov.astype(np.float32), val++ def _tube(self, path, w0, w1=None, per=8):+ """a tapered stroke polygon along a smooth path"""+ P = np.asarray(path, np.float32)+ if len(P) > 2: P = spline(P, per)+ w1 = w0 * 0.4 if w1 is None else w1+ d = np.gradient(P, axis=0)+ nrm = np.stack([-d[:, 1], d[:, 0]], 1) / (np.linalg.norm(d, axis=1, keepdims=True) + 1e-6)+ wd = np.linspace(w0, w1, len(P))[:, None] / 2+ return np.concatenate([P + nrm * wd, (P - nrm * wd)[::-1]]), P, nrm, wd++ def limb(self, path, w0, w1=None, colour='bark', lit='bark_light', lit_w=0.35, alpha=1.0, bark=0.0, seed=None):+ """a trunk or branch: a tapered flat shape with a lit stripe on the sun side; `bark` (0..1) adds short+ darker and lighter marks along the grain"""+ r = self._r(seed)+ poly, P, nrm, wd = self._tube(path, w0, w1)+ self._paint([poly], hexc(colour)[None], alpha=alpha)+ side = 1.0 if (nrm.mean(0) @ self.light[:2]) > 0 else -1.0+ if lit:+ q = _wobble(np.concatenate([P + nrm * wd * side, (P + nrm * wd * side * (1 - 2 * lit_w))[::-1]]),+ 0.8 * self.k, r)+ self._paint([q], hexc(lit)[None], alpha=alpha)+ if bark:+ M = self.mask([poly])+ n = int(len(P) * bark * 6)+ i = r.integers(0, len(P), n)+ u = (r.random(n) * 2 - 1) * 0.85+ d = np.gradient(P, axis=0)[i]+ ang = np.arctan2(d[:, 1], d[:, 0])+ xs, ys = P[i, 0] + nrm[i, 0] * wd[i, 0] * u, P[i, 1] + nrm[i, 1] * wd[i, 0] * u+ ln = wd[i, 0] * (0.8 + 1.6 * r.random(n))+ S = self._shapes(xs, ys, ln, np.maximum(1.6 * self.k, ln * 0.06), ang, 'leaf', r, jit=0.02)+ dark = (u * side < 0.2)+ cols = np.where(dark[:, None], hexc(colour) * 0.84, np.clip(hexc(lit or colour) * 1.04, 0, 1))+ self._paint(list(S), cols, alpha=0.7, clip=M)++ def _twigs(self, K, n, L, col, r, clip=None):+ polys = []+ for _ in range(n):+ i = int(r.integers(len(K)))+ cx, cy, rx, ry = K[i, :4]+ a = r.random() * 2 * np.pi+ p0 = np.array([cx + np.cos(a) * rx * 0.2, cy + np.sin(a) * ry * 0.2])+ b = a + (r.random() - 0.5) * 0.8+ p1 = p0 + np.array([np.cos(b) * rx * 0.55, np.sin(b) * ry * 0.55])+ p2 = p1 + np.array([np.cos(b + 0.4) * rx * 0.35, np.sin(b + 0.4) * ry * 0.35])+ polys.append(self._tube([p0, p1, p2], L * 0.22, L * 0.08)[0])+ if polys:+ self._paint(polys, np.repeat(np.asarray(col)[None], len(polys), 0), clip=clip)++ def canopy(self, clumps, tones=None, leaf=12.0, light=None, holes=0.3, far=0.0, sub=3.5,+ levels=(0.0, 0.38, 0.52, 0.64, 0.78), noise=0.22, bottom_dark=0.22, blend=0.55, haze=None,+ edge_leaves=1.0, sprinkle=0.15, width=0.55, shape='mix', hole_size=1.0, fill=1.0, glint=0.0,+ mottle=0.15, twigs=0, twig_colour='bark', hole_colour=None, airy=0.0, seed=None):+ """a foliage mass painted the way a background painter does it. The clumps (cx, cy, rx, ry[, shade])+ are big domes packed with smaller sub-clumps (radius ~ `sub` leaves), each a little dome of its own that+ catches the sun on its lit side. That light value is cut into a few flat greens (`tones`, deep ->+ sunlit, at `levels`); every tone, from the darkest up, is painted as one flat shape -- shrunk a little+ -- and its whole edge is stamped with leaf clusters that point outward, so each lighter area lies over+ the darker ones with a crisp, leafy edge, and the silhouette against the sky is all leaves. Then small+ sky holes (the sky colour at that height, paled) with a few leaves over their edges."""+ r = self._r(seed)+ K = np.asarray(clumps, np.float32)+ if K.shape[1] == 4: K = np.concatenate([K, np.zeros((len(K), 1), np.float32)], 1)+ lt = self.light if light is None else np.asarray(light, np.float32) / np.linalg.norm(light)+ tones = _leaves(tones, 5) if (tones is None or isinstance(tones, str)) else list(tones)+ hz = hexc(haze or 'haze')+ T = [hexc(t) * (1 - far) + hz * far for t in tones]+ L = leaf * self.k+ S = self._subclumps(K, sub * L, r)+ pad = int(L * 1.5) + 2+ x0 = int(max(0, (S[:, 0] - S[:, 2]).min() - pad)); x1 = int(min(self.W, (S[:, 0] + S[:, 2]).max() + pad))+ y0 = int(max(0, (S[:, 1] - S[:, 2]).min() - pad)); y1 = int(min(self.H, (S[:, 1] + S[:, 2]).max() + pad))+ if x1 <= x0 or y1 <= y0: return+ cov, val = self._field(K, S, (x0, y0, x1, y1), lt, noise, bottom_dark, blend, r, L)+ h, w = cov.shape+ if airy: # thin the outer zone of the mass into separate sprays with sky between them+ e = blur(cov, L * 3.0 * (0.5 + airy * 0.5))+ N = noise2d(h, w, L * 4.0, 2, int(r.integers(1 << 30)))+ keep = (N + (e - 0.6) * (2.0 / airy)) > 0.45+ cov = cov * keep+ tone = np.digitize(val, levels[1:len(T)]) * (cov > 0)+ reg = self.C[y0:y1, x0:x1]+ for k in range(len(T)):+ R = ((tone >= k) & (cov > 0)).astype(np.float32)+ if R.sum() < 4: continue+ fk = max(fill, 0.7) if k == 0 else fill # the darkest tone is always a solid base+ er = L * (0.45 if fk >= 0.99 else 0.45 + (1 - fk) * 0.8)+ b = blur(R, er)+ tw = min(0.08, 1.5 / (er * 2.5))+ if fk > 0:+ solid = blur((b > (0.76 if fk >= 0.99 else 0.9)).astype(np.float32), 0.55) * R+ reg[:] = reg * (1 - solid[..., None]) + T[k][None, None] * solid[..., None]+ band = (b > 0.2) & (b < (0.8 if fk >= 0.99 else 0.94)) & (R > 0)+ ys_, xs_ = np.nonzero(band)+ n = int(len(ys_) / (L * L * 0.22) * edge_leaves)+ inner = (b >= (0.8 if fk >= 0.99 else 0.94)) & (R > 0)+ yi, xi = np.nonzero(inner)+ ni = int(len(yi) / (L * L * 0.3) * (1 - fk) * edge_leaves)+ if n + ni <= 0: continue+ pick = r.integers(0, max(len(ys_), 1), n) if len(ys_) else np.zeros(0, int)+ pi_ = r.integers(0, len(yi), ni) if ni > 0 and len(yi) else np.zeros(0, int)+ Y = np.concatenate([ys_[pick], yi[pi_]]) if len(ys_) else yi[pi_]+ X = np.concatenate([xs_[pick], xi[pi_]]) if len(ys_) else xi[pi_]+ n = len(Y)+ if n == 0: continue+ ys, xs = Y.astype(np.float32), X.astype(np.float32)+ gb = np.gradient(b)+ gx = gb[1][Y, X]; gy = gb[0][Y, X]+ ang = np.arctan2(-gy, -gx)+ flat = np.hypot(gx, gy) < 1e-3 # inside: no outward direction, droop down with the light+ ang = np.where(flat, np.pi / 2 + (r.random(n) - 0.5) * 3.0, ang + (r.random(n) - 0.5) * 1.6)+ xs += x0 + np.cos(ang) * L * 0.15 + (r.random(n) - 0.5) * L * 0.3+ ys += y0 + np.sin(ang) * L * 0.15 + (r.random(n) - 0.5) * L * 0.3+ polys = self._clusters(xs, ys, (1, 3), L, width, ang, 0.55, shape, r, out=0.45)+ m = len(polys)+ kk = np.full(m, k)+ if mottle: # interleave: some leaves one tone darker or lighter than their area+ q = r.random(m)+ kk = np.where(q < mottle * 0.6, k - 1, np.where(q > 1 - mottle * 0.4, k + 1, k))+ kk = np.clip(kk, 0, len(T) - 1)+ cj = np.stack(T)[kk] * (1 + (r.random((m, 1)) - 0.5) * 0.035)+ self._paint(polys, cj)+ reg = self.C[y0:y1, x0:x1]+ if sprinkle and k > 0: # a few loose leaves of this tone inside the next darker one+ inner = (tone == k - 1) & (cov > 0) & (b > 0.05) & (b < 0.5)+ ys_, xs_ = np.nonzero(inner)+ m = int(len(ys_) / (L * L) * sprinkle)+ if m > 0 and len(ys_):+ pick = r.integers(0, len(ys_), m)+ a = r.random(m) * 2 * np.pi+ P = self._shapes(xs_[pick] + x0 + 0.0, ys_[pick] + y0 + 0.0, L * (0.6 + 0.4 * r.random(m)),+ L * width * 0.9, a, 'leaf', r)+ self._paint(list(P), np.repeat(T[k][None], m, 0))+ reg = self.C[y0:y1, x0:x1]+ hole_m = np.zeros((h, w), np.float32)+ if holes > 0:+ hn = noise2d(h, w, 7 * L, 2, int(r.integers(1 << 30)))+ ce = blur(cov, L * 1.2)+ edge = (ce > 0.45) & (ce < 0.93)+ okm = (cov > 0) & (tone >= 1) & ((hn > 0.55) | (edge & (hn > 0.35))) & (ce > 0.45)+ ys_, xs_ = np.nonzero(okm)+ n = int(len(ys_) / (L * L * 2.5) * holes)+ if n > 0:+ pick = r.integers(0, len(ys_), n)+ ys, xs = ys_[pick] + y0 + 0.0, xs_[pick] + x0 + 0.0+ if hole_colour is None:+ cs = self.sky_at(ys) * (1 - far * 0.5) + hz * far * 0.5+ cs = np.clip(cs * 0.55 + 0.45 * hexc('sky_hole'), 0, 1)+ else:+ cs = np.repeat(hexc(hole_colour)[None], n, 0)+ sz = L * hole_size * (0.6 + 1.0 * r.random(n) ** 2)+ P = list(self._shapes(xs, ys, sz, sz * 0.8, r.random(n) * np.pi, 'chip', r))+ hm = self.mask(P)+ hole_m = hm[y0:y1, x0:x1]+ self._paint(P, cs)+ if twigs:+ self._twigs(K, twigs, L, hexc(twig_colour) * (1 - far) + hz * far, r, clip=hm)+ tk = np.repeat(tone[ys_[pick], xs_[pick]], 3)+ a = r.random(n * 3) * 2 * np.pi+ rr = np.repeat(sz, 3) * (0.45 + 0.2 * r.random(n * 3))+ P = self._shapes(np.repeat(xs, 3) + np.cos(a) * rr, np.repeat(ys, 3) + np.sin(a) * rr,+ L * (0.7 + 0.4 * r.random(n * 3)), L * width * 0.9, a + np.pi + (r.random(n * 3) - 0.5),+ 'leaf', r)+ kk = np.clip(tk + (r.random(n * 3) < mottle) * np.where(r.random(n * 3) < 0.5, -1, 1), 0, len(T) - 1)+ self._paint(list(P), np.stack(T)[kk])+ if glint > 0: # small sun glints on the brightest leaves+ okm = (tone >= len(T) - 1) & (cov > 0)+ ys_, xs_ = np.nonzero(okm)+ n = int(len(ys_) / (L * L * 3) * glint)+ if n > 0:+ pick = r.integers(0, len(ys_), n)+ a = r.random(n) * 2 * np.pi+ sz = L * (0.35 + 0.35 * r.random(n))+ P = self._shapes(xs_[pick] + x0 + 0.0, ys_[pick] + y0 + 0.0, sz, sz * 0.6, a, 'leaf', r)+ self._paint(list(P), np.repeat(hexc('leaf_glint')[None], n, 0))++ # ================================================================== near foliage, grass+ def _leaf_halves(self, x, y, L, Wd, ang, bend, r):+ """the two halves of a pointed leaf (base at (x, y)), split along its midrib, plus the midrib itself"""+ K = 13+ t = np.linspace(0, 1, K, dtype=np.float32)+ hw = np.clip(np.sin(np.pi * t ** 0.68), 0, 1) ** 0.9 * (1 - 0.08 * t) * 0.5 * Wd+ cx = t * L+ cy = bend * L * (t - 0.5) ** 2 * 4 - bend * L+ wob = 1 + 0.035 * r.standard_normal(K)+ up = np.stack([cx, cy - hw * wob], 1)+ mid = np.stack([cx, cy + hw * 0.08 * np.sin(t * np.pi)], 1)+ lo = np.stack([cx, cy + hw * wob[::-1]], 1)+ A = np.concatenate([up, mid[::-1][1:-1]])+ B = np.concatenate([lo, mid[::-1][1:-1]])+ ribw = max(0.5, Wd * 0.028)+ R_ = np.concatenate([mid[:K - 2] + [0, -ribw], (mid[:K - 2] + [0, ribw])[::-1]])+ c, s_ = np.cos(ang), np.sin(ang)+ rot = lambda P: np.stack([P[:, 0] * c - P[:, 1] * s_ + x, P[:, 0] * s_ + P[:, 1] * c + y], 1)+ return rot(A), rot(B), rot(R_), rot(np.concatenate([up, lo[::-1][1:-1]]))++ def spray(self, stems, leaf=40.0, width=0.4, tones=None, rosette=(5, 8), along=0.6, droop=0.35, bend=0.08,+ light=None, rim='warm_edge', rim_w=0.9, midrib=True, stem='bark', stem_w=3.0, far=0.0, seed=None,+ lit_bias=0.0):+ """near foliage: twigs (lists of points, base first) with big single leaves along them and a rosette at the+ tip. Every leaf is two flat halves split at the midrib -- the half turned to the sun one tone lighter --+ sunlit leaves get a pale midrib and a thin warm edge, shaded ones a dark one; leaves are laid from the+ shaded ones (behind) to the sunlit ones (in front)."""+ r = self._r(seed)+ lt = self.light if light is None else np.asarray(light, np.float32) / np.linalg.norm(light)+ tones = _leaves(tones)+ if len(tones) < 6: tones = tones + ['leaf_glint']+ hz = hexc('haze')+ T = np.stack([hexc(t) * (1 - far) + hz * far for t in tones])+ L0 = leaf * self.k+ items = []+ stems_poly = []+ for st in stems:+ P = np.asarray(st, np.float32)+ P = spline(P, 10) if len(P) > 2 else P+ seg = np.hypot(*np.diff(P, axis=0).T); cum = np.concatenate([[0], np.cumsum(seg)])+ stems_poly.append(self._tube(P, stem_w * self.k * 1.6, stem_w * self.k * 0.6)[0])+ tot = cum[-1]+ nodes = np.arange(L0 * 0.5, tot - L0 * 0.3, L0 * along) if along else np.zeros(0)+ side = 1+ for d in nodes:+ i = min(np.searchsorted(cum, d), len(P) - 1)+ tg = P[min(i + 1, len(P) - 1)] - P[max(i - 1, 0)]+ ta = np.arctan2(tg[1], tg[0])+ a = ta + side * (0.55 + 0.5 * r.random()); side = -side+ a = a * (1 - droop) + np.pi / 2 * droop if abs(((a - np.pi / 2 + np.pi) % (2 * np.pi)) - np.pi) < 2.6 else a+ items.append((P[i, 0], P[i, 1], L0 * (0.55 + 0.35 * d / tot) * (0.85 + 0.3 * r.random())+ * (0.55 + 0.45 * r.random() ** 0.5), a))+ if rosette:+ m = int(r.integers(rosette[0], rosette[1] + 1))+ tg = P[-1] - P[-2]; ta = np.arctan2(tg[1], tg[0])+ for j in range(m):+ a = ta + (j / max(m - 1, 1) - 0.5) * 2 * (1.2 + 0.5 * r.random()) + (r.random() - 0.5) * 0.3+ a = a * (1 - droop * 0.5) + np.pi / 2 * droop * 0.5+ items.append((P[-1, 0], P[-1, 1], L0 * (0.85 + 0.35 * r.random()) * (0.5 + 0.5 * r.random() ** 0.5), a))+ if stems_poly:+ self._paint(stems_poly, np.repeat((hexc(stem) * (1 - far) + hz * far)[None], len(stems_poly), 0))+ if not items: return+ it = np.array(items, np.float32)+ # each leaf's tilt: its normal leans up and along its direction; lit if that faces the sun+ tilt = r.random(len(it)) * 2 - 1+ nx, ny = np.cos(it[:, 3]) * 0.5 + tilt * 0.3, np.sin(it[:, 3]) * 0.3 - 0.6+ nzz = 0.6 + 0.3 * r.random(len(it))+ v = (nx * lt[0] + ny * lt[1] + nzz * lt[2]) / np.sqrt(nx * nx + ny * ny + nzz * nzz)+ v = 0.5 + 0.5 * v + (r.random(len(it)) - 0.5) * 0.5 + lit_bias+ k = np.clip(np.digitize(v, np.quantile(v, [0.18, 0.4, 0.62, 0.84]) if len(v) > 8 else [0.4, 0.52, 0.64, 0.76]), 0, 4)+ order = np.argsort(v + r.random(len(it)) * 0.25)+ polys, cols = [], []+ for i in order:+ x, y, ln, a = it[i]+ A, B, Rb, full = self._leaf_halves(x, y, ln, ln * width, a, bend * (r.random() - 0.3), r)+ # which half faces the sun: the one whose side normal points toward the light in the picture plane+ side_n = np.array([-np.sin(a), np.cos(a)])+ litA = (side_n @ lt[:2]) < 0+ kk = int(k[i])+ hi, lo = min(kk + 1, len(T) - 1), kk+ if rim and kk >= 4:+ c = full.mean(0)+ polys.append(c + (full - c) * (1 + rim_w * self.k / max(ln * width * 0.5, 1)) + self.light[:2] * rim_w * self.k)+ cols.append((hexc(rim) * 0.6 + T[hi] * 0.4) * (1 - far) + hz * far)+ polys += [A, B]+ cols += [T[hi] if litA else T[lo], T[lo] if litA else T[hi]]+ if midrib:+ polys.append(Rb)+ cols.append(T[min(hi + 1, len(T) - 1)] if kk >= 2 else T[max(lo - 1, 0)])+ self._paint(polys, np.stack(cols))++ def grass(self, x0, x1, y, h, n=400, tones=None, lean=0.0, width=5.0, far=0.0, curve=0.25, seed=None, ys=None):+ """tufts of grass blades: narrow curved flat blades, darker ones first, sunlit ones on top"""+ r = self._r(seed)+ tones = _leaves(tones, 5) if (tones is None or isinstance(tones, str)) else list(tones)+ hz = hexc('haze')+ T = np.stack([hexc(t) * (1 - far) + hz * far for t in tones])+ cx = x0 + r.random(n) * (x1 - x0)+ by = (y + (r.random(n) - 0.3) * h * 0.6 * self.k) if ys is None else np.interp(cx, ys[0], ys[1])+ tuft = noise2d(2, max(int(x1 - x0) // 4, 2), 12, 2, int(r.integers(1 << 30)))[0]+ tv = tuft[np.clip(((cx - x0) / 4).astype(int), 0, len(tuft) - 1)]+ ln = h * self.k * (0.25 + 0.95 * r.random(n) * (0.35 + 0.9 * tv))+ a = -np.pi / 2 + lean + (r.random(n) - 0.5) * 1.3+ k = np.clip((r.random(n) * len(T) * (0.6 + 0.6 * ln / ln.max())).astype(int), 0, len(T) - 1)+ order = np.argsort(k + r.random(n) * 1.5)+ polys = []+ for i in order:+ t = np.linspace(0, 1, 6)+ bendv = curve * ln[i] * t ** 2 * np.sign(np.cos(a[i]) + 1e-3)+ px = cx[i] + np.cos(a[i]) * ln[i] * t + bendv+ py = by[i] + np.sin(a[i]) * ln[i] * t+ wd = width * self.k * (1 - t) ** 0.8 * (0.6 + 0.6 * r.random())+ P = np.stack([px, py], 1)+ polys.append(np.concatenate([P + np.stack([wd / 2, 0 * wd], 1), (P - np.stack([wd / 2, 0 * wd], 1))[::-1]]))+ self._paint(polys, T[k[order]])++ # ================================================================== light: dapples, shade, sun+ def leaf_shadow(self, box, cover=0.5, leaf=16.0, squash=1.0, scale=7.0, flecks=0.5, seed=None):+ """a dappled leaf-shadow mask (H, W) in box (x0, y0, x1, y1): big shadow masses from a low-frequency+ field, every edge of them leafy (stamped leaf chips), scattered loose leaf shadows in the sun and small+ sun flecks punched in the shade; `squash` flattens it for a floor seen in perspective"""+ r = self._r(seed)+ x0, y0, x1, y1 = [int(v) for v in box]+ x0, y0 = max(x0, 0), max(y0, 0); x1, y1 = min(x1, self.W), min(y1, self.H)+ w, h = x1 - x0, y1 - y0+ L = leaf * self.k+ hh = max(2, int(h / squash))+ D = noise2d(hh, w, scale * L, 3, int(r.integers(1 << 30)))+ D = np.asarray(Image.fromarray(D).resize((w, h), Image.BILINEAR), np.float32)+ t = np.quantile(D, 1 - cover)+ core = blur((D > t).astype(np.float32), 0.6)+ M = np.zeros((self.H, self.W), np.float32)+ M[y0:y1, x0:x1] = core+ gyD, gxD = np.gradient(D)+ polys = []++ def squash_(P, yc):+ P = np.asarray(P, np.float32)+ P[..., 1] = (P[..., 1] - yc) * squash + yc+ return P++ band = (D > t - 0.035) & (D < t + 0.05)+ ys_, xs_ = np.nonzero(band)+ n = int(len(ys_) / (L * L * squash * 0.9))+ if n > 0: # the edge of every shadow mass is a fringe of leaf clusters pointing out of it+ pick = r.integers(0, len(ys_), n)+ ang = np.arctan2(-gyD[ys_[pick], xs_[pick]], -gxD[ys_[pick], xs_[pick]]) + (r.random(n) - 0.5) * 1.2+ cx, cy = xs_[pick] + x0 + 0.0, ys_[pick] + y0 + 0.0+ P = self._clusters(cx, cy, (2, 4), L * 1.15, 0.42, ang, 0.7, 'leaf', r, out=0.55)+ polys += [squash_(p, p[:, 1].mean()) for p in P]+ loose = (D > t - 0.22) & (D < t - 0.08)+ ys_, xs_ = np.nonzero(loose)+ n = int(len(ys_) / (L * L * squash * 30))+ if n > 0: # loose sprays of leaf shadows out in the sun+ pick = r.integers(0, len(ys_), n)+ ang = r.random(n) * 2 * np.pi+ P = self._clusters(xs_[pick] + x0 + 0.0, ys_[pick] + y0 + 0.0, (2, 5), L * 1.0, 0.42, ang, 0.9, 'leaf', r,+ out=0.6)+ polys += [squash_(p, p[:, 1].mean()) for p in P]+ if polys:+ M = np.maximum(M, self.mask(polys))+ if flecks:+ inner = D > t + 0.07+ ys_, xs_ = np.nonzero(inner)+ n = int(len(ys_) / (L * L * squash * 6) * flecks)+ if n > 0:+ pick = r.integers(0, len(ys_), n)+ sz = L * (0.25 + 0.5 * r.random(n) ** 2)+ P = self._shapes(xs_[pick] + x0 + 0.0, ys_[pick] + y0 + 0.0, sz, sz * 0.7, r.random(n) * np.pi, 'round', r)+ P[..., 1] = (P[..., 1] - (ys_[pick] + y0)[:, None]) * squash + (ys_[pick] + y0)[:, None]+ M = M * (1 - self.mask(list(P)))+ return M++ def shade(self, mask, tint=(0.64, 0.72, 0.88), strength=1.0, add='#1a2a5a', add_k=0.04):+ """cool shadow over whatever is painted: multiply by a blue-grey tint (sun-bleached whites go blue-grey,+ warm stone violet-grey, lime grass teal)"""+ m = (np.clip(mask, 0, 1) * strength)[..., None]+ sh = self.C * np.asarray(tint, np.float32)[None, None] + hexc(add)[None, None] * add_k+ self.C = self.C * (1 - m) + sh * m++ def sunlight(self, mask, colour='#fff1cf', strength=0.55, tint=0.0):+ """warm sunlight over whatever is painted: a screen with a warm cream; `tint` (0..1) also multiplies the+ lit result by the colour, for the deeper amber of a late sun"""+ m = (np.clip(mask, 0, 1) * strength)[..., None]+ c = hexc(colour)[None, None]+ lit = 1 - (1 - self.C) * (1 - c * m)+ if tint: lit = lit * (1 - m * tint + c * m * tint)+ self.C = lit++ def dapple(self, region, cover=0.5, leaf=16.0, squash=1.0, scale=7.0, flecks=0.5, mode='shade', strength=1.0,+ tint=(0.64, 0.72, 0.88), colour='#fff1cf', seed=None):+ """dappled light on a painted region (a mask): mode 'shade' lays leaf shadows over a sunlit surface,+ mode 'sun' lays sun patches (leaf-edged, with flecks) over a shaded one. Returns the mask used."""+ ys, xs = np.nonzero(region > 0.01)+ if not len(ys): return None+ box = (xs.min(), ys.min(), xs.max() + 1, ys.max() + 1)+ M = self.leaf_shadow(box, cover, leaf, squash, scale, flecks, seed) * region+ if mode == 'shade': self.shade(M, tint, strength)+ else: self.sunlight(M, colour, strength)+ return M++ # ================================================================== painted solids+ def soft(self, pts, tones, light=None, bevel=18.0, levels=None, noise=0.1, wobble=0.8, warm=None, warm_w=0.025,+ facets=0, flat=0.0, dome=1.0, clean=0.0, seed=None, clip=None):+ """a solid painted in a few flat tones: the shape's mask is puffed into a height field (pillow-like at its+ edges, optionally cut by `facets` random planes for stone), lit by the sun and cut into the tones+ (dark -> light) along noise-warped boundaries; `warm` paints a thin warm band on the terminator (the+ bounce light at the edge of a sunlit white). Returns the shape's mask."""+ r = self._r(seed)+ lt = self.light if light is None else np.asarray(light, np.float32) / np.linalg.norm(light)+ P = np.asarray(pts, np.float32)+ if wobble: P = _wobble(P, wobble * self.k, r)+ M = self.mask([P])+ if clip is not None: M = M * clip+ ys, xs = np.nonzero(M > 0)+ if not len(ys): return M+ b = int(bevel * self.k * 2.5) + 3+ y0, y1 = max(ys.min() - b, 0), min(ys.max() + b + 1, self.H)+ x0, x1 = max(xs.min() - b, 0), min(xs.max() + b + 1, self.W)+ m = M[y0:y1, x0:x1]+ hgt = blur(m, bevel * self.k) * (1 - flat) + flat * m+ if dome != 1.0: hgt = np.clip(hgt, 0, 1) ** dome+ if facets:+ gy, gx = np.mgrid[y0:y1, x0:x1].astype(np.float32)+ cx, cy = xs.mean(), ys.mean()+ ext = max(xs.max() - xs.min(), ys.max() - ys.min())+ fh = np.full(m.shape, 9.0, np.float32)+ for _ in range(facets):+ a = r.random() * 2 * np.pi+ d = (r.random() * 0.4 + 0.25) * ext+ pl = 1.2 - ((gx - cx) * np.cos(a) + (gy - cy) * np.sin(a) - d * 0.3) / (ext * 0.6)+ fh = np.minimum(fh, pl)+ hgt = np.minimum(hgt * 1.2, np.clip(fh, 0, None) * 0.9 + hgt * 0.25)+ gyy, gxx = np.gradient(hgt)+ sc = bevel * self.k * 1.6+ nx, ny, nz = -gxx * sc, -gyy * sc, np.ones_like(hgt)+ nn = np.sqrt(nx * nx + ny * ny + nz * nz)+ v = (nx * lt[0] + ny * lt[1] + nz * lt[2]) / nn+ v = 0.5 + 0.5 * v+ if noise: v += (noise2d(y1 - y0, x1 - x0, max(8, bevel * self.k * 1.5), 3, int(r.integers(1 << 30))) - 0.5) * noise * 2+ n = len(tones)+ if isinstance(levels, str): # 'q': tone boundaries at quantiles of the light inside the shape+ vin = v[m > 0.5]+ levels = list(np.quantile(vin, np.linspace(0.22, 0.8, n - 1))) if len(vin) else None+ levels = levels or list(np.linspace(0.5 + 0.5 * lt[2] - 0.22, 0.5 + 0.5 * lt[2] + 0.16, n - 1))+ idx = np.digitize(v, levels)+ if clean: # dissolve tone islands smaller than about `clean` px (they read as holes, not as form)+ oh = np.stack([blur((idx == i).astype(np.float32), clean * self.k) for i in range(n)])+ idx = np.where(m > 0.5, oh.argmax(0), idx)+ T = np.stack([hexc(t) for t in tones])+ col = T[np.clip(idx, 0, n - 1)]+ if warm is not None: # a thin warm line where the shade tone meets the lit ones (bounce light)+ sh = (idx <= 0).astype(np.float32)+ e = (blur(sh, max(0.8, warm_w * 40 * self.k)) - sh)+ wb = (e > 0.12) & (idx >= 1) & (m > 0.5)+ col = np.where(wb[..., None], hexc(warm)[None, None], col)+ reg = self.C[y0:y1, x0:x1]+ self.C[y0:y1, x0:x1] = reg * (1 - m[..., None]) + col * m[..., None]+ return M++ def rock(self, cx, cy, rx, ry, tones=('stone_shade', 'stone_half', 'stone', 'stone_sun'), facets=4,+ rough=0.12, flat_base=0.25, moss=0.0, warm='warm_edge', bevel=None, wet=None, seed=None, light=None):+ """a sun-bleached boulder: an irregular outline (its base flattened), puffed and cut by a few facet+ planes, in four flat tones from cool violet-grey shade to warm cream light, a warm bounce band on the+ terminator, and optional moss on the faces turned up to the sun"""+ r = self._r(seed)+ if wet is not None: # standing in water: the body continues below, seen through the teal+ Q = blob_pts(cx, cy + ry * 0.5, rx * 1.04, ry * 0.7, rough, 14, int(r.integers(1 << 30)))+ Q[:, 1] = np.maximum(Q[:, 1], cy + ry * (1 - flat_base) - 2)+ self.face(Q, mix('stone_shade', wet, 0.72), wobble=1.0, alpha=0.75)+ P = blob_pts(cx, cy, rx, ry, rough, 11, int(r.integers(1 << 30)), rot=r.random() * 0.6)+ P = _wobble(P, 1.2 * self.k, r, step=max(rx, ry) * 0.12)+ if flat_base: P[:, 1] = np.minimum(P[:, 1], cy + ry * (1 - flat_base))+ lt = self.light if light is None else np.asarray(light, np.float32) / np.linalg.norm(light)+ c0 = 0.5 + 0.5 * lt[2]+ M = self.soft(P, list(tones), light=light, bevel=bevel or max(rx, ry) / self.k * 0.35, facets=facets,+ warm=warm, seed=int(r.integers(1 << 30)), noise=0.06, wobble=0, clean=max(rx, ry) / self.k * 0.06,+ levels=[c0 - 0.17, c0 - 0.06, c0 + 0.08])+ if moss: # moss caps on the faces turned up to the sun: a tiny foliage mass of its own+ ys, xs = np.nonzero(M > 0.5)+ if len(ys):+ top = ys.min()+ k_ = max(2, int(3 + moss * 5))+ cl = []+ for _ in range(k_):+ mx = cx + (r.random() - 0.5) * rx * 1.3+ col = xs[np.abs(xs - mx) < 3]+ if not len(col): continue+ ty = ys[np.abs(xs - mx) < 3].min()+ cl.append((mx, ty + ry * 0.08, rx * (0.15 + 0.25 * moss * r.random()), ry * (0.08 + 0.12 * moss)))+ if cl:+ save = self.C.copy()+ self.canopy(cl, tones='moss', leaf=5.0, fill=1.0, holes=0,+ levels=(0.0, 0.45, 0.6, 0.75), sub=2.0, seed=int(r.integers(1 << 30)), noise=0.3,+ sprinkle=0.1)+ keep = np.clip(blur(M, 1.0) * 1.6, 0, 1)[..., None] # hang a little over the edge only+ self.C = save * (1 - keep) + self.C * keep+ if wet is not None: # its reflection, broken into sideways-shifted bands, and a bright ripple line+ yb = cy + ry * (1 - flat_base)+ ys_, xs_ = np.nonzero(M > 0.5)+ if len(ys_):+ y0_, x0_, x1_ = int(ys_.min()), int(max(xs_.min() - 20, 0)), int(min(xs_.max() + 20, self.W))+ hh = int(min(yb - y0_, self.H - yb - 1) * 0.8)+ if hh > 4:+ yy = np.arange(hh)+ band = (yy / max(3.0, 5 * self.k)).astype(int)+ sh = (r.standard_normal(band.max() + 1) * 5 * self.k).astype(int)[band]+ src_y = np.clip((yb - 1 - yy * 1.1).astype(int), 0, self.H - 1)+ xs = np.arange(x0_, x1_)+ sx_ = np.clip(xs[None, :] + sh[:, None], 0, self.W - 1)+ patch = self.C[src_y[:, None], sx_]+ am = M[src_y[:, None], sx_] * (1 - yy / hh)[:, None] ** 0.7+ dst = slice(int(yb) + 1, int(yb) + 1 + hh)+ reg = self.C[dst, x0_:x1_]+ if reg.shape[0] == hh:+ a_ = (am * 0.55 * (1 - M[dst, x0_:x1_]))[..., None]+ col = patch * 0.6 + hexc(wet)[None, None] * 0.4+ self.C[dst, x0_:x1_] = reg * (1 - a_) + col * a_+ xs_ = np.nonzero(M[int(min(yb - 2, self.H - 1))] > 0.5)[0]+ if len(xs_):+ xa, xb = xs_.min() - rx * 0.12, xs_.max() + rx * 0.12+ n = int(6 + rx / 20)+ sx = xa + r.random(n) * (xb - xa)+ P = self._strokes_h(sx, np.full(n, yb + 2 * self.k) + r.random(n) * 4 * self.k,+ rx * (0.15 + 0.3 * r.random(n)), np.full(n, 3.2 * self.k), r)+ self._paint(P, np.repeat(np.clip(mix(wet, '#ffffff', 0.75), 0, 1)[None], n, 0), alpha=0.85)+ return M++ def face(self, pts, colour, alpha=1.0, wobble=0.6, seed=None):+ """a flat painted plane (a wall, a table top, the riser of a step); returns its mask"""+ P = np.asarray(pts, np.float32)+ if wobble: P = _wobble(P, wobble * self.k, self._r(seed))+ self._paint([P], hexc(colour)[None], alpha=alpha)+ return self.mask([P])++ def gradient(self, mask, c0, c1, axis=0, p0=None, p1=None):+ """paint a mask with a smooth gradient between two colours along y (axis 0) or x (axis 1)"""+ ys, xs = np.nonzero(mask > 0)+ if not len(ys): return+ if axis == 0:+ a, b = (ys.min() if p0 is None else p0), (ys.max() if p1 is None else p1)+ t = np.clip((np.arange(self.H, dtype=np.float32) - a) / max(b - a, 1), 0, 1)[:, None, None]+ else:+ a, b = (xs.min() if p0 is None else p0), (xs.max() if p1 is None else p1)+ t = np.clip((np.arange(self.W, dtype=np.float32) - a) / max(b - a, 1), 0, 1)[None, :, None]+ col = hexc(c0)[None, None] * (1 - t) + hexc(c1)[None, None] * t+ m = mask[..., None]+ self.C = self.C * (1 - m) + col * m++ def strokes(self, mask, n=200, size=30.0, var=0.05, angle=0.0, spread=0.4, aspect=0.35, seed=None):+ """visible brush marks inside a painted area: flat, irregular, slightly lighter or darker patches with+ hard edges, laid along `angle` (degrees)"""+ r = self._r(seed)+ ys, xs = np.nonzero(mask > 0.5)+ if not len(ys): return+ pick = r.integers(0, len(ys), n)+ sz = size * self.k * (0.5 + r.random(n))+ a = np.deg2rad(angle) + (r.random(n) - 0.5) * spread+ P = self._shapes(xs[pick] + 0.0, ys[pick] + 0.0, sz, sz * aspect, a, 'chip', r)+ light = r.random(n) < 0.55+ cols = np.where(light[:, None], hexc('#ffffff')[None], hexc('#203060')[None])+ al = np.where(light, var * 1.4, var)+ self._paint(list(P), cols, alpha=al, clip=mask)++ def window(self, x0, y0, x1, y1, cols=2, rows=1, frame=14.0, bar=9.0, colour='white', lit='white_sun',+ shade='white_shade', depth=8.0, wobble=0.5, seed=None):+ """a painted window frame (white): the outer frame and the mullions/transoms as flat bars, each with a+ sunlit face and a cool shaded reveal on the side away from the sun. Returns the glass mask; paint the+ view outside first, then the wall around it, then call this."""+ r = self._r(seed)+ f, b, dp = frame * self.k, bar * self.k, depth * self.k+ bars = [(x0, y0, x1, y0 + f), (x0, y1 - f, x1, y1), (x0, y0, x0 + f, y1), (x1 - f, y0, x1, y1)]+ for i in range(1, cols):+ xm = x0 + (x1 - x0) * i / cols+ bars.append((xm - b / 2, y0, xm + b / 2, y1))+ rws = [j / rows for j in range(1, rows)] if isinstance(rows, int) else list(rows)+ for fr_ in rws:+ ym = y0 + (y1 - y0) * fr_+ bars.append((x0, ym - b / 2, x1, ym + b / 2))+ glass = np.zeros((self.H, self.W), np.float32)+ glass[int(y0 + f):int(y1 - f), int(x0 + f):int(x1 - f)] = 1+ sx = 1 if self.light[0] < 0 else -1 # the reveal shows on the side away from the sun+ for (a0, b0, a1, b1) in bars:+ rect = [(a0, b0), (a1, b0), (a1, b1), (a0, b1)]+ self.face(rect, colour, wobble=wobble, seed=int(r.integers(1 << 30)))+ # shaded side faces (depth of the bar)+ if a1 - a0 < b1 - b0: # vertical bar: reveal on the right (or left)+ xr = a1 if sx > 0 else a0+ self.face([(xr, b0), (xr + sx * dp, b0 + dp), (xr + sx * dp, b1), (xr, b1)], shade, wobble=0.3)+ else: # horizontal bar: underside+ self.face([(a0, b1), (a1, b1), (a1 + sx * dp * 0.5, b1 + dp), (a0 + sx * dp * 0.5, b1 + dp)], shade,+ wobble=0.3)+ # a sunlit edge on the top / sun side+ self.face([(a0, b0), (a1, b0), (a1, b0 + max(1.5, (b1 - b0) * 0.12)), (a0, b0 + max(1.5, (b1 - b0) * 0.12))],+ lit, wobble=0)+ g = glass.copy()+ for (a0, b0, a1, b1) in bars:+ g[int(max(b0 - dp, 0)):int(b1 + dp), int(max(a0 - dp, 0)):int(a1 + dp)] = 0+ return g++ # ================================================================== furniture+ def box(self, front, top=None, side=None, tones=('white', 'white_sun', 'white_half'), wobble=0.6, seed=None):+ """a block seen from the front: its front, top and side quads in flat tones (front, top, side).+ Returns the masks (front, top, side)."""+ r = self._r(seed)+ out = []+ for q, c in ((side, tones[2]), (top, tones[1]), (front, tones[0])):+ out.append(self.face(q, c, wobble=wobble, seed=int(r.integers(1 << 30))) if q is not None else None)+ return out[2], out[1], out[0]++ def panel(self, x0, y0, x1, y1, colour='white_half', lit='white_sun', shade='white_shade', bevel=6.0):+ """a recessed panel (cupboard door, wainscot): a flat field with a shaded bevel on the sun side's top and+ side and a lit bevel opposite"""+ b = bevel * self.k+ sx = self.light[0] < 0+ self.face([(x0, y0), (x1, y0), (x1, y1), (x0, y1)], colour, wobble=0.3)+ self.face([(x0, y0), (x1, y0), (x1 - b, y0 + b), (x0 + b, y0 + b)], shade, wobble=0.2)+ self.face([(x0, y1), (x1, y1), (x1 - b, y1 - b), (x0 + b, y1 - b)], lit, wobble=0.2)+ xa, xb = (x0, x0 + b) if sx else (x1, x1 - b)+ xc, xd = (x1, x1 - b) if sx else (x0, x0 + b)+ self.face([(xa, y0), (xb, y0 + b), (xb, y1 - b), (xa, y1)], shade, wobble=0.2)+ self.face([(xc, y0), (xd, y0 + b), (xd, y1 - b), (xc, y1)], lit, wobble=0.2)++ def cushion(self, cx, cy, w, h, tones=('white_shade', 'white_half', 'white', 'white_sun'), round_=0.4, tilt=0.0,+ bulge=0.08, stripes=None, light=None, bevel=None, seed=None):+ """a plump cushion: a rounded, slightly bulging outline, puffed and shaded in flat tones; `stripes` =+ (colour, n, width 0..1, angle in degrees) lays painted stripes / checks that take the same shading"""+ r = self._r(seed)+ t = np.linspace(0, 2 * np.pi, 64, endpoint=False)+ ex = 2 / max(round_, 0.05)+ ct, st = np.cos(t), np.sin(t)+ x = np.sign(ct) * np.abs(ct) ** (2 / ex) * w / 2+ y = np.sign(st) * np.abs(st) ** (2 / ex) * h / 2+ # corners pulled out a little: plump cushions have ears+ ear = 1 + bulge * np.abs(np.sin(2 * t)) ** 4+ P = np.stack([x * ear, y * ear], 1)+ P = _rot(P, np.deg2rad(tilt)) + [cx, cy]+ bev = bevel or min(w, h) / self.k * 0.3+ M = self.soft(P, list(tones), light=light, bevel=bev, noise=0.05, wobble=0.6, dome=0.6, levels='q',+ seed=int(r.integers(1 << 30)))+ if stripes:+ colour, n, wd, ang = stripes[:4]+ ys, xs = np.nonzero(M > 0)+ gy, gx = np.mgrid[0:self.H, 0:self.W]+ a_ = np.deg2rad(ang)+ u = ((gx - cx) * np.cos(a_) + (gy - cy) * np.sin(a_)) / max(w, h) * n+ band = (np.abs(((u + 0.5) % 1) - 0.5) < wd / 2).astype(np.float32)+ if len(stripes) > 4:+ u2 = ((gx - cx) * -np.sin(a_) + (gy - cy) * np.cos(a_)) / max(w, h) * n+ band = np.maximum(band, (np.abs(((u2 + 0.5) % 1) - 0.5) < wd / 2).astype(np.float32))+ band = blur(band, 0.5) * M+ val = self.C.mean(-1)+ ref = val[M > 0.5].max() if (M > 0.5).any() else 1+ shadef = np.clip(val / max(ref, 1e-3), 0.4, 1.05)[..., None]+ col = hexc(colour)[None, None] * (0.35 + 0.65 * shadef) + hexc('#1a2a5a')[None, None] * 0.03+ self.C = self.C * (1 - band[..., None]) + col * band[..., None]+ return M++ def curtain(self, x0, x1, y0, y1, folds=5, tones=('white_shade', 'white_half', 'white', 'white_sun'), alpha=0.9,+ sway=0.06, seed=None):+ """a sheer white curtain: vertical folds as flat tone stripes (each fold lit on its sun side, shaded on+ the other), a wavy hem, painted slightly translucent so the light behind glows through"""+ r = self._r(seed)+ T = [hexc(t) for t in tones]+ fw = (x1 - x0) / folds+ polys, cols = [], []+ sx = 1 if self.light[0] < 0 else -1+ for i in range(folds):+ a = x0 + i * fw+ sw = (r.random() - 0.5) * sway * (y1 - y0)+ top = [(a, y0), (a + fw, y0)]+ bot = [(a + fw + sw, y1 + (r.random() - 0.5) * 10 * self.k), (a + sw, y1 + (r.random() - 0.5) * 10 * self.k)]+ polys.append(np.array(top + bot, np.float32)); cols.append(T[2])+ # the fold: a shaded half-stripe and a lit one+ m0 = a + fw * (0.45 + 0.2 * r.random())+ polys.append(np.array([(m0, y0), (a + fw, y0), (a + fw + sw, y1), (m0 + sw, y1)], np.float32))+ cols.append(T[0] if sx > 0 else T[3])+ polys.append(np.array([(m0 - fw * 0.12, y0), (m0, y0), (m0 + sw, y1), (m0 + sw - fw * 0.12, y1)], np.float32))+ cols.append(T[1])+ polys.append(np.array([(a, y0), (a + fw * 0.18, y0), (a + fw * 0.18 + sw, y1), (a + sw, y1)], np.float32))+ cols.append(T[3] if sx > 0 else T[0])+ self._paint([_wobble(p, 0.8 * self.k, r) for p in polys], np.stack(cols), alpha=alpha)+ # a hem shadow and a rod+ self.face([(x0 - 6 * self.k, y0 - 8 * self.k), (x1 + 6 * self.k, y0 - 8 * self.k), (x1 + 6 * self.k, y0 + 4 * self.k),+ (x0 - 6 * self.k, y0 + 4 * self.k)], 'white_half', wobble=0.3)++ def boards(self, y0, y1, vp, n=14, x_span=None, tones=('wood_shade', 'wood', 'wood_sun'), gap='wood_deep',+ gap_w=1.6, seed=None):+ """a wooden floor in one-point perspective: boards radiating from the vanishing point vp = (x, y) between+ y0 (far) and y1 (near), each with its own flat tone and a thin dark gap, a few end joints"""+ r = self._r(seed)+ x_span = x_span or (-0.6 * self.W, 1.6 * self.W)+ T = [hexc(t) for t in tones]+ vx, vy = vp+ xs = np.linspace(x_span[0], x_span[1], n + 1)+ polys, cols = [], []+ f0 = (y0 - vy) / (y1 - vy)+ for i in range(n):+ a, b = xs[i], xs[i + 1]+ pa0 = (vx + (a - vx) * f0, y0); pb0 = (vx + (b - vx) * f0, y0)+ polys.append(np.array([pa0, pb0, (b, y1), (a, y1)], np.float32))+ cols.append(T[int(r.integers(0, len(T)))] * (1 + (r.random() - 0.5) * 0.05))+ self._paint(polys, np.stack(cols))+ lines = []+ for i in range(n + 1):+ a = xs[i]+ p0 = np.array([vx + (a - vx) * f0, y0]); p1 = np.array([a, y1])+ d = p1 - p0; nn = np.array([-d[1], d[0]]) / (np.linalg.norm(d) + 1e-6) * gap_w * self.k / 2+ lines.append(np.array([p0 - nn * 0.4, p0 + nn * 0.4, p1 + nn, p1 - nn], np.float32))+ for _ in range(int(r.integers(0, 3))): # end joints across the board+ t = r.random() ** 0.7+ yj = y0 + (y1 - y0) * t+ fj = (yj - vy) / (y1 - vy)+ if i < n:+ xa, xb = vx + (xs[i] - vx) * fj, vx + (xs[i + 1] - vx) * fj+ hw = gap_w * self.k * 0.5 * (0.4 + t)+ lines.append(np.array([(xa, yj - hw), (xb, yj - hw), (xb, yj + hw), (xa, yj + hw)], np.float32))+ self._paint(lines, np.repeat(hexc(gap)[None], len(lines), 0), alpha=0.55)++ def pot(self, cx, top, w, h, colour='terracotta', rim=0.16, light=None, seed=None):+ """a plant pot: a tapered body and a rim band, shaded as a cylinder in flat vertical bands (sunlit side,+ body, turning edge, cool shade side)"""+ lt = self.light if light is None else np.asarray(light, np.float32) / np.linalg.norm(light)+ c = hexc(colour)+ tones = np.stack([c * np.array([0.7, 0.75, 0.88]), c * 0.9, c, np.clip(c * 1.06 + 0.04, 0, 1)])+ body = [(cx - w / 2, top + h * rim), (cx + w / 2, top + h * rim), (cx + w * 0.38, top + h), (cx - w * 0.38, top + h)]+ rm = [(cx - w * 0.54, top), (cx + w * 0.54, top), (cx + w * 0.52, top + h * rim), (cx - w * 0.52, top + h * rim)]+ M = np.maximum(self.mask([np.asarray(body, np.float32)]), self.mask([np.asarray(rm, np.float32)]))+ gx = np.arange(self.W, dtype=np.float32)[None, :]+ u = np.clip((gx - cx) / (w / 2), -1, 1)+ v = u * -np.sign(lt[0]) * 0.8 + 0.2+ idx = np.digitize(v, [-0.55, -0.05, 0.45])+ col = tones[np.broadcast_to(idx, (self.H, self.W))]+ self.C = self.C * (1 - M[..., None]) + col * M[..., None]+ band = self.mask([np.array([(cx - w * 0.52, top + h * rim), (cx + w * 0.52, top + h * rim),+ (cx + w * 0.5, top + h * rim + 5 * self.k), (cx - w * 0.5, top + h * rim + 5 * self.k)],+ np.float32)])+ self.fill(band, tones[0] * 0.95, 0.6)+ return M++ def book(self, cx, cy, w, h, open_=True, cover='book_teal', tilt=0.0, seed=None):+ """a book lying on a surface seen from above-front: open (two pale pages bowed at the gutter, faint text+ lines) or closed (a coloured cover and a page edge)"""+ r = self._r(seed)+ def tr(P):+ return _rot(np.asarray(P, np.float32), np.deg2rad(tilt)) + [cx, cy]+ if open_:+ self.face(tr([(-w / 2 - 3, -h / 2 + 4), (w / 2 + 3, -h / 2 + 4), (w / 2 + 3, h / 2 + 5), (-w / 2 - 3, h / 2 + 5)]), cover)+ for sgn, tone in ((-1, 'white_sun'), (1, 'white')):+ xs = np.linspace(0, 1, 10)+ bow = np.sin(xs * np.pi / 2) * h * 0.06+ topp = [(sgn * w / 2 * xx, -h / 2 + h * 0.08 * (1 - xx) - bw) for xx, bw in zip(xs, bow)][::-1]+ botp = [(sgn * w / 2 * xx, h / 2 - bw * 0.5) for xx, bw in zip(xs, bow)]+ self.face(tr(topp + botp), tone, wobble=0.3)+ for j in range(6):+ yy = -h * 0.3 + j * h * 0.11+ xa, xb = sgn * w * 0.08, sgn * w * (0.42 - 0.06 * (j == 5))+ self.face(tr([(min(xa, xb), yy), (max(xa, xb), yy), (max(xa, xb), yy + 1.4 * self.k),+ (min(xa, xb), yy + 1.4 * self.k)]), '#b9bcc8', alpha=0.7, wobble=0)+ self.face(tr([(-1.2, -h / 2 + 2), (1.2, -h / 2 + 2), (1.2, h / 2), (-1.2, h / 2)]), 'white_shade', wobble=0)+ else:+ self.face(tr([(-w / 2, -h / 2), (w / 2, -h / 2), (w / 2, h / 2), (-w / 2, h / 2)]), cover)+ self.face(tr([(-w / 2, h / 2), (w / 2, h / 2), (w / 2, h / 2 + h * 0.12), (-w / 2, h / 2 + h * 0.12)]), 'white')+ self.face(tr([(-w / 2, -h / 2), (w / 2, -h / 2), (w / 2, -h / 2 + h * 0.1), (-w / 2, -h / 2 + h * 0.1)]),+ np.clip(hexc(cover) * 1.15 + 0.05, 0, 1))++ def mug(self, cx, base, w, h, colour='white', handle=True, tea='#b06a36', light=None, seed=None):+ """a mug or cup: an elliptical mouth showing the drink, a body shaded in flat tones, a handle"""+ c = hexc(colour)+ tones = [c * np.array([0.7, 0.75, 0.88]), c * 0.93, c, np.clip(c * 1.03 + 0.03, 0, 1)]+ ey = w * 0.18+ if handle:+ sx = 1 if self.light[0] < 0 else -1+ hx = cx + sx * w * 0.5+ self.face([(hx - 2, base - h * 0.75), (hx + sx * w * 0.28, base - h * 0.72), (hx + sx * w * 0.3, base - h * 0.3),+ (hx - 2, base - h * 0.25), (hx - 2, base - h * 0.38), (hx + sx * w * 0.16, base - h * 0.42),+ (hx + sx * w * 0.15, base - h * 0.6), (hx - 2, base - h * 0.62)], tones[1], wobble=0.3)+ t = np.linspace(0, np.pi, 16)+ bot = np.stack([cx + np.cos(t) * w / 2, base + np.sin(t) * ey - ey * 0.4], 1)+ body = np.concatenate([[[cx - w / 2, base - h]], [[cx + w / 2, base - h]], bot])+ self.soft(body, tones, light=light, bevel=w / self.k * 0.3, noise=0.02, seed=seed)+ tt = np.linspace(0, 2 * np.pi, 32)+ self.face(np.stack([cx + np.cos(tt) * w / 2, base - h + np.sin(tt) * ey], 1), tones[3], wobble=0)+ self.face(np.stack([cx + np.cos(tt) * w * 0.42, base - h + ey * 0.12 + np.sin(tt) * ey * 0.78], 1), tea, wobble=0)++ # ================================================================== water+ def water(self, box, line, mask=None, deep='water_deep', mid='water', shallow='water_shallow', reflect=0.85,+ near_reflect=0.25, stroke=(90.0, 6.0), density=1.4, pebbles=120, pebble_size=26.0, ripple=6.0,+ sky_glints=0.4, reflect_scale=1.0, seed=None):+ """still, clear water in box (x0, y0, x1, y1) mirroring what is painted above `line`: a pebbled bed seen+ through a transparent teal (deeper and bluer away from the viewer), then the reflection broken into+ horizontal painted strokes -- each a flat colour sampled from the mirrored picture -- that cover more+ toward the far edge (Fresnel) and leave the near water clear, and a few pale sky glints"""+ r = self._r(seed)+ x0, y0, x1, y1 = [int(v) for v in box]+ x0, y0 = max(x0, 0), max(y0, 0); x1, y1 = min(x1, self.W), min(y1, self.H)+ w, h = x1 - x0, y1 - y0+ M = np.zeros((self.H, self.W), np.float32); M[y0:y1, x0:x1] = 1+ if mask is not None: M *= mask+ src = self.C.copy()+ gy = np.arange(y0, y1, dtype=np.float32)+ tdep = ((gy - y0) / max(h - 1, 1))[:, None] # 0 far .. 1 near+ # the bed: teal-olive ground with pebbles+ bed = np.zeros((h, w, 3), np.float32)+ bed[:] = (hexc(shallow) * 0.3 + hexc('pebble') * 0.35 + hexc(mid) * 0.35)[None, None]+ save = self.C+ self.C = np.zeros_like(save); self.C[y0:y1, x0:x1] = bed+ if pebbles:+ n = int(pebbles)+ px = x0 + r.random(n) * w+ py = y0 + (r.random(n) ** 0.6) * h+ sc = (0.4 + 0.8 * (py - y0) / h)+ sz = pebble_size * self.k * sc * (0.6 + 0.8 * r.random(n))+ pc = np.stack([hexc(c) for c in ('#a19a52', '#7f9a50', '#bba062', '#6f8a5c', '#c8b27a', '#5f7a58', '#9aa86a')])+ ci = r.integers(0, len(pc), n)+ P = self._shapes(px, py, sz, sz * (0.5 + 0.2 * r.random(n)), (r.random(n) - 0.5) * 0.5, 'round', r)+ self._paint(list(P), pc[ci])+ P2 = self._shapes(px - sz * 0.12, py - sz * 0.1, sz * 0.62, sz * 0.32, (r.random(n) - 0.5) * 0.5, 'round', r)+ self._paint(list(P2), np.clip(pc[ci] * 1.12 + 0.04, 0, 1))+ bed = self.C[y0:y1, x0:x1].copy()+ self.C = save+ # transparent teal: deep far away, clear near+ tint = hexc(deep)[None, None] * (1 - tdep[..., None]) + hexc(mid)[None, None] * tdep[..., None]+ clear = (0.12 + 0.66 * tdep ** 1.1)[..., None]+ body = bed * clear + tint * (1 - clear)+ reg = self.C[y0:y1, x0:x1]+ m = M[y0:y1, x0:x1][..., None]+ self.C[y0:y1, x0:x1] = reg * (1 - m) + body * m+ # the reflection: the picture mirrored about `line`, every thin horizontal band shifted sideways by its+ # own amount (so colour edges break into horizontal fingers), then cut by a coverage of horizontal+ # strokes -- dense far away, thin near the viewer -- so the clear water shows between them+ Lr, Hr = stroke[0] * self.k, stroke[1] * self.k+ t1 = (gy - y0) / max(h - 1, 1)+ persp = 0.45 + 0.9 * t1+ hb = np.maximum(2.5, Hr * persp * (0.6 + 0.8 * r.random(h)))+ edges = np.cumsum(hb)+ band = np.searchsorted(edges, np.arange(h))+ nb = int(band.max()) + 1+ bdx = (r.standard_normal(nb) * ripple * self.k).astype(np.float32)+ bdy = (r.standard_normal(nb) * ripple * 0.35 * self.k).astype(np.float32)+ wav = (noise2d(nb, w, 40 * self.k, 2, int(r.integers(1 << 30))) - 0.5) * ripple * 2.2 * self.k+ X = np.arange(x0, x1, dtype=np.float32)[None, :] + bdx[band][:, None] * persp[:, None] + wav[band] * persp[:, None]+ Y = line - (gy[:, None] - line) * reflect_scale + bdy[band][:, None]+ Xi = np.clip(X, 0, self.W - 1).astype(int); Yi = np.clip(Y, 0, self.H - 1).astype(int)+ refl = src[Yi, Xi]+ # a painter simplifies a reflection: smear it sideways, then flatten it to a few paints+ sm = np.stack([_hblur(refl[..., c], 9 * self.k) for c in range(3)], -1)+ sm = np.stack([blur(sm[..., c], 1.2 * self.k) for c in range(3)], -1)+ q = Image.fromarray((np.clip(sm, 0, 1) * 255).astype(np.uint8)).quantize(14, method=Image.Quantize.MEDIANCUT,+ dither=Image.Dither.NONE)+ refl = np.asarray(q.convert('RGB'), np.float32) / 255+ tint_s = (hexc(deep)[None, None] * (1 - tdep[..., None]) + hexc(mid)[None, None] * tdep[..., None])+ refl = refl * 0.8 + tint_s * 0.2+ n = int(w * h / (Lr * Hr) * density)+ sy = y0 + r.random(n) * h+ tt = (sy - y0) / max(h, 1)+ sx = x0 + r.random(n) * w+ pp = 0.45 + 0.9 * tt+ fr = reflect * (1 - tt) + near_reflect * tt+ cl = noise2d(max(h // 4, 2), max(w // 4, 2), 30 * self.k, 3, int(r.integers(1 << 30)))+ clv = cl[np.clip(((sy - y0) / 4).astype(int), 0, cl.shape[0] - 1), np.clip(((sx - x0) / 4).astype(int), 0, cl.shape[1] - 1)]+ keep = r.random(n) < np.clip(fr * 1.1 * (0.3 + 1.4 * clv), 0, 1)+ P = self._strokes_h(sx[keep], sy[keep], Lr * pp[keep] * (0.4 + 1.6 * r.random(keep.sum()) ** 2),+ Hr * pp[keep] * (0.7 + 1.2 * r.random(keep.sum())), r)+ cov = self.mask(P)[y0:y1, x0:x1]+ far_fill = smoothstep(0.45, 0.05, tdep) * reflect # the far water is a continuous mirror+ cov = np.maximum(cov, far_fill)+ a_ = (cov * (0.8 + 0.2 * (1 - tdep)))[..., None] * m+ reg = self.C[y0:y1, x0:x1]+ self.C[y0:y1, x0:x1] = reg * (1 - a_) + refl * a_+ if sky_glints:+ g = int(n * 0.05 * sky_glints)+ gy_ = y0 + r.random(g) ** 1.5 * h+ gx_ = x0 + r.random(g) * w+ tt = (gy_ - y0) / h+ gc = np.clip(self.sky_at(np.clip(line - (gy_ - line) * reflect_scale, 0, self.H - 1)) * 0.6 + 0.4, 0, 1)+ P = self._strokes_h(gx_, gy_, Lr * (0.2 + 0.5 * r.random(g)) * (0.5 + tt), Hr * 0.5 * (0.5 + tt), r)+ self._paint(list(P), gc, alpha=0.9, clip=M)+ return M++ def _strokes_h(self, xs, ys, ln, ht, r):+ """horizontal painted dashes with tapered, slightly ragged ends"""+ n = len(xs)+ K = 8+ t = np.linspace(0, 1, K, dtype=np.float32)+ prof = np.clip(np.sin(np.pi * t), 0, 1) ** 0.45+ P = np.zeros((n, 2 * K, 2), np.float32)+ jt = 1 + 0.25 * r.standard_normal((n, K)).astype(np.float32)+ jb = 1 + 0.25 * r.standard_normal((n, K)).astype(np.float32)+ P[:, :K, 0] = (t[None] - 0.5) * ln[:, None]+ P[:, :K, 1] = -prof[None] * jt * ht[:, None] * 0.5+ P[:, K:, 0] = (t[::-1][None] - 0.5) * ln[:, None]+ P[:, K:, 1] = prof[::-1][None] * jb[:, ::-1] * ht[:, None] * 0.5+ sk = (r.random(n) - 0.5) * 0.06+ P[..., 1] += P[..., 0] * sk[:, None]+ P[..., 0] += xs[:, None]; P[..., 1] += ys[:, None]+ return list(P)++ # ================================================================== output+ def finish(self, paper=1.0, grain=1.0, bloom=0.25, lift=0.03):+ self.fin = dict(paper=paper, grain=grain, bloom=bloom, lift=lift)+ return self++ def render(self):+ out = np.clip(self.C, 0, 1).copy()+ f = self.fin+ if not f: return out+ H, W = self.H, self.W+ if f['bloom']:+ sm = Image.fromarray((out * 255).astype(np.uint8)).resize((W // 4, H // 4), Image.BILINEAR)+ sm = np.asarray(sm, np.float32) / 255+ br = sm * smoothstep(0.78, 1.0, sm.mean(-1))[..., None]+ for c in range(3): br[..., c] = blur(br[..., c], 8 * self.k)+ up = np.asarray(Image.fromarray((np.clip(br, 0, 1) * 255).astype(np.uint8)).resize((W, H), Image.BILINEAR),+ np.float32) / 255+ out = 1 - (1 - out) * (1 - up * f['bloom'])+ if f['lift']:+ out = out * (1 - f['lift']) + hexc('#dfeaf2')[None, None] * f['lift']+ r = np.random.default_rng(self.seed * 31 + 7)+ if f['paper']:+ g = noise2d(H // 2, W // 2, 3, 2, int(r.integers(1 << 30)))+ g = np.asarray(Image.fromarray(g).resize((W, H), Image.BILINEAR), np.float32) - 0.5+ s = blur(r.standard_normal((H, W)).astype(np.float32), 0.6)+ out *= (1 + (g * 0.035 + s * 0.012) * f['paper'])[..., None]+ if f['grain']:+ out += (r.standard_normal((H, W)).astype(np.float32) * 0.006 * f['grain'])[..., None]+ return np.clip(out, 0, 1)++ def composite(self):+ return Image.fromarray((self.render() * 255 + 0.5).astype(np.uint8))++ def stage(self, name):+ if not self.keep_stages: return+ im = self.composite()+ if self.stages_dir:+ os.makedirs(self.stages_dir, exist_ok=True)+ im.save(f'{self.stages_dir}/{self._n_stages:02d}_{name}.png', compress_level=1)+ else:+ b = io.BytesIO(); im.save(b, 'PNG', compress_level=1)+ self.stages.append((name, b.getvalue()))+ self._n_stages += 1++ def save(self, path, stages_dir=None, quality=92):+ img = self.composite()+ if str(path).lower().endswith(('.jpg', '.jpeg')): img.save(path, quality=quality, subsampling=0)+ else: img.save(path)+ sd = stages_dir or self.stages_dir+ if sd and self.keep_stages:+ os.makedirs(sd, exist_ok=True)+ for i, (name, b) in enumerate(self.stages):+ with open(f'{sd}/{i:02d}_{name}.png', 'wb') as fh: fh.write(b)+ img.save(f'{sd}/{self._n_stages:02d}_final.png', compress_level=1)+ return img