[art] PlanetGarden: Her planet and the gardener on the board; the author's S2 and S6 recorded with their guards
@@ -21,6 +21,14 @@ A picture that is off-style goes back for another try. It is never shipped.
|
||||
> the petals, and §6 makes prompts short enough for a generator to follow. The book's motifs
|
||||
> are no longer named in prompts (naming them invites them); they stay in §4 and §7, where the
|
||||
> review catches them. The picture list grew to every picture Phases 1–5 need (§4).
|
||||
>
|
||||
> **Changed by Mark, 2026-11-17: her world is a round tiny planet, and a gardener tends her.**
|
||||
> Seeing the garden as a page of buttons, he asked for a game: a planet, a character who does the
|
||||
> care with animations, gestures. He chose a **round tiny planet** (S2 below, reversed) and a
|
||||
> **human gardener, a boy or a girl, chosen and dressed by the player** (S6, new), knowing that
|
||||
> a child tending a rose on a small round planet is close to the book's most recognisable image.
|
||||
> The guards that keep them our own are in §3b, §4 and review points 10–11, and a legal check of
|
||||
> the look comes before any public release (`.agents/features/planet-garden.md` §0).
|
||||
|
||||
---
|
||||
|
||||
@@ -29,7 +37,8 @@ A picture that is off-style goes back for another try. It is never shipped.
|
||||
| # | Choice | Decided | Why |
|
||||
|:--|:--|:--|:--|
|
||||
| S1 | The medium | Matte gouache on warm paper, with soft brush outlines | It is gentle and hand-made like the rest of Domi. It is also clearly not the book's look, which is a thin pen line with loose, pale watercolour. |
|
||||
| S2 | Where the rose lives | A small garden bed on a hillside meadow, with a low dry-stone wall and a wide sky to the west | The sunset is real, so the scene needs a real horizon. It is an ordinary garden, never a tiny planet. |
|
||||
| S2 | Where the rose lives | ~~A small garden bed on a hillside meadow~~ **A round tiny planet of her own, cultivated as a garden**: meadow over it, her bed on top, a low dry-stone wall, the chair, the wild bush. *Reversed by Mark 2026-11-17.* | He wants a world of her own, as a game has. It stays a garden, never a bare rock: no volcanoes, no baobab-like trees, no single lamp post (§4). The real sky is still code behind it (S5); the in-game sunset keeps the hillside garden for its wide horizon. |
|
||||
| S6 | Who tends her | **A human gardener: a boy or a girl, chosen and dressed by the player** at the first open (skin tone, hair and its colour, clothes colour, a hat). *Decided by Mark 2026-11-17.* | The care is done by a character, with animations. The gardener is the player's own, so no two need look alike; simple work clothes and an apron, never a scarf, a long coat or cape, a green suit, a crown or a sword (§3b). |
|
||||
| S3 | The rose's face | A face in the middle of the bloom: two small eyes, often half-closed, a tiny mouth and a blush | This is the description in CLAUDE.md §1, drawn as written. |
|
||||
| S4 | The palette | §2 | It starts from the app's tokens (`--rose #b4485e`, `--paper #fbf6f1`). |
|
||||
| S5 | The sky | Drawn in code, never painted | The sun moves at the player's real time, and the stars are the real constellations. A painted sky could do neither. |
|
||||
@@ -59,7 +68,8 @@ A picture that is off-style goes back for another try. It is never shipped.
|
||||
> book for adults: understated, never sugary, never a children's sticker or a cute mascot.
|
||||
> Characters are alive but small-featured: their faces are a few tiny marks painted directly on
|
||||
> them, with eyes as small dark dots or crescents, often half-closed. No text, letters or numbers
|
||||
> anywhere. No people, hands or human faces. Not watercolour: no wet washes, bleeding edges, blooms or
|
||||
> anywhere. No people, hands or human faces, except the player's gardener where the picture names
|
||||
> them. Not watercolour: no wet washes, bleeding edges, blooms or
|
||||
> pale tints. Not digital: no 3D rendering, gloss, airbrush gradients or lens effects. An
|
||||
> original design, in the manner of no existing artist, book or film.
|
||||
|
||||
@@ -129,6 +139,26 @@ The rose is the only character in Phase 1. Every rose picture follows the charac
|
||||
|
||||
---
|
||||
|
||||
## 3b. The gardener (S6, decided by Mark 2026-11-17)
|
||||
|
||||
The player's own gardener: a boy or a girl of about ten, chosen and dressed at the first open.
|
||||
Every gardener picture follows `gardener-sheet`.
|
||||
|
||||
- **Simple work clothes:** a plain short-sleeved shirt (the boy, with trousers) or tunic (the girl,
|
||||
with bare legs), a cream canvas apron with one pocket, small sturdy boots. Hands small and simple.
|
||||
- **A face like the others':** a few tiny painted marks, eyes often half-closed, calm and kind.
|
||||
- **The choices the player makes** (skin tone, hair style and colour, clothes colour, straw hat,
|
||||
cap or none) are the app's (`gardener.schema.json`). The board paints **the first look** (the girl:
|
||||
braids, brown hair, sage clothes, straw hat; and the boy, short hair, the same colours) so the
|
||||
character can be judged. **How the other looks are drawn** (separate layers for hair and hat, or
|
||||
clothes painted to be tinted in code) **is still open** and waits for Mark: it decides how many
|
||||
pictures the gardener needs.
|
||||
- **Never:** a scarf, a long coat or cape, a suit with epaulettes, a crown, a sword, golden curls
|
||||
with a green outfit, or anything that recreates the book's boy. He or she is a gardener at work.
|
||||
- **Size:** standing, a little taller than the rose.
|
||||
|
||||
---
|
||||
|
||||
## 3a. The fox (Phase 2: F1–F2)
|
||||
|
||||
The fox is the second character. Every fox picture follows the character sheet `fox-sheet`.
|
||||
@@ -188,7 +218,11 @@ The fox is the second character. Every fox picture follows the character sheet `
|
||||
sunset wave are pictures.
|
||||
- **The share frame (Phase 5):** a border of meadow round an empty middle where the player's
|
||||
sky is drawn.
|
||||
- No flags, religious symbols, buildings, vehicles or people.
|
||||
- **Her home planet (S2, reversed 2026-11-17):** a small round world seen whole, covered in meadow,
|
||||
with her round garden bed on top, a low dry-stone wall curving behind it, the wooden chair on its
|
||||
shoulder and a few meadow flowers. Everything outside the planet is transparent: the sky is code.
|
||||
**Never** volcanoes, baobab-like trees or a lone lamp post on it: it is a garden, not a rock.
|
||||
- No flags, religious symbols, buildings or vehicles. No people except the player's gardener.
|
||||
|
||||
---
|
||||
|
||||
@@ -255,6 +289,10 @@ tick them: *Accept* is one tap.
|
||||
8. It reads as one young red-orange fox with a cream mask and a ringed tail, shy and gentle, and
|
||||
nothing like the book's sandy, long-eared fox.
|
||||
9. He matches `fox-sheet`: the same mask, ears, leg colour, tail rings and size.
|
||||
10. The gardener is a child at garden work, matching `gardener-sheet`: plain shirt or tunic, an
|
||||
apron, boots; no scarf, long coat, cape, suit, crown or sword, and nothing like the book's boy.
|
||||
11. Her planet is a cultivated garden world: meadow, her bed, the wall, the chair; no volcanoes,
|
||||
no baobab-like trees, no lone lamp post, and not the look of the book's little planet.
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
"fox": {
|
||||
"sheet": "fox-sheet",
|
||||
"description": "The fox: a small, young fox; sitting, he is about as tall as the rose. A deep red-orange coat (#BC4A22), warm and glowing, never neon. A cream mask (#F3E3C8) on his face: cream cheeks and muzzle and a small cream spot above each eye. Deep brown legs and paws (#5A3A33). Rounded ears of middle size, cream inside with dark tips. A big bushy tail with three faint darker rings and a cream tip. Small dark eyes, often half-closed, a tiny dark nose and mouth. A fox's pointed muzzle and a fox's body: the mask and the tail rings are only a nod to a red panda. Shy, curious and gentle, never sly."
|
||||
},
|
||||
"gardener": {
|
||||
"sheet": "gardener-sheet",
|
||||
"description": "The gardener: the player's own, a child of about ten at garden work, a little taller than the rose. The first look: a girl with brown hair in two braids, a wide straw hat, a plain sage-green short-sleeved tunic, a cream canvas apron with one pocket, bare legs and small sturdy brown boots; or a boy with short brown hair, the same straw hat, a plain sage-green shirt and trousers, the same apron and boots. A face of a few tiny painted marks: small dark eyes, often half-closed, a short calm mouth. Kind, absorbed in the work, never posing."
|
||||
}
|
||||
},
|
||||
"avoid": [
|
||||
@@ -675,6 +679,217 @@
|
||||
6
|
||||
]
|
||||
},
|
||||
{
|
||||
"phase": 1,
|
||||
"shipped": false,
|
||||
"character": "gardener",
|
||||
"allow": [
|
||||
"people, hands or human faces"
|
||||
],
|
||||
"checks": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
10
|
||||
],
|
||||
"id": "gardener-sheet",
|
||||
"type": "sheet",
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "full",
|
||||
"smallest": null,
|
||||
"usedBy": [
|
||||
"The reference for every gardener picture (STYLE.md §3b). Make it right after rose-sheet."
|
||||
],
|
||||
"purpose": "Reference sheet that fixes the gardener's first look, the girl and the boy; never shown in the app.",
|
||||
"subject": "The gardener, as described below, painted eight times: the top row the girl (front view; three-quarter view facing left; side view facing left; back view), the bottom row the boy in the same four views.",
|
||||
"setting": "Isolated on plain warm off-white paper (#FBF6F1), no scenery, no ground.",
|
||||
"composition": "Eight full figures in two rows of four, evenly spaced, all at the same scale, nothing overlapping.",
|
||||
"include": [
|
||||
"identical proportions, clothes and apron in every view",
|
||||
"the same tiny painted face in every view that shows it"
|
||||
],
|
||||
"avoid": [
|
||||
"a pose that looks posed for a photograph",
|
||||
"any tool or prop in their hands"
|
||||
]
|
||||
},
|
||||
{
|
||||
"phase": 1,
|
||||
"shipped": true,
|
||||
"character": "gardener",
|
||||
"allow": [
|
||||
"people, hands or human faces"
|
||||
],
|
||||
"checks": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
10
|
||||
],
|
||||
"id": "gardener-poses-sheet",
|
||||
"type": "spritesheet",
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"smallest": 120,
|
||||
"usedBy": [
|
||||
"The gardener at work on her planet (planet-garden.md G5): each pose is shown while the care it belongs to happens."
|
||||
],
|
||||
"purpose": "The gardener's poses for each act of care, the girl in the first look.",
|
||||
"angle": "The whole girl gardener in every cell, in side view facing right unless the cell says otherwise, at the same scale as gardener-sheet, the same light from the left.",
|
||||
"grid": {
|
||||
"cols": 4,
|
||||
"rows": 2
|
||||
},
|
||||
"cells": [
|
||||
{
|
||||
"id": "gardener-stand",
|
||||
"does": "standing beside something just out of the picture, hands at the sides, looking at it fondly."
|
||||
},
|
||||
{
|
||||
"id": "gardener-walk",
|
||||
"does": "walking to the right, mid-step, arms swinging a little."
|
||||
},
|
||||
{
|
||||
"id": "gardener-pour",
|
||||
"does": "holding a small round sage-green watering can in both hands, tipping it forward to the right, a thin stream of water falling."
|
||||
},
|
||||
{
|
||||
"id": "gardener-pull",
|
||||
"does": "crouched, both hands round something low on the ground just out of the picture, leaning back to pull."
|
||||
},
|
||||
{
|
||||
"id": "gardener-sweep",
|
||||
"does": "bending a little, sweeping one hand across the grass to the right, gathering."
|
||||
},
|
||||
{
|
||||
"id": "gardener-carry",
|
||||
"does": "carrying a small curved woven willow hurdle upright in front of them with both arms."
|
||||
},
|
||||
{
|
||||
"id": "gardener-reach",
|
||||
"does": "reaching one hand out gently to the right and up, as if to touch a petal, fingers soft."
|
||||
},
|
||||
{
|
||||
"id": "gardener-sit",
|
||||
"does": "sitting on nothing (the chair is its own picture), in three-quarter view facing left towards a sunset outside the picture, hands in the lap."
|
||||
}
|
||||
],
|
||||
"include": [
|
||||
"the same gardener as gardener-sheet in every cell"
|
||||
],
|
||||
"avoid": [
|
||||
"ground or grass under them",
|
||||
"the rose or any plant in the picture"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "home-planet-day",
|
||||
"type": "layer",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": null,
|
||||
"usedBy": [
|
||||
"Her home planet in the garden scene (planet-garden.md), chosen by the real sun's light (engine lightAt)."
|
||||
],
|
||||
"purpose": "Her own small round world, seen whole, with everything around it transparent for the real sky behind.",
|
||||
"subject": "No characters. A small round planet seen whole from the side, cultivated as a garden: soft meadow grass all over it with a few small meadow flowers, warm earth showing at its underside, on its top a round garden bed of warm umber soil (empty: the rose is her own picture), a low curving dry-stone wall behind the bed, a small weathered wooden chair with a pale pink cushion on its right shoulder.",
|
||||
"setting": "The same planet in soft bright daylight from high on the left, fresh greens.",
|
||||
"composition": "Square. The planet centred, about 70 % of the width across; its top, with the empty bed, a little above the middle. Everything outside the planet fully transparent.",
|
||||
"include": [
|
||||
"a fully transparent sky",
|
||||
"an empty garden bed on top, centred"
|
||||
],
|
||||
"avoid": [
|
||||
"a painted sky, sun, moon or stars",
|
||||
"a rose or any large flower in the bed",
|
||||
"people or animals"
|
||||
],
|
||||
"checks": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
11
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "home-planet-golden",
|
||||
"type": "layer",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": null,
|
||||
"usedBy": [
|
||||
"Her home planet in the garden scene (planet-garden.md), chosen by the real sun's light (engine lightAt)."
|
||||
],
|
||||
"purpose": "Her own small round world, seen whole, with everything around it transparent for the real sky behind.",
|
||||
"subject": "No characters. A small round planet seen whole from the side, cultivated as a garden: soft meadow grass all over it with a few small meadow flowers, warm earth showing at its underside, on its top a round garden bed of warm umber soil (empty: the rose is her own picture), a low curving dry-stone wall behind the bed, a small weathered wooden chair with a pale pink cushion on its right shoulder.",
|
||||
"setting": "The same planet in low evening light from the left: amber gold (#F2B860) and coral (#E9846A) on the wall and grass, long soft shadows to the right.",
|
||||
"composition": "Square. The planet centred, about 70 % of the width across; its top, with the empty bed, a little above the middle. Everything outside the planet fully transparent.",
|
||||
"include": [
|
||||
"a fully transparent sky",
|
||||
"an empty garden bed on top, centred"
|
||||
],
|
||||
"avoid": [
|
||||
"a painted sky, sun, moon or stars",
|
||||
"a rose or any large flower in the bed",
|
||||
"people or animals"
|
||||
],
|
||||
"checks": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
11
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "home-planet-night",
|
||||
"type": "layer",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": null,
|
||||
"usedBy": [
|
||||
"Her home planet in the garden scene (planet-garden.md), chosen by the real sun's light (engine lightAt)."
|
||||
],
|
||||
"purpose": "Her own small round world, seen whole, with everything around it transparent for the real sky behind.",
|
||||
"subject": "No characters. A small round planet seen whole from the side, cultivated as a garden: soft meadow grass all over it with a few small meadow flowers, warm earth showing at its underside, on its top a round garden bed of warm umber soil (empty: the rose is her own picture), a low curving dry-stone wall behind the bed, a small weathered wooden chair with a pale pink cushion on its right shoulder.",
|
||||
"setting": "The same planet in night: dusk indigo (#2E3561) shadows, soft silver-blue light from above, one or two lamp-gold glow-worms in the grass; calm and safe.",
|
||||
"composition": "Square. The planet centred, about 70 % of the width across; its top, with the empty bed, a little above the middle. Everything outside the planet fully transparent.",
|
||||
"include": [
|
||||
"a fully transparent sky",
|
||||
"an empty garden bed on top, centred"
|
||||
],
|
||||
"avoid": [
|
||||
"a painted sky, sun, moon or stars",
|
||||
"a rose or any large flower in the bed",
|
||||
"people or animals"
|
||||
],
|
||||
"checks": [
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
11
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "fox-sheet",
|
||||
"type": "sheet",
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-carry (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(6 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-80 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g><path d="M80 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/><path d="M88 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/><path d="M96 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/><path d="M104 150 v -40" stroke="#b98a5a" stroke-width="6" stroke-linecap="round"/> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-pour (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(10 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-70 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g><rect x="84" y="128" width="26" height="20" rx="6" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(30 97 138)"/> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-pull (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(28 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-150 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-reach (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(14 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-95 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-sit (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 160 h26 v34 M62 160 h26 v34" stroke="#cf9a72" stroke-width="12" fill="none" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(0 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-30 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-stand (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(0 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(8 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-sweep (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(18 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-40 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" width="384" height="512">
|
||||
<!-- Stand-in for gardener-walk (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(75.3 61.4) scale(1.9456)"><path d="M52 196 V 150 M70 196 V 150" stroke="#cf9a72" stroke-width="10" stroke-linecap="round"/><path d="M44 198 h18 M64 198 h18" stroke="#3a2730" stroke-width="7" stroke-linecap="round"/> <g transform="rotate(4 61 150)"><path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="#efe4d2" stroke="#3a2730" stroke-width="3"/> <path d="M44 98 l -8 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/> <g transform="rotate(-12 78 98)"><path d="M78 98 l 4 40" stroke="#cf9a72" stroke-width="9" stroke-linecap="round"/></g> <path d="M44 58 v 30 M78 58 v 30" stroke="#7a4b2e" stroke-width="7" stroke-linecap="round"/><circle cx="61" cy="66" r="20" fill="#cf9a72" stroke="#3a2730" stroke-width="4"/> <path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="#7a4b2e"/> <ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" stroke="#3a2730" stroke-width="3"/> <circle cx="66" cy="66" r="2.5" fill="#3a2730"/><circle cx="74" cy="66" r="2.5" fill="#3a2730"/><path d="M66 76 q 4 3 8 0" fill="none" stroke="#3a2730" stroke-width="2.5"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||
<!-- Stand-in for home-planet-day (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<circle cx="512" cy="593.92" r="358.4" fill="#a9c48e" stroke="#3a2730" stroke-width="8"/> <ellipse cx="512" cy="241.51999999999998" rx="114.68799999999999" ry="25.088" fill="#8a6248" stroke="#3a2730" stroke-width="5"/> <path d="M314.88 307.2 Q 512 199.67999999999995 691.2 292.864" fill="none" stroke="#a8957f" stroke-width="22" stroke-linecap="round"/> <g transform="translate(798.72 378.88) rotate(55)"><rect x="-26" y="-60" width="52" height="40" rx="5" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><rect x="-30" y="-24" width="60" height="10" fill="#f2b5be" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 839 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||
<!-- Stand-in for home-planet-golden (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<circle cx="512" cy="593.92" r="358.4" fill="#c9b07a" stroke="#3a2730" stroke-width="8"/> <ellipse cx="512" cy="241.51999999999998" rx="114.68799999999999" ry="25.088" fill="#8a6248" stroke="#3a2730" stroke-width="5"/> <path d="M314.88 307.2 Q 512 199.67999999999995 691.2 292.864" fill="none" stroke="#a8957f" stroke-width="22" stroke-linecap="round"/> <g transform="translate(798.72 378.88) rotate(55)"><rect x="-26" y="-60" width="52" height="40" rx="5" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><rect x="-30" y="-24" width="60" height="10" fill="#f2b5be" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 842 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||
<!-- Stand-in for home-planet-night (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<circle cx="512" cy="593.92" r="358.4" fill="#3c4a6a" stroke="#3a2730" stroke-width="8"/> <ellipse cx="512" cy="241.51999999999998" rx="114.68799999999999" ry="25.088" fill="#8a6248" stroke="#3a2730" stroke-width="5"/> <path d="M314.88 307.2 Q 512 199.67999999999995 691.2 292.864" fill="none" stroke="#a8957f" stroke-width="22" stroke-linecap="round"/> <g transform="translate(798.72 378.88) rotate(55)"><rect x="-26" y="-60" width="52" height="40" rx="5" fill="#b98a5a" stroke="#3a2730" stroke-width="4"/><rect x="-30" y="-24" width="60" height="10" fill="#f2b5be" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 841 B |
@@ -36,6 +36,8 @@ export interface Asset {
|
||||
readonly cells?: readonly Cell[];
|
||||
readonly include: readonly string[];
|
||||
readonly avoid: readonly string[];
|
||||
/** Shared avoid lines this picture may break, each named exactly (the gardener is a person: planet-garden.md). */
|
||||
readonly allow?: readonly string[];
|
||||
/** Indices into STYLE.md §7, the review points shown on its card. */
|
||||
readonly checks: readonly number[];
|
||||
}
|
||||
@@ -108,6 +110,9 @@ export function checkManifest(m: Manifest, checklistLength: number): string[] {
|
||||
problems.push(`${a.id}: a ${a.type} sits over other pictures, so its background must be transparent`);
|
||||
}
|
||||
if (a.type !== 'spritesheet' && (a.subject ?? '').trim() === '') problems.push(`${a.id}: no subject`);
|
||||
for (const line of a.allow ?? []) {
|
||||
if (!m.avoid.includes(line)) problems.push(`${a.id}: allows "${line}", which is not in the shared avoid list`);
|
||||
}
|
||||
for (const i of a.checks) {
|
||||
if (!Number.isInteger(i) || i < 0 || i >= checklistLength) problems.push(`${a.id}: review point ${i} is not in STYLE.md §7`);
|
||||
}
|
||||
|
||||
@@ -332,6 +332,47 @@ function planet(W: number, H: number, id: string): string {
|
||||
+ `<g transform="translate(${W / 2} ${top - 4}) scale(1.8)">${drawing(things, id)}</g>`;
|
||||
}
|
||||
|
||||
type Pose = 'stand' | 'walk' | 'pour' | 'pull' | 'sweep' | 'carry' | 'reach' | 'sit';
|
||||
|
||||
/** The gardener's stand-in in a 120 × 200 box, feet on the bottom edge, facing right (STYLE.md §3b). */
|
||||
function gardener(pose: Pose, boy = false): string {
|
||||
const skin = '#cf9a72', hair = '#7a4b2e', cloth = C.leaf, apron = '#efe4d2';
|
||||
const lean = { stand: 0, walk: 4, pour: 10, pull: 28, sweep: 18, carry: 6, reach: 14, sit: 0 }[pose];
|
||||
const arm = { stand: 8, walk: -12, pour: -70, pull: -150, sweep: -40, carry: -80, reach: -95, sit: -30 }[pose];
|
||||
const legs = pose === 'sit'
|
||||
? `<path d="M52 160 h26 v34 M62 160 h26 v34" stroke="${boy ? cloth : skin}" stroke-width="12" fill="none" stroke-linecap="round"/>`
|
||||
: `<path d="M52 196 V 150 M70 196 V 150" stroke="${boy ? cloth : skin}" stroke-width="${boy ? 14 : 10}" stroke-linecap="round"/>`;
|
||||
const body = boy
|
||||
? `<path d="M44 92 Q 42 130 46 152 H 76 Q 80 130 78 92 Z" fill="${cloth}" ${ink(4)}/>`
|
||||
: `<path d="M44 92 Q 36 136 34 156 H 88 Q 86 136 78 92 Z" fill="${cloth}" ${ink(4)}/>`;
|
||||
const held = pose === 'pour' ? `<rect x="84" y="128" width="26" height="20" rx="6" fill="${C.leaf}" ${ink(3)} transform="rotate(30 97 138)"/>`
|
||||
: pose === 'carry' ? Array.from({ length: 4 }, (_, i) => `<path d="M${80 + i * 8} 150 v -40" stroke="${C.wood}" stroke-width="6" stroke-linecap="round"/>`).join('') : '';
|
||||
const braids = boy ? '' : `<path d="M44 58 v 30 M78 58 v 30" stroke="${hair}" stroke-width="7" stroke-linecap="round"/>`;
|
||||
return `${legs}<path d="M44 198 h18 M64 198 h18" ${ink(7)} stroke-linecap="round"/>
|
||||
<g transform="rotate(${lean} 61 150)">${body}<path d="M50 100 H 72 V 146 Q 61 152 50 146 Z" fill="${apron}" ${ink(3)}/>
|
||||
<path d="M44 98 l -8 40" stroke="${skin}" stroke-width="9" stroke-linecap="round"/>
|
||||
<g transform="rotate(${arm} 78 98)"><path d="M78 98 l 4 40" stroke="${skin}" stroke-width="9" stroke-linecap="round"/></g>${held}
|
||||
${braids}<circle cx="61" cy="66" r="20" fill="${skin}" ${ink(4)}/>
|
||||
<path d="M41 62 Q 61 36 81 62 Q 61 52 41 62 Z" fill="${hair}"/>
|
||||
<ellipse cx="61" cy="50" rx="34" ry="7" fill="#e6c98a" ${ink(3)}/><path d="M47 50 Q 61 28 75 50 Z" fill="#e6c98a" ${ink(3)}/>
|
||||
<circle cx="66" cy="66" r="2.5" fill="${C.ink}"/><circle cx="74" cy="66" r="2.5" fill="${C.ink}"/><path d="M66 76 q 4 3 8 0" fill="none" ${ink(2.5)}/></g>`;
|
||||
}
|
||||
|
||||
const GARDENER_POSES: Record<string, Pose> = {
|
||||
'gardener-stand': 'stand', 'gardener-walk': 'walk', 'gardener-pour': 'pour', 'gardener-pull': 'pull',
|
||||
'gardener-sweep': 'sweep', 'gardener-carry': 'carry', 'gardener-reach': 'reach', 'gardener-sit': 'sit'
|
||||
};
|
||||
|
||||
/** Her home planet's stand-in (STYLE.md S2): a round meadow world, the empty bed on top, the wall and the chair. */
|
||||
function homePlanet(W: number, H: number, light: 'day' | 'golden' | 'night'): string {
|
||||
const meadow = { day: C.meadow, golden: '#c9b07a', night: '#3c4a6a' }[light];
|
||||
const cx = W / 2, cy = H * 0.58, r = W * 0.35;
|
||||
return `<circle cx="${cx}" cy="${cy}" r="${r}" fill="${meadow}" ${ink(8)}/>
|
||||
<ellipse cx="${cx}" cy="${cy - r + 6}" rx="${r * 0.32}" ry="${r * 0.07}" fill="${C.soil}" ${ink(5)}/>
|
||||
<path d="M${cx - r * 0.55} ${cy - r * 0.8} Q ${cx} ${cy - r * 1.1} ${cx + r * 0.5} ${cy - r * 0.84}" fill="none" stroke="#a8957f" stroke-width="22" stroke-linecap="round"/>
|
||||
<g transform="translate(${cx + r * 0.8} ${cy - r * 0.6}) rotate(55)"><rect x="-26" y="-60" width="52" height="40" rx="5" fill="${C.wood}" ${ink(4)}/><rect x="-30" y="-24" width="60" height="10" fill="${C.petal}" ${ink(4)}/></g>`;
|
||||
}
|
||||
|
||||
/** The share frame's stand-in: meadow along the bottom and up the sides, the middle left empty. */
|
||||
function shareFrame(W: number, H: number): string {
|
||||
return `<path d="M0 ${H} V ${H * 0.55} Q ${W * 0.06} ${H * 0.7} ${W * 0.1} ${H * 0.75} Q ${W / 2} ${H * 0.7} ${W * 0.9} ${H * 0.75} Q ${W * 0.94} ${H * 0.7} ${W} ${H * 0.55} V ${H}z" fill="#3c4a6a" ${ink(5)}/>`
|
||||
@@ -360,6 +401,12 @@ function single(a: Asset): string {
|
||||
const { width: W, height: H } = a;
|
||||
switch (a.type) {
|
||||
case 'sheet': {
|
||||
if (a.character === 'gardener') {
|
||||
// The girl along the top, the boy along the bottom; the side and back views are flipped stand-ins.
|
||||
const row = (boy: boolean, y: number): string =>
|
||||
[0, 1, 2, 3].map((i) => `<g transform="translate(${90 + i * 360} ${y}) scale(${i === 3 ? '-2' : '2'} 2) translate(${i === 3 ? -120 : 0} 0)">${gardener('stand', boy)}</g>`).join('');
|
||||
return `<rect width="${W}" height="${H}" fill="${C.paper}"/>${row(false, 40)}${row(true, 560)}`;
|
||||
}
|
||||
if (a.character === 'fox') {
|
||||
const views: FoxLook[] = [{ pose: 'sit', eyes: 'half' }, { pose: 'stand', eyes: 'half' }, { pose: 'stand', eyes: 'half', tilt: -8 }, { pose: 'sit', eyes: 'half', behind: true }];
|
||||
const figures = views.map((l, i) => `<g transform="translate(${30 + i * 375} 60) scale(1.15)">${fox(l)}</g>`).join('');
|
||||
@@ -388,6 +435,7 @@ function single(a: Asset): string {
|
||||
return fit(drawing({ ...PROPS, ...V2_PROPS }, a.id), 200, 200, W, H, 0.7);
|
||||
case 'layer': {
|
||||
if (a.id.startsWith('planet-')) return planet(W, H, a.id);
|
||||
if (a.id.startsWith('home-planet-')) return homePlanet(W, H, a.id.endsWith('golden') ? 'golden' : a.id.endsWith('night') ? 'night' : 'day');
|
||||
if (a.id === 'share-frame') return shareFrame(W, H);
|
||||
const time = (['morning', 'day', 'sunset', 'night'] as const).find((t) => a.id.endsWith(t)) ?? 'day';
|
||||
return garden(W, H, time);
|
||||
@@ -426,6 +474,8 @@ function cellBody(id: string, W: number, H: number): string {
|
||||
if (look) return fit(rose(look), 200, 520, W, H);
|
||||
const pose = FOXES[id];
|
||||
if (pose) return fit(fox(pose), 300, 240, W, H);
|
||||
const gardenerPose = GARDENER_POSES[id];
|
||||
if (gardenerPose) return fit(gardener(gardenerPose), 120, 200, W, H);
|
||||
if (id in TALL || id in V2_TALL) return fit(drawing({ ...TALL, ...V2_TALL }, id), 200, 400, W, H);
|
||||
return fit(drawing({ ...PROPS, ...MORE_PROPS, ...V2_PROPS }, id), 200, 200, W, H, 0.7);
|
||||
}
|
||||
|
||||
@@ -71,6 +71,9 @@ const MAKE: Record<Exclude<Asset['type'], 'spritesheet'>, string> = {
|
||||
|
||||
const list = (items: readonly string[]): string => items.join('; ');
|
||||
|
||||
/** The shared avoid lines, less any this picture is allowed to break. */
|
||||
const shared = (a: Asset, m: Manifest): string[] => m.avoid.filter((line) => !(a.allow ?? []).includes(line));
|
||||
|
||||
/** A sheet is cut apart, so its pictures must not touch. Everything else is said positively in the layout. */
|
||||
const SHEET_AVOID = ['pictures touching or overlapping', 'grid lines, frames or labels'];
|
||||
|
||||
@@ -116,7 +119,7 @@ export function promptFor(a: Asset, m: Manifest, style: string): string {
|
||||
lines.push(
|
||||
canvasLine(a.width, a.height, a.background, a.type === 'sprite'),
|
||||
`Include: ${list(a.include)}`,
|
||||
`Avoid: ${list([...a.avoid, ...m.avoid])}`,
|
||||
`Avoid: ${list([...a.avoid, ...shared(a, m)])}`,
|
||||
board(a.id)
|
||||
);
|
||||
return lines.join('\n');
|
||||
@@ -138,7 +141,7 @@ function sheetPrompt(a: Asset, m: Manifest, style: string): string {
|
||||
'Pictures:',
|
||||
...cells.map((c, i) => `${i + 1}. ${c.does}`),
|
||||
`Include: ${list(a.include)}`,
|
||||
`Avoid: ${list([...a.avoid, ...SHEET_AVOID, ...m.avoid])}`,
|
||||
`Avoid: ${list([...a.avoid, ...SHEET_AVOID, ...shared(a, m)])}`,
|
||||
board(a.id)
|
||||
].join('\n');
|
||||
}
|
||||
@@ -155,7 +158,7 @@ export function cellPromptFor(a: Asset, cell: Cell, m: Manifest, style: string):
|
||||
`Drawn alike: ${a.angle ?? ''}`,
|
||||
canvasLine(width, height, 'transparent', true),
|
||||
`Include: ${list(a.include)}`,
|
||||
`Avoid: ${list([...a.avoid, ...m.avoid])}`,
|
||||
`Avoid: ${list([...a.avoid, ...shared(a, m)])}`,
|
||||
board(`${cell.id} (one picture of ${a.id})`)
|
||||
].join('\n');
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ describe('the board data', () => {
|
||||
for (const c of a.cells ?? []) expect(c).toMatchObject({ id: expect.any(String), width: expect.any(Number), height: expect.any(Number), prompt: expect.any(String) });
|
||||
}
|
||||
}
|
||||
expect(data.checklist).toHaveLength(10);
|
||||
expect(data.checklist).toHaveLength(12);
|
||||
expect(data.assets.every((a) => Number.isInteger(a.phase))).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -18,15 +18,16 @@ describe('art/manifest.json', () => {
|
||||
expect(checkManifest(readManifest(), POINTS)).toEqual([]);
|
||||
});
|
||||
|
||||
it('asks for the 34 Phase 1 pictures: the rose sheet first, then her stages, care, moments and touch, the care things, chair, garden, letter and icons', () => {
|
||||
it('asks for the 46 Phase 1 pictures: the rose sheet first, then her stages, care, moments and touch, the care things, chair, garden, letter, icons, the gardener and her planet', () => {
|
||||
const m = readManifest();
|
||||
expect(m.assets[0]?.id).toBe('rose-sheet');
|
||||
const phase1 = m.assets.filter((a) => a.phase === 1);
|
||||
const pictures = phase1.flatMap((a: Asset) => (a.cells ? a.cells.map((c) => c.id) : [a.id]));
|
||||
expect(pictures).toHaveLength(34);
|
||||
expect(pictures).toHaveLength(46);
|
||||
expect(pictures).toEqual(expect.arrayContaining([
|
||||
'rose-bud', 'rose-full-bloom', 'rose-waiting', 'rose-tickled', 'rose-gentle', 'petal-folded', 'weeds-growing',
|
||||
'watering-can-pouring', 'garden-chair', 'garden-sunset', 'garden-night', 'letter-header', 'app-icon', 'app-icon-maskable', 'favicon-mark'
|
||||
'watering-can-pouring', 'garden-chair', 'garden-sunset', 'garden-night', 'letter-header', 'app-icon', 'app-icon-maskable', 'favicon-mark',
|
||||
'gardener-sheet', 'gardener-pour', 'gardener-pull', 'home-planet-day', 'home-planet-night'
|
||||
]));
|
||||
});
|
||||
|
||||
@@ -68,6 +69,7 @@ describe('checkManifest refuses', () => {
|
||||
['a Phase 1 picture listed after Phase 3', withAsset('lanterns-sheet', (a) => { a.phase = 1; }), /lanterns-sheet: phase 1 comes after phase 3; list the pictures in phase order/],
|
||||
['a picture with no subject', withAsset('garden-chair', (a) => { delete a.subject; }), /no subject/],
|
||||
['a picture nobody uses', withAsset('garden-chair', (a) => { a.usedBy = []; }), /usedBy is empty/],
|
||||
['an allowance for a line the shared list does not have', withAsset('gardener-sheet', (a) => { a.allow = ['a dragon']; }), /allows "a dragon", which is not in the shared avoid list/],
|
||||
['a name from the book in a prompt', withAsset('garden-chair', (a) => { a.subject = 'a chair for the Little Prince'; }), /"Little Prince" \(little-prince\)/],
|
||||
['a medical word in a cell', withAsset('rose-care-sheet', (a) => { (a.cells as { does: string }[])[0]!.does = 'thirsty, waiting to be healed'; }), /"healed" \(medical\)/],
|
||||
['the word the game never says, in the shared avoid list', (() => { const m = clone(readManifest()); (m.avoid as string[]).push('a lonely look'); return m; })(), /avoid list: "lonely"/]
|
||||
|
||||
@@ -23,9 +23,9 @@ describe('STYLE.md', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('§7 has the ten review points, a point split over two lines read as one', () => {
|
||||
it('§7 has the twelve review points, a point split over two lines read as one', () => {
|
||||
const points = reviewPoints(readStyle());
|
||||
expect(points).toHaveLength(10);
|
||||
expect(points).toHaveLength(12);
|
||||
expect(points[8]).toBe("It reads as one young red-orange fox with a cream mask and a ringed tail, shy and gentle, and nothing like the book's sandy, long-eared fox.");
|
||||
expect(points[3]).toBe('Nothing from the book: no glass dome, screen, tiny planet, desert, child or scarf, and no look of its drawings.');
|
||||
});
|
||||
@@ -37,15 +37,16 @@ describe('STYLE.md', () => {
|
||||
});
|
||||
|
||||
describe('the prompts', () => {
|
||||
it('every one starts with STYLE.md §1 word for word, then says what to make: 35 cards and 66 one-at-a-time prompts', () => {
|
||||
expect(allPrompts).toHaveLength(35 + 66);
|
||||
it('every one starts with STYLE.md §1 word for word, then says what to make: 40 cards and 74 one-at-a-time prompts', () => {
|
||||
expect(allPrompts).toHaveLength(40 + 74);
|
||||
for (const p of allPrompts) expect(p.startsWith(style + '\n\nMake: ')).toBe(true);
|
||||
});
|
||||
|
||||
it('every one ends with the shared avoid list and its board id', () => {
|
||||
const shared = readManifest().avoid.join('; ');
|
||||
const m = readManifest();
|
||||
for (const a of data.assets) {
|
||||
expect(a.prompt).toContain(shared);
|
||||
const allowed = m.assets.find((x) => x.id === a.id)?.allow ?? [];
|
||||
expect(a.prompt).toContain(m.avoid.filter((l) => !allowed.includes(l)).join('; '));
|
||||
expect(a.prompt.endsWith(`\nBoard id: ${a.id}`)).toBe(true);
|
||||
for (const c of a.cells ?? []) expect(c.prompt.endsWith(`\nBoard id: ${c.id} (one picture of ${a.id})`)).toBe(true);
|
||||
}
|
||||
@@ -76,6 +77,17 @@ describe('the prompts', () => {
|
||||
for (const id of ['care-props-sheet', 'favicon-mark', 'letter-header']) expect(by.get(id)?.attach).toEqual([]);
|
||||
});
|
||||
|
||||
it("only the gardener's own pictures may show a person; every other prompt still says no people (STYLE.md S6)", () => {
|
||||
const people = 'people, hands or human faces';
|
||||
for (const a of data.assets) {
|
||||
const prompts = [a.prompt, ...(a.cells ?? []).map((c) => c.prompt)];
|
||||
const isGardener = a.attach.includes('gardener-sheet') || a.id === 'gardener-sheet';
|
||||
// The Avoid line only: §1 itself names the exception for every picture.
|
||||
for (const p of prompts) expect((p.split('\nAvoid: ')[1] ?? '').includes(people), a.id).toBe(!isGardener);
|
||||
}
|
||||
expect(data.assets.find((a) => a.id === 'gardener-poses-sheet')?.attach).toEqual(['gardener-sheet']);
|
||||
});
|
||||
|
||||
it('every rose prompt puts her face on the petals, never on a round head', () => {
|
||||
for (const a of data.assets.filter((x) => x.attach.includes('rose-sheet') || x.id === 'rose-sheet')) {
|
||||
for (const p of [a.prompt, ...(a.cells ?? []).map((c) => c.prompt)]) {
|
||||
|
||||