Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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
  1. 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.
  2. Build the colour study in study.py. With numpy, on the coordinate fields x (0 to aspect) and y (0 at the top to 1), compute study, 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 with np.minimum or smin, turned into masks with fill), light and shadow from shade and cast_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); then B.study is the study, B.masks and B.flow are the masks and brush directions, and paint(p, B, focus='reader') lays it back to front (see references/stage.md and the_letter.py). Define here every mask and direction field the sittings will share. Run sitting.py and read look.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.
  3. Add one sitting file at a time, named so they sort (10_lay_in.py, 20_sky.py, 30_water.py, ...), each a few p.strokes / p.mass / p.marks calls 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.
  4. **Run `sittin
Полный SKILL.md на GitHub

Установить procedural-painting в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/aquarelle.mdreferences/atelier.mdreferences/stage.mdscripts/aquarelle.pyscripts/aquarelle_repaint.pyscripts/atelier.pyscripts/motion.pyscripts/repaint.pyscripts/sitting.pyscripts/stage.pyscripts/tape.pystudies/estuary_in_watercolour.pystudies/harbour_at_first_light.pystudies/lemons_and_blue_jug.pystudies/pomegranate.jsonstudies/pomegranates_from_the_scene.pystudies/poppies_in_watercolour.pystudies/rain_at_blue_hour.pystudies/the_letter.pystudies/the_white_cup.pystudies/wind_over_the_barley.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить procedural-painting с