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 dreamy hills style (82 total): the long walk
cloveric523292b36e7d
diff --git a/README.md b/README.mdindex 1333604..368fbab 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@# Claude Drawing · Claude 绘图-**Claude paints with code — no image model.** Eighty-one 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 and a grainy, chalky picture-book page of a child walking a little dog home through the snow on a cobalt evening.-**不用生图模型,Claude 用代码一笔一笔作画。** 八十一种画风,从水墨、油画到黏土、蓝晒、彩色玻璃花窗、罗马马赛克、代尔夫特蓝瓷砖、赛博朋克、光线追踪的小球海、低多边形 3D、热成像、X 光片、VHS 录像带、Synthwave 落日、产品发布片式的粉彩界面、红笔批改的答题卡、油灯下的皮影戏、钢笔淡彩的速写小卡、复古水粉的绘本大头像、蓝调绘本的雨天跨页、江南园林的春水园景、干刷色块的 mid-century 海报、暮色微缩绘本里转入星空的黄昏、排线夜景里流进海里的熔岩、深色笔记应用里渲染出的流程图、卡片铺开的无限白板、Flexoki 暖纸上的五图图解、暖调彩铅叠出来的绘本跨页、挂满彩旗的水粉彩色小镇、把橘猫当围巾的色粉小像、捧着罐中小幽灵的诗意万圣夜、冬天早上捧着一杯热饮的油画棒肖像、穿彩虹条纹毛衣、坐在小凳上读书的手账线描、每幅一个红色点睛、讲一个雨天星期六的日系扁平小插画和钴蓝雪夜里牵着小狗回家、满纸粉笔颗粒的颗粒童书。+**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 用代码一笔一笔作画。** 八十二种画风,从水墨、油画到黏土、蓝晒、彩色玻璃花窗、罗马马赛克、代尔夫特蓝瓷砖、赛博朋克、光线追踪的小球海、低多边形 3D、热成像、X 光片、VHS 录像带、Synthwave 落日、产品发布片式的粉彩界面、红笔批改的答题卡、油灯下的皮影戏、钢笔淡彩的速写小卡、复古水粉的绘本大头像、蓝调绘本的雨天跨页、江南园林的春水园景、干刷色块的 mid-century 海报、暮色微缩绘本里转入星空的黄昏、排线夜景里流进海里的熔岩、深色笔记应用里渲染出的流程图、卡片铺开的无限白板、Flexoki 暖纸上的五图图解、暖调彩铅叠出来的绘本跨页、挂满彩旗的水粉彩色小镇、把橘猫当围巾的色粉小像、捧着罐中小幽灵的诗意万圣夜、冬天早上捧着一杯热饮的油画棒肖像、穿彩虹条纹毛衣、坐在小凳上读书的手账线描、每幅一个红色点睛、讲一个雨天星期六的日系扁平小插画、钴蓝雪夜里牵着小狗回家、满纸粉笔颗粒的颗粒童书和一个人走过天鹅绒草丘、破晓时薰衣草紫配杏色的柔光草丘手机壁纸。[English](#english) · [中文](#中文)@@ -64,6 +64,8 @@|  |  |  || **Grainy picture book · 颗粒童书** | **Grainy picture book · 颗粒童书(喂鸭子)** | **Watercolour · 水彩(底纹)** ||  |  |  |+| **Dreamy hills · 柔光草丘** | **Dreamy hills · 柔光草丘(星夜)** | **Dreamy hills · 柔光草丘(正午)** |+|  |  |  |### Gallery · 画廊@@ -155,8 +157,10 @@| <img src="examples/spotillo_rainy_saturday.jpg" width="100%"> | <img src="examples/spotillo_rainy_saturday_wide.jpg" width="100%"> || **雪夜遛狗** · *The Evening Walk*<br><sub>Grainy picture book · 颗粒童书</sub> | **喂鸭子** · *Feeding the Ducks*<br><sub>Grainy picture book · 颗粒童书 — a 16:9 spread for explainer videos · 讲解视频用的宽页</sub> || <img src="examples/grainbook_snow_walk.jpg" width="100%"> | <img src="examples/grainbook_duck_pond.jpg" width="100%"> |+| **走过草丘 · 破晓** · *The Long Walk, Dawn*<br><sub>Dreamy hills · 柔光草丘 — a 1:2 phone wallpaper · 1:2 手机壁纸</sub> | **走过草丘 · 星夜** · *The Long Walk, Night*<br><sub>Dreamy hills · 柔光草丘 — the same walk under the milky way · 同一段路,银河下</sub> |+| <img src="examples/dreamhills_long_walk.jpg" width="100%"> | <img src="examples/dreamhills_long_walk_night.jpg" width="100%"> |-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, and a snowy cobalt evening laid shape by shape with a dry, chalky brush whose colour breaks into grain and frays at every edge. 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, 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.---@@ -164,7 +168,7 @@ Every mark above is computed: paper fibres, ink washes and mist, dry-brush strok### What it is-A [Claude Code](https://claude.com/claude-code) skill and a small painting library with eighty-one styles:+A [Claude Code](https://claude.com/claude-code) skill and a small painting library with eighty-two styles:| Style | Module | What makes it read as the real medium ||---|---|---|@@ -249,6 +253,7 @@ A [Claude Code](https://claude.com/claude-code) skill and a small painting libra| **Sketchbook doodle (手账线描)** | `lib/sketchbook.py` · `Sketchbook` | a page from an illustrator's sketchbook: warm off-white paper with a faint blush, mostly left empty, one small character and two or three sparse props floating on it — no ground, no background. The drawing is hair-thin dark ink: every line is smoothed, pushed sideways by a slow hand wobble and a tiny tremor, tapers in where the nib lands and out in a long flick, drifts in width and ink flow, and now and then lifts for a few px; `contour()` draws a closed shape as one to three strokes that leave a gap or run past each other at the joins. Lines are cut into runs of constant width and darkness, drawn by Pillow into a 4× supersampled layer and multiplied in (ink is transparent). Hair is a `hair()` lock: many separate strands interpolated between guide curves, waving in phase with their neighbours and thinning to long tips, paper showing between them. Faces are tiny: `eye_closed()` arcs with a few lashes or `eye_dot()`s, a one-stroke nose, a small red `mouth()`, two round `blush()` dots. Clothes are filled with `stripes()`: loose bands of colour pencil and marker laid along stroke coordinates (long streaks, an elongated grain, pigment catching the tooth or lying flat), each band with its own colour, width, tilt and grain, two independently wandering edges and ends that overrun the ink line or stop short of it; bands follow an angle, bow into a smile or wrap round a sleeve's centre-line, and colours multiply (red over yellow turns orange). Props are thin coloured lines: `leaf()` with herringbone vein hatching (or veins left white in the fill), `flower()`, multi-line `tree()`s, a `steam()` curl, `ticks()` for fur and grass, a tiny `squiggle()` (never fake writing) || **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 |Ask Claude to *"draw it yourself"*, *"paint this with code"*, or *"claude绘图"*, and name a style if you like. Claude then:@@ -484,6 +489,15 @@ Every style has a complete example: `python3 examples/<name>.py out.png --stages- a raised hand with a thumb is a thumbs-up — a flat, palm-up oval;- a pupil that fills the eye white is a button — keep white showing round it;- a child in the same red as the cottage behind disappears into the wall — give the coat a contrasting colour.+- **Dreamy hills**: keep it minimal — a big calm sky, a few huge hills, one tiny walker on a crest — and let the colour field do the work: light on the crests, cool troughs, a warm and a cool ramp per palette. Watch for accidental reads:+ - blades composited in chunks sorted by root turn into horizontal stripes — jitter the sort key by about a blade length;+ - adding a warm key and a cool fill in RGB gives a dusty mauve — light a value, then colour it from the two ramps;+ - a lateral normal that fades a little way down the face makes a whole big hill one colour — keep the side each swell faces;+ - a trough that only darkens looks like a stain — take the key away first so it cools;+ - too much per-blade normal jitter against a sharp warm / cool split sprinkles the shaded side with orange — set `jitter` per palette;+ - 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.### Roadmap@@ -495,7 +509,7 @@ Every style has a complete example: `python3 examples/<name>.py out.png --stages### 这是什么-一个 [Claude Code](https://claude.com/claude-code) skill,加上一个小巧的绘图库,内置八十一种画风:+一个 [Claude Code](https://claude.com/claude-code) skill,加上一个小巧的绘图库,内置八十二种画风:| 画风 | 模块 | 为什么看起来像真的 ||---|---|---|@@ -580,6 +594,7 @@ Every style has a complete example: `python3 examples/<name>.py out.png --stages| **手账线描** | `lib/sketchbook.py` · `Sketchbook` | 速写本里的一页小画:暖米白、带一点粉的纸大片空着,一个小人物加两三件稀疏的道具浮在上面,不画地面和背景。画是发丝细的深色墨线:每根线先过样条,再沿法向推一个慢的手抖和一点快的颤,起笔细、收笔挑出一个长尖,粗细和墨色慢慢变,偶尔抬笔断开几 px;`contour()` 把闭合的形状画成一到三笔,接口留缺口或搭过头。线切成粗细和深浅都不变的几段,用 Pillow 画进 4 倍超采样的图层,再正片叠底(墨是透明的)。头发是 `hair()`:在几条导线之间插出很多根分开的细线,和相邻的线一起起伏,发梢收成长尖,线之间露着纸。脸很小:`eye_closed()` 的弧线加几根睫毛或 `eye_dot()`,一笔鼻子,小红 `mouth()`,两颗圆的 `blush()`。衣服用 `stripes()` 涂成彩铅和马克笔的松散条纹:沿笔的方向铺(长道子、顺笔的细颗粒,颜料挂在纸纹上或平平铺开),每条自己的颜色、宽度、倾斜和颗粒,上下两条边各自游移,两头冲出墨线或够不到;条纹可以按角度排、弯成微笑,也可以绕着袖子的中心线转;颜色正片叠底(红压黄成橙)。道具是细的彩色线:带人字形叶脉排线(或叶脉留白)的 `leaf()`、`flower()`、几根线叠成的 `tree()`、一缕 `steam()`、猫毛和草的 `ticks()`、一个小 `squiggle()`(不写假字) || **日系扁平小插画** | `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 倍超采样带边缘光和影子的走路小人(可提一盏发光的小灯),泛光和顺便给天空抖动的细胶片颗粒 |对 Claude 说「claude绘图」「你自己画」「用代码画」,也可以指定画风。它会:1. **先定构图**:层次、焦点、留白,而且画面要图解内容本身;@@ -692,6 +707,8 @@ python3 examples/sketchbook_kite_day.py out.jpg --stages stages/ # 手账线python3 examples/spotillo_rainy_saturday.py out.jpg --stages stages/ # 日系扁平小插画:雨天的星期六(--layout wide 出 16:9)python3 examples/grainbook_snow_walk.py out.jpg --stages stages/ # 颗粒童书:雪夜遛狗(--layout wide 出 16:9)python3 examples/grainbook_duck_pond.py out.jpg --stages stages/ # 颗粒童书:喂鸭子(16:9)+python3 examples/dreamhills_long_walk.py out.jpg --stages stages/ # 柔光草丘:走过草丘(1:2 竖版壁纸,--preset night 星夜、noon 正午)+python3 examples/dreamhills_long_walk.py out.jpg --layout wide # 柔光草丘:同一幅画排成 16:9```### 作画要点(Claude 交图前逐条自查)@@ -876,6 +893,15 @@ python3 examples/grainbook_duck_pond.py out.jpg --stages stages/ # 颗粒童- 扬起来带拇指的手是在竖大拇指——画成掌心朝上的扁椭圆;- 黑眼珠填满眼白就成了两颗纽扣——眼珠四周要留白;- 小孩穿和身后小屋一样的红,就融进墙里——外套换一个对比色。+- **柔光草丘**:要极简——一大片安静的天、几座巨大的山、山脊上一个很小的人——让色场来说话:坡顶有光、谷里偏冷,每套调色板一条暖色带、一条冷色带。小心看错:+ - 按根部排序分块合成的草毛会变成一道道横条纹——排序键抖动约一根草长;+ - 暖的主光和冷的天光在 RGB 里直接相加会成一片灰藕色——先算明度,再从两条色带取色;+ - 法线的侧向分量往下一点就没了,大山整片一个颜色——保留每座山朝向的那一边;+ - 谷底只变暗像一块污渍——先挡主光,让它变冷;+ - 每根草的法线抖得太多,又碰上很窄的暖冷分界,阴影那侧会撒满橙点——`jitter` 按调色板给;+ - 主光从正面打,夜景就像白天——从侧后方掠过来;+ - 一排球摞起来的积云像棉花团,前面团块自己的软边会让天空透出来成一道深折痕——团块排在穹顶上、底下一排撑住,覆盖率取所有团块的并集;+ - 又细又透的前景草像一把稻草——草要宽、不透明,只在草尖那一段变亮。### 计划diff --git a/SKILL.md b/SKILL.mdindex 70d416b..417a1b5 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 童书页,颜色少而饱和:钴蓝 / 群青的夜空或灰蓝底、朱红 / 番茄红、橙、松绿、奶油色、桃粉色的雪和黑头发;每样东西都是一大块平涂的形状,用干的、粉笔似的颗粒笔刷铺出来——颜色碎成细沙似的颗粒和深浅小点,顺着笔触有淡淡的干笔条纹,偶尔跳过纸齿露出底下的奶油底色,边缘是干笔扫出来的毛茸茸的碎边;没有描线,形状和形状色块相接,只有几笔深色蜡笔点睛(窗格、牵绳、笑嘴);亮面是一侧更浅的干笔擦扫,投影是压在上面的一块平的深色;脸简单而甜:黑白大圆眼或点点眼、珊瑚色圆腮红、小嘴、扣子或三角鼻子;天空一级一级分层、层与层之间干笔交错,不用数码渐变;附带干颗粒填色、干笔擦扫、分层天空、斑块、投影、光圈、干笔和蜡笔点睛线、颗粒小点,甜脸零件、波波头 / 长发 / 短发 / 发髻、毛线帽,站 / 走 / 坐的小孩,亮灯的红色小屋、羽状松树、远处小冷杉、圆树、灌木、松枝丛、杯子、纸盒、纸袋、盆栽、芦苇、草丛、路灯、小狗、鸭子、栅栏,雪、星、月牙、炊烟、热气、涟漪、脚印)。用户说「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 童书、复古童书插画、满幅绘本页、满版童书插画、无描边童书、钴蓝夜空、群青夜空、钴蓝加朱红、雪夜小屋、红房子雪夜、桃粉色的雪、雪点、黑白大眼睛、点点眼、圆腮红、三角鼻子、羽状松树、遛狗、雪夜遛狗、喂鸭子、黄昏池塘、码头),或 "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" 时使用;也用于需要逐步画出(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 海报仍用干刷色块。+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 童书页仍用颗粒童书。---# Claude 绘图@@ -95,6 +95,7 @@ description: Claude 绘图 / Claude Drawing —— 不借助任何生图模型| 手账线描 · Sketchbook Doodle | `lib/sketchbook.py` · `Sketchbook` | `examples/sketchbook_reading_hour.py` 读书的午后 · The Reading Hour(1600×1600 的速写本一页,大片暖米白纸空着,画都在下半部:一个女孩坐在小木凳上读书,双手把书举在胸前,低着头、闭着眼,读得入了神;中分的黑色长发一根根垂过肩膀,一侧别着一朵橙色小雏菊发夹;彩虹条纹毛衣(红、黄、青绿、橙、品红、蓝,条与条之间留着纸白,袖子上的条纹绕着胳膊转,有的冲出墨线、有的够不到),红色罗纹领口、芥末黄袖口;书是青绿色封面,上面画着一个小太阳,手指搭在封面边上,书拿得有点歪;蓝色百褶裙,白袜子、红鞋,一只脚垂得高一点、两只脚尖朝里;她的灰色虎斑猫在旁边地上团成一团睡着,旁边一杯冒热气的马克杯,热气一直卷到空白的纸上;另一边一盆植物伸出几片叶子(一片只用墨线画出人字形叶脉、一片蓝色的叶脉留白)和一个红花苞;右上方飘下一片黄叶;不画地面和背景;照速写本插画的顺序:空纸 → 细墨线线稿(脸、脖子、毛衣和袖子、书和手指、裙子、腿、鞋、后面的凳子)→ 一根根的头发 → 彩铅 / 马克笔的条纹 → 其他颜色(裙子、领口袖口、书皮、鞋、凳子)→ 猫 → 植物 → 马克杯和热气 → 脸(闭眼、鼻子、腮红、小嘴)→ 飘落的叶子和一个小涂鸦;`--stages` 出 9 个阶段加成品);`examples/sketchbook_kite_day.py` 放风筝 · Kite Day(1920×1080 的宽页,给讲解片用:一个穿条纹上衣、芥末黄短裤的小男孩站在空白页的左边,一只胳膊举着线轴,仰着头冲他的风筝笑;风筝飞在右上方,是红、黄、青绿、蓝四块的菱形,拖着一条挂着小蝴蝶结的长尾巴,一根发丝细的风筝线横穿整页;他身后两棵红线和绿线画的细树(绿的那棵点着粉色花苞),右边远处一棵小黄树,几丛草,两片叶子被风吹着走,两道轻轻的风;`--stages` 出 8 个阶段加成品) | 约 2.4 秒 / 约 1.4 秒 || 日系扁平小插画 · 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 秒 |各画风共用 `lib/core.py` 里的底层工具:噪声、模糊、样条曲线、多边形遮罩、有机轮廓 `blob_pts`、毛笔 `bristle_stroke`、中文字体查找;新四种还用到补零平移 `shift`、文字遮罩 `text_mask`、西文字体查找 `latin_font`/`load_font`,以及高度图打光 `height_normals`、`height_shadow`(沿光线步进的投影)、`ambient_occlusion`。@@ -179,7 +180,8 @@ description: Claude 绘图 / Claude Drawing —— 不借助任何生图模型- 一个人的小像或半身像(街上的路人、冬天捧着热饮的人、戴帽子的姑娘、「一个人在做一件小事」),人设卡、头像和小红书封面,要一眼就是「手画的油画棒 / 蜡笔干刷」——白纸上不画背景,颜色收得紧而浓(藏红花黄、藏青、黑、一种冷蓝,橙色腮红、橙红嘴唇),大块颜色用粗笔一道道铺满、露着纸纹白点,笔触收尾干而硬,黑色蜡笔只点在眼睛和几处轮廓,脸简化、略歪、有表情,讲解片里「这个人 / 用户画像 / 一个普通人的一刻」的页 → 油画棒肖像(要柔和粉粉、揉开的色粉加一个小动物用色粉小像;要米白纸上几大块色、背后一块滚筒色板的 mid-century 海报用干刷色块;要背后刷一块单色、看得见毛衣针脚的复古童书大头像用复古水粉;要小孩画的蜡笔画用儿童蜡笔画;要梵高式的厚涂漩涡用油画厚涂);- 一个小人物的小日常(读书、喝茶、浇花、撸猫、放风筝,「一个人慢慢地做一件小事」),手账、日记和读书笔记的配图,小红书封面和头像,讲解片里「轻松的小场景 / 生活方式 / 慢下来」的页,要一眼就是「手账风 / 速写本里的小画」——大片空着的暖米白纸,发丝细、略抖、不闭合的墨线,一根根分开的头发,彩铅马克笔涂的彩虹条纹衣服,圆圆的粉腮红、闭着的眼睛和小红嘴,道具只有两三件(单片叶子、小花、细线小树、一缕热气、团着睡觉的猫) → 手账线描(要橡木桌上的速写小卡、针管笔加松散淡彩、搞笑的街坊用钢笔淡彩;要满画面彩铅叠涂、天空和场景俱全的温暖童书页用暖调彩铅绘本;要软蓝限色、乱线墨线的绘本跨页用蓝调绘本;要白纸上粗笔干刷的人物小像用油画棒肖像;要软色粉揉开、大圆眼的角色小像用色粉小像;要小孩画的蜡笔画用儿童蜡笔画;要草稿纸上的圆珠笔涂鸦用圆珠笔涂鸦);- 几件日常小事排在一张白纸上(喝一杯热的、下雨天出门、煮汤、喂猫、看书、午睡、骑车、做饭),杂志 / 书籍内页和专栏的小插图(spot illustration),生活方式和「一天里的几个瞬间」,讲解片里「几个使用场景 / 一组小习惯 / 生活的几个片段」的页,要一眼就是「日系扁平小插画」——几幅小画散在白纸上、不画地面和背景,每块颜色都是平涂的不透明色块,边缘略不规整,颜色克制(藏青、灰蓝和粉蓝、芥末黄、橄榄绿和墨绿、几种灰、近黑的头发),每幅里只有一个红色的东西,衣褶用白线刻进颜色里,线很少,脸几乎空白(一点眼、一道侧脸线) → 日系扁平小插画(要分层几何色块、层间投影的风景和夜景用扁平矢量;要发丝细的墨线加彩铅条纹、一个小人物占一页用手账线描;要针管笔线稿加淡彩、搞笑的街坊速写小卡用钢笔淡彩;要米白纸上几大块干刷色、背后一块色板的 mid-century 海报用干刷色块;要白纸上粗笔干刷的人物小像用油画棒肖像;要产品发布片的界面页用粉彩界面);-- 温暖、甜、像翻开一本 mid-century 童书的一页:一个小孩和一只小动物的一件小事(牵着小狗回家、喂鸭子、捧一杯热的、雪地里走一走),冬夜和黄昏、下雪的小镇、亮灯的小屋、池塘和松林,童书封面和内页、贺卡和海报、小红书封面,讲解片里「温暖的一幕 / 回家 / 小小的日常」的满幅画面,要一眼就是「颗粒质感的甜美童书插画」——满幅不留白,颜色少而饱和(钴蓝 / 群青、朱红、橙、松绿、奶油色、桃粉色的雪),大块平涂的形状用干的粉笔颗粒笔刷铺出来,碎边和细沙颗粒,没有描线,脸是黑白大圆眼或点点眼加圆腮红 → 颗粒童书(要软蓝限色、乱线墨线的绘本跨页用蓝调绘本;要白纸上不画背景、油画棒干刷的人物小像用油画棒肖像;要单人大头像、看得见毛衣针脚用复古水粉;要粉彩黄昏转入星空、满坡野花用暮色微缩绘本;要满画面彩铅叠涂的暖光童书页用暖调彩铅绘本;要白纸上散着几幅平涂小画用日系扁平小插画;要米白纸上几大块干刷色的 mid-century 海报用干刷色块)。+- 温暖、甜、像翻开一本 mid-century 童书的一页:一个小孩和一只小动物的一件小事(牵着小狗回家、喂鸭子、捧一杯热的、雪地里走一走),冬夜和黄昏、下雪的小镇、亮灯的小屋、池塘和松林,童书封面和内页、贺卡和海报、小红书封面,讲解片里「温暖的一幕 / 回家 / 小小的日常」的满幅画面,要一眼就是「颗粒质感的甜美童书插画」——满幅不留白,颜色少而饱和(钴蓝 / 群青、朱红、橙、松绿、奶油色、桃粉色的雪),大块平涂的形状用干的粉笔颗粒笔刷铺出来,碎边和细沙颗粒,没有描线,脸是黑白大圆眼或点点眼加圆腮红 → 颗粒童书(要软蓝限色、乱线墨线的绘本跨页用蓝调绘本;要白纸上不画背景、油画棒干刷的人物小像用油画棒肖像;要单人大头像、看得见毛衣针脚用复古水粉;要粉彩黄昏转入星空、满坡野花用暮色微缩绘本;要满画面彩铅叠涂的暖光童书页用暖调彩铅绘本;要白纸上散着几幅平涂小画用日系扁平小插画;要米白纸上几大块干刷色的 mid-century 海报用干刷色块);+- 安静、辽阔、梦幻、带一点孤独的「一个人走在很大的风景里」:手机和电脑壁纸、锁屏、歌单和播客封面、冥想 / 助眠 / 治愈类内容的主视觉,讲解片里「远方 / 出发 / 慢下来 / 一个人」的空镜和章节页,要一眼就是「极简梦幻的草丘壁纸」——巨大柔软的山丘盖着顺坡流动的天鹅绒草毛,每座山是一片发光的超现实色场(薰衣草和杏色、藏红花黄、夜里的焦橙和藏青、草绿),干净的深蓝天占一大半,一团积云或者银河和彗星,山脊上一个几十像素高的小人 → 柔光草丘(要赛璐璐平涂、硬边积雨云的夏日背景美术用日本动漫;要湿晕染的风景用水彩;要梵高式厚涂用油画厚涂;要糖果色 3D 小球和软字用柔光 3D;要粉彩黄昏转入星空、拼布山丘和满坡小野花加原创小角色用暮色微缩绘本;要满画面短笔触、只有一处暖光的夜景小版画用排线夜景;要平涂色块加粉笔颗粒的童书页用颗粒童书)。每种画风一幅范例作为质量基准(范例都不用禅意主题);水墨另加一幅「月印万川」(留白托月、水面倒影)。@@ -1434,6 +1436,21 @@ from core import spline, curve, blob_pts, fbm1d, blur, polygon_mask- 颜色用 `PAINTS` 里的名字(paper cream white cream_dark;navy cobalt_deep cobalt cobalt_bright ultramarine sky_pale dusty dusty_light dusty_dark teal ice;vermilion tomato red_deep brick orange orange_light apricot;pine pine_mid green moss olive sage;mustard window lamp gold;snow snow_light snow_shade snow_blue;skin skin_shade cheek nose lip;hair black ink brown brown_light wood wood_dark kraft coffee shadow shadow_blue)或 '#rrggbb'。- 雪夜遛狗把所有位置收在 `LAYOUTS` 里,同一个 `scene()` 画竖页(`--layout page`,1600×2000)或 16:9(`--layout wide`,1920×1080);飘雪 `avoid=` 小孩的脸,雪点不落在眼睛上。+**柔光草丘 `DreamHills`**:+- 思路:照 Midjourney 上那类「极简梦幻草丘壁纸」的做法:一张 1:2 竖幅,天占一大半,下面几座巨大的山从远到近一座座铺(远的短草、加雾,近的长草),每座山先铺一层发光的色场,再盖几万根顺坡的草叶笔触;山脊上放一个很小的人,最后是底边的高草带和野花、泛光和胶片颗粒。+ - 山:`ridge(pts)` 是一条过几个控制点的 Catmull-Rom 山脊,按列采样(`.y`、坡度 `.dy`、`.at(x)`);`hill(ridge, front=[更近的山脊])` 从后往前画,靠 `front` 知道自己在哪里被挡住(挡住的地方不画、不长草)、谷在哪里。+ - 光:每个像素一个伪法线——山脊上是轮廓的外法线(在画面内),往下沿 1 − exp(−d / `foot`) 转向观者,同时保留这座山朝哪一边(用在坡面上平滑过的山脊斜率,圆丘的左半边一路朝左);`swell` 再用一张按 (x, 到山脊的距离) 铺的噪声高度场把法线掰弯,等高线和山脊平行,就是顺着每座山走的柔和明暗带。两盏光:主光 `key_dir`(x 右、y 上、z 朝观者,z 为负是逆光)加包裹的漫反射,天光随法线朝上而增强;坡顶向光一侧一道边缘光;每道更近的山脊上方是谷底遮挡,先挡主光(ao²)、天光少挡,所以谷里不只变暗、还变冷。光照总量经 1 − exp(−E × `expo`) 成为明度,颜色取调色板 `warm` 色带在这个明度上的颜色,再按天光所占的比例(smoothstep,夜里收得很窄)混向 `cool` 色带——这两条色带就是发光的超现实色场:薰衣草 / 杏色、藏红花 / 粉、焦橙 / 藏青。+ - 草毛:先铺一层比草暗一点的底色(上边缘从山脊往下缩一点),再盖笔触:方向在山脊上是轮廓法线(毛边立在天空前),往下转向竖直,加风向和慢慢转的涡旋;每根草用自己的法线打光(表面法线按调色板的 `jitter` 抖一下,所以同一片草暖冷相间),根部主光被挡一半(暗、冷),尖端往主光那边偏一点。笔触不是用 Pillow 一根根画的,是「撒点」:沿每根草(宽于 1 px 时也横着)取样点,双线性权重,`np.bincount` 累加成覆盖率和颜色和;按根部的 y 排序(再抖动约一根草长,不然分块会成横条纹),一块块从山后往山前合成,近处的草压在远处的上面。+ - 天:`sky()` 多段竖直渐变(线性光里混,轻微游走)加可选的太阳光晕;`cloud()` 积云:团块排在一个穹顶的正面,穹顶高度沿 x 起伏成一两个圆头,底部一排重叠的大团块撑起整体,大的在下、小的在上,再从上半部冒出小团块(只在贴着主体的地方,不会悬空);每个像素取最高的那个球,高度场轻微模糊并限制斜率(团块互相融开,前后遮挡处是软的而不是一道深折痕),主光包裹漫反射、缝隙变暗、下半部偏冷;覆盖率取每个团块自己软边圆盘的并集,底部切平。`stars()` 幂律亮度的星,最亮几颗有四芒星芒;`milky_way()` 一条弯的云状光带,中间更亮、带一道暗裂和星尘;`comet()` 带星芒的亮头加一条变宽、由细颗粒条纹组成的尾巴。+ - 收尾:`finish()` 只记参数、在 render 里加(每张阶段快照都和成品一致,要在画第一笔之前调用):极轻的柔化、最亮处的泛光、按亮度加权的细胶片颗粒和一点彩色颗粒(顺便给天空抖动,渐变不会出色带)。+- 构造:`DreamHills(W, H, seed, palette='lilac', keep_stages=True, stages_dir=None)`,`palette` 取 'meadow' 'lilac' 'saffron' 'ember' 或照 `PALETTES` 格式的 dict(天空色标、`key_dir`、`warm` / `cool` 两条色带、边缘光、雾、云的亮暗色、前景草、花、小人衣服、各项权重);先 `finish()` 再画。坐标是画面像素,y 向下;`k` = min(W, H) / 1000。画布一开始是暖灰的空白(动图的第一帧)。+- 天:`sky(stops, sun_xy, glow, glow_r, glow_strength, wander)`;`cloud(cx, base, w, h, seed, n, detail, light, lit, shade, warm, warm_k, alpha, wisp, flat, towers)`(`base` 是平的云底,`h` 是底上的高度,`light` 是光的方向,`warm` 给向阳面上暖色);`stars(n, y0, y1, x0, x1, size, bright, spikes, colour, fade, seed)`(`fade=(y_a, y_b)` 往地平线变稀);`sparkle(x, y, size, colour, strength, angle)`;`milky_way(p0, p1, width, bend, strength, colour, warm, rift, stars, seed)`;`comet(x, y, angle, length, width, colour, head, strength, spread, seed)`(角度 0° 向右、90° 向下,是尾巴的方向)。+- 山:`ridge(pts)` 返回 `Ridge`;`hill(ridge, front, foot, blade, density, warm, cool, haze, swell, swell_scale, rim, rim_w, trough, trough_w, wind, flow, lean, seed, jitter, tip, root, base_dark, fur)`——`blade` 草长(px,远山 3–6、近山 10–18),`foot` 法线转向观者的距离,`swell` / `swell_scale=(沿山脊, 往下)` 明暗带,`rim` 坡顶边缘光,`trough` 谷底遮挡,`wind` 草往哪边倒(度),`flow` 涡旋,`lean` 坡顶毛边跟轮廓法线的程度,`warm` / `cool` 可单独给这座山换色带。+- 其他:`trees(ridge, xs, h, colour, light, haze, kind, seed)`(远山上的小树,'round' / 'tall');`foreground(top, bottom, density, blade, colour, tip, flowers, flower_colours, flower_size, wind, blur_px, seed, curve)`(底边的高草带:根暗、尖逆光,越高越亮,花开在最高的草尖上,整条带轻微虚焦);`walker(x, y, h, facing, shirt, trousers, skin, hair, stride, rim, shadow, grass, bag, lamp, lamp_glow)`(脚在 (x, y)、高 h px,8 倍超采样画头、头发、衣服、迈步的腿、摆动的手臂再缩小,向光一侧一道边缘光,草上一片软影子,`grass=颜色` 在脚前补几根草,`lamp=颜色` 手里提一盏发光的小灯、照暖周围的草)。+- 输出:`render()`、`composite()`、`stage(name)`、`save(path, stages_dir)`;`save('x.jpg')` 默认 quality 92、4:4:4 色度。+- 颜色用 `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)。+**顺序**:都是先远后近、先大后小,文字最后叠加。水墨的雾要画在它该吞没的东西之后;水彩的叶梗要先画,并且只画在叶子外面。## 三、毛病清单(都真实出现过)@@ -2781,6 +2798,27 @@ from core import spline, curve, blob_pts, fbm1d, blur, polygon_mask| 颜色比参考图灰(平均色度 87 / 78,参考图 72–134) | 钴蓝、朱红、橙、桃粉色的雪都往参考图实测的颜色推,平均色度到约 100 || 远处山脊上的小冷杉只有几个像素高,看不出来 | 竖页 70 → 95 px,宽页 46 → 66 px |+**柔光草丘**++| 问题 | 改法 |+|---|---|+| 草毛满是一道道横条纹 | 笔触按根部 y 排序后分块合成,每块的草尖连成一条亮线;排序键加 ±1.2 根草长的抖动,分块不再是笔直的行 |+| 暖的主光和冷的天光在 RGB 里直接相加,整座山成了一片发灰的藕粉色 | 改成两条色带:光照只算明度,颜色取 `warm` 色带,再按天光的占比混向 `cool` 色带 |+| 曝光太高,明度全挤在色带顶端,山丘白得发虚 | `expo` 1.45 → 0.62(薰衣草)/ 0.6(焦橙);明度大多落在 0.3–0.75 |+| 大山的整片坡面一个颜色,看不出朝哪边 | 法线的侧向分量原来往下一个 `foot` 就消失了;改成保留坡面平滑后的山脊斜率,圆丘的左半边一路朝左 |+| 明暗带的高度场按整数距离取值,山坡上一道道竖着的细纹 | 在距离方向上线性插值 |+| 谷底只是变暗,仍是同一种橙色,看不出山和山之间隔着空气 | 谷底遮挡先挡主光(ao²)、天光只挡一次,谷里变冷(夜里泛藏青,破晓泛丁香紫) |+| 夜里阴影那一侧撒满橙色的草,明暗分界糊成一片 | 每根草的法线抖动太大,又碰上收得很窄的暖冷分界;`jitter` 改成按调色板给(薰衣草 0.24,焦橙 0.07),草尖往主光偏 0.3 → 0.1 |+| 夜里的山像白天:所有正面一样亮 | 主光从正面改成从侧后方掠过(−0.85, 0.38, −0.05),朝左的坡亮、正面和右边沉进藏青 |+| 积云是一排球摞起来的棉花团,中间几道竖缝 | 团块排在一个有一两个圆头的穹顶正面,底部一排重叠的大团块撑住,上半部冒小团块;用模糊过的高度场算法线 |+| 积云上一道道深色细折痕 | 前面团块自己的软边让天空从它边上透出来;覆盖率改成所有团块软边圆盘的并集,高度场斜率限制在 2.2 |+| 小云上方飘着几个离开主体的小球 | 小团块只放在贴着主体的地方(离最近的大团块边缘不超过 0.2 个自身半径) |+| 提灯的人周围有一个方形的亮框 | 光晕在补丁边缘前用 smoothstep 收到 0 |+| 夜空几乎看不到星星 | 星的亮度低了约 10 倍(0.06 → 0.5),银河星尘 0.02 → 0.28 |+| 前景的草又细又透,像一把稻草,花只是几个色点 | 草宽 2.6–6 px × k、不透明度增益 1.6,颜色只在草尖那一段变亮(`tpow` 2.2),越高的草越亮;花 13 px × k、开在最高的草尖上 |+| 正午远处一大片加了蓝雾的山,成了灰粉色 | 藏红花的雾改成暖白,中间补一座中景山 |+| 小人迈步太小,看起来是站着 | `stride` 0.5 → 0.9 |+## 四、做成动画- 各画风都有 `stage(name)` 和 `save(path, stages_dir)`,按阶段依次淡入叠化,就是「一幅画被逐步画出来」。README 里的动图就是这样做的。@@ -2905,6 +2943,12 @@ from core import spline, curve, blob_pts, fbm1d, blur, polygon_mask- 调色板:第一帧是空的奶油色页,只给 8 色;228 色只从和它不同的像素里切(末帧 ×3、饱和色 ×3——朱红、橙、钴蓝、芥末黄、几种绿,暗色 ×2——藏青、松绿、头发);再强制放 15 个颜料色,剩下 4 色从末帧误差超过 12 级的像素里切;最后 1 色是纯品红,当「和上一帧相同」的透明占位色。- 固定 4×4 Bayer(约 ±2.4 级),末帧不加抖动、精确发送;和屏上已显示颜色差不到 5 级(叠化帧)或 3 级(关键帧)的像素沿用上一帧。- 结果:两张都是 40 帧、13.40 秒;雪夜遛狗 1.10 MB、喂鸭子 0.95 MB(满幅的颗粒让每次叠化几乎每个像素都在变,所以比留白多的画风大),按解码结果逐帧自检(和应显示的画面最大差 0),末帧误差中位数 2、p99 26 / 24。+- 柔光草丘的动图(脚本在 `workspace_projects/arte9/work/make_gif_dreamhills.py`,三张共用):+ - 范例是 1200×2400 的 1:2 竖版壁纸,不硬塞进 16:9、也不裁:范例有 `--layout wide`,把同一幅画(同样的天、云或夜空、几座山、小人和前景草带)按 16:9 重新摆成 1920×1080,动图用这一版的阶段,缩成 720×405(LANCZOS)。墙上一行三张:破晓、星夜,再加只在动图里出现的 `--preset noon` 正午,凑满一行、不留空格。+ - 阶段:空白画布 → 天空渐变 → 云(夜里是星、银河和彗星)→ 从远到近每一座山(小人和他那座山一起出现)→ 成品(前景草带和野花)。每段 900 毫秒加 5 帧叠化,末帧停 2600 毫秒;叠化一片片铺上去。+ - 调色板:第一帧是暖灰的空白画布,只给 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。- 绘本角色动画的动图是真动画,不是阶段叠化:`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 遮罩按顺序显现。这个还没做成现成接口。@@ -2994,6 +3038,7 @@ lib/oilpastel.py 油画棒肖像(直方图均衡的白纸纸纹、沿 8lib/sketchbook.py 手账线描(暖米白纸:直方图均衡的细纸纹、极淡的斑驳和纤维、一张可平铺的道子纹理;墨线:样条加慢手抖和快颤、起笔细收笔挑尖、粗细和墨色慢慢变、偶尔抬笔断开,按粗细和深浅不变切段、在 4 倍超采样图层里画,纸坑里断一点,正片叠底;一到三笔、接口留缺口或搭过头的轮廓;沿笔方向的 (u, s) 坐标里的彩铅 / 马克笔:长道子、顺笔细颗粒、挂纸纹或平铺、可选排线,颜色正片叠底;按角度、弯度或中心线排的彩虹条纹,每条自己的颜色、宽度、倾斜、颗粒、压力、两条游移的边和自己的出界阈值;圆粉腮红、圆点、闭眼弧线和睫毛、小红嘴;在导线之间插出、和相邻的线同相起伏、发梢收尖的一绺发丝;带人字叶脉或留白叶脉的单片叶子、螺旋 / 雏菊 / 郁金香小花、细线树、带卷的热气、短毛刺、小涂鸦;渲染时的纸面颗粒和极轻的柔化)lib/spotillo.py 日系扁平小插画(按弧长重采样、沿法向推周期起伏的手剪边,3 倍超采样的包围盒小块光栅化、细噪声取阈值的毛边,不透明平涂,clip / avoid;按中尺度噪声断续的白缝;两头收尖的细线、按底色自动选白或深一号的衣褶线;按头高给关节的姿势预设(站、走、坐、蹲、伸手)、整个人转角度、hooks 插道具的人:粗管袖子和裤腿、在自己坐标系里搭的宽松上衣、白纸脸加侧脸线和点眼、鼓包头发刻白发丝、指头鼓包和红指缝的手、球鞋 / 袜子脚、帽子;马克杯、碗、锅、托特包、伞、自行车、长椅、椅子、扶手椅、沙发、小凳、桌子、橱柜、盆栽、书、猫、窗;热气、惊讶线、z、雨、运动短线、影子;渲染时的斑驳、细颗粒、发白小点、纸纹和极轻的柔化)lib/grainbook.py 颗粒童书(每页一次的纸齿 / 颗粒 / 中尺度 / 大斑驳 / 斑点纹理;按 7.5° 用到才生成、存成 uint8 大方块、随机偏移读取的条纹纹理;包围盒大小的 Region 遮罩与并、交、差;一次干颗粒填色:顺笔毛边、碎边深一圈、往边上掉的压力和跳色、亮暗条纹调色、细颗粒和大斑驳,涂色 / 正片叠底 / 滤色;分层天空和干扫过渡、斑块、干笔擦扫、投影、光圈;干笔、蜡笔点睛线、颗粒小点;黑白大眼、点点眼、腮红、鼻、嘴、眉,四种发型、毛线帽,站 / 走 / 坐的小孩;小屋、羽状松、远处冷杉、圆树、灌木、松枝丛、杯子、纸盒、纸袋、盆栽、芦苇、草丛、路灯、小狗、鸭子、栅栏;雪、星、月牙、炊烟、热气、涟漪、脚印;渲染时的颗粒、深浅斑点和极轻柔化)+lib/dreamhills.py 柔光草丘(四套暖冷两条色带的调色板;多段线性光天空渐变和太阳光晕;穹顶上排团块、底部撑起、上部冒小团块、取最高球面、平滑并限斜率的高度场打光、团块软边并集覆盖的积云;幂律亮度的星和四芒星芒、银河、彗星;Catmull-Rom 山脊和前后遮挡;从轮廓法线转向观者、保留朝向、按山脊铺的噪声明暗带的伪法线;包裹主光、天光、坡顶边缘光、先挡主光的谷底遮挡、指数色调曲线、暖冷色带混合、雾;按根部排序抖动分块、沿草长和横向取样、双线性 bincount 撒点的几万根草毛笔触,每根草自己的法线、暗冷的根和偏向主光的尖;远山小树;前景高草带和五瓣野花;8 倍超采样的走路小人、边缘光、影子、脚前的草和发光的小灯;渲染时的柔化、泛光和胶片颗粒)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/examples/drawing_dreamhills_long_walk.gif b/examples/drawing_dreamhills_long_walk.gifnew file mode 100644index 0000000..ae59592Binary files /dev/null and b/examples/drawing_dreamhills_long_walk.gif differdiff --git a/examples/drawing_dreamhills_long_walk_night.gif b/examples/drawing_dreamhills_long_walk_night.gifnew file mode 100644index 0000000..1646e28Binary files /dev/null and b/examples/drawing_dreamhills_long_walk_night.gif differdiff --git a/examples/drawing_dreamhills_long_walk_noon.gif b/examples/drawing_dreamhills_long_walk_noon.gifnew file mode 100644index 0000000..9d09e27Binary files /dev/null and b/examples/drawing_dreamhills_long_walk_noon.gif differdiff --git a/examples/dreamhills_long_walk.jpg b/examples/dreamhills_long_walk.jpgnew file mode 100644index 0000000..216a226Binary files /dev/null and b/examples/dreamhills_long_walk.jpg differdiff --git a/examples/dreamhills_long_walk.py b/examples/dreamhills_long_walk.pynew file mode 100644index 0000000..7561578--- /dev/null+++ b/examples/dreamhills_long_walk.py@@ -0,0 +1,182 @@+"""Example (dreamy hills): 走过草丘 · The Long Walk -- one person walking over giant furred hills, three times of day.++A tall (1:2) phone wallpaper of huge, soft, rolling hills covered in a velvety fur of fine grass strokes, each hill a+luminous colour field, a clean deep sky over half the frame, a band of tall grass and wildflowers along the bottom,+and one walker a few dozen pixels tall on a far crest.+ --preset dawn lavender and apricot: a low sun behind the right-hand hills warms every crest it reaches and the+ rest of the grass is lit lilac by the sky; a sculpted cumulus lit apricot on its sunward side, a+ small one lower down, a line of little trees on the farthest ridge; white and blue flowers.+ --preset night burnt orange under a deep blue night: the hills lit from the left by a light out of frame,+ falling into blue shade on the other side; a milky way across the sky, a comet and a field of+ stars; the walker carries a small lantern on the top of the tallest hill.+ --preset noon saffron: glowing yellow swells under a pale blue noon sky with a low bank of cumulus; the walker+ comes down a shoulder of the hill; blue cornflowers along the bottom.+--layout page (1200 x 2400, the wallpaper) or wide (1920 x 1080: the same picture laid out 16:9, for the draw-on+GIF and for video); --stages writes a snapshot after each step (the blank canvas, the sky, the clouds or the night+sky, every hill from the back -- the walker with his hill -- then the foreground in the final). No image model.+python3 dreamhills_long_walk.py [out.jpg] [--preset dawn|night|noon] [--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 dreamhills import DreamHills++# Every composition: palette and seed; sky stops, sun glow; clouds [(cx, base, w, h, seed, kwargs)] or the night sky;+# hills back to front [(ridge control points, hill kwargs)]; trees (hill index, xs, h); the walker (hill index, x,+# h, kwargs); the foreground band (top, kwargs).+DAWN_LIGHT = (0.75, 0.35, 0.5)+NOON_LIGHT = (0.35, 0.8, 0.45)+SCENES = {+ ('dawn', 'page'): dict(+ size=(1200, 2400), palette='lilac', seed=5,+ sky=dict(stops=[(0.0, '#2a66c4'), (0.25, '#4f8ddc'), (0.42, '#93b0ee'), (0.5, '#c8bff2'), (0.56, '#f4c6c0')],+ sun_xy=(980, 1290), glow='#ffd2a8', glow_r=0.32, glow_strength=0.45),+ clouds=[(690, 760, 680, 400, 4, dict(light=DAWN_LIGHT, warm='#ffc6a0', warm_k=0.55)),+ (230, 1010, 280, 120, 9, dict(n=22, detail=16, towers=1, light=DAWN_LIGHT, warm='#ffc6a0', warm_k=0.5))],+ hills=[([(-60, 1268), (300, 1250), (640, 1272), (980, 1238), (1260, 1262)],+ dict(blade=3.5, foot=60, haze=0.5, swell_scale=(220, 30), rim=0.6)),+ ([(-60, 1360), (200, 1318), (520, 1380), (900, 1400), (1260, 1352)],+ dict(blade=5.5, foot=110, haze=0.28, swell_scale=(260, 50))),+ ([(-60, 1760), (250, 1600), (560, 1470), (820, 1420), (1050, 1460), (1260, 1530)],+ dict(blade=11, foot=300, haze=0.05, swell=0.55, swell_scale=(560, 120), rim=1.3)),+ ([(-60, 1930), (300, 1990), (700, 2060), (1000, 2010), (1260, 1940)],+ dict(blade=18, foot=260, swell=0.7, swell_scale=(420, 120)))],+ trees=(0, [600, 628, 760, 776, 800, 822, 990, 1016, 1120], 28, dict(haze=0.42)),+ walker=(2, 760, 34, dict(facing=1, grass='#e8c0b4')),+ foreground=(2190, dict(flowers=70))),+ ('night', 'page'): dict(+ size=(1200, 2400), palette='ember', seed=8, bloom=0.4,+ sky=dict(stops=[(0.0, '#040c2e'), (0.3, '#0a2160'), (0.55, '#163c86'), (0.62, '#2a5aa6')]),+ night=dict(stars=(4000, 0, 1500, (1100, 1450)), milky=((1180, 120), (80, 1380), 120, -120),+ comet=(880, 820, -128, 380)),+ hills=[([(-60, 1420), (300, 1395), (640, 1430), (1000, 1380), (1260, 1400)],+ dict(blade=4, foot=70, haze=0.35, swell_scale=(240, 40), rim=0.6)),+ ([(-60, 1560), (260, 1470), (560, 1350), (760, 1320), (980, 1400), (1260, 1560)],+ dict(blade=10, foot=330, swell=0.35, swell_scale=(520, 120), rim=1.4)),+ ([(-60, 1820), (350, 1760), (800, 1850), (1260, 1720)],+ dict(blade=14, foot=260, swell=0.45, swell_scale=(480, 120), rim=1.2)),+ ([(-60, 2060), (400, 2010), (900, 2090), (1260, 2040)],+ dict(blade=18, foot=260, swell=0.45, swell_scale=(480, 120)))],+ walker=(1, 700, 34, dict(facing=-1, shirt='shirt_white', lamp='#ff9a30', grass='#d07a3a')),+ foreground=(2200, dict(flowers=40))),+ ('noon', 'page'): dict(+ size=(1200, 2400), palette='saffron', seed=12,+ sky=dict(stops=[(0.0, '#4f92ea'), (0.3, '#78aef4'), (0.5, '#a9cbf8'), (0.56, '#cfe0fa')]),+ clouds=[(930, 1170, 520, 260, 21, dict(light=NOON_LIGHT)),+ (1160, 1175, 300, 150, 22, dict(n=30, detail=30, towers=1, light=NOON_LIGHT)),+ (560, 1185, 260, 110, 23, dict(n=22, detail=16, towers=1, light=NOON_LIGHT))],+ hills=[([(-60, 1250), (400, 1232), (800, 1258), (1260, 1236)],+ dict(blade=3.5, foot=60, haze=0.45, swell_scale=(220, 30), rim=0.6)),+ ([(-60, 1400), (500, 1360), (900, 1300), (1260, 1330)],+ dict(blade=6, foot=110, haze=0.22, swell_scale=(300, 50))),+ ([(-60, 1240), (150, 1170), (380, 1160), (640, 1260), (950, 1420), (1260, 1500)],+ dict(blade=10, foot=320, haze=0.03, swell=0.5, swell_scale=(520, 120), rim=1.3)),+ ([(-60, 1820), (300, 1700), (700, 1600), (980, 1560), (1260, 1600)],+ dict(blade=13, foot=280, swell=0.5, swell_scale=(480, 120), rim=1.2)),+ ([(-60, 1990), (400, 2050), (800, 2000), (1260, 2060)],+ dict(blade=18, foot=260, swell=0.5, swell_scale=(480, 120)))],+ walker=(3, 900, 34, dict(facing=-1, grass='#ffc840')),+ foreground=(2150, dict(flowers=150, flower_colours=['cornflower_blue', 'cornflower_blue', 'flower_white']))),+ # ---- the same three pictures laid out 16:9 (the draw-on GIFs, video)+ ('dawn', 'wide'): dict(+ size=(1920, 1080), palette='lilac', seed=5,+ sky=dict(stops=[(0.0, '#3270c8'), (0.3, '#5f98e0'), (0.46, '#a6b6f0'), (0.55, '#d0c2f2'), (0.6, '#f4c6c0')],+ sun_xy=(1600, 600), glow='#ffd2a8', glow_r=0.3, glow_strength=0.45),+ clouds=[(1180, 330, 600, 290, 4, dict(light=DAWN_LIGHT, warm='#ffc6a0', warm_k=0.55)),+ (420, 440, 240, 90, 9, dict(n=22, detail=16, towers=1, light=DAWN_LIGHT, warm='#ffc6a0', warm_k=0.5))],+ hills=[([(-60, 600), (500, 586), (1000, 606), (1500, 576), (1980, 596)],+ dict(blade=3.5, foot=50, haze=0.5, swell_scale=(260, 26), rim=0.6)),+ ([(-60, 660), (400, 632), (900, 676), (1450, 690), (1980, 650)],+ dict(blade=5.5, foot=90, haze=0.28, swell_scale=(300, 40))),+ ([(-60, 900), (400, 790), (800, 712), (1150, 688), (1500, 716), (1980, 800)],+ dict(blade=10, foot=220, haze=0.05, swell=0.55, swell_scale=(640, 90), rim=1.3)),+ ([(-60, 930), (500, 960), (1100, 1000), (1600, 950), (1980, 910)],+ dict(blade=15, foot=180, swell=0.7, swell_scale=(520, 90)))],+ trees=(0, [930, 958, 1180, 1196, 1222, 1246, 1520, 1548, 1720], 22, dict(haze=0.42)),+ walker=(2, 1150, 32, dict(facing=1, grass='#e8c0b4')),+ foreground=(985, dict(flowers=80))),+ ('night', 'wide'): dict(+ size=(1920, 1080), palette='ember', seed=8, bloom=0.4,+ sky=dict(stops=[(0.0, '#040c2e'), (0.3, '#0b2464'), (0.58, '#183f8a'), (0.66, '#2a5aa6')]),+ night=dict(stars=(3600, 0, 700, (520, 680)), milky=((1880, 40), (260, 680), 100, -90),+ comet=(1420, 330, -150, 280)),+ hills=[([(-60, 660), (500, 645), (1000, 670), (1500, 640), (1980, 655)],+ dict(blade=4, foot=60, haze=0.35, swell_scale=(260, 34), rim=0.6)),+ ([(-60, 860), (350, 780), (700, 640), (930, 572), (1120, 600), (1450, 720), (1980, 800)],+ dict(blade=9, foot=240, swell=0.35, swell_scale=(600, 90), rim=1.4)),+ ([(-60, 860), (600, 820), (1200, 880), (1980, 800)],+ dict(blade=12, foot=200, swell=0.45, swell_scale=(560, 90), rim=1.2)),+ ([(-60, 970), (700, 940), (1400, 990), (1980, 950)],+ dict(blade=16, foot=180, swell=0.45, swell_scale=(560, 90)))],+ walker=(1, 900, 32, dict(facing=-1, shirt='shirt_white', lamp='#ff9a30', grass='#d07a3a')),+ foreground=(1000, dict(flowers=45))),+ ('noon', 'wide'): dict(+ size=(1920, 1080), palette='saffron', seed=12,+ sky=dict(stops=[(0.0, '#5294ea'), (0.35, '#7cb0f4'), (0.55, '#acccf8'), (0.62, '#d0e1fa')]),+ clouds=[(1380, 560, 640, 300, 21, dict(light=NOON_LIGHT)),+ (1800, 566, 360, 170, 22, dict(n=30, detail=30, towers=1, light=NOON_LIGHT)),+ (900, 572, 300, 120, 23, dict(n=22, detail=16, towers=1, light=NOON_LIGHT))],+ hills=[([(-60, 620), (600, 604), (1300, 630), (1980, 610)],+ dict(blade=3.5, foot=50, haze=0.45, swell_scale=(260, 26), rim=0.6)),+ ([(-60, 700), (800, 680), (1400, 650), (1980, 668)],+ dict(blade=5.5, foot=80, haze=0.22, swell_scale=(300, 40))),+ ([(-60, 560), (300, 500), (620, 494), (1000, 600), (1450, 720), (1980, 790)],+ dict(blade=9, foot=240, haze=0.03, swell=0.5, swell_scale=(620, 90), rim=1.3)),+ ([(-60, 900), (500, 820), (1050, 760), (1450, 742), (1980, 780)],+ dict(blade=12, foot=200, swell=0.5, swell_scale=(560, 90), rim=1.2)),+ ([(-60, 960), (600, 1000), (1300, 950), (1980, 1000)],+ dict(blade=16, foot=180, swell=0.5, swell_scale=(560, 90)))],+ walker=(3, 1400, 32, dict(facing=-1, grass='#ffc840')),+ foreground=(975, dict(flowers=170, flower_colours=['cornflower_blue', 'cornflower_blue', 'flower_white']))),+}+++def scene(g, S, stage):+ g.sky(**S['sky'])+ stage('sky')+ for (cx, base, w, h, seed, kw) in S.get('clouds', []):+ g.cloud(cx, base, w, h, seed=seed, **kw)+ if 'night' in S:+ N = S['night']+ n, y0, y1, fade = N['stars']+ g.stars(n, y0, y1, fade=fade, spikes=4, bright=0.6, seed=31)+ p0, p1, wd, bend = N['milky']+ g.milky_way(p0, p1, wd, bend=bend, strength=0.26, stars=9000, seed=32)+ x, y, ang, ln = N['comet']+ g.comet(x, y, ang, ln, strength=0.6, spread=0.16, seed=33)+ stage('stars' if 'night' in S else 'clouds')+ ridges = [g.ridge(pts) for pts, _ in S['hills']]+ wi = S['walker'][0]+ for i, (r, (_, kw)) in enumerate(zip(ridges, S['hills'])):+ g.hill(r, front=ridges[i + 1:], seed=100 + i, **kw)+ if 'trees' in S and S['trees'][0] == i:+ _, xs, th, tkw = S['trees']+ g.trees(r, xs, th, seed=7, **tkw)+ if i == wi:+ _, wx, wh, wkw = S['walker']+ g.walker(wx, r.at(wx) + 2, wh, **wkw)+ stage('walker' if i == wi else f'hill{i}')+ top, fkw = S['foreground']+ g.foreground(top, seed=55, **fkw)+++def main():+ a = sys.argv[1:]+ opt = lambda k, d: a[a.index(k) + 1] if k in a else d+ preset, layout = opt('--preset', 'dawn'), opt('--layout', 'page')+ stages = opt('--stages', None)+ name = 'dreamhills_long_walk' + ('' if preset == 'dawn' else '_' + preset) + ('' if layout == 'page' else '_wide')+ out = a[0] if a and not a[0].startswith('--') else name + '.jpg'+ S = SCENES[(preset, layout)]+ T0 = time.time()+ W, H = S['size']+ g = DreamHills(W, H, seed=S['seed'], palette=S['palette'], keep_stages=bool(stages), stages_dir=stages)+ g.finish(bloom=S.get('bloom', 0.3))+ g.stage('blank')+ scene(g, S, 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/dreamhills_long_walk_night.jpg b/examples/dreamhills_long_walk_night.jpgnew file mode 100644index 0000000..3a67311Binary files /dev/null and b/examples/dreamhills_long_walk_night.jpg differdiff --git a/lib/dreamhills.py b/lib/dreamhills.pynew file mode 100644index 0000000..52e7499--- /dev/null+++ b/lib/dreamhills.py@@ -0,0 +1,1020 @@+"""dreamhills — 柔光草丘 / Dreamy Hills: minimalist dreamy-hills wallpapers -- giant soft hills furred with grass, a+luminous surreal colour field on every swell, a deep clean sky, and one tiny walker (numpy + Pillow only).++The look: a tall (1:2) phone wallpaper. Huge rolling hills fill the lower half, every one of them covered in a+velvety fur made of tens of thousands of fine grass strokes that run along the slope; the colour of a hill is a soft+luminous field -- light catching the crests, pastel rim bands where the swells turn away, cool shadowed troughs where+one hill sinks behind the next -- often in surreal colours (lilac and peach, saffron, burnt orange at night). Above,+a clean, slightly graded deep sky takes a big share of the frame, with a sculpted cumulus built from soft puffs, or+stars, a milky way and a comet at night. A dense band of grass blades and a few wildflowers along the bottom, a fine+film grain over everything, and somewhere on a ridge a person a few pixels tall, walking -- the only sense of scale.++Model+ ridges A hill is its silhouette: a smooth Catmull-Rom ridge through a few control points, sampled per column+ (`Ridge.y`, its slope `Ridge.dy`). Hills are painted back to front; each one is told which ridges lie+ in front of it, so it knows where it disappears (it is not painted, and grows no grass, below them)+ and where its trough is.+ light Every pixel of a hill gets a pseudo surface normal: on the ridge it is the silhouette's outward normal+ (in the picture plane); going down the face it turns toward the viewer (1 - exp(-d / foot), d = px+ below the ridge) while keeping the side the swell faces (from the ridge slope smoothed over the face,+ so a dome's left half faces left all the way down). `swell` bends it with a noise height field laid+ out in (x, d) -- its contours run parallel to the ridge and become the soft bands of light and shade+ that follow each hill. Two lights: a key (`key_dir`, a 3-vector: x right, y up, z toward the viewer;+ negative z is back light) with a wrapped diffuse term, and a sky fill that grows as the normal turns+ up; a crest rim along the ridge on the key side; trough occlusion above every nearer ridge, which+ takes the key away first (ao squared) and the fill less, so troughs cool as well as darken. The light+ goes through 1 - exp(-E * expo) to a value, and the colour is a palette's `warm` ramp at that value,+ mixed toward its `cool` ramp by the share of the sky fill (a smoothstep, sharp for the night) -- that+ pair of ramps is the luminous, surreal colour field: lilac / peach, saffron / pink, ember / navy.+ fur The hill is laid down as a smooth base field (a shade darker than the grass, its top edge eroded a+ little below the ridge) and then covered with tens of thousands of fine, tapered, slightly bent+ strokes. Each stroke's direction is the local flow: the silhouette normal on the crest (so the fringe+ stands out against the sky), turning to the up-vector further down, plus wind and a slow swirl --+ grass combed over the swell. Each stroke is lit with its own normal (the surface normal jittered by+ the palette's `jitter`, so blades on one patch fleck warm and cool), the root with the key half+ blocked (darker, cooler), the tip leaning into the key. Strokes are splatted, not drawn: sample points+ along every blade (and across it when it is wider than a pixel), bilinear weights, `np.bincount` into+ coverage and colour sums; blades are sorted by root (jittered by about a blade, or the chunks would+ stripe) and composited in chunks from the back of the hill to the front, so lower blades lie over+ higher ones.+ sky `sky()` a smooth multi-stop vertical gradient mixed in linear light, wandering a little, with an+ optional sun glow; `cloud()` a cumulus: puffs sit on the front of a dome whose height wanders into+ one or more rounded heads (big puffs low, smaller higher), and small puffs bubble out of its upper+ part (only where they touch the mass); each pixel takes the highest sphere, the height field is+ smoothed a touch and its slope clamped, so puffs melt together and an overlap reads soft, not as a+ crease; lit with a wrapped key, crevice occlusion and a cooler lower part; coverage is the union of+ every puff's own soft disc, the bottom is cut flat. `stars()` power-law brightness, a few with+ four-point spikes; `milky_way()` a bent band of cloudy glow with a brighter core, a dark rift and star+ dust; `comet()` a bright spiked head and a widening tail of fine grainy streaks.+ extras `trees()` small soft trees on a far ridge, hazed like it; `foreground()` the dense band of tall+ blades at the bottom, dark at the root and backlit at the tip (the taller, the brighter), with+ five-petal wildflowers on the tallest stems, a touch out of focus; `walker()` a tiny person drawn at 8x+ and boxed down (head, hair, shirt, trousers in stride, swinging arms), rim-lit on the key side, with a+ soft shadow, a few blades over the feet and, optionally, a glowing lantern.+ finish `finish()` only records the finishing (applied in render, so every stage snapshot matches): a slight+ softening, bloom of the brightest parts, a fine luminance-weighted film grain with a little chroma+ (it also dithers the sky, so the gradient never bands).++API (picture pixel coordinates, y down; angles in degrees, 0 = right, 90 = down; colours are PAINTS names,+ '#rrggbb' or RGB triples; k = min(W, H) / 1000 scales default sizes)+ picture DreamHills(W, H, seed, palette, keep_stages, stages_dir); palette: 'meadow' 'lilac' 'saffron' 'ember'+ or a dict like PALETTES' (sky stops, key_dir, warm / cool ramps, rim, haze, cloud colours, foreground,+ flowers, walker, weights); finish(grain, bloom, soft, chroma) -- before the first mark+ sky sky(stops, sun_xy, glow, glow_r, glow_strength, wander); cloud(cx, base, w, h, seed, n, detail, light,+ lit, shade, warm, warm_k, alpha, wisp, flat, towers); stars(n, y0, y1, x0, x1, size, bright, spikes,+ colour, fade, seed); sparkle(x, y, size, colour, strength, angle); milky_way(p0, p1, width, bend,+ strength, colour, warm, rift, stars, seed); comet(x, y, angle, length, width, colour, head, strength,+ spread, seed)+ hills ridge(pts) -> Ridge (.y, .dy, .at(x), .slope(x)); hill(ridge, front, foot, blade, density, warm, cool,+ haze, swell, swell_scale, rim, rim_w, trough, trough_w, wind, flow, lean, seed, jitter, tip, root,+ base_dark, fur)+ extras trees(ridge, xs, h, colour, light, haze, kind, seed) ('round' / 'tall'); foreground(top, bottom,+ density, blade, colour, tip, flowers, flower_colours, flower_size, wind, blur_px, seed, curve);+ walker(x, y, h, facing, shirt, trousers, skin, hair, stride, rim, shadow, grass, bag, lamp, lamp_glow)+ 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 dreamhills import DreamHills+ g = DreamHills(1200, 2400, seed=3, palette='lilac'); g.finish()+ g.sky()+ far, near = g.ridge([(-50, 1300), (500, 1180), (1250, 1260)]), g.ridge([(-50, 1700), (700, 1520), (1250, 1600)])+ g.hill(far, front=[near], blade=7, haze=0.3)+ g.hill(near, blade=12)+ g.walker(640, near.at(640), 30)+ g.save('hills.jpg')+"""+import io+import os+import numpy as np+from PIL import Image, ImageDraw+from core import blur, noise2d, spline, smoothstep++PAINTS = {+ # skies+ 'navy': '#081a44', 'night': '#0f2b6e', 'midnight': '#132f7c', 'cobalt': '#1f5fbf', 'azure': '#3a86d8',+ 'sky': '#5fa2e6', 'sky_pale': '#a7cdf2', 'cornflower': '#7eb0f2', 'lavender': '#b9b2f0', 'lilac': '#a99cf0',+ 'mist': '#dad6f4', 'peach_sky': '#f6c6b4', 'apricot_sky': '#f8b88c', 'rose_sky': '#eab0c4',+ # grounds+ 'grass': '#7cc243', 'grass_deep': '#2f7a2c', 'moss': '#4f8f2e', 'cream': '#f4ead8', 'peach': '#f4ad86',+ 'apricot': '#f79a5c', 'saffron': '#ffc21c', 'marigold': '#ffad1a', 'ember': '#e0782c', 'rust': '#b4501c',+ 'violet': '#5e4fb4', 'indigo': '#1b1f5a', 'plum': '#6a3f86',+ # lights+ 'white': '#ffffff', 'warm_white': '#fff4e2', 'gold': '#ffd27a', 'pink_light': '#ffd9ee',+ 'ice': '#d4e4ff',+ # figures and flowers+ 'shirt_blue': '#2a55d8', 'shirt_red': '#d8452e', 'shirt_white': '#eef0f4', 'shirt_yellow': '#f2b928',+ 'trousers': '#1d1f2a', 'skin': '#e9b08c', 'hair': '#2a1d16',+ 'cornflower_blue': '#3a5cff', 'flower_white': '#f6f4ff', 'flower_coral': '#ff8a72', 'flower_yellow': '#ffd84a',+}++# A palette is the light of one scene. The ground is coloured from two ramps, dark -> light: `warm` where the key+# light (`key_dir`: x right, y up, z toward the viewer; negative z is back light) does the lighting, `cool` where the+# sky fill does (surfaces turned up and away from the key) -- the surreal colour field comes from these two ramps.+# Also: the sky stops (position 0 top .. 1 bottom of the picture), the crest rim colour, the haze, the clouds, the+# foreground grass (dark root, lit tip), the flowers and the walker's shirt; ks / kf / ka weight key, fill and+# ambient, kr the rim, expo the tone curve, kc the strength of the cool ramp.+PALETTES = {+ 'meadow': dict(sky=[(0.0, '#1a56ae'), (0.45, '#3a82d2'), (0.62, '#8cbcea')],+ key_dir=(0.55, 0.62, 0.45),+ warm=['#0c3418', '#2a7020', '#62aa2c', '#9ed43e', '#d8f070', '#f6ffc0'],+ cool=['#0a3022', '#1e6440', '#46925c', '#86c08c', '#c4e6c4', '#eefaf0'],+ rim='#f2ffb0', haze='#a8cff0', cloud='#ffffff', cloud_shade='#9fb2d8',+ fg='#123a1c', fg_tip='#9ed44a', flowers=['flower_white', 'flower_yellow'], walker='shirt_red',+ ks=1.15, kf=0.55, ka=0.08, kr=0.5, expo=0.8, kc=0.55, jitter=0.14),+ 'lilac': dict(sky=[(0.0, '#2c6cc8'), (0.32, '#5a96e2'), (0.5, '#a9b9f2'), (0.6, '#f2c8c6')],+ key_dir=(0.72, 0.38, 0.30),+ warm=['#463a9e', '#a070b8', '#ea8e7c', '#fbaa80', '#fed0a8', '#fff2e2'],+ cool=['#3a3ca4', '#7276dc', '#9ea0f4', '#c0baf8', '#e0d6fc', '#f8f2ff'],+ rim='#fff0d6', haze='#d6cdf6', cloud='#fff8f2', cloud_shade='#b4ace6',+ fg='#3a3896', fg_tip='#f4b08a', flowers=['flower_white', 'cornflower_blue'], walker='shirt_blue',+ ks=1.2, kf=0.75, ka=0.06, kr=0.85, expo=0.62, kc=0.85, jitter=0.24),+ 'saffron': dict(sky=[(0.0, '#5a9cf0'), (0.45, '#84b6f6'), (0.6, '#b4d0f8')],+ key_dir=(0.72, 0.6, 0.22),+ warm=['#a8380a', '#d86a12', '#f8a018', '#ffc824', '#ffe46a', '#fff6c8'],+ cool=['#b44a1c', '#e2844a', '#f4ae8c', '#f6cce0', '#f8e0f6', '#fff4ff'],+ rim='#fce4ff', haze='#f6e6c8', cloud='#ffffff', cloud_shade='#aebce6',+ fg='#1a2c10', fg_tip='#e8a020', flowers=['cornflower_blue', 'cornflower_blue', 'flower_white'],+ walker='shirt_blue', ks=1.5, kf=0.55, ka=0.08, kr=0.8, expo=0.8, kc=0.7, jitter=0.16, wrap=0.2,+ kt=(0.35, 0.75)),+ 'ember': dict(sky=[(0.0, '#05103a'), (0.4, '#0c2868'), (0.62, '#1a428c')],+ key_dir=(-0.85, 0.38, -0.05),+ warm=['#0a0c26', '#3a1a2a', '#8a3416', '#d8661e', '#ffa042', '#ffdc96'],+ cool=['#080c2a', '#122a66', '#2a52a8', '#5e86d8', '#a8c4f4', '#e4eeff'],+ rim='#d4e2ff', haze='#1a3a7e', cloud='#c4d0ee', cloud_shade='#36498a',+ fg='#070c26', fg_tip='#ff9450', flowers=['cornflower_blue', 'flower_white'], walker='shirt_white',+ ks=2.2, kf=0.45, ka=0.02, kr=0.8, expo=0.6, kc=0.95, wrap=0.12, kt=(0.42, 0.62), jitter=0.07),+}+++def hexc(c):+ """'#rrggbb', a PAINTS name or an RGB triple -> float32 sRGB in 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 lin(c):+ """sRGB (0..1, array or colour) -> linear light"""+ c = hexc(c) if isinstance(c, str) or not isinstance(c, np.ndarray) else c+ c = np.clip(c, 0, None)+ return np.where(c <= 0.04045, c / 12.92, ((c + 0.055) / 1.055) ** 2.4).astype(np.float32)+++def srgb(c):+ """linear light -> sRGB (0..1)"""+ c = np.clip(c, 0, None)+ return np.where(c <= 0.0031308, c * 12.92, 1.055 * np.power(c, 1 / 2.4) - 0.055).astype(np.float32)+++def _norm(v):+ v = np.asarray(v, np.float32)+ return v / (np.linalg.norm(v) + 1e-9)+++class Ridge:+ """a hill silhouette sampled per column: y[x] (picture px, y down) and its slope dy[x]"""++ def __init__(self, y):+ self.y = y.astype(np.float32)+ self.dy = np.gradient(self.y).astype(np.float32)++ def at(self, x):+ return float(np.interp(x, np.arange(len(self.y)), self.y))++ def slope(self, x):+ return float(np.interp(x, np.arange(len(self.y)), self.dy))+++class DreamHills:+ PAINTS = PAINTS+ PALETTES = PALETTES++ def __init__(self, W=1200, H=2400, seed=0, palette='lilac', keep_stages=True, stages_dir=None):+ 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.P = dict(PALETTES[palette]) if isinstance(palette, str) else dict(palette)+ 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) # the picture, sRGB 0..1; starts as a blank+ self.C[:] = hexc('#efece6') # warm-grey canvas (the first draw-on frame)+ self.fin = None+ self.sun_xy = None++ def _r(self, seed=None):+ return np.random.default_rng(int(self.rng.integers(1 << 30)) if seed is None else seed)++ def _pal(self, key, override=None):+ return lin(override if override is not None else self.P[key])++ # ================================================================== sky+ def sky(self, stops=None, sun_xy=None, glow='#fff1dc', glow_r=0.35, glow_strength=0.35, wander=0.02):+ """the sky: a smooth multi-stop vertical gradient (stops: [(pos 0..1 of H, colour)]) mixed in linear light,+ a faint low-frequency wander so it is not a ruler-straight ramp, and an optional sun glow at sun_xy"""+ H, W = self.H, self.W+ stops = stops or self.P['sky']+ pos = np.array([p for p, _ in stops], np.float32) * H+ cols = np.stack([lin(c) for _, c in stops])+ r = self._r()+ yy = np.arange(H, dtype=np.float32)[:, None] + np.zeros((1, W), np.float32)+ if wander:+ yy = yy + (noise2d(H // 8 + 2, W // 8 + 2, 60, 2, int(r.integers(1 << 30))) - 0.5)[+ np.minimum(np.arange(H) // 8, H // 8 + 1)][:, np.minimum(np.arange(W) // 8, W // 8 + 1)] * wander * H+ out = np.empty((H, W, 3), np.float32)+ for c in range(3):+ out[..., c] = np.interp(yy, pos, cols[:, c])+ if sun_xy is not None:+ self.sun_xy = sun_xy+ sx, sy = sun_xy+ gy, gx = np.ogrid[:H, :W]+ d = np.sqrt((gx - sx) ** 2 + ((gy - sy) * 1.15) ** 2) / (glow_r * max(W, H))+ g = np.exp(-d * d) * glow_strength + np.exp(-d * 6) * glow_strength * 0.6+ out += lin(glow)[None, None] * g[..., None].astype(np.float32)+ self.C = srgb(out)+ del out, yy++ # ================================================================== hills+ def ridge(self, pts, per=40):+ """a smooth hill silhouette through control points [(x, y), ...] (x increasing; extend past both edges)"""+ P = np.asarray(pts, np.float32)+ S = spline(P, per)+ order = np.argsort(S[:, 0], kind='stable')+ xs, ys = S[order, 0], S[order, 1]+ return Ridge(np.interp(np.arange(self.W, dtype=np.float32), xs, ys))++ def _ramp(self, ramp, v):+ """sample a dark -> light colour ramp (list of colours) at v in 0..1, in linear light"""+ cols = np.stack([lin(c) for c in ramp])+ xs = np.linspace(0, 1, len(cols))+ out = np.empty(v.shape + (3,), np.float32)+ for c in range(3): out[..., c] = np.interp(v, xs, cols[:, c])+ return out++ def _shade(self, n, d, ao, P, rim_w, rim_k, haze, key_occ=1.0, fill_occ=1.0):+ """light a set of normals (..., 3) in camera space; returns linear RGB (..., 3).+ The light is a value (wrapped key diffuse + sky fill + ambient, times occlusion, plus the crest rim, through+ 1 - exp(-E * expo)) and a temperature (the share of the sky fill in it); the colour is the warm ramp at that+ value, mixed toward the cool ramp by the temperature. key_occ / fill_occ scale the two lights separately+ (deep in the fur the key is blocked first, so the roots of the blades go cool and dark, the tips warm)."""+ kd = _norm(P['key_dir'])+ wrap = P.get('wrap', 0.3)+ dif = np.clip((n @ kd + wrap) / (1 + wrap), 0, 1)+ skyl = np.clip(0.5 + 0.5 * n[..., 1], 0, 1)+ # the trough is shaded by the hill in front of it: the key goes first (ao squared), the sky fill less, so+ # the trough above every nearer ridge cools as well as darkens+ ek = dif * P['ks'] * key_occ * ao * ao+ ef = skyl * P['kf'] * fill_occ * ao+ E = ek + ef + P['ka'] * ao+ rimv = 0.0+ if rim_k:+ # crest rim: a band along the ridge on the side that faces the key, brightest where the surface turns away+ side = np.clip(n[..., 0] * kd[0] + n[..., 1] * max(kd[1], 0.0) * 0.6, 0, 1)+ graz = np.clip(1 - np.abs(n[..., 2]), 0, 1) ** 1.5+ rimv = np.exp(-d / rim_w) * (0.35 + 0.65 * side) * (0.5 + 0.5 * graz) * rim_k * P['kr']+ E = E + rimv+ v = 1 - np.exp(-E * P['expo'])+ lo_, hi_ = P.get('kt', (0.25, 0.85))+ t = smoothstep(lo_, hi_, ef / (ek + ef + 1e-4)) * P['kc']+ C = self._ramp(P['warm'], v)+ C += (self._ramp(P['cool'], v) - C) * t[..., None]+ if rim_k:+ C += (self._pal('rim') - C) * np.clip(rimv * 0.45, 0, 0.6)[..., None]+ if haze is not None:+ h = haze if np.ndim(haze) == 0 else haze[..., None]+ C = C * (1 - h) + self._pal('haze') * h+ return C.astype(np.float32)++ def hill(self, ridge, front=(), foot=260, blade=10, density=1.0, warm=None, cool=None, haze=0.0, swell=0.55,+ swell_scale=(320, 90), rim=1.0, rim_w=None, trough=0.45, trough_w=None, wind=12.0, flow=18.0,+ lean=0.7, seed=None, jitter=None, tip=1.1, root=0.72, base_dark=0.86, fur=True):+ """paint one hill: its luminous colour field, then the grass fur over it.+ ridge: Ridge; front: the ridges painted later in front of it (for visibility and the trough);+ foot: px over which the surface turns from the ridge toward the viewer; blade: stroke length in px;+ density: blades per unit area (1 = about 2.5x coverage); haze 0..1; swell: strength of the contour+ bands, swell_scale: (along, down) px; rim / rim_w: crest glow and its depth in px; trough / trough_w: shading+ above a nearer ridge; wind: degrees the fur leans (+ = to the right); flow: degrees of slow swirl;+ lean: how far the crest fringe follows the silhouette normal (0 = straight up); jitter: per-blade normal+ jitter (the warm / cool fleck; default from the palette); tip / root: brightness at the tip / root of every blade."""+ H, W = self.H, self.W+ r = self._r(seed)+ P = dict(self.P)+ if warm is not None: P['warm'] = warm+ if cool is not None: P['cool'] = cool+ rim_w = rim_w or 0.22 * foot+ jitter = P.get('jitter', 0.2) if jitter is None else jitter+ trough_w = trough_w or 0.35 * foot+ ry = ridge.y+ vis = np.full(W, H + 4 * blade, np.float32)+ for f in front: vis = np.minimum(vis, f.y)+ y0 = int(max(0, np.floor(ry.min() - 2.5 * blade)))+ y1 = int(min(H, np.ceil(min(H, vis.max() + 3 * blade))))+ if y1 <= y0: return None+ Hc = y1 - y0+ yy = np.arange(y0, y1, dtype=np.float32)[:, None]+ d = yy - ry[None, :] # px below the ridge+ dist_front = vis[None, :] - yy # px above the nearest front ridge+ # ---- normals: silhouette normal on the crest turning toward the viewer down the face+ sl = ridge.dy+ ns = np.stack([sl, np.ones_like(sl)], -1) / np.sqrt(sl * sl + 1)[:, None] # (x, up), outward+ f = 1 - np.exp(-np.clip(d, 0, None) / foot)+ phi = f * 1.32+ # the side a swell faces persists down its face (a dome's left half faces left all the way down), taken+ # from the ridge slope smoothed over the face, so small wiggles of the ridge do not streak down the hill+ ssm = blur(np.repeat(sl[None, :], 3, 0), 0.45 * foot)[1]+ lat = ssm / np.sqrt(ssm * ssm + 1)+ n = np.empty((Hc, W, 3), np.float32)+ n[..., 0] = ns[None, :, 0] * np.cos(phi) * (1 - f) + lat[None, :] * f * 0.85+ n[..., 1] = ns[None, :, 1] * np.cos(phi)+ n[..., 2] = np.sin(phi)+ # ---- swells: a height field laid out along the ridge (contours parallel to it)+ if swell:+ sa, sd = swell_scale+ dmax = int(np.ceil(np.clip(d, 0, None).max())) + 4+ gh, gw = max(3, int(dmax / sd) + 3), max(3, int(W / sa) + 3)+ g = Image.fromarray(r.random((gh, gw)).astype(np.float32))+ S = np.asarray(g.resize((W, dmax + 2), Image.BICUBIC), np.float32)+ g2 = Image.fromarray(r.random((gh * 2 + 1, gw * 2 + 1)).astype(np.float32))+ S = S + 0.25 * np.asarray(g2.resize((W, dmax + 2), Image.BICUBIC), np.float32)+ dc = np.clip(d, 0, dmax)+ di = dc.astype(np.int32); fr = dc - di # linear in d, or every integer step of the+ ax = np.arange(W)[None, :] # ridge would streak down the hill+ Sx = S[di, ax] * (1 - fr) + S[np.minimum(di + 1, dmax + 1), ax] * fr+ gy, gx = np.gradient(Sx)+ amp = swell * sd * 1.6 * np.clip(f, 0.25, 1)+ n[..., 0] -= gx * amp+ n[..., 1] += gy * amp+ n /= np.linalg.norm(n, axis=-1, keepdims=True)+ del S, Sx, gy, gx, di+ ao = 1 - trough * np.exp(-np.clip(dist_front, 0, None) / trough_w)+ ao = ao * (1 - 0.18 * smoothstep(0.6, 1.0, f))+ ao = ao.astype(np.float32)+ hz = np.float32(haze)+ field = self._shade(n, np.clip(d, 0, None), ao, P, rim_w, rim, hz) # linear+ # ---- base: a shade darker than the grass; its top edge sits a little below the ridge+ a = smoothstep(0.15 * blade, 0.9 * blade, d)[..., None]+ base = srgb(field * base_dark)+ Cc = self.C[y0:y1]+ Cc += (base - Cc) * a+ del base, a+ if fur:+ self._fur(ridge, ns, vis, y0, y1, n, ao, P, r, blade, density, wind, flow, lean, jitter, tip, root,+ rim, rim_w, hz)+ return dict(y0=y0, y1=y1)++ def _fur(self, ridge, ns, vis, y0, y1, n, ao, P, r, blade, density, wind, flow, lean, jitter, tip, root,+ rim, rim_w, hz):+ H, W = self.H, self.W+ ry = ridge.y+ top = ry - 0.15 * blade+ bot = np.minimum(vis + 1.0 * blade, H + blade)+ hgt = np.clip(bot - top, 0, None)+ area = float(hgt.sum())+ Lm = blade+ n_strokes = int(density * 2.5 * area / max(1.0, 0.45 * Lm * max(1.0, 0.11 * Lm)))+ if n_strokes <= 0: return+ # extra roots along the crest so its fringe is dense+ n_crest = int(n_strokes * 0.12)+ p = hgt / hgt.sum()+ xs = r.choice(W, n_strokes, p=p).astype(np.float32) + r.random(n_strokes).astype(np.float32) - 0.5+ xi = np.clip(xs.round().astype(np.int32), 0, W - 1)+ ys = top[xi] + r.random(n_strokes).astype(np.float32) * hgt[xi]+ xc = r.random(n_crest).astype(np.float32) * (W - 1)+ xci = xc.round().astype(np.int32)+ yc = top[xci] + r.random(n_crest).astype(np.float32) ** 1.5 * 1.6 * blade+ xs = np.concatenate([xs, xc]); ys = np.concatenate([ys, yc]); xi = np.concatenate([xi, xci])+ N = len(xs)+ yi = np.clip(ys.round().astype(np.int32) - y0, 0, y1 - y0 - 1)+ dd = np.clip(ys - ry[xi], 0, None)+ # perspective within the hill: blades a little longer lower down the face+ L = blade * (0.62 + 0.76 * r.random(N).astype(np.float32)) * (1 + 0.35 * np.tanh(dd / (8 * blade)))+ # ---- direction: silhouette normal on the crest -> up further down, + wind + a slow swirl+ fdir = 1 - np.exp(-dd / (2.5 * blade))+ nx = ns[xi, 0] * lean * (1 - fdir)+ ny = ns[xi, 1] * lean * (1 - fdir) + (1 - lean * (1 - fdir))+ ang = np.degrees(np.arctan2(-ny, nx)) # picture angle (y down)+ sw = noise2d(max(4, (y1 - y0) // 16), max(4, W // 16), 14, 2, int(r.integers(1 << 30)))+ swv = (sw[np.clip(yi // 16, 0, sw.shape[0] - 1), np.clip(xi // 16, 0, sw.shape[1] - 1)] - 0.5) * 2+ ang = ang + wind + flow * swv + r.normal(0, 7, N).astype(np.float32)+ th = np.radians(ang)+ DX, DY = np.cos(th).astype(np.float32), np.sin(th).astype(np.float32)+ BEND = (L * (0.08 + 0.18 * r.random(N)) * np.sign(wind + 1e-3)).astype(np.float32)+ W0 = np.clip(L * 0.11, 0.85, None) * (0.8 + 0.4 * r.random(N)).astype(np.float32)+ # ---- colour: each blade lit with its own (jittered) normal+ nb = n[yi, xi] + r.normal(0, jitter, (N, 3)).astype(np.float32)+ nb /= np.linalg.norm(nb, axis=-1, keepdims=True)+ aob = ao[yi, xi]+ v = (0.92 + 0.16 * r.random(N)).astype(np.float32)+ cr = self._shade(nb, dd, aob * v, P, rim_w, rim * 0.4, hz, key_occ=root * 0.8, fill_occ=root)+ CR = srgb(cr)+ ntip = nb + 0.1 * _norm(P['key_dir'])[None, :] # the tips lean into the light a little+ ntip /= np.linalg.norm(ntip, axis=-1, keepdims=True)+ ct = self._shade(ntip, dd * 0.7, np.minimum(1, aob + 0.1) * v, P, rim_w, rim, hz, key_occ=tip,+ fill_occ=1.0)+ CT = srgb(ct)+ self._splat_sorted(xs, ys, DX, DY, L, BEND, W0, CR, CT)++ # ================================================================== clouds and the night sky+ def _screen(self, y0, x0, add):+ """screen a linear-light patch (h, w, 3) onto the picture at (y0, x0), clipped to the picture"""+ h, w = add.shape[:2]+ ya, xa = max(0, y0), max(0, x0)+ yb, xb = min(self.H, y0 + h), min(self.W, x0 + w)+ if yb <= ya or xb <= xa: return+ a = add[ya - y0:yb - y0, xa - x0:xb - x0]+ Cc = self.C[ya:yb, xa:xb]+ Cl = lin(Cc)+ Cc[:] = srgb(1 - (1 - Cl) * (1 - np.clip(a, 0, 1)))++ def _over(self, y0, x0, col, a):+ """lay sRGB colour (h, w, 3) with alpha (h, w) over the picture at (y0, x0), clipped"""+ h, w = a.shape+ ya, xa = max(0, y0), max(0, x0)+ yb, xb = min(self.H, y0 + h), min(self.W, x0 + w)+ if yb <= ya or xb <= xa: return+ aa = a[ya - y0:yb - y0, xa - x0:xb - x0, None]+ cc = col[ya - y0:yb - y0, xa - x0:xb - x0]+ Cc = self.C[ya:yb, xa:xb]+ Cc += (cc - Cc) * aa++ def cloud(self, cx, base, w, h, seed=None, n=70, detail=160, light=(0.55, 0.75, 0.35), lit=None, shade=None,+ warm=None, warm_k=0.35, alpha=1.0, wisp=0.35, flat=1.0, towers=2):+ """a cumulus of soft puffs. The mass is a dome (w wide, h tall above `base`, its height wandering along x so+ it grows `towers` rounded heads); puffs sit on the front of the dome with their centres a little inside it+ (big ones low, smaller ones higher), and a second scale of small puffs bubbles on the upper part+ (cauliflower). Every pixel takes the highest sphere; the height field is smoothed a touch so the puffs+ melt together, its normal is lit (wrapped key + sky fill), crevices darken, the lower part cools into+ `shade`; the silhouette goes soft (and a little wispy), the bottom is cut flat.+ light: key direction (x right, y up, z toward viewer); warm: a tint for the lit side (dawn)."""+ r = self._r(seed)+ k = self.k+ lit = lin(lit or self.P['cloud']); shade = lin(shade or self.P['cloud_shade'])+ D = 0.32 * w+ tw = np.zeros(64, np.float32)+ xs_t = np.linspace(-1, 1, 64)+ for _ in range(towers):+ c = r.uniform(-0.45, 0.45); s_ = r.uniform(0.18, 0.32)+ tw += r.uniform(0.25, 0.45) * np.exp(-((xs_t - c) / s_) ** 2)+ hfun = lambda u: h * (0.62 + np.interp(u, xs_t, tw)) / (0.62 + tw.max())++ def surf(u, v):+ z = D * np.sqrt(np.clip(1 - u * u - v * v, 0, 1))+ x = cx + u * 0.5 * w+ y = base - v * hfun(u)+ nn_ = np.stack([u / (0.5 * w), v / np.maximum(hfun(u), 1), z / (D * D) + 1e-6], -1)+ nn_ /= np.linalg.norm(nn_, axis=-1, keepdims=True)+ return x, y, z, nn_++ def sample(m, vmin, vmax):+ u = r.uniform(-1, 1, m * 3); v = r.uniform(vmin, vmax, m * 3)+ ok = u * u + v * v <= 1+ return u[ok][:m], v[ok][:m]++ P = []+ # the body: a row of overlapping puffs along the bottom, so even a long, low cloud is one solid mass+ m = int(np.ceil(w / (0.32 * h))) + 1+ for ub in np.linspace(-0.82, 0.82, m):+ rb = 0.42 * hfun(ub) * (1 - ub * ub) ** 0.35 * r.uniform(0.85, 1.1)+ P.append([cx + ub * 0.5 * w + r.normal(0, 0.02 * w), base - 0.5 * rb, rb, 0.0])+ u, v = sample(n, 0.0, 1.0)+ x, y, z, nn_ = surf(u, v)+ rr = h * r.uniform(0.13, 0.24, len(u)) * (1.15 - 0.45 * v)+ for i in range(len(u)):+ c = np.array([x[i], y[i], z[i]]) - nn_[i] * 0.55 * rr[i] * np.array([1, -1, 1])+ P.append([c[0], c[1], rr[i], c[2]])+ big = np.array(P, np.float32)+ u, v = sample(detail, 0.25, 1.0)+ x, y, z, nn_ = surf(u, v)+ rr = h * r.uniform(0.045, 0.1, len(u))+ for i in range(len(u)):+ c = np.array([x[i], y[i], z[i]]) - nn_[i] * 0.2 * rr[i] * np.array([1, -1, 1])+ # only where it bubbles out of the mass, never as a ball floating free of it+ gap = np.hypot(big[:, 0] - c[0], big[:, 1] - c[1]) - big[:, 2]+ if gap.min() > 0.2 * rr[i]: continue+ P.append([c[0], c[1], rr[i], c[2]])+ P = np.array(P, np.float32)+ x0 = int(np.floor((P[:, 0] - P[:, 2]).min())) - 6; x1 = int(np.ceil((P[:, 0] + P[:, 2]).max())) + 6+ y0 = int(np.floor((P[:, 1] - P[:, 2]).min())) - 6; y1 = int(np.ceil(base + 0.08 * h)) + 6+ Hh, Ww = y1 - y0, x1 - x0+ Z = np.full((Hh, Ww), -1e9, np.float32)+ NX = np.zeros((Hh, Ww), np.float32); NY = np.zeros_like(NX); NZ = np.zeros_like(NX); AL = np.zeros_like(NX)+ for (px, py, pr, pz) in P:+ a0, a1 = int(max(0, py - pr - y0)), int(min(Hh, py + pr - y0 + 1))+ b0, b1 = int(max(0, px - pr - x0)), int(min(Ww, px + pr - x0 + 1))+ if a1 <= a0 or b1 <= b0: continue+ gy, gx = np.mgrid[a0:a1, b0:b1].astype(np.float32)+ dx, dy = gx + x0 - px, gy + y0 - py+ q = pr * pr - dx * dx - dy * dy+ ins = q > 0+ z = pz + np.sqrt(np.clip(q, 0, None))+ sub = Z[a0:a1, b0:b1]+ up = ins & (z > sub)+ sub[up] = z[up]+ NX[a0:a1, b0:b1][up] = (dx / pr)[up]+ NY[a0:a1, b0:b1][up] = (-dy / pr)[up]+ NZ[a0:a1, b0:b1][up] = (np.sqrt(np.clip(q, 0, None)) / pr)[up]+ # coverage is the union of every puff's own soft disc (not the front puff's), so a puff passing in+ # front of another never lets the sky through along its edge+ np.maximum(AL[a0:a1, b0:b1], np.sqrt(np.clip(q, 0, None)) / pr, out=AL[a0:a1, b0:b1])+ cov = Z > -1e8+ gy = np.arange(y0, y1, dtype=np.float32)[:, None]+ L = _norm(light)+ # normals from the height field smoothed a little, so neighbouring puffs melt into each other instead of+ # showing every sphere's rim; crevices from the difference to a wider blur+ Zc = np.where(cov, Z, 0).astype(np.float32)+ Hs = blur(Zc, 0.014 * h + 1.5)+ gyy, gxx = np.gradient(Hs)+ # where one puff passes in front of another the height steps; clamp the slope so the step reads as a soft+ # overlap, not a dark crease+ gm = np.hypot(gxx, gyy); sc = np.minimum(1, 2.2 / (gm + 1e-6))+ gxx *= sc; gyy *= sc+ nn = np.stack([-gxx, gyy, np.ones_like(gxx)], -1)+ nn /= np.linalg.norm(nn, axis=-1, keepdims=True)+ dif = np.clip((nn @ L + 0.15) / 1.15, 0, 1)+ occ = np.clip((blur(Zc, 0.07 * h) - Zc) / (0.12 * h), 0, 1) * cov+ hgt = np.clip((base - gy) / h, 0, 1)+ v = np.clip(0.1 + 1.05 * dif * (0.5 + 0.5 * hgt ** 0.5) - 0.35 * occ, 0, 1)+ v = blur(v, 0.8 * k)+ col = shade[None, None] + (lit - shade)[None, None] * v[..., None]+ if warm is not None:+ col += (lin(warm) - col) * (warm_k * smoothstep(0.35, 0.9, dif) * (0.4 + 0.6 * hgt))[..., None]+ # alpha: soft at the silhouette (the sphere turning away), eroded a little by noise (wisps), flat bottom+ nz = blur(AL, 1.0 * k)+ en = noise2d(Hh, Ww, 7 * k, 3, int(r.integers(1 << 30)))+ a = smoothstep(0.0, 0.42, nz - wisp * 0.25 * (en - 0.5))+ bn = noise2d(Hh, Ww, 0.25 * w, 2, int(r.integers(1 << 30)))+ a *= smoothstep(base + 0.02 * h * flat, base - 0.04 * h * flat, gy + (bn - 0.5) * 0.06 * h)+ a = np.clip(a * alpha, 0, 1)+ self._over(y0, x0, srgb(col), a)++ def stars(self, n, y0=0, y1=None, x0=0, x1=None, size=1.0, bright=0.35, spikes=4, colour='#f4f0ff',+ fade=None, seed=None):+ """stars: uniform positions, power-law brightness (most faint, a few bright), a few warm or blue, splatted+ with sub-pixel accuracy; the `spikes` brightest get four thin diffraction spikes. fade: (y_a, y_b) the+ stars thin out from y_a to y_b (toward the horizon)."""+ r = self._r(seed)+ y1 = self.H if y1 is None else y1; x1 = self.W if x1 is None else x1+ xs = r.uniform(x0, x1, n).astype(np.float32); ys = r.uniform(y0, y1, n).astype(np.float32)+ b = (r.pareto(2.2, n) + 1).astype(np.float32) ** 1.2 * 0.5 * bright+ if fade is not None:+ b *= 1 - smoothstep(fade[0], fade[1], ys)+ tint = np.array([lin('#ffd9b0'), lin(colour), lin(colour), lin('#c8d8ff')])[r.integers(0, 4, n)]+ self._point_lights(xs, ys, b, tint, 0.55 * self.k * size)+ if spikes:+ for i in np.argsort(-b)[:spikes]:+ self.sparkle(xs[i], ys[i], 14 * self.k * size * (0.7 + 0.6 * r.random()), colour)++ def _point_lights(self, xs, ys, b, tint, sig):+ """add gaussian points (brightness b, linear tint) to the picture in linear light"""+ H, W = self.H, self.W+ acc = np.zeros((H * W, 3), np.float64)+ rad = int(np.ceil(3 * sig)) + 1+ for oy in range(-rad, rad + 1):+ for ox in range(-rad, rad + 1):+ ix = np.floor(xs).astype(np.int32) + ox; iy = np.floor(ys).astype(np.int32) + oy+ d2 = (ix + 0.5 - xs) ** 2 + (iy + 0.5 - ys) ** 2+ wv = np.exp(-d2 / (2 * sig * sig)) / (2 * np.pi * sig * sig) * b+ ok = (ix >= 0) & (ix < W) & (iy >= 0) & (iy < H)+ idx = iy[ok] * W + ix[ok]+ for c in range(3):+ acc[:, c] += np.bincount(idx, (wv * tint[:, c])[ok], H * W)+ add = acc.reshape(H, W, 3).astype(np.float32)+ del acc+ rows = np.nonzero(add.max((1, 2)) > 1e-5)[0]+ if not len(rows): return+ ya, yb = rows[0], rows[-1] + 1+ self._screen(ya, 0, add[ya:yb])++ def sparkle(self, x, y, size, colour='#f4f0ff', strength=1.0, angle=0.0):+ """a bright point with a glow and four thin spikes"""+ s = int(size * 1.2) + 4+ gy, gx = np.mgrid[-s:s + 1, -s:s + 1].astype(np.float32)+ dx, dy = gx - (x - np.floor(x)) + 0.5, gy - (y - np.floor(y)) + 0.5+ th = np.radians(angle)+ u, v = dx * np.cos(th) + dy * np.sin(th), -dx * np.sin(th) + dy * np.cos(th)+ rr = np.hypot(dx, dy)+ sp = (np.exp(-np.abs(v) / 0.45) * np.exp(-np.abs(u) / (0.35 * size)) ++ np.exp(-np.abs(u) / 0.45) * np.exp(-np.abs(v) / (0.35 * size))) * 0.9+ core = np.exp(-rr * rr / (2 * (0.9 * self.k) ** 2)) * 1.6 + np.exp(-rr / (0.22 * size)) * 0.5+ add = (sp + core)[..., None] * lin(colour)[None, None] * strength+ self._screen(int(np.floor(y)) - s, int(np.floor(x)) - s, add)++ def milky_way(self, p0, p1, width, bend=0.0, strength=0.5, colour='#c9cff5', warm='#f2c8d8', rift=0.6,+ stars=6000, seed=None):+ """a soft band of glow from p0 to p1 (bowed sideways by `bend` px), its density a gaussian across the band+ times two scales of cloudy noise, a darker rift along its middle, and faint star dust sampled from it"""+ r = self._r(seed)+ H, W = self.H, self.W+ p0, p1 = np.array(p0, np.float32), np.array(p1, np.float32)+ d = p1 - p0; Lh = float(np.linalg.norm(d)); t_ = d / Lh; nrm = np.array([-t_[1], t_[0]])+ ys = np.arange(H, dtype=np.float32)[:, None]; xs = np.arange(W, dtype=np.float32)[None, :]+ u = ((xs - p0[0]) * t_[0] + (ys - p0[1]) * t_[1]) / Lh+ v = (xs - p0[0]) * nrm[0] + (ys - p0[1]) * nrm[1] - bend * 4 * np.clip(u, 0, 1) * (1 - np.clip(u, 0, 1))+ n1 = noise2d(H, W, 0.35 * width, 4, int(r.integers(1 << 30)))+ n2 = noise2d(H, W, 0.12 * width, 3, int(r.integers(1 << 30)))+ wv = width * (0.8 + 0.4 * n1)+ den = np.exp(-(v / wv) ** 2) * (0.55 + 0.6 * n1 * (0.7 + 0.5 * n2)) * smoothstep(-0.1, 0.12, u) * \+ smoothstep(1.1, 0.88, u)+ den += 0.5 * np.exp(-(v / (0.3 * wv)) ** 2) * smoothstep(-0.1, 0.2, u) * smoothstep(1.1, 0.8, u) * n1+ den *= 1 - rift * np.exp(-((v + 0.12 * width * (n2 - 0.5) * 2) / (0.22 * width)) ** 2) * (0.5 + 0.7 * n2)+ den = np.clip(den, 0, None).astype(np.float32)+ tint = lin(colour)[None, None] * (1 - n2[..., None] * 0.5) + lin(warm)[None, None] * n2[..., None] * 0.5+ self._screen(0, 0, den[..., None] * tint * strength * 0.35)+ if stars:+ cand_x = r.uniform(0, W, stars * 4).astype(np.float32); cand_y = r.uniform(0, H, stars * 4).astype(np.float32)+ pd = den[np.clip(cand_y.astype(int), 0, H - 1), np.clip(cand_x.astype(int), 0, W - 1)]+ keep = r.random(len(pd)) < pd / (pd.max() + 1e-6)+ xs_, ys_ = cand_x[keep][:stars], cand_y[keep][:stars]+ b = (r.pareto(3.0, len(xs_)) + 1).astype(np.float32) * 0.28 * strength+ tint2 = np.repeat(lin(colour)[None], len(xs_), 0)+ self._point_lights(xs_, ys_, b, tint2, 0.5 * self.k)+ del den, n1, n2, u, v++ def comet(self, x, y, angle, length, width=None, colour='#dfe6ff', head='#fffaf0', strength=1.0, spread=0.12,+ seed=None):+ """a comet: a bright spiked head at (x, y) and a tail running away at `angle` (degrees, 0 = right,+ 90 = down) for `length` px -- a cone that widens (spread), fades, and is made of fine grainy streaks"""+ r = self._r(seed)+ k = self.k+ width = width or 5 * k+ th = np.radians(angle); t_ = np.array([np.cos(th), np.sin(th)]); nrm = np.array([-t_[1], t_[0]])+ ends = np.array([[x, y], [x + t_[0] * length, y + t_[1] * length]])+ pad = width + spread * length + 10+ x0, x1 = int(ends[:, 0].min() - pad), int(ends[:, 0].max() + pad)+ y0, y1 = int(ends[:, 1].min() - pad), int(ends[:, 1].max() + pad)+ gy, gx = np.mgrid[y0:y1, x0:x1].astype(np.float32)+ u = (gx - x) * t_[0] + (gy - y) * t_[1]+ v = (gx - x) * nrm[0] + (gy - y) * nrm[1]+ uu = np.clip(u / length, 0, 1)+ wv = width + spread * np.clip(u, 0, None)+ # fine streaks: a 1-D noise across the tail, stretched along it+ sn = noise2d(64, 512, 6, 3, int(r.integers(1 << 30)))+ si = np.clip(((v / (wv + 1e-3)) * 0.5 + 0.5) * 511, 0, 511).astype(np.int32)+ ui = np.clip(uu * 63, 0, 63).astype(np.int32)+ streak = 0.55 + 0.9 * sn[ui, si]+ grain = 0.75 + 0.5 * r.random(u.shape).astype(np.float32)+ I = np.exp(-(v / wv) ** 2) * (1 - uu) ** 1.6 * (u > 0) * streak * grain+ I *= smoothstep(-2, 0.05 * length, u)+ add = I[..., None] * lin(colour)[None, None] * 0.55 * strength+ self._screen(y0, x0, add)+ self.sparkle(x, y, 26 * k, head, strength=1.2 * strength, angle=r.uniform(0, 45))++ # ================================================================== extras+ def trees(self, ridge, xs, h, colour=None, light=None, haze=0.3, kind='round', seed=None):+ """small soft trees standing on a (far) ridge at the given x positions, h px tall: a crown of soft fur+ (round or tall), lit on the key side, a thin trunk; hazed like the hill they stand on"""+ r = self._r(seed)+ P = self.P+ kd = _norm(P['key_dir'])+ dark = lin(colour or P['cool'][1]); lt = lin(light or P['warm'][3])+ hz = lin(P['haze'])+ for x in xs:+ hh = h * r.uniform(0.75, 1.2)+ yb = ridge.at(x) + 0.08 * hh+ cw = hh * (0.42 if kind == 'round' else 0.24) * r.uniform(0.85, 1.15)+ ch = hh * (0.62 if kind == 'round' else 0.82)+ cy = yb - hh + ch * 0.5+ s = int(max(cw, ch) + 6)+ x0, y0 = int(x - s), int(cy - s)+ gy, gx = np.mgrid[y0:y0 + 2 * s, x0:x0 + 2 * s].astype(np.float32)+ dx, dy = (gx - x) / (0.5 * cw), (gy - cy) / (0.5 * ch)+ rr = np.sqrt(dx * dx + dy * dy)+ en = noise2d(2 * s, 2 * s, max(1.5, 0.12 * cw), 3, int(r.integers(1 << 30)))+ crown = smoothstep(1.05, 0.85, rr + (en - 0.5) * 0.45)+ trunk = (np.abs(gx - x) < max(0.7, 0.05 * hh)) & (gy > cy) & (gy < yb)+ a = np.clip(crown + trunk * 0.9, 0, 1)+ sh = np.clip(0.5 + 0.5 * (dx * kd[0] - dy * kd[1]) * 0.9 + (en - 0.5) * 0.5, 0, 1)+ col = dark[None, None] + (lt - dark)[None, None] * (sh ** 1.4 * 0.8)[..., None]+ col = col * (1 - haze) + hz * haze+ self._over(y0, x0, srgb(col), a)++ def foreground(self, top, bottom=None, density=1.0, blade=None, colour=None, tip=None, flowers=90,+ flower_colours=None, flower_size=None, wind=10.0, blur_px=0.7, seed=None, curve=0.25):+ """the dense band of tall grass along the bottom of the picture: blades rooted below `bottom` whose tips+ reach up to about `top` (a y or a per-column array), dark at the root and backlit at the tip, with+ wildflowers on some of the stems; softened by blur_px (out of focus)"""+ H, W, k = self.H, self.W, self.k+ r = self._r(seed)+ P = self.P+ bottom = H if bottom is None else bottom+ topv = np.full(W, top, np.float32) if np.ndim(top) == 0 else np.asarray(top, np.float32)+ span = bottom - topv+ blade = blade or float(np.median(span))+ n = int(density * 2.6 * W * float(span.mean()) / max(1.0, 0.45 * 0.6 * blade * 4.2 * k))+ xs = r.uniform(-20, W + 20, n).astype(np.float32)+ xi = np.clip(xs.astype(int), 0, W - 1)+ sp = span[xi]+ ys = bottom + r.uniform(-0.05, 0.25, n).astype(np.float32) * sp+ Lb = (sp + (ys - bottom)) * (0.35 + 0.75 * r.random(n).astype(np.float32) ** 0.7)+ ang = -90 + wind + r.normal(0, 9, n)+ th = np.radians(ang).astype(np.float32)+ DX, DY = np.cos(th), np.sin(th)+ BEND = (Lb * curve * r.normal(0.5, 0.6, n) * np.sign(wind + 1e-3)).astype(np.float32)+ W0 = (r.uniform(2.6, 6.0, n) * k).astype(np.float32)+ dark = lin(colour or P['fg']); ltc = lin(tip or P['fg_tip'])+ v = r.random(n).astype(np.float32)[:, None]+ CR = srgb(dark[None] * (0.45 + 0.5 * v))+ # backlit tips: the taller the blade (the closer its tip to the lit band above), the more it glows+ reach = np.clip(Lb / np.maximum(sp, 1), 0, 1).astype(np.float32)[:, None]+ tipmix = np.clip(0.08 + 0.7 * reach ** 2.5 * (0.4 + 0.7 * r.random(n).astype(np.float32)[:, None]), 0, 0.9)+ CT = srgb(dark[None] * (1.1 + 0.3 * v) * (1 - tipmix) + ltc[None] * tipmix)+ target = np.zeros((H, W, 3), np.float32) + self.C # paint on a copy, so the band can be softened+ alpha_acc = np.zeros((H, W), np.float32)+ self._splat_sorted(xs, ys, DX, DY, Lb, BEND, W0, CR, CT, target=target, chunk=6000, gain=1.6,+ alpha_out=alpha_acc, tpow=2.2)+ # wildflowers at the tips of some stems+ if flowers:+ fc = flower_colours or P['flowers']+ fs = flower_size or 13 * k+ # flowers on the taller stems (they stand in the light at the top of the band), a few lower down+ pw = (reach[:, 0] ** 3 + 0.04); pw /= pw.sum()+ pick = r.choice(n, min(flowers, n), replace=False, p=pw)+ fx = xs[pick] + DX[pick] * Lb[pick] + (-DY[pick]) * BEND[pick]+ fy = ys[pick] + DY[pick] * Lb[pick] + DX[pick] * BEND[pick]+ depth = np.clip((fy - topv[np.clip(fx.astype(int), 0, W - 1)]) / np.maximum(span[np.clip(fx.astype(int), 0, W - 1)], 1), 0, 1)+ sz = fs * (0.6 + 0.9 * depth) * r.uniform(0.75, 1.25, len(pick))+ self._flowers(fx, fy, sz, [fc[int(i)] for i in r.integers(0, len(fc), len(pick))], r, target, alpha_acc)+ if blur_px:+ a = np.clip(alpha_acc, 0, 1)+ rows = np.nonzero(a.max(1) > 0)[0]+ if len(rows):+ ya = max(0, rows[0] - 8)+ for c in range(3):+ target[ya:, :, c] = blur(target[ya:, :, c], blur_px * k)+ self.C[:] = target+ del target, alpha_acc++ def _flowers(self, fx, fy, sz, cols, r, target, alpha_acc):+ """five-petal wildflowers: each petal a short stroke from its rounded tip into the centre"""+ X0, Y0, DX, DY, L, BEND, W0, CR, CT = ([] for _ in range(9))+ for x, y, s, c in zip(fx, fy, sz, cols):+ base = lin(c)+ rot = r.uniform(0, 72)+ tilt = r.uniform(0.45, 1.0) # seen a little from the side+ for j in range(5):+ a = np.radians(rot + 72 * j)+ ex, ey = np.cos(a) * s * 0.5, np.sin(a) * s * 0.5 * tilt+ X0.append(x + ex); Y0.append(y + ey)+ ll = float(np.hypot(ex, ey)) + 0.3+ DX.append(-ex / ll); DY.append(-ey / ll); L.append(ll); BEND.append(0.0)+ W0.append(max(1.0, 0.55 * s * (0.7 + 0.3 * tilt)))+ sh = r.uniform(0.85, 1.15)+ CR.append(srgb(np.clip(base * sh * 1.25, 0, 1))); CT.append(srgb(base * sh * 0.8))+ f = lambda a: np.asarray(a, np.float32)+ self._splat_sorted(f(X0), f(Y0), f(DX), f(DY), f(L), f(BEND), f(W0), f(CR), f(CT), target=target,+ chunk=4000, gain=1.5, alpha_out=alpha_acc)+ # small warm centres: one short dab each+ m = len(fx)+ cx_ = np.asarray(fx, np.float32); cy_ = np.asarray(fy, np.float32)+ ss = np.asarray(sz, np.float32)+ cc = np.repeat(hexc('#ffd868')[None], m, 0)+ self._splat_sorted(cx_ - 0.08 * ss, cy_, np.ones(m, np.float32), np.zeros(m, np.float32), 0.16 * ss,+ np.zeros(m, np.float32), np.clip(0.22 * ss, 1, None), cc, cc, target=target, gain=1.4)++ def walker(self, x, y, h, facing=1, shirt=None, trousers='trousers', skin='skin', hair='hair', stride=0.9,+ rim=None, shadow=0.35, grass=None, bag=None, lamp=None, lamp_glow=1.0):+ """a tiny person walking, feet at (x, y), h px tall: drawn at 8x with smooth shapes (head, hair, shirt,+ trousers in stride, swinging arms) and boxed down; rim-lit on the key side; a soft shadow on the grass;+ `grass` (a colour) lays a few blades over the feet so the figure stands in the fur; `lamp` (a colour) hangs+ a small lantern from the near hand that glows and warms the grass around it"""+ S = 8+ P = self.P+ shirt = shirt or P['walker']+ pad = int(h * 0.6) + 4+ w2 = int(h * 1.2) + 2 * pad+ x0, y0 = int(np.floor(x)) - w2 // 2, int(np.floor(y - h)) - pad+ hh2 = int(h) + 2 * pad+ ox, oy = (x - x0) * S, (y - y0) * S+ U = h * S+ f = facing++ def poly(pts):+ im = Image.new('L', (w2 * S, hh2 * S), 0)+ ImageDraw.Draw(im).polygon([(ox + px * U * f, oy - py * U) for px, py in pts], fill=255)+ return im++ def limb(p0, p1, w0, w1):+ p0, p1 = np.array(p0, np.float32), np.array(p1, np.float32)+ d = p1 - p0; n_ = np.array([-d[1], d[0]]) / (np.linalg.norm(d) + 1e-6)+ pts = [p0 + n_ * w0 / 2, p1 + n_ * w1 / 2, p1 - n_ * w1 / 2, p0 - n_ * w0 / 2]+ im = poly([tuple(p) for p in pts])+ dr = ImageDraw.Draw(im)+ for p, ww in ((p0, w0), (p1, w1)):+ cx_, cy_ = ox + p[0] * U * f, oy - p[1] * U+ rr = ww / 2 * U+ dr.ellipse([cx_ - rr, cy_ - rr, cx_ + rr, cy_ + rr], fill=255)+ return im++ def ell(cx_, cy_, rx, ry):+ im = Image.new('L', (w2 * S, hh2 * S), 0)+ X, Y = ox + cx_ * U * f, oy - cy_ * U+ ImageDraw.Draw(im).ellipse([X - rx * U, Y - ry * U, X + rx * U, Y + ry * U], fill=255)+ return im++ st = stride+ hip = (0.0, 0.50)+ legs_far = limb(hip, (-0.13 * st, 0.03), 0.105, 0.075)+ legs_near = limb(hip, (0.15 * st, 0.02), 0.11, 0.08)+ feet = [limb((-0.13 * st, 0.03), (-0.13 * st + 0.07, 0.02), 0.06, 0.05),+ limb((0.15 * st, 0.02), (0.15 * st + 0.08, 0.015), 0.06, 0.05)]+ torso = poly([(-0.11, 0.48), (0.11, 0.48), (0.125, 0.80), (0.07, 0.84), (-0.07, 0.84), (-0.125, 0.80)])+ arm_far = limb((-0.06, 0.80), (-0.12 * st - 0.02, 0.55), 0.06, 0.05)+ arm_near = limb((0.05, 0.80), (0.12 * st + 0.05, 0.54), 0.065, 0.05)+ neck = limb((0.0, 0.82), (0.01, 0.87), 0.05, 0.05)+ head = ell(0.015, 0.925, 0.072, 0.08)+ hairm = ell(0.0, 0.95, 0.075, 0.062)+ bagm = poly([(-0.17, 0.56), (-0.09, 0.56), (-0.09, 0.78), (-0.17, 0.76)]) if bag else None+ down = lambda im: np.asarray(im.resize((w2, hh2), Image.BOX), np.float32) / 255+ parts = [(legs_far, trousers, 0.8), (feet[0], '#24201e', 0.8), (arm_far, shirt, 0.8)]+ if bagm is not None: parts.append((bagm, bag, 1.0))+ parts += [(legs_near, trousers, 1.0), (feet[1], '#24201e', 1.0), (torso, shirt, 1.0),+ (arm_near, shirt, 1.05), (neck, skin, 0.9), (head, skin, 1.0), (hairm, hair, 1.0)]+ col = np.zeros((hh2, w2, 3), np.float32); A = np.zeros((hh2, w2), np.float32)+ for im, c, sh in parts:+ a = down(im)+ cc = np.clip(lin(c) * sh, 0, 1)+ col += (cc[None, None] - col) * a[..., None]+ A = A + (1 - A) * a+ # rim light on the key side, a cool fill on the other+ kd = _norm(P['key_dir'])+ sx = int(np.sign(kd[0]) or 1)+ edge = np.clip(A - np.roll(A, sx, axis=1), 0, 1)+ rimc = lin(rim or P['warm'][4])+ col += (rimc[None, None] - col) * (edge * 0.75)[..., None]+ col *= 0.8 + 0.2 * np.linspace(1, 0.6, hh2, dtype=np.float32)[:, None, None]+ # shadow on the grass, away from the key+ if shadow:+ gy, gx = np.mgrid[0:hh2, 0:w2].astype(np.float32)+ cxs = x - x0 - sx * 0.45 * h; cys = y - y0 + 0.02 * h+ sha = np.exp(-(((gx - cxs) / (0.5 * h)) ** 2 + ((gy - cys) / (0.045 * h + 0.8)) ** 2)) * shadow+ Cc = self.C[y0:y0 + hh2, x0:x0 + w2]+ Cc *= 1 - (sha[:Cc.shape[0], :Cc.shape[1], None] * (1 - lin(P['cool'][1]) * 0.6))+ self._over(y0, x0, srgb(col), A)+ if grass:+ r = self._r()+ m = int(10 + h * 0.5)+ gxs = (x + r.uniform(-0.25, 0.25, m) * h).astype(np.float32)+ gys = (y + r.uniform(-0.01, 0.06, m) * h).astype(np.float32)+ Lg = (h * r.uniform(0.06, 0.16, m)).astype(np.float32)+ th = np.radians(-90 + r.normal(10, 12, m)).astype(np.float32)+ gc = np.asarray(grass if not isinstance(grass, str) else hexc(grass), np.float32)+ CR = np.repeat(gc[None] * 0.8, m, 0).astype(np.float32); CT = np.repeat(np.clip(gc[None] * 1.15, 0, 1), m, 0).astype(np.float32)+ self._splat_sorted(gxs, gys, np.cos(th), np.sin(th), Lg, np.zeros(m, np.float32),+ np.full(m, 0.9, np.float32), CR, CT)+ if lamp:+ hx = x + (0.12 * st + 0.07) * h * f+ hy = y - 0.47 * h+ R = int(1.6 * h)+ gy, gx = np.mgrid[-R:R + 1, -R:R + 1].astype(np.float32)+ d = np.hypot(gx, gy * 1.1)+ glow = (np.exp(-d / (0.22 * h)) * 0.55 + np.exp(-d / (0.7 * h)) * 0.22) * lamp_glow+ glow *= smoothstep(R, 0.55 * R, d)+ self._screen(int(hy) - R, int(hx) - R, glow[..., None] * lin(lamp)[None, None])+ self.sparkle(hx, hy, 0.35 * h, '#fff2d0', strength=0.9 * lamp_glow, angle=0)++ # ================================================================== stroke splatting+ def _splat_sorted(self, X0, Y0, DX, DY, L, BEND, W0, CR, CT, chunk=14000, step=0.6, gain=1.15, blur_px=0.0,+ target=None, alpha_out=None, tpow=0.9):+ """lay tapered, bent strokes from the back (small root y) to the front, in chunks"""+ r = self._r()+ # sort by root, jittered by about a blade length, so the chunks are not straight rows (they would stripe)+ order = np.argsort(Y0 + (r.random(len(Y0)).astype(np.float32) - 0.5) * 2.4 * L, kind='stable')+ for s in range(0, len(order), chunk):+ idx = order[s:s + chunk]+ self._splat(X0[idx], Y0[idx], DX[idx], DY[idx], L[idx], BEND[idx], W0[idx], CR[idx], CT[idx],+ step, gain, blur_px, target, alpha_out, tpow)++ def _splat(self, X0, Y0, DX, DY, L, BEND, W0, CR, CT, step=0.6, gain=1.15, blur_px=0.0, target=None,+ alpha_out=None, tpow=0.9):+ H, W = self.H, self.W+ C = self.C if target is None else target+ ext = float(L.max()) + float(np.abs(BEND).max()) + float(W0.max()) + 3+ ya = int(max(0, np.floor(Y0.min() - ext))); yb = int(min(H, np.ceil(Y0.max() + ext)))+ if yb <= ya: return+ Hc = yb - ya+ A = np.zeros(Hc * W, np.float64); R = np.zeros(Hc * W, np.float64)+ G = np.zeros(Hc * W, np.float64); B = np.zeros(Hc * W, np.float64)+ K = np.clip(np.ceil(L / step).astype(np.int32) + 1, 2, 400)+ # bucket by sample count (rounded up to a coarse ladder) so every bucket is one dense array op+ ladder = np.array([3, 4, 6, 8, 11, 15, 20, 27, 36, 48, 64, 85, 112, 150, 200, 270, 400])+ kb = ladder[np.searchsorted(ladder, K)]+ for kk in np.unique(kb):+ sel = np.nonzero(kb == kk)[0]+ m = int(np.ceil(W0[sel].max()))+ for s0 in range(0, len(sel), max(1, 3_000_000 // (kk * m))):+ ii = sel[s0:s0 + max(1, 3_000_000 // (kk * m))]+ s = np.linspace(0, 1, kk, dtype=np.float32)[None, :]+ Li, Bi = L[ii][:, None], BEND[ii][:, None]+ dx, dy = DX[ii][:, None], DY[ii][:, None]+ px, py = -dy, dx+ X = X0[ii][:, None] + dx * Li * s + px * Bi * s * s+ Y = Y0[ii][:, None] + dy * Li * s + py * Bi * s * s+ w = W0[ii][:, None] * (1 - s) ** 0.8 * (0.55 + 0.45 * np.minimum(1, s * 6))+ seg = (Li / (kk - 1)).astype(np.float32)+ cr, ct = CR[ii][:, None, :], CT[ii][:, None, :]+ tt = (s ** tpow)[..., None]+ col = cr + (ct - cr) * tt+ mm = max(1, int(np.ceil(W0[ii].max())))+ for j in range(mm):+ if mm == 1:+ Xj, Yj, wt = X, Y, np.minimum(w, 1.0) * seg+ else:+ o = (j + 0.5) / mm - 0.5+ Xj, Yj = X + px * o * w, Y + py * o * w+ wt = np.minimum(w / mm, 1.0) * seg+ self._bilinear(Xj, Yj, wt, col, ya, Hc, A, R, G, B)+ A = A.reshape(Hc, W).astype(np.float32)+ Cs = np.stack([R.reshape(Hc, W), G.reshape(Hc, W), B.reshape(Hc, W)], -1).astype(np.float32)+ del R, G, B+ if blur_px:+ A = blur(A, blur_px)+ for c in range(3): Cs[..., c] = blur(Cs[..., c], blur_px)+ a = np.clip(A * gain, 0, 1)+ col = Cs / np.maximum(A, 1e-6)[..., None]+ Cc = C[ya:yb]+ Cc += (col - Cc) * a[..., None]+ if alpha_out is not None:+ ao_ = alpha_out[ya:yb]+ ao_ += (1 - ao_) * a++ def _bilinear(self, X, Y, wt, col, ya, Hc, A, R, G, B):+ W = self.W+ X = X.ravel(); Y = Y.ravel() - ya+ wt = np.broadcast_to(wt, (wt.shape[0], col.shape[1])).ravel() if wt.ndim == 2 else wt.ravel()+ ix = np.floor(X).astype(np.int32); iy = np.floor(Y).astype(np.int32)+ fx = (X - ix).astype(np.float32); fy = (Y - iy).astype(np.float32)+ c = col.reshape(-1, 3)+ for oy, ox, ww in ((0, 0, (1 - fx) * (1 - fy)), (0, 1, fx * (1 - fy)), (1, 0, (1 - fx) * fy), (1, 1, fx * fy)):+ jx, jy = ix + ox, iy + oy+ ok = (jx >= 0) & (jx < W) & (jy >= 0) & (jy < Hc)+ if not ok.any(): continue+ id_ = (jy[ok] * W + jx[ok])+ wv = (ww * wt)[ok]+ n = A.shape[0]+ A += np.bincount(id_, wv, n)+ cc = c[ok]+ R += np.bincount(id_, wv * cc[:, 0], n)+ G += np.bincount(id_, wv * cc[:, 1], n)+ B += np.bincount(id_, wv * cc[:, 2], n)++ # ================================================================== output+ def finish(self, grain=1.0, bloom=0.3, soft=0.3, chroma=0.25):+ """record the finishing (applied in render, so every stage snapshot matches; call before the first mark)"""+ self.fin = dict(grain=grain, bloom=bloom, soft=soft, chroma=chroma)+ return self++ def render(self):+ """the finished picture (the buffer is untouched)"""+ out = np.clip(self.C, 0, 1).copy()+ f = self.fin+ if not f: return out+ H, W = self.H, self.W+ if f['soft']:+ s = f['soft']+ for c in range(3): out[..., c] = out[..., c] * (1 - s) + blur(out[..., c], 0.8 * self.k) * s+ 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+ lum = sm.mean(-1)+ br = sm * smoothstep(0.72, 0.98, lum)[..., None]+ for c in range(3): br[..., c] = blur(br[..., c], 6 * 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['grain']:+ r = np.random.default_rng(self.seed * 31 + 7)+ g = r.standard_normal((H, W)).astype(np.float32)+ g = 0.7 * g + 0.6 * blur(g, 0.7) * 1.6+ lum = out.mean(-1)+ amp = 0.017 * f['grain'] * (0.45 + 1.1 * lum * (1 - lum) * 4 * 0.5)+ out += (g * amp)[..., None]+ if f['chroma']:+ for c in range(3):+ out[..., c] += r.standard_normal((H, W)).astype(np.float32) * 0.008 * f['chroma'] * f['grain']+ 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