Skip to content

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.

95.1 KB
Raw Blame

Claude Drawing · styles in depth

← README · Styles · 画风 · Principles · 作画要点 · Usage · 用法 · Gallery · 画廊 · GIFs · 动图

Claude paints with code — no image model. Eighty-three styles, from ink wash and impasto oil to clay, cyanotype, stained glass, a Roman mosaic, Delft tiles, a cyberpunk street, a ray-traced ball pit, low-poly 3D, a thermal camera, an X-ray, a VHS tape, a synthwave sunset, a pastel product-film UI, an answer sheet marked in red, a lamp-lit shadow-puppet play, pen-and-wash sketch cards, retro gouache picture-book portraits, a soft-blue picture-book spread, a Jiangnan water garden in spring, a dry-brushed mid-century poster, a dusk picture-book page where the sky turns to stars, a hatched night print of lava meeting the sea, a dark note-taking app rendering its diagram, an infinite canvas of cards, a five-diagram sheet on warm Flexoki paper, a warm coloured-pencil storybook spread, a colour town of gouache houses strung with bunting, a soft-pastel vignette of a woman wearing her ginger cat as a scarf, a melancholic Halloween portrait of a porcelain-faced child carrying a glowing ghost home in a jar, an oil-pastel portrait of a woman warming her hands on a paper cup on a winter morning, a sketchbook doodle of a girl in a rainbow-striped jumper reading on a stool while her cat sleeps at her feet, a sheet of flat Japanese spot illustrations of a rainy Saturday with one red thing in every vignette, a grainy, chalky picture-book page of a child walking a little dog home through the snow on a cobalt evening, a tall phone wallpaper of giant hills furred in velvety grass, glowing lavender and apricot at dawn, with one walker a few pixels tall on the crest, and a white room full of summer light, where the trees outside the window are painted leaf by leaf and their shadows fall blue across the cushions and the floor.

What it is

A Claude Code skill and a small painting library with eighty-three styles:

Style Module What makes it read as the real medium
Ink wash (水墨) lib/inkpaint.py · Painting rice paper; occluding washes with wet rims and mist; bristle brush with flying-white; texture strokes (皴); moss dots; pines, boats, reeds; calligraphy and seal
Watercolour lib/watercolor.py · Watercolor cold-press paper tooth; transparent glazes that mix subtractively; wet-edge darkening; granulation; blooms; wet-in-wet feathering; reflections; lifting
Paper collage lib/papercut.py · Collage torn edges with a white fibrous core; paper depth shadows; kraft, crayon, newsprint and ruled-notebook papers; waxy crayon lines; cute faces
Coloured pencil (Korean style) lib/colorpencil.py · ColorPencil short directional hatching; wax that catches on the paper tooth, with pressure reaching the valleys; soft layered blending; brown pencil outlines; gel-pen sparkles
Anime (Japanese) lib/anime.py · Anime gradient skies; cumulus with crescent cel shadows on every puff; bloom, god rays, lens flare; flat-shaded fields, perspective roads, power lines; line-art characters
Editorial (risograph) lib/editorial.py · Editorial 4–5 spot inks with grain, uneven density and mis-registration; overprinting; halftone shading; wobbly hand-drawn line; stylised figures
Impasto oil lib/oilpaint.py · OilPainting thousands of strokes following a flow field; each pixel knows its place inside its stroke → flat-topped paint ridges, bristle grooves, heavier paint where the brush lands; lit relief
Ukiyo-e woodblock lib/ukiyoe.py · Ukiyoe one block per colour on washi, with wood grain and registration drift; bokashi graded wipes; black key-block outlines; seigaiha waves; cloud bands; title cartouche and seal
Pixel art lib/pixelart.py · PixelArt a 320×180 canvas painted pixel by pixel; limited palette; ordered (Bayer) dithering for gradients, glows and reflections; 3×5 bitmap font; crisp ×6 upscale
Stop-motion clay lib/clay.py · Clay a height map of pressed pieces (pads, balls, rolled snakes, puffy letters, finger-smeared slabs, tool grooves, pokes) with lumps and fingerprints; lit like a photo of a set: wrap-diffuse key + cool fill, waxy sheen, shadows marched through the height field, ambient occlusion
Cyanotype (sun print) lib/cyanotype.py · Cyanotype emulsion brushed on in strokes with dry-brush ends; objects block UV (transmissions multiply): translucent leaves with whiter veins, fluff lifted off the paper with a soft penumbra, light scattering under edges; a Prussian-blue density curve; white handwriting printed in, pencil notes on the margin
Cross-stitch embroidery lib/stitch.py · Stitch Aida cloth with a hole at every block corner; one X per cell, lit as round twisted thread with a shadow, in hand-made variants; half stitches; back-stitch snapped hole to hole; padded glossy satin stitch; French knots; ASCII charts and a 5×7 sampler alphabet; a sewn-on woven label
Vintage instrument panel lib/panel.py · Panel teak veneer, brushed aluminium, moulded plastic, grille cloth with lurex floats, perforated metal; bevels, wells and drop shadows from one key light; machined knobs, piano keys, toggle switch, jewel lamp, magic-eye tube, meter; silkscreened scales and a backlit dial behind glass
Sticker collage × receipt lib/sticker.py · Sticker cream card board with grain, mottling and fibres; flat-vector art die-cut into vinyl stickers (rounded white border, cut-edge thickness, laminate gloss rim and sheen, contact + drop shadow, peeled corners showing the pale backing); a thermal receipt with serrated tear edges, grey streaky thermal print, dotted leaders, a printed strike-through, a fold crease and curl; translucent washi tape with torn ends; price tags with grommets on baker's twine; a round rubber stamp in translucent, unevenly pressed ink; red ballpoint ticks
Lab notebook × stickers lib/notebook.py · Notebook a wire-o graph-paper notebook on a graphite desk (hard back cover, stepped page stack, divider tabs, dog-ear, wire loops lit as metal tubes); graphite that only catches the paper tooth, with pressure, taper and hand wobble; ruled lines, hatching, pencil charts and check boxes; multiply highlighter swipes with pooled starts, felt streaks and dry tails; red felt-pen loops that overshoot instead of closing; curling sticky notes, die-cut vinyl stickers, embossed label-maker tape, a coffee ring; a hexagonal pencil with a scalloped sharpened edge
Chalkboard lib/chalk.py · Chalkboard cloudy green slate paint; chalk that only catches the board's tooth, with pressure, grain and broken edges; side-of-the-stick shading; a felt eraser that really removes chalk, drags a smear along the wipe and leaves ghosts of the last lesson; dust settling thicker toward the tray; hand-set text where each character sits a little differently; hand-drawn ∝, waves, arrows and open loops; a mitred wooden frame with chalk sticks and an eraser on the ledge
Cyberpunk lib/cyberpunk.py · Cyberpunk a pinhole camera down a rain-soaked street canyon, rendered in HDR with a z-buffer: glass-tube neon with over-exposed cores, dead and flickering tubes; backlit light boxes; a translucent hologram ad with scan lines, tear slices and colour fringing; each object mirrored from its own ground line into the wet asphalt and puddles; depth fog lit by the city; steam lit by the signs; three layers of rain lit only near the neon; flying-car light trails; bloom, halation, grain and one glitch line
Hand-drawn cartoon lib/cartoon.py · Cartoon drawn the way an animator draws one frame: a blue col-erase pencil rough left under everything; brush-pen ink that lands thin, swells and lifts off to a point, closed shapes inked in one stroke whose ends overlap, heavier on the shadow side; flat colour painted a little off the lines (a sliver of paper here, a spill there); hard one- or two-tone cel shadows and white glints; crayon that only catches the paper tooth, screentone, ink hatching; faces, rubber-hose arms with mitten gloves, sparkles, speed lines, starbursts; chunky extruded lettering; lines that boil from frame to frame; a staged replay rough → ink → colour → shadow → effects → type
Isometric 2.5D lib/isometric.py · Isometric a true isometric orthographic camera and a small ray tracer: every part is an exact analytic solid (chamfered boxes, roofs, rocks and hulls as convex polyhedra; cylinders and cones on any axis; ellipsoids cut by planes) in a G-buffer, so hiding never depends on draw order; one soft sun gives the three-tone faces and percentage-closer soft shadows that widen with distance; occlusion comes from a top-down map that knows eaves and tree crowns float; pastel albedos under a lilac sky, chamfer highlights, shore foam, glassy water walls, a floating slab whose shadow lands on the backdrop; data cards printed on iso planes
Continuous line art lib/lineart.py · LineArt the whole picture is one path: shapes strung together in drawing order with tangent-continuous bridges, loop-the-loops laid along the path, invisible retraces to reach a window; rasterised once into a time map, so every draw-on stage is an exact prefix of the line; a hand-pressure width (touch-down and lift-off tapers, slow drift, heavier in sharp turns, a flick where the pen doubles back, a lighter hand for motion paths); a gilded wire with angle-dependent sheen and a faint, tight glow on night blue (or dark ink on cream); a hot pen tip while drawing; one glowing accent; letter-spaced Didot titles
Soft 3D lib/soft3d.py · Soft3D an actual little ray tracer: tens of thousands of balls found by walking a grid (DDA) with exact ray–sphere hits; puffy letters as signed distance fields (exact 2D distance transform of the glyph, extruded, rounded and inflated); a studio sky dome with ambient occlusion sampled in the scene's own distance field; a big softbox key with soft penumbra shadows, a rim light, softbox reflections and Fresnel edges; shade that turns deeper and more saturated instead of grey; displaced balls that settle into real hollows; aerial haze, layered depth of field, 1.5× supersampling
Shape morph lib/morph.py · Morph one closed outline per object: resampled to 256 points evenly along its arc length, given the same winding, start point aligned by FFT cross-correlation, then blended point by point while its centroid travels an eased motion path with squash & stretch; compound shapes (cloud, snowflake) are unions of primitives traced back to a single outline; colours switch through OKLab; the poster freezes the animation as a film strip: one flat colour panel per keyframe, onion-skin ghosts that change colour at the panel border, matched points dotted on the middle frame, a dashed motion path and a timeline of ease curves
Newspaper collage lib/newscollage.py · NewsCollage everything is paper that was printed, then torn or cut, then glued: kraft board with fibres; hand-torn newsprint of generated pseudo-text that shows a pale fibrous core along stretches of the tear; "old photos" that are real renders (height field, key light, chrome reflections, cast shadows) printed as a 45° halftone with ragged dots and dot gain, cut out with scissors in short straight snips; ransom-note letters each from a different magazine; masking tape that shows the paper edges beneath; uneven rubber stamps
Aurora glassmorphism lib/aurora.py · Aurora a mesh gradient of colour pools mixed in OKLab on a domain-warped grid, with aurora ribbons and fine grain; glossy iridescent orbs; frosted panes that blur the actual pixels beneath them (backdrop, orbs, the cards and text behind), boost saturation and add a milky veil that is thicker toward the light; a bevelled rim that bends the view outward with faint dispersion, a light-facing 1 px edge highlight, frost grain and a soft shadow tinted by what it falls on; crisp SDF controls: gradient toggles, sliders, conic progress rings, pill bars, sparklines, glass chips, a glossy sun behind a glass cloud; SF + PingFang lettering
Bauhaus geometric lib/bauhaus.py · Bauhaus a press sheet printed screen by screen, light to dark, on cream uncoated stock (cloudy pulp, fibres, flecks, tooth, a slight cockle); each screen has its own registration error, so colour meets black with a sliver of paper or a dark overlap and the register targets print as a stack of offset crosshairs; an ink film streaked along the squeegee pull and thinning toward the end of the stroke, with bare tooth pits and pinholes where it is thin and a mesh-ragged stencil edge; semi-opaque inks that darken where they overprint; circles, sectors, triangles and heavy bars on a strict module grid; Futura-style caps and heavy Hei, knocked out of solids; crop marks, a colour bar and a pencilled edition number
Retro synthwave lib/synthwave.py · Synthwave an 80s retro-future dusk through a pinhole camera: a gradient sun cut by slits that thicken toward the horizon; an analytic neon grid with honest line widths that fades to its average instead of moiré; wireframe mountains glowing magenta to cyan; a sea whose reflection is torn into bars stretched about the sun's column; palm silhouettes with sunset rims; chrome caps mirroring sky over ground with a sharp horizon, extrusion and glints; neon script; then played back off tape: chroma bleed, a tracking band, head-switching noise, on-screen display and scanlines
Perler beads lib/perler.py · Perler a height field of real tubes seen by a camera leaning back a little (each pixel walks its column to the first surface), so every bead shows a sliver of side wall, its hole shows the inner wall and the peg inside tinted by light through the plastic, and the gaps show the pegboard; a translucent pegboard (square, round, hexagonal) with empty pegs; per-bead dye-lot shade and wobble; opaque, pearl, clear and glow plastics; ironing as melt: tubes slump and spread, holes close from the rim, neighbours flow together through a smooth union until the gaps shrink to diamonds and the top becomes one flat waxy sheet with paper grain; translucent ironing paper that drapes over the beads and peels back with a curl; a soft box seen in reflection (crisp arcs on glossy rims, a drifting sheen on melted plastic); sorting-tray heaps, spilled beads, tweezers held in the air with their own shadow, a printed chart with pencil ticks
Petroglyph lib/petroglyph.py · Petroglyph the picture is knocked out of the rock, not painted on: a sandstone height field (swells, faint bedding, grain, solution pockets, a stepped ledge) under desert varnish that grows as a near-uniform dark coat with crisp blue-black runoff streaks; every glyph is drafted as a mask and hammered out with hundreds to thousands of irregular pits that break the varnish and crush the grains pale, so outlines are ragged at the scale of one blow and interiors are shallow granular hollows; tally marks are ground V-grooves instead; age re-varnishes old work toward a ghost, so superimposed layers show; cracks bleed seep streaks; spalls are scalloped step-down scars of fresh orange stone that took part of the old work; crustose lichen; one low raking sun with a cast shadow in every pit
Egyptian tomb painting lib/tomb.py · TombPainting the wall is built in the painters' own order and every layer is kept: straw-tempered mud under gypsum plaster, a red-ochre squaring grid snapped at one canon unit per cell, a searching red underdrawing, a ground wash brushed round the figures, flat matte secco colour one pigment at a time (red-ochre men, yellow-ochre women, translucent pleated linen, glittering Egyptian blue, green frit) z-ordered so the pots can go in any order, then even black and red-brown outlines; figures in the composite view on a posable canon rig (profile head with a frontal kohl-lined eye, frontal shoulders and collar that turn toward profile when the body bends, both feet from the big-toe side, IK elbows) at hierarchical scale; oxen with all four legs visible, an emmer field gathered into the reapers' fists, polychrome pseudo-hieroglyphs laid out in quadrats, kheker frieze and block border; then age as strata: clustered flaking down to the wash, or to the plaster where the red grid and sketch come back, plaster losses down to the mud as a real height field with a broken gypsum rim and a cast shadow, cracks, blue decaying to grey-green, soot, a tide-line, salt and fly specks
Roman mosaic lib/mosaic.py · Mosaic a hidden cartoon that every stone samples and snaps to a finite box of stones (limestone, veined marble, smalti glass, terracotta), matched on hue before lightness; rows traced along iso-lines of distance fields (marching squares) so they wrap every outline and ring every eye (opus vermiculatum), halo rows round each figure, straight or wavy background rows (opus tessellatum), mitred border rows; each row fitted with a whole number of hand-cut stones that turn into wedges on curves and stop at the figure's spine; later stones cut to fit against earlier ones with a grout gap; stroke Roman capitals in a tabula ansata; a height field: polished, slightly domed tops with worn edges, recessed sandy grout, a per-stone tilt so equal stones catch the raking light differently, cast shadows in the joints; red-ochre sinopia on the wet bed; lacunae that leave the sockets of lost stones in the old bed, a settling crack, dirt in patches
Stained glass lib/stainedglass.py · StainedGlass the glazier's process: a cartoon cut into pieces (Voronoi mosaics, explicit cut sites for borders, slivers merged away); pot-metal glass coloured all the way through, every piece with its own shade and thickness (transmission ** thickness), reams running one way per piece and seed bubbles drawn out along them; grisaille trace lines, stippled matt with sticklight scratched out of it, silver stain; lead came on every boundary, lit as an H-section, with brighter solder blobs and a wide rim came; iron saddle bars wired to the leads, a crack mended with a strap lead; an ashlar wall with splayed reveals and voussoir joints; daylight from behind: coloured spill on the stone, glowing reveals, a soft upside-down projection on the sill, halation over the leads, grime and corrosion pits
Illuminated manuscript lib/illuminated.py · Illuminated textura written with a simulated broad-edged quill (a stroke is the area an angled nib sweeps, so the diamond feet and hairline joins come from the pen, not a font), with long s, the Tironian et and a per-letter wobble; iron-gall ink that browns as the quill runs dry and pools at the stroke edges; vermilion rubrics, red-touched capitals, red and blue paragraph marks, line fillers, hyphenation; burnished gold as a mirror on a raised gesso cushion (each pixel reflects a studio window through its gesso normal, so the leaf shows bands, flares on the cushion edge and glittering punchwork, while shell gold stays matte); granular azurite, rose with lead-white tracery; an ivy spray grown recursively from a bar border; compass-drawn diagrams with a true stereographic astrolabe plate; vellum with follicles, veins, cockle, prickings, ruling, show-through and a flaw hole; foxing, thumb soil, gold flaked down to the red bole
Leonardo codex lib/codex.py · Codex laid rag paper on a mount (laid and chain lines, fibre tooth), aged unevenly: browned ragged edges, a lost corner, yellowed clouds, crisp foxing, a water stain with a darker tide line, writing from the verso showing through; iron-gall ink from a quill whose width follows the nib, that runs dry stroke by stroke and is re-dipped (darker again, sometimes a pooled bead), warm amber where thin and umber where thick, darker where strokes cross; left-handed '\' hatching laid in bands, interleaved for darker tones and crossed only in the deepest shadow; red chalk that only catches the paper tooth, rubbed into a soft tone; colourless stylus and compass lines lit by raking light, prick holes at the centres, leadpoint underdrawing; contours searched twice before the final line; mirror writing right to left in pseudo-Italian; machine parts (gears, lantern pinions, crown wheels, cranks, pulleys) drawn by a pen renderer with a z-buffer: hidden lines dropped, faces hatched by how far they turn from the light, only silhouettes and creases inked; blots and struck-out ideas
Silhouette lib/silhouette.py · Silhouette black paper that is actually cut: a glued outline re-cut into tiny straight scissor facets, separately snipped strands (plume barbs, lashes, whiskers, ringlets, rigging) that lift a little and throw a longer shadow, and cut-outs where the card shows through (an eye, lace piercings), all drawn at 4× so one-pixel strands survive; thin shell-gold bronzing that stays on the paper; an oval gilt frame built as a height field from a real moulding profile (sight-edge bead, cove, pearls, rope-twist torus) that mirrors a room lit by one window, with leaf-square seams, red bole rubbed through on the crests and grime in the hollows; a verre églomisé mount, the rebate's shadow on the card and a convex-glass reflection; iron-gall captions in roundhand; a block-printed Regency stripe wallpaper (misregistration, pin dots, mismatched seams, sheet joins) hung from a picture rail on twisted silk cords
Letterpress poster lib/letterpress.py · Letterpress one forme per ink, pressed one pass at a time, and each pass lands a few pixels off: the red tint creeps out from under the black key on one side and leaves a sliver of paper on the other; wood type set to full measure, every letter its own block with wood-grain streaks, an end that prints light, dents, nicked corners and the odd split, shaded letters carrying their drop shade on the other forme; stiff oil ink with a ragged edge, a squeezed darker rim, starved mottled solids that let the paper tooth show through, dust dropouts; brass rules made of several pieces with joints; a woodcut cut the way wood is left standing: key lines thicker on the shadow side, swelling hatching whose line width follows the tone and tapers out in the light, a loose separately cut red block; after printing the bill is folded in thirds (ink cracked along the creases), a date strip is pasted on, tacked up, browned from the edges and foxed
Soviet constructivism lib/constructivism.py · Constructivism one sheet, two plates: everything red is on one plate and everything black (solids, type, every halftone dot) on the other, each laid down with its own registration error, so red and black meet with a sliver of paper or a dark overprint; transparent inks that multiply (black over red is a warm black), a mottled film with voids, fibre-ragged edges and a letterpress halo; the "photographs" are real renders (a tiny z-buffer rasteriser: hyperboloid lattices, lathes, swept tubes, procedural wood grain and dial scales) screened in poster space into one 45° AM halftone and cut out with scissors that leave a paper margin and never cut into a gap; heavy condensed Cyrillic grotesque with a hand-drawn wobble; cheap cream stock yellowed at the edges, folded in four with the ink cracked along the creases, foxing, a tide line and rusty pin holes
Art Deco lib/artdeco.py · ArtDeco nothing is ever outlined: every shape is a knife-cut frisket sprayed with an airbrush, so edges are crisp and every inside is one smooth fade, with droplet grain only where the coat is thin; a sunburst of alternating rays that fades with distance, a moon sprayed off-centre so it reads as a sphere; stepped set-back towers sprayed dark-to-light across each face with fluting, lit ledges, window grids and lit slits, pushed into the haze by distance; a river that mirrors the scene in ripple dashes, bright things reflecting more; the streamliner and its arched viaduct are a real little 3D scene (signed distances, sphere-traced, edge pixels supersampled) but shaded like an illustrator models a cylinder: a poster colour ramp per material, an airbrushed highlight band on the upper shoulder, moon rim light, reflected light under the belly, speed stripes that converge on the raked nose, the headlamp lighting the rails ahead; a Deco display alphabet built from strokes and elliptical bowls, gilt with a hard horizon line
Golden-age comic lib/comic.py · ComicCover made the way the shop made it, printed the way the press printed it: brush key lines on the black plate that land thin, swell, lift off and run heavier on the shadow side, spotted blacks, feathering that grows out of shadow edges in uneven waves; a colour guide in which every area is a mix of Ben-Day tints (0/20/40/70/100 %) of three process inks, skies stepped in bands cut along wavy film edges; each plate screened at its own angle (dots grow, touch at 50 %, turn into holes, overlaps beat into rosettes) and printed a few pixels out of register, the hand-cut flats wandering off the line art; newsprint that has gone tan and drinks the ink (ragged dots, dropped highlights, mottled solids with bare pits); a perspective block logo extruded toward a vanishing point, price box, caption, speech, shout and thought balloons, hand lettering, sound effects; afterwards spine stress ticks, rusted staples, a rubbed corner, a crease and foxing; the stages proof the key plate, then yellow, + red, + blue
Pop silkscreen lib/popart.py · PopSilkscreen the Factory method rebuilt step by step on one gessoed cotton-duck canvas (a plain-weave height field with slubs), taped into a grid with paint creeping under the tape. Each panel is hand-painted first in loud flat acrylic: the background, then loose shapes traced off the photo, a little too big or too small and drifting off it, with faint brush streaks, a dry drag at the edge and a low ridge that catches the light. Then the same photographic key is pulled through it: shadow masses with the grainy edge of a photo threshold, mid-tones as a coarse 45° halftone, dust specks on the film. Every pull lands with its own shift, a hair of rotation and its own ink load: streaks along the squeegee, the skipped line of a nicked blade, a clogged dry patch where the colour shows through the black, or flooded shapes that swell and fill in, and now and then a faint second impression
ASCII art (line printer) lib/lineprinter.py · LinePrinter the scene is never drawn on the paper: it is painted into a hidden role map at six by ten samples per character cell, then every cell picks its character: lines and silhouette turns by their direction measured in real pixels and where they sit in the cell (| / \ for steep, ' - . _ for flat so curves come out as _.-', X where struts cross, ( ) for round sides, one cell kept per row), fills from each role's own ramp with error diffusion inside the role (smoke . : % @ #), the darkest cells overstruck in extra passes; then a drum printer strikes each line through a fabric ribbon: every character slug sits a little high or low the same way each time, a weak hammer leaves a pale column, weak strikes thin out and break up on the ribbon weave and paper tooth instead of turning grey, worn slugs print the same nick, the ribbon fades down the page; a whole greenbar sheet lying on the desk between two tear lines, with feed holes you can see the desk through, micro-perforations, page-break creases and a blank bottom margin; a red ballpoint tick list and a ring around the plotted point
Low poly (1999 3D) lib/lowpoly.py · LowPoly an actual little software rasterizer drawing into a 384×216 framebuffer: a pinhole camera, vertices snapped to whole pixels, back-face culling, every triangle of the scene in one painter's-sorted list (the console ordering table) with a depth bias for decals, near-plane clipping, an optional z-buffer; flat shading per face (hemisphere ambient + sun + a per-facet glint, so gold flashes facet by facet); tiny procedural textures sampled nearest-neighbour and interpolated affinely, so strata bend on big polygons near the camera; per-vertex fog that swallows the far clip plane; alpha-cut crossed-quad trees; the era's four blend modes for a propeller disc, blob shadows, sparkles and a lens flare; then 15-bit colour through the 4×4 ordered dither and a ×5 nearest-neighbour blow-up; a stamped bitmap HUD (italic ramp digits with outline and drop shadow, a stepped speed bar, a minimap)
Stencil graffiti lib/stencil.py · Stencil a board-marked concrete wall built as albedo plus height and lit by a low sun (sawn-plank bands and wood grain pressed into the cement, broken paste fins along the seams, cone-shaped form-tie holes with rusted rods or mortar plugs, bug holes, rust and rain streaks, a damp tide line with efflorescence, a hairline crack); stencils that are real cut card: every island the cuts isolate is found and held by the shortest bridge, letters get bridged counters, and the bridges show as hairlines of bare wall; a picture in tones is several cards sprayed light to dark, each a few pixels off; the can moves in overlapping sweeps whose gaussian cones add up to a paint film, crisp where the card lay flat, creeping under where it lifted, with a drifting overspray halo; coverage is droplets, so thin film is a scatter of dots, not a blur; paint misses the bottom of pits, lies on the relief with a satin sheen, and runs from heavy lower edges as drips with a neck and a bead; freehand skinny-cap lines that follow the hand's speed; a council roller buff in stepped vertical passes with an old tag ghosting through; snapshots with the card still taped up
Embroidered patches lib/patch.py · Patch stitched the way an embroidery machine does it: every shape is cut into parallel rows at its own angle and each row into stitches — short staggered tatami for backgrounds, one long float per row for satin (split above a max length) — so every edge is made of stitch ends; each stitch is a round glossy thread that dives into the cloth at both needle holes and carries an anisotropic (Kajiya–Kay) highlight, so one colour sewn at two angles catches the light differently; padded satin domes into a light-to-dark sheen along each float; merrowed edges are a rolled cord of slanted wraps, die-cut shapes get a hot-cut satin border, both supersampled and faded where stitches crowd into tight corners; a 3/1 right-hand twill denim (warp denser than weft, ~60° wales, ring-dyed slubby warp, worn high points) with a felled seam and double topstitching; one patch still being whip-stitched on, the needle and thread lying on the cloth
Blueprint lib/blueprint.py · Blueprint the drawing is inked first, on tracing linen, with a few fixed ruling-pen weights and single-stroke lettering-guide capitals (pencil guide lines left on the linen, hatching scraped back behind dimension figures), then contact-printed: ink blocks the arc lamp so the iron salts under every line wash out white while everything else turns Prussian blue; density follows a threshold S-curve, so heavy lines print clean white, hairlines print pale blue and the ground saturates; light creeps under line edges, sharp where the glass pressed the linen flat and softer where contact was poor, with a faint halo; the lamp is stronger mid-frame, the coating carries machine streaks, mottle and wash runs from the drying line, and colour is Beer–Lambert Prussian blue on paper with the fibres showing through; drafting conventions throughout (hatching by material, dimension and extension lines, level datums, cutting planes, detail bubbles, a north point, graphic scales, a zoned border, title and revision blocks); then the sheet's life: folded in six with creases cracking the blue to white, the outside panel faded and handled, an alkaline water stain gone rust-brown inside two tide lines, rusty pin holes, and a site engineer's red wax-pencil revision cloud
Children's crayon lib/crayon.py · Crayon rough paper whose tooth is equalised so pressure maps straight to coverage; wax only catches on the peaks, and dragging the stick stretches the bare pits into short streaks along each stroke; a worn, faceted tip lays a bundle of uneven sub-lines, so every stroke carries white streaks; later wax catches on earlier wax (build-up) and mixes semi-opaquely (blue over yellow turns green, black outlines survive the colour); a child's hand: outline first, then back-and-forth scribbles patch by patch at arm's reach, each patch at its own angle, V-turns that overshoot the outline but stop short of anything being coloured round; circle scribbles, strokes along rainbow bands, shapes whose ends miss their starts; letters re-drawn over a thinned glyph with a round crayon, each tilted, resized and coloured differently; burnished wax that closes up and shines; paper and wax lit as one height field; real crayons in printed paper sleeves, one snapped, and wax crumbs lying on the sheet
Green-screen CRT terminal lib/crt.py · CRTTerminal a character terminal, not a picture: 120×36 cells of character memory with dim / normal / bold, reverse video, underline and double-height lines, a 5×7 dot-matrix ROM with descenders plus a graphics set (box drawing, the five scan-line bars for plotting, block eighths). ASCII art comes from a hidden map of materials and tones: interiors pick from a ramp with error diffusion, silhouettes by the edge's direction and height in the cell, and on a screen dense means bright, so a storm cloud is sparse and dim with a lit rim. The beam paints ten scan lines per row: dots stretched by half a dot (before reverse video, so dark strokes survive), smeared by the video amplifier, with a spot that swells with current. P1 phosphor saturates to pale mint and leaves afterglow trails behind falling rain; an old status line is burnt in. The raster is barrel-curved and falls off at the edges, with bloom and halation in the glass, a room window reflected in it, and the bezel's shadow. The putty plastic bezel has a chamfer that catches the green spill, a mould seam, a power LED and two knurled thumbwheels
Thermal camera lib/thermal.py · Thermal never painted in colour: the scene is a temperature field in °C — a room layered warm over cool, every object at its own temperature with its own gradients (a pot hottest at the base, a cat's eye hotter than its nose and ears), polished metal reading the room it reflects through emissivity, rounded bodies cooling toward their outline. Heat then leaks out the way it does: soaking into the wall behind the stove, rising in plumes that widen, cool and break into eddies and wisps, cold air pouring off an open fridge and spreading over the floor in tongues, warm paw prints that fade and spread with age, glazed tiles mirroring the oven. That field is seen by a modelled uncooled camera: lens blur, box sampling onto a 480×270 sensor, temporal noise and column stripes, a centre-cool vignette, detail enhancement, a hand-set tone curve mixed with plateau histogram equalisation, a false-colour palette, and a bilinear upscale that keeps a trace of the pixel grid. The OSD (status bar, spot meters, area box, hottest/coldest markers, a line-profile inset, a non-linear scale bar) reads every number off the same sensor image
Delft tiles lib/delft.py · DelftTile a tin-glazed tile wall made in workshop order: blank tiles on a grid that is never quite straight, the design pounced through a pricked pattern as charcoal dots, outlines with a fine brush (a bead where it lands, a taper where it lifts, heavier on the downstroke, a slow hand wobble), washes that cannot be blended (brush bands, bristle streaks, a darker rim where the water dried last, overlaps that darken, never quite inside the outline, white kept by painting round it); one transparent pigment, so everything is painted front to back with reserves instead of layers; dull grey-black raw pigment that the kiln turns into cobalt by per-channel Beer–Lambert absorption, with a soft bleed into the glaze and a speckle of grains; every tile painted and fired on its own, so lines step at the joints and each tile has its own white and its own blue; quarter ornaments that only become whole where four single tiles meet; recessed lime-mortar joints; every tile a little cushioned and tilted, so a window reflects as bent, broken panes and the rounded edges catch the light; crazing, iron specks, chips showing the buff body, a crack that stops at the joint
Cave painting (ochre) lib/cave.py · CavePainting the opposite of the petroglyph: pigment laid on pale limestone and seen only by a fire. The wall is a height field (broad swells, ridged folds, faint solution scallops, pits that hold clay, calcite crust on the convex parts, wet flowstone drapery) under a cream-to-buff albedo; every pigment is a coverage field multiplied into it, so the rock's mottling shows through even a dense coat. How it was applied decides the look: charcoal searching lines on a wandering contour, a dry stick that catches only the rock's tooth, blown paint with a soft edge, halo and droplet speckle, denser at the rim and on the side of a bulge turned away from the fire, pale bellies left bare; hand stencils sprayed in several puffs aimed at the fingertips. Lit only by a campfire and a fat lamp on the floor: half-Lambert point lights with inverse-square falloff and shadows marched per pixel, so raking light makes every bulge the animals were painted on read as volume; flame tongues, sparks, bloom, a smoke plume, soot on the ceiling, calcite veils, flaked paint and a cave bear's claw marks
1-bit paint program lib/macpaint.py · MacPaint the whole screen of a 1984-style black-and-white paint program, not "pixel art": a 640×360 framebuffer with exactly two values, blown up ×3 with no smoothing; every tone is one of 38 eight-by-eight patterns anchored to the document origin (two fills of one pattern butt seamlessly and never bend with the shape), and gradients are bands of patterns; the tools behave like the originals — square-pen Bresenham lines with stair-step jaggies, shapes filled with a pattern and framed inside their outline at the current line width, a 4-connected paint bucket, a spray can that ORs random pixels in a disc, brush shapes, select-and-drag copies with Flip Horizontal, XOR; a hand-made bold bitmap system face (9-px capitals, 2-px stems), TrueType rendered with antialiasing off, bold / italic / underline / outline / shadow done as bitmap operations; the interface is redrawn for every snapshot: a menu bar with invented menus and rounded black screen corners, a 20-tool palette with the active tool inverted, a line-width box, a pattern palette with the current fill, a striped title bar with a close box, scroll bars with a 50 % track, a pull-down menu that shows each type style in its own style, a fat-bits zoom window, marching ants, cursors with white halos
Greek black-figure vase lib/blackfigure.py · BlackFigure the pot is thrown first — a profile r(y) with two round handles — and everything is painted on its unrolled surface, so the same painting wraps onto the curved pot and lies flat in the rollout without ever disagreeing. Work goes in the workshop's order: bands painted while the wheel spins (dead level, a small lap where the brush lifted), silhouettes in slip that is still a dull brown, details incised through it to the orange clay, matte added red and white laid on last; every figure part is z-ordered, so a nearer black horse hides the farther horse's lines and colour and cuts its own outline — four horses overlap and still read as four. Firing turns the slip into blue-black gloss that fires reddish where thin. Then 2,500 years: flaking white leaving a dull ghost, calcareous crust and root marks, chips showing the fabric, a toned plaster fill with glued cracks, a misfired patch. The photograph is lit like a museum shot (a tall softbox and a strip light reflected in the glaze, satin clay, the pale plinth in the lower glaze, a slight perspective bending every band into an arc), and each frieze is unrolled at its own circumference
Graphite pencil lib/graphite.py · Graphite graphite is a mass on the paper, not a colour: value is Dmax·(1 − e^−m), so layers build up but never reach black, darks stay a cool slate and hard pressure polishes them to a faint silvery sheen; the lead only deposits where it touches the tooth — light pressure grazes the peaks and leaves white specks, soft leads and hard pressure fill the valleys; grades 2H–8B differ in mass, reach and width; every stroke eases in, swells and flicks off; hatching is laid patch by patch with wandering seams and built up in layers (one direction, interleaved, then crossed at two more angles, each only where the tone asks for it); the side of the lead lays a grainy base tone, a blending stump smooths it inside the area it works, a kneaded eraser lifts soft lights and a hard eraser cuts crisp ones; construction lines to the vanishing point and looped wheel ellipses stay visible, and only the middle is finished — tone drops out stroke by stroke toward the edges, leaving bare line drawing, margin notes and a strip of pencil swatches
X-ray lib/xray.py · XRay nothing is drawn as a picture of an object: every object is built as material along the beam (a solid with rounded edges, a hollow shell, a round rod or tube, a spring whose far half dives along the beam, discs seen edge-on or face-on, zips, screws, cables, folded cloth), measured in canvas pixels, and adds μ × density × path length to two attenuation maps, one per beam energy — so overlaps simply add, and outlines glow for a physical reason (the beam runs along a case's side wall, a tube's walls, a lens barrel seen end-on). Beer–Lambert transmission then goes through a modelled line-scan detector (scatter haze at quarter resolution, focal-spot blur, per-row gain streaks and module seams, Poisson noise that grows where few photons get through) and two displays: an edge-enhanced, phosphor-glowing blue film where dense is bright, and the security pseudo-colour where the ratio of the two energies gives Zeff (organic orange, inorganic green, metal blue, opaque black) with the belt calibrated out. The OSD reads Zeff and volume off the picture, background-subtracted around each tagged object
1930s rubber hose lib/rubberhose.py · RubberHose made the way a studio made one frame, then printed and worn: a grey-gouache background painted once on board (washes with a dry-brush streak, airbrushed pools of light and contact shadows, a thin grey outline); actors roughed in pencil, inked on cels in an even, heavy black line and painted on the back in five flat greys with no shading; opaque cels stacked back to front, with clip masks for the overlays they pass behind (a hill, a window bar, a blanket). The vocabulary does the rest: constant-width hose limbs with no elbows, four-fingered white gloves with three stitch lines and a flared cuff, big shiny shoes, pie-cut pupils, open grins, props that come alive. Then the camera and the years: lens softness worse in the corners, halation, lifted blacks and held whites in a silvery-warm print tone, midtone-weighted grain clumps, uneven density, gate weave, a rounded projector gate, white and dark scratches that come and go, dust, lint and a hair in the gate
Linocut lib/linocut.py · Linocut made by subtraction, like the real thing: a rolled-up block prints solid black and every white in the picture is lino a gouge took away. Each block is a relief map; every cut is a tapered polygon with a crumbly edge — a V-gouge dips in to a point, widens and lifts out, a U-gouge bites with a round head and tears off at the tail — so tone is only ever the density and width of cuts (white lines in black) or of ridges left standing (black lines in white). Cleared areas keep a few low ridges of chatter that catch a little ink; a black thing on a black ground gets a carved white halo. Printing is simulated: a brayer film with stop-lines, the circular pressure of a hand baren, and the paper's tooth decide where ink lands, so big blacks go salty while edges stay solid; one spot-colour block is printed under the key, a few pixels out of register; the paper is pressed into the block, and the margin carries the pencil edition number, title, signature and a blind chop
VHS home video lib/vhs.py · VHSCamcorder not a retro filter over a picture but the three steps a home-video frame really went through, each one leaving its own marks. The room is painted as surface colour lit by its lamps (a dim warm ambient, a floor lamp that throws scallops up and down the wall, candle flames that light the cake and the child's hair from the front), with self-lit things in their own buffer and the child right in front of the lens on a defocus layer. A consumer CCD camcorder then sees it: hand-held roll, white balance left on 'outdoor' under tungsten bulbs (an orange room, a blue window), a soft highlight knee, bloom, vertical CCD smear through the flames only, a short lag tail, gain noise in the shadows — and its character generator mixes a chunky dot-matrix OSD into the signal, so REC, the counter and the date stamp go onto tape with the picture. Finally the tape: 480 lines, luma low-passed with the playback sharpness halo, chroma smeared ~6× wider, averaged over two lines and delayed to the right (reds bleed out of their outlines), streaky luma and chroma noise, line-by-line timebase jitter, flagging at the top, a tracking-error band, head-switching tear, dropouts and a lifted black level
Flat vector lib/flatvector.py · FlatVector an artboard of crisp anti-aliased geometric shapes (analytic circles, filleted polygons, tapered capsules, spline land profiles) combined with boolean ops, with no outlines anywhere; seven flat hues, every other colour a tone or mix of them; one light for the whole board, so every object splits into a lit face and a shade face (faceted ridge lines on the mountains, pines split down the middle, a cloud's belly cut from the cloud itself); the vector-paper depth cue: each lifted layer first drops a short, soft, night-blue shadow on what is already there, so every overlap shows a thin seam; glow as stacked flat translucent rings; a faint per-layer fibre and a fine, fixed print grain
Storybook animation lib/storybook.py · Storybook a real animation, not a draw-on: every piece of scenery is pre-painted once with a reveal map (the moment the pen or brush reaches each pixel), so ink lines draw along their length, washes spread with a darker wet front and props pop in with an overshoot — and the hills, flowers and banks are drawn exactly as the character passes (follow). The character is rendered every frame from implicit shapes in its own frame, squashed and stretched with a volume-preserving affine along its motion, rested exactly on the ground, lit by one fixed light so the highlight stays put while it rolls; poses come from eased, sprung and ballistic choreography plus impact lines, dust puffs, speed lines and ripples. The closing line writes itself in stroke order (skeleton walk), and the same scene renders a journey poster with the key poses multiply-exposed on a pencil motion arc
Ballpoint doodle lib/ballpoint.py · Ballpoint ballpoint ink is an oil paste a rolling ball lays down, kept as optical density, so a line drawn twice, a crossing or a blob goes darker and more saturated (blue deepens to blue-violet, never flat black); every stroke starts dry and thin, drifts in pressure and width, skips a few pixels now and then, drops gloops where the pen stops and at sharp turns, and flicks off in a little hook; outlines are gone over twice, slightly off; every stroke presses a groove into the copy paper that catches the raking light, and the sheet carries the blind indentations of a shopping list written on the page above; coloured pencil is wax on the paper tooth, hatched in quick slanted patches that run past the lines, light on big areas and pressed hard on small ones; the handwriting is the skeleton of a thin hand font re-drawn as pen strokes, each letter resized, tilted and lifted off a wandering baseline, with a word scribbled out and written again
Overlay sheets (tracing paper on a light box) lib/overlay.py · Overlay the picture is a product of transmittances: a warm light box glows through a base sheet printed in black line and grey tints, then through translucent sheets that each carry ONE ink, laid down on registration crosses; an ink's coverage is a screen tint (or a double hit above 100 %), and inks on different sheets multiply, so blue over yellow turns green, magenta over yellow red and magenta over blue violet; every sheet has its own paper tint, the cloudy fibre formation you only see against the light, stray fibres, a cut edge that reads as a thin dark line, punched holes that drop onto a steel peg bar; a lifted sheet is a little larger, throws a wide soft shadow you can see through it and blurs everything under it like the diffuser it is, then lands crisp with a thin contact shadow; curled corners, crepe drafting tape with torn ends, a clear film with a gloss sheen; the town under it is cut by recursive street splits into blocks with a ring of buildings and party walls, water-lined round the coast
Pastel UI (product-film interface) lib/pastelui.py · PastelUI one frame of a modern product film: a flat pastel field (blue, pink, yellow, lilac, mint, peach) with one big pool of soft light and a few white bokeh discs; macOS window cards with a frosted rim, a white body, the red / yellow / green lights and split panes, side panels, a dot pill and a step strip, a heavy headline with a translucent marker under the key words, status chips, round check / cross badges, text highlights, an inline reference chip and a callout tag; every shape is a signed-distance field with analytic 1 px anti-aliasing, and shadows follow CSS box-shadow (offset, blur, spread; a wide one tinted with the field colour plus a tight neutral one), so cards float without a grey halo; everything is drawn into named layers with a pose (offset, scale, opacity, left-to-right reveal) and a depth, so the same drawing pops a window up, writes a line, pops a badge or lets a companion rise from behind a card; a magnifier that enlarges the real pixels under it; a circular colour wipe between sections; three flat companions peek over the card edges — a starburst in a cream circle, a violet cloud with a >_ prompt, an orange pixel critter
Exam grading (an answer sheet marked in red) lib/grading.py · Grading an answer sheet on a green felt desk, printed like the real form — timing marks down the edge, a heavy title, fields, a ticket number with its bubbles filled, a score / grader table, numbered sections, ruled answer lines and a hatched grading column — with an answer key held by a black binder clip beside it; every paper has its own frame and pose, so a sheet can come down onto the desk (a little larger with a wide soft shadow while lifted, a thin contact shadow once down); everything written after printing keeps a progress value and a time map, so a stage can show a stroke half drawn: the candidate's blue-black answers, vermilion rubber stamps (ragged edges, clustered pin-holes, one end pressed dry so the thin border breaks, ink pooled at the rims, a wet bleed, a slight tilt, the paper dented round the rubber) and the red pen — a wavy underline, a ring that overshoots its start, a bowed leader, a note set in a bold sans and inked like the pen (no handwriting font), crosses, ticks and a score written stroke by stroke and circled; ink is Beer–Lambert density, so the red deepens where the pen slowed down and where it crosses print; a red pen shaded as a cylinder whose shadow spreads from the tip, and a varnished wooden stamp that comes down, presses and lifts
Shadow puppetry (皮影戏) lib/shadowpuppet.py · ShadowPuppet a shadow play seen from the audience, where everything on the screen is lamp light that came through it: a cloth screen lit by an oil lamp behind the middle (pale gold at the hot spot, deep amber toward the rim, thread slubs, a fold or two); puppets of scraped donkey hide kept as coverage plus an optical density per channel, so vermilion, teal, ochre and green glow, black dye is almost opaque and pieces darken where they overlap, in any order; pieces are cut, dyed in fields, inked along every cut edge and punched with the craft's hollow patterns (dots, rings, plum blossoms, coins, fish scales, ruyi cloud heads, lattice, ice cracks, stripes), and the hide's uneven thickness leaves no dye flat; a figure is a tree of jointed pieces with thread knots and an angle per joint (a hollow-carved or solid face in profile with one long eye and a long brow, a helmet with barred pheasant plumes or a crown with pompoms, cloud collar, breastplate mirror, scale armour, cuffs, thick-soled boots), with control rods tied to the collar and the hands; a puppet off the cloth grows, blurs and splits into two shadows (the lamp has two wicks), the soft double edge of a figure not quite pressed, and rods are sharp where they are tied and soft lower down; props come from the same leather (a pailou goal with a lattice net and a round eye, a stitched ball, a key-fret floor band, hanging name plaques); in front, a carved proscenium (key-fret lintel, a red lacquer plaque with raised gilt characters, an openwork valance and corner brackets the screen glows through) lit only by the light the screen spills onto its edges, and red paper lanterns lit from inside, with tassels and a warm halo
Pen & wash (钢笔淡彩) lib/penwash.py · PenWash small cold-press sketch cards made the way a sketcher makes them — a fineliner line first, loose watercolour after, then the cards photographed on a table. Each card is its own sheet (paper tooth lit by the window, a cut edge that is not quite straight), drawn unturned and laid down at a slight angle. The ink line is near-uniform but hand-made: low-frequency wobble and tremor, width drifting a few per cent, a dot where the tip rested, a flick at some ends; closed shapes are one to three strokes that stop short or run past the join on the tangent, box corners overshoot, a stretch is sometimes gone over twice; parts have a depth, so an outline stops where a part in front covers it. Washes start from the intended region and are then painted loosely: slipped 2–5 px off the line (spilling over on one side, leaving white paper inside the line on the other), an edge re-found on a wandering threshold that follows the tooth, a darker dried rim, granulation in the valleys of the paper, faint flat-brush streaks, density mottle, wet-in-wet drops for cheeks and crust, cockling where the paper got wet — and a gentler slip for small shapes, so a nose never turns into a white ring. A flat background block that does not fill the card is painted around the figure with a white halo; opaque white gouache glints go on last. Ink and pigments are optical densities, so overlaps darken and mix. Helpers for goofy characters: big round glasses, dot eyes, tufts, simple hands, limbs, inked frames, ground lines. The photo: oak planks with cathedral grain and butt joints, soft card shadows and lit cut edges, a fineliner and a water brush shaded as cylinders (the clear barrel refracts what is under it), window fall-off, vignette and grain
Retro gouache (复古水粉) lib/gouache.py · GouachePortrait picture-book character portraits in opaque gouache, painted the way a gouache painter works, dark to light and big to small: a warm imprimatura scrubbed onto the board, an umber underdrawing, a background laid solid and then scumbled with a nearly dry brush in lighter and darker mixes, flat masses, forms modelled in a few value steps, textures, features and dry-brush highlights, then the grain of the printed page. Every coat is opaque (it replaces what is under it), and a wet brush picks up a little of the layer below. One stroke is a flat brush dragged along a short arc: the hairs carry different loads, so streaks run along it; the paint runs out as it goes, so the tail breaks into specks where only the tooth of the board catches it; the sides are ragged and the head is rounded. Edges are crisp but wander and break on the tooth. Forms are inflated into a dome (an exact ellipsoid for noses, bobbles and pearls), lit from the upper left, quantised into soft steps and mapped onto five mixed colours, then brushed over with short strokes that follow the form, so the steps meet in brushy seams; core shadows under a brim, a nose or a beard are thin multiply glazes, and cheeks are powdery blush. Knit is modelled stitch by stitch (V-shaped legs with twisted plies, cables twisting in a column, ribbing with sunken purl columns) and multiplied onto the paint, so the large value steps survive. Hair, brows, beards, curls and bobbles are thousands of tapered strands that follow a flow field and are sorted by the light. Felt is mottle, fibres and a fuzzy silhouette. Helpers for goofy faces: round eyes with lids and catchlights (a look that can go cross-eyed), big bulbous noses with nostrils and a glint, big ears
Blue picture book (蓝调绘本) lib/bluebook.py · BlueBook a page of a soft-blue modern picture book, drawn the way the illustrator works and then printed: colour blocks, a loose ink line, dark masses scribbled in, small accents, chalk whites, weather, print. The palette is held to three blues (powder, cornflower, a deep teal-blue), black ink and paper white, with only a little coral, flesh pink and mustard. Every tool works on one paper tooth, equalised so that "the tool reaches where the tooth is higher than 1 − contact" turns a pressure straight into a coverage fraction, and pre-dragged in eight directions so the bare specks a dry tool skips are drawn out along its stroke. An ink stroke is a brush or ink-pencil line: the path wobbles and trembles, the pressure lands fast, lifts slowly and swells and thins on the way, the hairs carry different loads and run dry along the stroke so the line breaks into dry white streaks, and its edge wanders with the tooth; every pixel knows its arc length and its offset across the mark (Pillow rasterises segment ids, numpy projects exactly). Closed shapes are not closed: a contour is one to three strokes that stop short or run past the join, now and then gone over again a couple of px off. Dark masses are zigzag scribbles that turn past the outline, one wrist-sized patch at a time. Colour is dry crayon, pastel or dry gouache laid loosely after the idea of the shape: the region slips a few px, its edge wanders, its border dries out, it goes on in stroke lanes with a mottled density, and white specks of paper show through; wax is semi-opaque (over white it is the colour, over ink it stays dark, blue over blue goes deeper) and the line always stays on top. The background is a rough-sided block that stops short of the page edge, its border brushed along itself and dragged dry. White chalk sits only on the tooth peaks over the blue; rain is short dry strokes with splashes, ripples, flicked spatter and fine speckle. Character helpers: big round heads drawn open, dot eyes with a white glint, tiny smiles, stippled blush and freckles, and fluffy white animals whose outline is a run of scalloped ink tufts with chalk fur crossing into the blue. The print step adds a slight softness, lifted blacks, paper speck, a centre gutter fold and tiny page numbers
Jiangnan garden (江南园林) lib/jiangnan.py · JiangnanGarden a lush, finely painted spring garden in the manner of a contemporary digital-gouache illustration, painted back to front the way a landscape painter works: sky, far hills, haze, the trees behind, the buildings, the far bank, the water, things on the water, the foreground, the hanging frame, the seal. Every painting call takes a far value that pulls colours toward a pale blue-green haze and flattens their contrast, and haze bands separate the depth planes. The unit of paint is a dab — a pointed leaf, a round petal, a sword blade — and thousands of them are laid at once: Pillow fills every polygon with its own id into a 2× supersampled id map (later ids cover earlier ones), numpy looks the ids up in a colour/alpha table and box-averages back down, so a dab costs well under a microsecond. Trees are sets of clumps, each lit as a dome by one sun from the upper left; a dab takes its colour from a ramp of mixed greens by the light of the clump it sits on, and the tree is built as a gouache painter builds it: a leafy dark underpaint, a mid-dark body, leaves breaking out across the silhouette, small clusters of lit leaves where the light is high, and a few palest dabs on top. Blossom trees are clusters of round petals sorted dark to light over shadowed petals and green leaves, with branches showing through; near branches carry individual five-petal flowers and buds. A weeping willow is a domed crown over hidden boughs with hundreds of hair-thin strands hanging in tresses, darker and bluer behind, lighter and yellower in front. The roof is a real surface S(u, v): concave slope, widening toward the eave, flaring, sharply upturned corners; it is rasterised as a quad mesh and every pixel's (u, v) is recovered by Newton steps, so roll and pan tiles, course lips, tile ends, drip tiles, the soffit with rafter ends, the eave shadow, an openwork ridge with curled ends and hip ridges running up into the flying corners are all shaded analytically. Lattice (grid, lantern frame, cracked ice) is drawn at 3× and lit on its edges; the zigzag bridge, its slabs, piers, posts and pierced panels are projected through a pinhole camera and shaded face by face. The lake mirrors the canvas above the bank line, rippled sideways, blurred vertically, darkened and mixed with the jade body colour toward the viewer; the bridge, a boat and an egret get their own reflections, and lily pads lie foreshortened on the water plane. Dappled leaf shade, a red lantern, a gilded plaque, a tiny worn seal, and a finish of slight softness, a glow around the lights and fine grain complete it
Dry-brush blocks (干刷色块) lib/drybrush.py · DryBrushBlocks a mid-century poster / gouache-collage illustration built from a few big dry-brushed blocks of colour on cream paper, in a strictly limited palette: forest and sage green, teal-blue, navy, a near-black, vermilion, a touch of sky blue and celadon. Every block is painted in its own brush frame: the mask is rotated so the stroke runs along +u, coverage, value and colour mix are computed there with plain arrays and rotated back, so bristle streaks, lanes and dry ends always follow the stroke. A block is laid in parallel passes of a wide brush or roller, each starting loaded and running dry toward its end by its own amount, optionally broken into overlapping strokes of different lengths and tones; the sides come out nearly straight and the ends as a comb of tines, longer at the dry end. Paint only reaches the paper's tooth where the contact pressure is high enough — the tooth texture is histogram-equalised, so pressure maps straight to coverage — which gives scumbled patches and dry stretches with the paper or the colour below showing through; an overloaded brush stays solid. The backdrop slab behind the subject is laid with a roller tooth (nearly flat, clustered speckle, a crisp loaded edge, stippled dry sides, a few fine scratches); torn-paper pieces tear only along some stretches of their outline, with a pale fibrous rim. A person is a few planes — a jacket whose lit and dark halves are brushed in different directions, a head of skin planes with a darker nose side and a warm tip, rough black glasses, a white beard in dry scumble, a hand seen from the thumb side — and bottles are vertically brushed silhouettes with one light streak and a block label. One small vermilion square sits off to the side, and the finish reproduces the painting like an offset print: slight softness, paper grain, specks knocked out of the darks, a little dust
Twilight storybook (暮色微缩绘本) lib/twilight.py · TwilightStorybook a tender dusk picture-book page full of miniature detail, at the hour when day turns to night. The dusk sky is a six-stop gradient (lavender, lilac, rose, peach, apricot, gold) whose stops are warped by horizontally stretched noise, so the colours lie in soft layers, with lens-shaped clouds (soft lumpy tops, flatter and crisper bottoms), thin light streaks and a pale low sun. A feathered night field N (0 dusk – 1 night) is laid across the canvas from a wandering boundary: the night gradient, the Milky Way, the stars and the moon are painted with N as their alpha, so the stars thin out across the boundary instead of stopping at a line, and the band between is re-saturated so dusk passes through mauve, violet and indigo rather than grey. Every lit thing painted later — hills, flowers, figures — is shaded by the same field through a linear 3×3 grade (desaturate, then a cool tint), so a white daisy on the night side turns moonlit blue; emissive things and the plate are painted unlit. The Milky Way is an analytic band with cloudy density, a dark rift and thousands of faint stars sampled from it; stars follow a power law, are splatted with sub-pixel accuracy, and the brightest few get four-point sparkles. Hills are misty ranges and patchwork stripes that widen toward the viewer, cut into slanted fields with crop rows and hedge lines, dotted with tiny round trees. The meadow is placed by perspective with rejection sampling — size grows with depth below the crest, density follows coverage — so the crest is thousands of specks and the bottom a few dozen big flowers of eight species, all sorted by the y of their base and rasterised in one pass into a supersampled id map. Flat, cute figures sit in it: a hooded wanderer, a jar of fireflies, a four-panel kite whose string turns from dark to silver against the sky. Over it all lies the language of a scientific plate: fine ink lines drawn at 3×, hatching, drafting dimensions, a scale bar and a circular "detail a" inset, plus tiny lowercase captions set glyph by glyph from a thin hand font; the finish adds softness, bloom, grain, a plum vignette and a torn paper edge
Hatched nocturne (排线夜景) lib/nocturne.py · Nocturne a small night print built entirely from short directional strokes, the way a pastel or coloured-pencil artist hatches a nocturne, then mounted on cream paper. The sheet has an equalised tooth, mottling and fibres; the picture is underpainted dark and every mark is clipped to it like a taped edge. A stroke is a centreline integrated through an orientation field (angles mod π, so it never flips halfway), bent a little, with a blunt landing and a tapering tail; tens of thousands are rasterised at once by filling each outline with its own id into a 2× supersampled integer map, then, for every covered pixel, numpy looks up that stroke's colour, start, direction, length and width, recovers the position along and across it, and from that its bristle lane — six lanes per stroke with their own value and load, running dry toward the tail, the pigment only catching the paper where the tooth (dragged along the stroke's own direction) is below the pressure — so every stroke is streaky and grainy and the dark ground shows in hairline gaps. Fields set the "wind": the sky streams diagonally, steam rises with its column and curls only at the rims of its billows, slopes follow the fall lines of the cone, the sea drags in long horizontals that lengthen toward the viewer. Each stroke jitters a little in value and in hue (a true rotation about the grey axis). There is one warm light: point and emissive lights sum into a light map, and the glow is laid as strokes whose landing probability follows light × receptivity — added (screen) for air and glare, painted as light × receptivity for lit surfaces, so a blue-grey cloud turns red-orange rather than pink, and the hottest strokes whiten toward warm white. The hot source is a fan of yellow-white, orange and red strokes round a tiny core. Lava runs as braided rivulets — a walk with momentum that keeps turning toward its end and down the fall line, strands drifting apart, low-angle branches fading out or stopping in a bead — drawn as emission with a tight halo and light strokes on the slope; sparks fly on ballistic arcs. The sea reflects the picture above the waterline as horizontal strokes, stretched, rippled, darkened and laid only where the mirror is bright, plus a glitter column under the light. Two tiny seated figures with a red scarf and a warm rim give the scale; a plate mark, a pencilled title and a smaller note in a thin plain face, a restrained bloom and fine grain finish the print
Obsidian UI (笔记应用界面) lib/obsidianui.py · ObsidianUI a dark note-taking app the way an explainer film shows it: a near-black page with a soft violet glow and the app window on it — a tab bar with the traffic lights (the active tab open at the bottom so it runs into the note), a slim icon ribbon, a file explorer with folders, indent guides and the open note highlighted, a breadcrumb, a source / reading switch, a right sidebar and a floating status bar. In the note: a heavy H1 with a short glowing violet bar, a properties block with #tags, body lines laid out from runs (bold, internal links in violet, inline code on a dark chip, highlights), a dark code block in SF Mono with syntax colours and a block caret, a quote callout with a violet edge, task checkboxes; the reading view's flowchart as flat dark nodes with 2 px grey borders, thin edges with small filled arrowheads and an edge-label chip, one node lit violet inside a focus ring; and the graph view — grey nodes and links, the notes linked to this one lit violet with a soft radial glow, labels outlined in the pane colour so links stop short of the words. One accent (violet by default, switchable), everything else greys; every shape is a signed-distance field with analytic 1 px anti-aliasing, shadows and glows follow CSS box-shadow, and everything is drawn into named layers with a pose (offset, scale, opacity, a reveal left to right, top down or as a circle growing from a point), so the same drawing raises the window, types a code line with the caret riding its end, flips the switch, pops the flowchart node by node and grows the graph out of the current note
Canvas board (白板卡片) lib/canvasboard.py · CanvasBoard the canvas view of a dark note-taking app, as a product film shows it: a dark page with a faint violet glow, the app window (traffic lights and a .canvas tab in the tab bar, a ribbon of line icons, the zoom buttons top right) and in it an infinite board of grey dots seen through a camera. Nothing is rasterised when you draw: every shape is recorded in board coordinates into a named node — a group, a card, an edge — and render() draws every node again through the camera, so the board can be panned and zoomed with crisp edges and type at any scale; the dot grid lives on the board and moves with it, the chrome does not. Rounded rectangles, discs, rings and strokes are signed-distance fields with 1 px analytic anti-aliasing, polylines are measured segment by segment inside their own bounds (a 64-segment edge or a sketch of hundreds of segments stays cheap), arrowheads and the pointer are 4× supersampled polygons, shadows follow CSS box-shadow. Groups are rounded frames with their labels floating above; cards have a 2 px border in one of six card colours with a 5 % tint of it, a soft shadow, a file-name label, a violet halo when selected and a big shadow when lifted. Cards hold inline Markdown laid out again at every zoom — headings, ==violet highlights==, mono code, bold — task lists that tick (the box pops violet, the check draws on, a strike runs through, the text greys), quotes with a violet bar, tag pills, colour chips and progress bars; image cards hold a picture drawn in hand-drawn strokes (each segment slightly bowed and overshooting, drawn twice) with notes in a handwriting face. Edges are cubics that leave and enter along the sides' normals, with an arrowhead and a label on a board-coloured pill. Every node has a pose (offset, scale, opacity) and named progress vars that its shapes read — fade, draw, reveal or pop — and tween() writes the in-between stages: cards dropping in with a little bounce, edges drawing on, the camera panning and zooming, a sketch drawn stroke by stroke, the pointer clicking "fit". One accent: violet
Flexoki paper (Flexoki 纸面) lib/flexoki.py · FlexokiPaper an explainer sheet the way a docs site themed with the Flexoki palette shows its diagrams: warm paper #FFFCF0, ink-black type, a ladder of warm greys (surface, track, hairline, border, faint and muted text) and eight accents in two shades. Light-grey rounded panels with no border and no shadow carry a heavy CJK title, a grey English tag and a mono index; inside them the diagrams are drawn the way a lightweight Mermaid-style renderer draws them — boxes one step off their ground with a 2 px grey border (rect, round, stadium, exact rhombus, cylinder, circle), 2.4 px ink lines ending in small filled triangular heads, plain semibold labels on a patch of ground colour, dashed lifelines, activation bars, replies and notes, pies with paper-coloured gaps, bar charts on hairline grids, tables with a tinted header and accent dots — plus an orange focus ring, ink chips, step chips and big tight-tracked numbers. Every shape is a signed-distance field with 1 px analytic anti-aliasing; polylines carry their arc length, so an edge can be drawn on to any fraction (the cut end keeps its round cap), dashed along its length and trimmed under its head; a node (fill, border, label) is composited as one group, so it pops in and fades as a whole. Layers with poses, plus layer(name, fresh=True) to redraw a progress state, make the draw-on animation: panels rise dim and light up one by one, edges draw on one by one and land their heads, messages fly, a timer and the bar values roll, the pie sweeps, table rows slide in
Warm pencil storybook (暖调彩铅绘本) lib/pencilbook.py · PencilStorybook a children's-storybook page in soft, layered coloured pencil on warm, toothy paper — a giant gentle creature and a small child at dusk. The sheet has an equalised tooth that is mostly a one-pixel grain; wax catches where the tooth is above one minus the pressure, a little still settles in the pits, and a fill buffer lets later layers reach deeper, so the same pits show through every layer as fine, increasingly tinted specks and only close up where the work is heavy. A stroke is a centreline integrated through an orientation field (angles mod π) with a slight wrist arc; tens of thousands are drawn at once as polylines with their own ids into a 2× supersampled integer map, and for each covered sub-pixel only numpy looks up that stroke's colour, start, direction, length, pressure and taper, recovers how far along it the pixel lies (pressed at the start, lifting off at the end), lays wax where that pressure reaches the tooth dragged along the stroke's own direction, and sums back to pixels with bincount. Strokes are seeded on a jittered grid, and the region is both where they land and, pixel by pixel, how hard the pencil presses, so a shadow is a smooth gradation rather than scattered dark dashes; avoid leaves the shapes that come later blank, the way an illustrator keeps the sky off the creature. Wax is semi-transparent (target = old × colour / paper, mixed toward the colour by its opacity): yellow over blue goes green, a colour over itself deepens, light pencils over dark need pressure. form() models a shape as a pencil artist does — light under-layer, local colour, the shadow of the same family, the deepest tone in the core, a warm glaze on the lit side and a cool one in the shade — each layer crossing by a few degrees round the form's own direction: along the iso-lines of a dome, round each scute of a shell, across the folds of a neck, down the folds of a coat. Fur is laid in locks whose strands spread at the root and converge at the tip, curling together, the flank away from the light a little darker; grass fans the other way; tree crowns are clumps of curved leaf strokes, each lit on its own. Warm light is layered orange-yellow strokes that follow the surface over a lift of the paper — never rays, never a smooth halo — and reflections are horizontal strokes sampling the mirrored picture. Storybook parts come with it (trees, cottages with lit windows, stones, scales, wildflowers, a paper lantern, a small child in a raincoat with a bob, a dot eye and a rosy cheek), and a finish of slight softness, fine grain and a faint warm vignette. No ink line, no black
Colour town (彩色小镇) lib/colortown.py · ColorTown a dense, cheerful storybook hill town in opaque gouache and a fine ink line — tall narrow houses in tomato, mustard, teal, mint, coral and cream piled up a slope under blue-grey slate mansards, a white clock tower, strings of bunting across the street at several depths, climbing roses, window boxes and a wet square that mirrors it all. Every coat of colour is a polygon: tens of thousands are filled at once, each with its own id, into a 2× supersampled integer map, and numpy looks every id up in a table of colour, alpha and texture weights and box-averages back to pixels, so edges are anti-aliased and painter's order is id order. Three fields precomputed for the whole canvas — vertical brush streaks, horizontal streaks and an isotropic scumble — plus a low mottle vary each coat by a few percent: walls are mostly scumble with a little vertical brushwork, the sky and the paving horizontal, and light colours get less of it, so a white wall stays clean. Edges are resampled and pushed sideways by a smooth wobble, so nothing is ruler-straight and the colour never quite registers with its line. The ink is a dark warm brown laid after each group's colour. Every line is its own id in a 3× map (no beads where lines cross), split into pieces of slightly different width, and the corners of boxes are separate strokes that sometimes overshoot. The ink is half-transparent, so it reads red-brown on a red wall and near-black on glass. house() builds a townhouse from a few numbers. The walls are plaster with bare-stone patches, string courses and a cornice, a thin glaze toward the foot and a band of shade under the eaves. The ground floor is a door, a shopfront with lettering and a striped awning, or an archway. Above it sits a grid of windows that are each a little different: cream frames, dark teal glass with a pale reflection, glazing bars, sills, slatted shutters on some and curtains on others. Window boxes overflow with leaves and flower dabs, and iron balconies hold pots. Then comes the roof: slate laid tile by tile in staggered courses, each slate its own blue-grey, clipped to the roof with the joints inked, as a mansard, hip, side gable or pointy gable, with dormers, chimneys with pots and TV aerials. plane() lays a flat facade onto a quad through a homography, so a whole canyon wall recedes to the vanishing point with its windows, boxes and roses. Depth is haze, scale and overlap, painted back to front; there are almost no cast shadows. Roses are irregular cups with a darker heart and inked petal arcs among paired leaves; trees are clumps of leaf dabs, each lit as a dome from the upper left; bunting sags as a parabola, with pennants hanging off it that each have a darker fold. The wet street mirrors the picture about each column's base line, rippled and smeared down more the further it gets, darkened and streaked into pale flagstones, with the joints re-inked on top; mirror() reflects whatever is painted after it (people, a lamp post). It comes with a clock tower with an onion dome and a louvred belfry, steps that shrink as they climb, parapets, railings, lamps, hanging signs, posters, café tables, a cat and small faceless people
Pastel vignette (色粉小像) lib/pastelvignette.py · PastelVignette a whimsical picture-book vignette in soft chalk pastel and a little gouache on pure white paper — a person and an animal companion, half-length, with no background panel and no frame: the painting simply stops and its edges break up into the white in dry strokes. The colour is soft and powdery (powder blue, cream, warm skin) with one warm accent family (ginger, tangerine); faces are rubbed smooth, with big round eyes, very large rosy cheeks and a red-tipped nose; hair and fur are hundreds of fine strands. The paper has an equalised tooth, and the same tooth is pre-dragged along 8 directions (stored as uint8), so pastel catches where the tooth rises above 1 − pressure and the pits it skips are drawn out along each stroke. Every segment of every stroke gets its own id in a 2× supersampled integer map, and numpy looks each covered sub-pixel up to its segment. From there it recovers the position along the stroke, for a pressure profile with rounded ends, and across it, for soft sides and bristle lanes that open up as the stroke runs dry. Pigment is laid where the pressure reaches the tooth and summed back with bincount, so tens of thousands of strokes cost about one Pillow line per segment. Pastel is nearly opaque, so pale dry strokes sit on a darker coat. wash() is pastel rubbed in with a finger: a smooth coat whose colour can come from a light field, with the deepest pits left a touch lighter and an edge that breaks into the tooth. model() washes a dark → light ramp over a soft dome light. A coat fades out through a smooth field, and its dry strokes run on past it, drying out pixel by pixel. strands() traces hair through a flow field and groups it into locks that share a root area, a wander, a curl and a shade; it paints dark first and lets a few fly loose. fur() lays tufts that are darker on the side away from the light, and fluff() grows short strands out of a silhouette, coloured from the paint just inside, so fur melts into what is behind it. Faces come from eye() (an off-white ball shaded blue-grey under the lid, a rayed iris with a pupil and two catchlights, a soft lid line flicking out at the outer corner), blush(), nose() (a side shadow and a red tip), mouth() and brow(). It also has a faint pencil line for background sketches, and leaves and sprigs
Poetic Halloween (诗意万圣夜) lib/poetichalloween.py · PoeticHalloween a melancholic, slightly surreal picture-book portrait for an autumn night, in opaque gouache and fine pencil hatching on a dark toned board, then printed. Faces are pale porcelain with a strong red flush on the nose, the cheeks and the lids and round the eyes, heavy half-closed sad eyes, a small unsmiling mouth and very simplified volumes. The hair is one sculpted mass — a blunt jet-black bob with a dead-straight fringe and a soft sheen. The cloth is tactile (burlap and felt hats, chunky knits, tartan), the ground is dark (night indigo, stars, dense leaves), and there is one luminous accent: little sheet-ghosts with glowing eyes and glowing fringe tips. Strokes use the same per-segment id map as the pastel vignette (wide for dry gouache, thin and long for hatching), and colour='canvas' lets each stroke take the colour under its centre, which repaints a computed base (a tartan, a modelled face, the sky) by hand without changing its colour. model() washes a dark → light ramp over a soft dome light, which gives the simplified volumes. sheen() lays a soft band where that light falls in a narrow range, then streaks it along the hair with a few long faint strokes, so the bob stays one mass. eye() is a heavy-lidded almond: the lid covers about half the iris and droops at the outer corner, with a dark lid line, a red wet rim on the lower lid and, optionally, the warm glint of a light below. flush() is a smooth red glaze plus a stipple of single specks that gets denser as the flush gets stronger, and nose() is its own small volume with a red tip. burlap() is a plain weave of slubby threads, each row and column with its own thickness, wandering a little and going over and under. It is lit as a height field, with dark holes, loose fibres and a frayed edge, and it can follow a curve. knit(), rib() and tartan() (a mirrored sett woven 2/2 twill over the light of the folds) cover the rest of the cloth. leaf() is a broad, double-serrated palmate leaf, foreshortened and folded along its midribs; it casts a soft shadow on the leaves behind, and that is where a hedge's depth comes from. Warm point lights fall off steeply, and illuminate() lights what is already painted as 1 − (1 − C)·exp(−L·receptivity·(base + albedo·C)), so wool and porcelain warm up a lot, leaves near a ghost turn olive-orange and black hair barely changes. ghost() is a translucent dome-and-bell of silver strands that falls from the crown like hair, with glowing eyes and a bead of light at the end of every lock. Bloom, a fine print grain and a coarser printed tooth that shows in the darks are added in render()
Oil-pastel portrait (油画棒肖像) lib/oilpastel.py · OilPastel a figure drawn with oil pastels (wax crayons) on white, toothy cold-press paper and left floating as a vignette — no background, at most a smear of sky or a dry-brushed cast shadow. The palette is tight and high-chroma: saffron and marigold, a teal navy and black, one cool blue, orange blush and red-orange lips. Big masses (a coat, a scarf, a hat) are laid in with parallel dry strokes of a constant-width stick; the wax catches on the peaks of an equalised paper tooth and skips the pits, so every mass is peppered with crisp white specks pulled into streaks along the stroke (the tooth is pre-dragged along 8 directions). The stick's worn face is split into lanes, each with its own pressure, value and end, so a stroke starts blunt and full and ends in a hard comb of uneven teeth; spill lets strokes run out past a shape by a different distance along every stretch of its edge. Black crayon (crayon(): a wobbling line in overlapping pieces of different weight) is kept for the eyes, brows, a nostril and a few contour and fold marks. Faces are the paper itself with peach on the shadow side, hatched orange blush() patches, flat lips() and heavy-lidded black eye()s; hair is a few long tapering hair() strokes; knit stripes are short bold dashes(). Strokes use the same per-segment id map as the pastel vignette. The tooth showing through the wax and a little waxy relief at the edges of the deposit are added in render()
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
Sunlit greenery (夏日光绿) lib/sunlitgreen.py · SunlitGreen bright, high-key summer daylight as an anime background painter or a digital-gouache illustrator paints it — no outlines, hard-edged flat shapes, a faint paper tooth. The leaves carry it: canopy() packs every mass with small sub-clump domes that each catch the sun, cuts that light into a few flat greens (deep teal-green, mid green, yellow-lime, a pale glint) and paints them darkest first, each tone as one shape (solid for far trees, leaves only for near ones) whose whole edge is stamped with leaf clusters pointing outward, so sunlit leaves lie over shaded ones with crisp, leafy edges; some leaves swap a tone (mottle), the outer zone thins into separate sprays (airy), and small holes show the sky and twigs. spray() paints near branches of big leaves, each two flat halves split at the midrib. Leaf shadows (leaf_shadow(): shadow masses fringed with leaf clusters, loose sprays, sun flecks) are laid over sunlit surfaces as a blue-grey multiply or cut out of warm, window-shaped sun patches, so sun-bleached whites are warm cream in the light and cool blue-grey in the shade; soft() puffs any outline into a few flat tones (cushions, pots, faceted boulders with moss caps and a thin warm terminator). Clear water: a pebbled bed under transparent teal, the scene mirrored with every thin band shifted sideways, smeared, flattened to a few paints and cut into horizontal strokes, with boulders standing in it that have their own broken reflections and a ripple line. Every shape goes through a 2× supersampled id-map rasteriser, so one picture holds tens of thousands of leaves

Ask Claude to "draw it yourself", "paint this with code", or "claude绘图", and name a style if you like. Claude then:

  1. Plans the composition: layers, a focal point, breathing space, and a subject that illustrates the idea.
  2. Writes a short scene script using the library.
  3. Renders it, looks at the result, and fixes it against a per-style checklist of real failure modes, usually over 2–4 rounds.

Why code instead of an image model?

  • Directed composition: placement, empty space and accents are exact, not sampled.
  • Reproducible: the same seed gives the same picture.
  • Animatable: stage() snapshots let a video show the picture being made. The GIFs above are exactly that; a generated bitmap can't do it.
  • Runs anywhere: offline, on a CPU, with no GPU, key or quota.