procedural-painting
БесплатноЗапускает вложенные скриптыНе проверенPaint an original picture from imagination with code, no generative image model. You compose the subject yourself as a short Python script (shapes, light…
от dogum★ 26 звёзд на GitHubОб этом скилле
Procedural painting
You are the painter. scripts/atelier.py is the paint, the brushes and the canvas; the picture itself (what is in it, where the light comes from, what colour each thing is, which way the brush moves) is a Python script you write for this one painting. Nothing is sampled from an image and no model draws anything.
| Tool | Does | Time on 1 CPU |
|---|---|---|
scripts/sitting.py + scripts/atelier.py |
An original painting of any subject, painted in sittings with a look at the canvas between them | 10 to 20 s per look at 1200×800 · 1 to 3 min for a 2400×1600 final |
scripts/stage.py |
Sets the subject up as a small 3D scene (solids, posable figures, camera, light) and hands the painter a colour study, masks, depth and form-following brush directions | 10 to 16 s per render |
scripts/repaint.py |
Repaints an existing image with the same paint; with --aov it paints a real mountain by its ground (fall lines, snow, water) |
15 s at 1800×600 |
scripts/aquarelle.py |
Watercolour, a second medium with its own simulation: transparent washes over white paper, wet-in-wet, hard edges that dry darker at the rim, granulation in the paper grain, dry brush (see references/aquarelle.md) |
about 1 min at 2133×1600 |
scripts/motion.py |
A painting that moves: a fixed-camera film (a sunset timelapse) painted with one set of strokes that hold still while the light changes | about 2.5 s per frame at 1200×400, frames in parallel |
scripts/tape.py |
Exports the stroke list so the painting can paint itself live in a browser (docs/paint) |
under 1 s |
Requirements: Python 3 with numpy, scipy and pillow; ffmpeg for the process film. Work in a writable folder and call scripts by path. In the commands below SK is this skill's folder and S=$SK/scripts.
Seven finished paintings live in studies/. Read one before writing your own: the_letter.py (3D stage: an interior, a seated figure, window light), the_white_cup.py (3D stage: a half-length figure at a table, face and hands), pomegranates_from_the_scene.py (the path tracer's scene file, painted), harbour_at_first_light.py (painted in sittings; limited palette, boats, water, drawn rigging), rain_at_blue_hour.py (night street, lamps, reflections, figures), lemons_and_blue_jug.py (still life, form and cast shadows), wind_over_the_barley.py (daylight landscape, clouds). Each runs as python $SK/studies/NAME.py --out out.png [--height 1600] [--film out.mp4] [--study study.png] [--tape out.tape].
How a painting is made
Paint in sittings and look at the canvas after each one. The looking is the method: most of the quality comes from what you change after seeing the picture, so never write all the passes blind and render once.
python $S/sitting.py work/harbour --init 1200x800 --ground "#8a6f5a" --seed 5 # canvas.json + an empty study.py
python $S/sitting.py work/harbour # runs study.py and every sitting not yet run; writes look.jpg
- Decide the picture in words first. Subject, format, where the horizon or table edge sits, where the light comes from, the two or three colours that carry it (one dominant, one opposing accent), and the single place the eye should land. Write it as the docstring of
study.py. - Build the colour study in
study.py. With numpy, on the coordinate fieldsx(0 to aspect) andy(0 at the top to 1), computestudy, one H×W×3 image of flat intended colour: gradients for sky and ground, shapes for objects (sd_circle,sd_ellipse,sd_box,sd_segment,sd_poly,sd_curve,lathe, joined withnp.minimumorsmin, turned into masks withfill), light and shadow fromshadeandcast_shadow, noise for variation. For anything that needs drawing (figures, interiors, streets, perspective, cast shadows) build the study on the 3D stage instead of by hand:sc = Scene(Camera(...), key=...),sc.add(name, shapes, colour),figure(sc, 'reader', at=..., pose='read'),B = sc.render(p); thenB.studyis the study,B.masksandB.floware the masks and brush directions, andpaint(p, B, focus='reader')lays it back to front (seereferences/stage.mdandthe_letter.py). Define here every mask and direction field the sittings will share. Runsitting.pyand readlook.jpg: fix drawing, values and colour now, where a change costs seconds. If the subject and the light don't read in the small grey panel, no brushwork will rescue it. - Add one sitting file at a time, named so they sort (
10_lay_in.py,20_sky.py,30_water.py, ...), each a fewp.strokes/p.mass/p.markscalls with a comment saying what the sitting is for. Back to front, big brush first: a thin lay-in over everything, then each mass with its own brush direction (sweeps across a sky, upright pulls down a wall, round a form, level across water). That direction per mass is what an image filter cannot do and is most of why the result reads as painted. - **Run `sittin
Установить procedural-painting в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл procedural-painting?
Paint an original picture from imagination with code, no generative image model. You compose the subject yourself as a short Python script (shapes, light, colour, brush direction per mass) and a paint simulator lays it as real brush strokes with pigment mixing (Kubelka-Munk, so blue into wet yellow goes green), bristles that run dry, wet-into-wet pickup, and impasto relief under a raking light. It can also record a film of the canvas being painted. Use whenever someone asks for a painting, an oil painting or a painterly picture of any subject (a street in the rain, a still life, a landscape, a seascape, figures) made from code or "without an image model", wants to watch a picture being painted stroke by stroke, or wants an existing image repainted with physical paint. Not for prompts for image models, photo filters, advice on real paints, or vector illustration. For real mountains from elevation data use procedural-terrain-art or procedural-realism.
Как установить скилл procedural-painting?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл procedural-painting запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic