Skip to content

armgit / klad

Public Imported from GitHub
0

A drawing app built for agent/human collaboration

Rust

Skill: overlapping parts get their own layers, back to front

Indicode BV66e16fa73d35
diff --git a/docs/skill/SKILL.md b/docs/skill/SKILL.md
index 28fd12f..036cbea 100644
--- a/docs/skill/SKILL.md
+++ b/docs/skill/SKILL.md
@@ -212,6 +212,7 @@ klad prepare art.klad
- `klad light` writes lasso fills with a cut: on the shade layer the shape minus itself moved towards the light (`--soft 3` overlapping steps soften the inner edge), on the rim layer a band along the lit edge. Clip the shade layer (multiply) and the rim layer to the flats, as in `samples/lantern/`.
- `samples/lantern/generate.py` is the whole recipe for a prop in about 100 lines; `samples/ink-shapes/` shows the ink options side by side.
- Details that make a prop read as made rather than blocked in (an early version of the lantern read "kind of as good, but its details are not too great"): connect what hangs (hook, links, bead, cap: every piece touches the next; a link seen face-on is a closed ring through `--path`, one seen edge-on a small filled bar); give a round form a crisp core shadow with its own `light` pass (`--soft 1`, depth about a third of its width, `shadeOpacity` 1) instead of a soft gradient; build a stone or block from two planes (a top face and a darker side as its own shape) and keep texture to the side plane; plant grass as a few tufts where things meet the ground, leaning away from the object, not a fringe along an edge; ink a shape that enters another as an open path, so its cut edge is not drawn on top.
+- Overlapping parts (a character's limbs, gear and clothing; the pieces of a prop) each get their own flats, shade, rim and lines layers, stacked back to front, so the parts in front cover the outlines behind them; one lines layer over all the flats draws every outline through everything in front of it. Build each limb as one shape (not a thigh and a shin that overlap), let boots, hands and straps cover what they hold, and cut an opening (a hood around a face) as one shape instead of stacking a band over it. A dark backing that shows through gaps (mortar between stones) stays inside the shapes it backs.
- The ops are `ink`, `light`, `hatch`, `paint`, `scatter` and `fill` with `shape`; shapes added earlier in the same `apply` can be used by them. `samples/lantern/` builds the inked prop, and with `PAINTED=1` the painted one (`paint` by form in place of `light` and `hatch`).
## Bones, poses and keys