Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| abc5a5c3a8 | |||
| 08bc8b58fa | |||
| 793bcd7701 | |||
| 2962b13696 | |||
| 118ad5a2d4 | |||
| 1f60ddd17a | |||
| ff9d7f0514 | |||
| a5dbd5251b | |||
| 846d082003 | |||
| e0cbfc466a | |||
| 23e950c372 | |||
| de2a999382 | |||
| 8426980bfa | |||
| 3ff14fab16 | |||
| f24597dfdb | |||
| 1bfbd4a66c |
@@ -8,3 +8,5 @@ One row per feature, with its analysis document (CLAUDE.md §5.1). Gaps live in
|
||||
| Workspace, contracts, gates, PWA shell | 0 | Merged to `main` 2026-11-01 (`d11d242`); built, not deployed. Phase 0 gate still open | [phase0-workspace.md](features/phase0-workspace.md) | [feature-phase0-workspace.md](reviews/feature-phase0-workspace.md) |
|
||||
| Roadmap and gameplay docs, read against the code | 0 | Merged 2026-11-01; Q1–Q7 answered by the author | — | [docs-roadmap-gameplay.md](reviews/docs-roadmap-gameplay.md) |
|
||||
| The Letter slot: page at `#letter`, empty `docs/LETTER.md` | 0 | Merged to `main`; built, not deployed. Invisible until the author writes | [letter-slot.md](features/letter-slot.md) | [feature-letter-slot.md](reviews/feature-letter-slot.md) |
|
||||
| The sun: real sunrise, sunset and solar noon on the device; polar day and night | 1 | Merged to `main`; engine only, the app does not show it yet | [sun.md](features/sun.md) | [feature-sun.md](reviews/feature-sun.md) |
|
||||
| The art pipeline and the art board: STYLE.md (S1–S5 and the fox's F1–F4 approved), the manifest (Phase 1–3, 53 pictures), stand-ins, `tools/art-prep`, the published board | 0 | Merged to `main`; board published (private). The app is unchanged. Gate waits on the first real picture | [art-pipeline.md](features/art-pipeline.md) | [feature-art-board.md](reviews/feature-art-board.md), [art-phase2-3-pictures.md](reviews/art-phase2-3-pictures.md) |
|
||||
|
||||
@@ -12,7 +12,8 @@ workspace part of Phase 0 is in
|
||||
## Phase 0 — Foundations
|
||||
|
||||
**Gate open.** The workspace is merged (G0.1–G0.9). Still missing for the gate: the
|
||||
60 sentences (G0.18) and one illustration through the pipeline (G0.24).
|
||||
60 sentences (G0.18) and one illustration through the pipeline (G0.24): the pipeline and the
|
||||
board exist, and the first real picture is the author's to make.
|
||||
|
||||
| Id | Gap | Status / evidence |
|
||||
|:--|:--|:--|
|
||||
@@ -39,11 +40,21 @@ workspace part of Phase 0 is in
|
||||
| G0.21 | No PNG icons | Open (predicted trap). iOS ignores SVG for `apple-touch-icon`. Comes through the art pipeline. |
|
||||
| G0.22 | No CI | Open. Every gate ran on this machine only. With G0.13. |
|
||||
| G0.23 | Source maps are built and would be published | Open. `sourcemap: true`; maps are not precached. Decide with G0.13 whether the repository is public. If not, use `'hidden'`. |
|
||||
| G0.24 | No art pipeline: `docs/ART.md`, `art/STYLE.md` (drafted with the author), `art/manifest.json` for Phase 1 assets, SVG placeholders, `tools/art-prep` | Open. **Phase 0 gate**: one illustration goes through prompt, paste, automatic checks, review and the author's approval into `art/final/`. |
|
||||
| G0.24 | No art pipeline: `docs/ART.md`, `art/STYLE.md` (drafted with the author), `art/manifest.json` for Phase 1 assets, SVG placeholders, `tools/art-prep` | **Pipeline built 2026-11-01** (`feature/art-board`): docs/ART.md, the Phase 1 manifest (25 pictures), 29 generated stand-ins, `tools/art-prep` (50 tests; 5 of 5 put-back bugs caught), the art board published. STYLE.md approved by the author 2026-11-01 (S1–S5 kept as drafted; `docs/style-approved`). The board grew to 53 pictures with Phases 2–3 (`art/phase2-3-pictures`); the fox's look F1–F4 approved with a deep red-orange coat (`art/fox-coat`). **Still open:** the **Phase 0 gate**, one real picture through every step into `art/final/`. |
|
||||
| ~~G0.25~~ | ~~No slot for *A Letter from the Gardener*~~ | Closed 2026-11-01, merged to `main`. `docs/LETTER.md` holds slots as comments only; the page opens at `#letter` once it has words. 16 ui tests, and e2e on both the empty and a temporary written letter. Mutations caught: the link while empty, any link scheme, focus not moving, *heal* in the letter. |
|
||||
| G0.27 | The quiet door to real help has no numbers (§5.6 rule 5) | Open. The slot is in `docs/LETTER.md`. Support lines are real-world facts the author must verify, per country, so the door exists only once the letter does. |
|
||||
| ~~G0.26~~ | ~~Not decided: how the sunset invitation reaches the player on the web~~ | Closed 2026-11-01 by the author (Q6): in-app only on the web, no push server; local notifications through the Tauri shell in Phase 6. Recorded in ROADMAP Phase 0 and CLAUDE.md §8. |
|
||||
|
||||
## Phase 1 — The rose alone
|
||||
|
||||
**Started 2026-11-01** with the sun, while the Phase 0 gate waits on the author (pictures,
|
||||
sentences). Nothing in Phase 1 is visible to the player yet.
|
||||
|
||||
| Id | Gap | Status / evidence |
|
||||
|:--|:--|:--|
|
||||
| ~~G1.1~~ | ~~No module computes the sun (CLAUDE.md §7); polar and DST traps only predicted~~ | Closed 2026-11-01 on `feature/sun`. `engine/src/sun/sun.ts`: 26 published days in 6 cities within 2 min, polar day and night at Tromsø, 50 tests, 5 of 5 put-back bugs caught. Both traps measured (CLAUDE.md §8). |
|
||||
| G1.2 | The player cannot choose a city; no time-zone guess; no sunset time on screen | Open. A city list on the device (never GPS, never an IP lookup), the device zone as the fallback, the time shown in the garden. |
|
||||
|
||||
## Design questions — answered
|
||||
|
||||
Raised by GAMEPLAY.md and ROADMAP.md, answered by the author 2026-11-01. Details in
|
||||
@@ -59,4 +70,5 @@ Raised by GAMEPLAY.md and ROADMAP.md, answered by the author 2026-11-01. Details
|
||||
| ~~Q6~~ | When the notification decision is due | Phase 0, in-app only (G0.26) |
|
||||
| ~~Q7~~ | Which phase holds the Amicitia bridge | Phase 3 |
|
||||
| Q8 | "Nearby days give a little more" | Open as a rule for the Phase 1 Soul review: a gap's cost is never shown |
|
||||
| Q10 | In polar night, when should the invitation come? | Open. The engine assumes solar noon, when the twilight is brightest (`features/sun.md` D4). In polar day it is the lowest light, as CLAUDE.md §8 suggests. |
|
||||
| Q9 | May the Letter name the book and its author for the one sentence of inspiration (GAMEPLAY §7)? | Open. `lint:copy` refuses those names in the letter as everywhere in the product. A yes needs a written, letter-only exemption. |
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
# The art pipeline and the art board
|
||||
|
||||
Status: merged to `main`, reviewed in
|
||||
[`feature-art-board.md`](../reviews/feature-art-board.md). Gap: G0.24. Roadmap: Phase 0, *art/STYLE.md
|
||||
drafted with Mark, art/manifest.json for Phase 1 assets, Claude's SVG placeholders, and the art
|
||||
preparation page working end to end on one asset.* The pipeline itself is [`docs/ART.md`](../../docs/ART.md).
|
||||
|
||||
---
|
||||
|
||||
## 1. Why and what, in the player's terms
|
||||
|
||||
The player never sees this feature. They see what it produces: one rose who looks the same in
|
||||
every picture, a garden whose light follows the real day, and nothing that looks copied from
|
||||
the book. Without a pipeline, each picture is a separate gamble. The rose's face drifts
|
||||
between pictures, a glass dome sneaks in from the generator's memory of the book, and a 3 MB
|
||||
PNG lands in the precache.
|
||||
|
||||
For Mark it is a board. Every picture the game needs sits on one page with the prompt that
|
||||
makes it. He copies the prompt and pastes back what the generator made. The board measures the
|
||||
picture, Claude reviews it, and he taps *Accept*. Claude moves it into the game.
|
||||
|
||||
## 2. Technical architecture
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
style["art/STYLE.md"]
|
||||
manifest["art/manifest.json"]
|
||||
content["packages/content<br/>findForbidden"]
|
||||
schema["packages/schema<br/>PRODUCT_NAME"]
|
||||
prep["tools/art-prep<br/>manifest.ts · prompt.ts · placeholders.ts<br/>board.ts · accept.ts"]
|
||||
placeholders["art/placeholders/*.svg"]
|
||||
dist["tools/art-prep/dist/board/<br/>index.html · board-data.json · placeholders/"]
|
||||
board["Art board<br/>claude.ai artifact: db + assets"]
|
||||
final["art/final/*.webp"]
|
||||
style --> prep
|
||||
manifest --> prep
|
||||
content --> prep
|
||||
schema --> prep
|
||||
prep -- "pnpm art:board" --> placeholders
|
||||
prep -- "pnpm art:board" --> dist
|
||||
dist -- "Claude publishes" --> board
|
||||
board -- "Claude downloads the accepted picture;<br/>pnpm art:accept" --> final
|
||||
```
|
||||
|
||||
`tools/art-prep` is a workspace package (`@rosea/art-prep`) so that it gets its own tests,
|
||||
typecheck and lint. Nothing imports it: not the app, not the packages.
|
||||
|
||||
### Decisions
|
||||
|
||||
| # | Decision | Why |
|
||||
|:--|:--|:--|
|
||||
| A1 | The art preparation page is a **private claude.ai artifact**, the Panda Domi board adapted, not a page on 127.0.0.1. | Mark asked for this board. It works from his phone, keeps the pictures between sessions, and Claude can read its rows and images. The roadmap and CLAUDE.md now say so (ROADMAP Phase 0, *Decided 2026-11-01*). |
|
||||
| A2 | Prompts are **built, never typed**: STYLE.md §1 plus the manifest's words. STYLE.md is the only copy of the style prompt and the review points. | The same words describe the rose every time, so she stays the same rose. Changing the style means editing one file. |
|
||||
| A3 | The manifest is **checked before any prompt exists**. That covers sizes generators offer, grids that divide into whole pixels, unique ids, characters with sheets, transparent sprites and layers, and **every forbidden word** from `@rosea/content`. | A prompt naming the book is how a likeness gets in (§8). Prompts are not player copy, so `lint:copy` never reads them. |
|
||||
| A4 | Every prompt ends with a **shared avoid list**: glass dome, folding screen, tiny round planet, desert, scarf, *the look of any existing book's drawings*. | The book's most recognisable images are the ones a generator will reach for when it hears *rose* and *fox*. |
|
||||
| A5 | **The sky is code.** Garden pictures are layers, transparent above a horizon at 40 %. | The sun follows the player's real time and the stars are the real constellations (CLAUDE.md §1). A painted sky could be neither. |
|
||||
| A6 | **Sprite sheets** come with exact pixel geometry: cut lines, cell centres, a safe box at 12 % of the cell's shorter side. Each cell can also be made *one at a time*. | Taken from the Panda Domi board, where a sheet's drift off the grid was the common failure. |
|
||||
| A7 | `art:accept` **refuses rather than guesses**. A sheet with an empty or painted cell is refused whole, a transparent picture with an opaque background is refused, and so is a file still over budget at WebP quality 62. A full picture is cropped to shape, then only ever shrunk. | A cut that "mostly worked" ships a broken picture. Every final picture is precached, so the budget is real bandwidth on a player's phone. |
|
||||
| A8 | Stand-ins are **generated** from the same manifest and committed in `art/placeholders/`. A test fails if they drift. | The board and, from Phase 1, the app both show them. One manifest change must update both. |
|
||||
| A9 | The board's page takes the product name from `@rosea/schema` (`%PRODUCT_NAME%`). | Renaming stays a one-commit operation (CLAUDE.md preamble). |
|
||||
| A10 | Claude writes its review and the `final` paths into the board's rows. The card shows them. | Mark sees on the card what Claude checked and whether the picture is in the game, with no separate report to read. |
|
||||
| A11 | *Added 2026-11-01 (`art/phase2-3-pictures`).* The manifest also holds Phase 2 (the fox, berries, the bush, the brush) and the Phase 3 pictures whose mechanics are already decided (paths, lanterns). Every card carries a `phase`, the manifest lists phases in order, and the board shows *Phase N* on each card. | Mark asked for more pictures on the board. Making them now lets the fox's look settle before Phase 2 code depends on it. The phase on the card keeps a Phase 3 picture from being taken for something Phase 1 needs. |
|
||||
| A12 | **The planets are not on the board.** | Each planet is designed in its own feature doc (ROADMAP Phase 2), and their grown-ups are the book's most recognisable drawings. Asking for pictures before the design exists would fix a look with the highest likeness risk and no design behind it. |
|
||||
| A13 | The fox is a second character with his own sheet (`fox-sheet`) and two review points (STYLE.md §7, 8–9). His look (F1–F4 in STYLE.md §0) was a draft, and Mark approved it on 2026-11-01 with one change: a deep red-orange coat (`#BC4A22`) instead of muted russet (`art/fox-coat`). | The same mechanism that keeps the rose consistent, reused. The draft was marked as one, so the rose's approval was not stretched over choices he had not seen. |
|
||||
| A14 | A stand-in with no drawing **stops the build**. Before this, an unknown cell got an empty box. | 28 new pictures made a silent blank likely. A blank stand-in looks like a layout bug, not a missing drawing. |
|
||||
|
||||
## 3. Risk analysis
|
||||
|
||||
| Risk | Where | Defence |
|
||||
|:--|:--|:--|
|
||||
| **A picture that looks like the book** (copyright, and the product claiming a lineage it promised not to, GAMEPLAY §8) | Prompts; generated pictures | A3, A4. STYLE.md §8 makes likeness Claude's first review check. Mark's eye is the last gate. No automatic likeness check exists (docs/ART.md §5). |
|
||||
| **A rose who looks hurt or sad because of the player** (a lonely person feeling worse, §8 *drift that reads as blame*) | `rose-waiting`, `rose-thirsty`, `rose-overwatered` prompts | Their prompts say *tired, not hurt*, *gently comic, never ill*, *quiet, waiting with patience, never sad, hurt or blaming*. Review point 7 is about exactly this. |
|
||||
| **Words painted into a picture**, bypassing the copy library | Generated pictures | Every prompt forbids text. Claude's review refuses painted words (STYLE.md §8). The petal's words are added in code. |
|
||||
| **Player data leaving the device** | The board | None can. The board holds only generated art and Mark's notes, and the app never talks to it (docs/ART.md §3, *Privacy*). |
|
||||
| **Someone being reachable** | — | Not applicable: no player is involved. |
|
||||
| **A huge bundle on a phone** | `art/final/` | A7's budgets: about 1.4 MB for the four layers, 120 KB per small picture. |
|
||||
| **The board and the repo disagree** | Manifest changes | `art:board` rewrites `art/placeholders/` from the manifest, and the drift test fails until it is run. The board is republished from the same build. |
|
||||
|
||||
## 4. Gap analysis and the designed solution
|
||||
|
||||
| Gap (G0.24) | Solution | State |
|
||||
|:--|:--|:--|
|
||||
| No `docs/ART.md` | Written: the six steps, the manifest's rules, the board, budgets, what's missing | Done |
|
||||
| No `art/STYLE.md` "drafted with Mark" | A draft by Claude, with its open choices S1–S5 listed for Mark | Done: Mark kept the draft, 2026-11-01 |
|
||||
| No `art/manifest.json` | 11 cards, 25 Phase 1 pictures: rose sheet, stages, care, moments, care things, chair, four garden layers, icon. Since A11: 18 cards and 53 pictures, the 28 more for Phases 2–3 | Done |
|
||||
| No SVG placeholders | 29 stand-ins, generated and committed; 63 since A11 | Done |
|
||||
| No art preparation page | The art board, published (A1) | Done |
|
||||
| **Phase 0 gate:** one picture through the pipeline into `art/final/` | Every step exists and is tested with synthetic pictures | **Open.** It waits on Mark making and accepting the first real picture |
|
||||
|
||||
## 5. Verification matrix
|
||||
|
||||
| Case | Kind | Where |
|
||||
|:--|:--|:--|
|
||||
| The real manifest passes every check | unit | `tools/art-prep/test/manifest.test.ts` |
|
||||
| Each manifest rule fires: a repeated id, cell id clash, bad id, odd size, cell/grid mismatch, non-dividing grid, grid on a single, unknown character, shipped sheet, opaque sprite, missing review point, a phase outside 1–6, phases out of order, no subject, unused picture, a book name, a medical word, *lonely* in the avoid list, a missing or wrong sheet | unit (19 cases) | same |
|
||||
| STYLE.md §1 and §7 are read exactly; a missing section is an error | unit | `prompt.test.ts` |
|
||||
| All 63 prompts start with §1 word for word, carry the shared avoid list, and contain no forbidden term | unit | same |
|
||||
| Rose prompts ask for `rose-sheet`; the sheet itself doesn't. Fox prompts, one-at-a-time ones included, ask for `fox-sheet` and never name `rose-sheet` | unit | same |
|
||||
| Grid numbers in the prompt equal `cellBoxes`; tall cells made alone use 1024 × 1536 | unit | same |
|
||||
| The board data has the shape the page reads; every kind has a group on the page; the page never spells the product name | unit | `board.test.ts` |
|
||||
| A stand-in for every picture and cell, at its size, loading nothing; `art/placeholders/` equals the generator's output; a picture with no drawing stops the build; every card shows its phase | unit | same |
|
||||
| `art:accept`: single picture to WebP within budget; opaque refused; sheet cut into its cells; any-size sheet cut by grid with a note; empty cell refused by name; painted cell refused; edge-touch warned; solo cell fitted; a layer's clear sky required; a wrong-shape full picture cropped, never enlarged; over budget refused; unknown id or non-image refused | unit, real sharp (12 cases) | `accept.test.ts` |
|
||||
| The board renders: 11 cards, 18 cells, 5 groups, no broken stand-in, no sideways scroll. Since A11: 18 cards, *Phase N* on each | manual, built page on 127.0.0.1 | the reviews |
|
||||
| The published board's store starts empty | manual (`ArtifactData list art`) | the review |
|
||||
| **One real picture end to end** | manual, Mark | **not done**: the Phase 0 gate |
|
||||
@@ -0,0 +1,107 @@
|
||||
# The sun — real sunrise and sunset, on the device
|
||||
|
||||
Status: built on `feature/sun`. ROADMAP Phase 1, *the sun*. Review:
|
||||
[`feature-sun.md`](../reviews/feature-sun.md). The first piece of Phase 1, and the one the
|
||||
spike leaves behind even if the answer is no (ROADMAP §0: *a reusable sentence library and a sun
|
||||
module*).
|
||||
|
||||
---
|
||||
|
||||
## 1. Why and what, in the player's terms
|
||||
|
||||
Every day, at the player's **real** local sunset, the game invites them to put the phone down and
|
||||
look at the real one (CLAUDE.md §1). The rose's sentence is best opened then. The in-game sunset
|
||||
says when tonight's real one is. All of that needs one honest answer: *when does the sun set
|
||||
here, today?*
|
||||
|
||||
What the player gets from this piece alone: nothing on screen yet. What it guarantees:
|
||||
|
||||
- **The time is real.** It is computed from the sun's position and checked against a published
|
||||
almanac for six cities on four continents, both hemispheres, the equator and the Arctic.
|
||||
- **It never needs the network.** It is maths on the device. No lookup, no service.
|
||||
- **It never needs GPS.** The place is a city the player chose, or a guess from the device's time
|
||||
zone (CLAUDE.md §5.6 rule 6). Choosing that city is the app's job, later in Phase 1.
|
||||
- **The far north is not forgotten.** Where the sun does not set in summer or rise in winter, the
|
||||
engine still gives a gentle moment for the invitation (D4), never an error and never silence.
|
||||
- **A clock change is the clock's doing.** The sun moves a minute or two a day. When the clocks
|
||||
change, the sunset on the clock jumps an hour while the sun itself does nothing. The engine
|
||||
works in instants, so the jump only appears where the clock is read.
|
||||
|
||||
## 2. Technical architecture
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
app["apps/rosea (later in Phase 1)<br/>the chosen city or the device zone"] -->|"place, day"| sun
|
||||
subgraph engine["packages/engine (pure)"]
|
||||
sun["sun/sun.ts<br/>sunDay(day, place)<br/>invitation(sunDay)"]
|
||||
time["time/localDay.ts<br/>the only place a day is computed"]
|
||||
sun --> time
|
||||
end
|
||||
golden["engine/test/fixtures/sun-usno.json<br/>28 published days"] -.->|golden tests| sun
|
||||
script["scripts/fetch-sun-golden.ts<br/>run by hand, never by a test"] -.->|records| golden
|
||||
```
|
||||
|
||||
- **`sunDay(day, place)`** takes a `LocalDay` and `{ lat, lon, timeZone }` and returns one of
|
||||
three shapes: `sun-sets` (sunrise, solar noon, sunset), `polar-day` (solar noon, lowest light) or
|
||||
`polar-night` (solar noon). Every time is an epoch-milliseconds instant.
|
||||
- **`invitation(sunDay)`** is the instant the game invites the player outside: the sunset, or the
|
||||
polar alternative (D4). The app renders it and decides nothing.
|
||||
- **The algorithm** is NOAA's solar calculator (after Meeus, *Astronomical Algorithms*): the sun's
|
||||
declination and the equation of time at a given instant, then the hour angle at which its
|
||||
centre is 0.833° below the horizon (refraction and the sun's radius). Each event is refined by
|
||||
recomputing at its own instant.
|
||||
|
||||
### Decisions
|
||||
|
||||
| # | Decision | Why |
|
||||
|:--|:--|:--|
|
||||
| D1 | NOAA's algorithm, in TypeScript, in the engine. No library, no WASM. | About 80 lines of public-domain maths, accurate to about a minute below 72° latitude. CLAUDE.md §2: WASM only with a measurement that says it must. |
|
||||
| D2 | **"Today's sunset" is the one after today's solar noon**, even when it falls after midnight. "Today" is the local day whose solar noon it is. | Reykjavík on 21 June sets at 00:04 on the 22nd. The published table for the 21st lists the *previous* evening's 00:04. A player in Reykjavík means tonight's sunset, not last night's. |
|
||||
| D3 | The engine returns instants. Clock times are read in the app, with the city's zone. | One instant has one meaning. The DST jump is then only the clock's (§1), and the engine cannot be wrong about it. |
|
||||
| D4 | **Polar day**: the invitation is the *lowest light*, solar midnight. **Polar night**: the invitation is solar noon, when the twilight is brightest. | CLAUDE.md §8 asks for a gentle alternative, *e.g. the hour the light is lowest*. In polar night that hour is all day, so the brightest one is the moment worth going out for. **Assumption, for the author** (Q10). |
|
||||
| D5 | Near the edge of polar day or night, an event whose hour angle leaves the possible range is clamped to solar midnight or noon. | On those few days the sun only grazes the horizon. A defined answer beats a NaN. Accuracy there is worse, and the tests say so. |
|
||||
| D6 | Golden values come from the U.S. Naval Observatory's published tables, recorded once into a fixture by `scripts/fetch-sun-golden.ts`. | CLAUDE.md §5.5 asks for published tables. Recording them keeps tests offline and deterministic, and the script shows exactly where each number came from. |
|
||||
| D7 | Tolerance: **2 minutes**, stated in the test. | The almanac rounds to the minute; NOAA's method is good to about a minute at these latitudes. |
|
||||
| D8 | Where a clock is about twelve hours off the sun, one calendar day a year can hold no solar noon. The engine then gives the nearest noon and never throws. | Found by fast-check at 179.9° W on UTC: noon crosses midnight in late December, so 26 December has none. No real zone is that far off the sun (the worst are about three hours), so the property tests give each place a zone that follows its longitude, and a unit test pins the impossible case. |
|
||||
|
||||
## 3. Risk analysis
|
||||
|
||||
Risk here means a person feeling worse, a person's location, or a person becoming reachable.
|
||||
|
||||
| Risk | Where | Answer |
|
||||
|:--|:--|:--|
|
||||
| **A wrong sunset sends someone out to a dark sky**, or too late. A broken promise from the one feature that points beyond the screen. | Correctness | Golden tests in six cities, including DST days; property tests across latitudes and days. |
|
||||
| **The far north gets nothing** — no sunset, so no invitation, every day for months. A person left out by geography. | Soul | D4: a defined, gentle moment on every day, tested at Tromsø and at ±80°. |
|
||||
| **The time is used to find someone.** A sunset time narrows down where a person lives. | Privacy | It is computed and kept on the device. This module has no I/O at all, and the engine's lint rule forbids it. Phase 4's shared sky uses a coarse cell and a day bucket only (CLAUDE.md §4), never this. |
|
||||
| **The test fixture holds coordinates.** | Privacy | City centres from public sources, never a player. No test uses a real person's location (§5.5). |
|
||||
| **A DST day records the wrong local day** for a sunset, and the rose's sentence moves to the wrong day. | Correctness | The day is only ever computed by `localDay`. Tested on all six DST transition days in the fixture. |
|
||||
|
||||
Reachability: none. The module talks to no one.
|
||||
|
||||
## 4. Gap analysis and the designed solution
|
||||
|
||||
| Gap | Solution | State |
|
||||
|:--|:--|:--|
|
||||
| No `engine/src/sun/` (CLAUDE.md §2, §7: *one module computes the sun*) | `sun/sun.ts`: `sunDay`, `invitation` | Built |
|
||||
| Polar day and night: a predicted trap (CLAUDE.md §8) | Two defined kinds and D4. **Measured**: Tromsø has no rise or set on 21 June and no events on 21 December | Built; the trap is confirmed |
|
||||
| DST and the local day: a predicted trap | D3 and `localDay`. **Measured**: the Prague sunset is 18:28 on 28 March and 19:29 on the 29th; the sun moved one minute | Built; the trap is confirmed |
|
||||
| Golden tests against published tables (§5.5) | 28 days in 6 cities, recorded from USNO | Built |
|
||||
| Choosing a city, the time-zone guess, showing the time | The app, with a city list; later in Phase 1 | **Open** (G1.2) |
|
||||
| The invitation in polar night (D4) | An assumption | **Open for the author** (Q10) |
|
||||
|
||||
## 5. Verification matrix
|
||||
|
||||
| Case | Kind | Where |
|
||||
|:--|:--|:--|
|
||||
| Sunrise, solar noon and sunset match the USNO table within 2 min, in the city's own clock, on 26 days in 6 cities | unit, golden | `engine/test/sun.test.ts` |
|
||||
| The fixture's offset agrees with the IANA zone on every day, so the table and the zone database tell the same story | unit, golden | same |
|
||||
| Tromsø 21 June is polar day; 21 December is polar night | unit, golden | same |
|
||||
| Reykjavík midsummer: tonight's sunset falls after midnight, on the next local day (D2) | unit, golden | same |
|
||||
| A DST change moves the clock's sunset by an hour while the instant moves by about a day | unit | same |
|
||||
| For any latitude within ±60°, any longitude and any day of 2026: sunrise < noon < sunset, noon is midway, noon is on the asked day | property | same |
|
||||
| Sunsets on consecutive days are never more than 5 minutes apart within ±60° | property | same |
|
||||
| ±80° on the solstices: polar day and night, the right way round in each hemisphere | unit | same |
|
||||
| The invitation is the sunset, the lowest light, or noon, by kind | unit, property | same |
|
||||
| A day that does not exist, a latitude above 90°, an unknown zone: refused | unit | same |
|
||||
| Nothing leaves the device | lint | the engine purity rule already covers `src/sun/` |
|
||||
| Choosing a city, and seeing the time in the app | e2e, offline | **later in Phase 1** |
|
||||
@@ -9,10 +9,10 @@ and **how to apply it**.
|
||||
| `soul.md` | none yet | What comforts and what only looks like comfort. **The most important file here.** No mechanic exists yet that could teach anything. |
|
||||
| `architecture.md` | none yet | Layering, ownership, seams. |
|
||||
| `design.md` | none yet | Wording, silence, empty states. |
|
||||
| `art.md` | none yet | The image pipeline. |
|
||||
| [`art.md`](art.md) | 2 | The image pipeline. |
|
||||
| [`code.md`](code.md) | 2 | TypeScript, Svelte, async ordering, Rust. |
|
||||
| [`technical.md`](technical.md) | 4 | The browser and the build as platforms. |
|
||||
| [`testing.md`](testing.md) | 4 | What makes a test worth having, and how a passing test lies. |
|
||||
| [`technical.md`](technical.md) | 5 | The browser and the build as platforms. |
|
||||
| [`testing.md`](testing.md) | 6 | What makes a test worth having, and how a passing test lies. |
|
||||
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
|
||||
| [`process.md`](process.md) | 2 | Workflow, commits, credentials, honesty about what shipped. |
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
# Art
|
||||
|
||||
What the image pipeline taught (CLAUDE.md §5.1b).
|
||||
|
||||
## "Never enlarge" also skips the crop
|
||||
|
||||
**What happened.** `art:accept` first resized a full-background picture with sharp's
|
||||
`fit: 'cover'` and `withoutEnlargement: true`. A 900 × 600 picture accepted as the
|
||||
1024 × 1024 app icon came out 900 × 600. Because it was smaller than the target, sharp
|
||||
skipped the whole resize, crop included, and a rectangle would have become the icon. The
|
||||
test *a full-background picture of the wrong shape is cropped from the middle* caught
|
||||
it before the first real picture existed (`tools/art-prep/src/accept.ts`, `middle()`).
|
||||
|
||||
**Why it bit.** One option can switch off two jobs: changing the shape and changing the
|
||||
size. "Don't blow it up" was meant for the size only.
|
||||
|
||||
**How to apply it.** Crop to the target shape first, as its own step, then only ever
|
||||
shrink. Test the small, wrongly shaped input as well as the large one: a generator that
|
||||
ignores the requested size is the normal case, not the edge case.
|
||||
|
||||
## A check on prompt words catches what review would miss
|
||||
|
||||
**What happened.** The first `pnpm art:board` refused its own manifest: the waiting
|
||||
rose's cell said she was "quiet and *patient*", and `patient` is on the forbidden list
|
||||
(§5.6 rule 3). The manifest checker runs `findForbidden` from `@rosea/content` over
|
||||
every word a prompt is built from.
|
||||
|
||||
**Why it bit.** Prompts are not player-facing, so `lint:copy` never reads them. But a
|
||||
prompt that names the book, or a word that drifts in from it, is exactly how a
|
||||
likeness gets into the art (§8, *copyright through the back door*).
|
||||
|
||||
**How to apply it.** Any text that is assembled into something sent outside, a prompt
|
||||
included, goes through the same forbidden list as player copy. Reword: *waiting with
|
||||
patience* is allowed.
|
||||
@@ -55,3 +55,18 @@ fresh. This is CLAUDE.md §5.4 again, caused by the build tool and not the servi
|
||||
**How to apply it.** Any file the app bundles from outside its package goes into
|
||||
`globalDependencies` or the task's `inputs`, in the same commit as the import. To
|
||||
check, change the file, run the build, and look for `cache miss`.
|
||||
|
||||
## A preview on a busy port shows someone else's app
|
||||
|
||||
**What happened.** The art board's local preview was given port 5180. Ludus's dev
|
||||
server already listened on `localhost:5180`, so the preview pane opened **Ludus**,
|
||||
whose page text appeared under the board's tab. Port 5191 was busy too. The board
|
||||
rendered only on 5237, after `netstat` confirmed the port was free.
|
||||
|
||||
**Why it bit.** A server that fails to bind, or binds 127.0.0.1 while another app holds
|
||||
`localhost`, does not always stop loudly, and the browser simply shows whatever is
|
||||
listening. This machine runs many projects.
|
||||
|
||||
**How to apply it.** Before starting a preview, check that the port is free
|
||||
(`netstat -ano | grep :<port>`). After it starts, check the page title before you trust
|
||||
anything the page says.
|
||||
|
||||
@@ -58,3 +58,32 @@ arrives. Then it fails for the first time on the author's machine, with the auth
|
||||
|
||||
**How to apply it.** When a test branches on content that does not exist yet, fill the
|
||||
content temporarily, run the suite, restore it, and record the run in the review.
|
||||
|
||||
## A one-time cold start is charged to the first case
|
||||
|
||||
**What happened.** On 2026-11-01, with the machine at 80% CPU, `pnpm test` failed one engine
|
||||
case: `purity-lint.test.ts` › *reports Date.now()*, timed out at 5 s. The snippet was fine.
|
||||
The first `eslint.lintText` call loads the whole config and typescript-eslint, and vitest
|
||||
charged that load to whichever case ran first. The fix is a `beforeAll` that lints an
|
||||
empty file once, with its own 60 s timeout.
|
||||
|
||||
**Why it bit.** A suite that passes on a quiet machine can still hide a fixed cost inside one
|
||||
case. It fails only under load, and then it looks like a bug in the code that case tests.
|
||||
|
||||
**How to apply it.** When the first case of a file loads something heavy (a linter, a
|
||||
compiler, a browser), load it in `beforeAll` with an explicit timeout. If only the first case
|
||||
of a file times out, suspect a cold start before suspecting the code.
|
||||
|
||||
## An example of "missing" must stay missing
|
||||
|
||||
**What happened.** On 2026-11-01 two art-prep tests used *fox* as their example of a thing not
|
||||
in the manifest: `unknown character "fox"` and `"fox-sheet" is not a picture`. The fox was the
|
||||
next character on the roadmap. Adding him made both tests fail. They now name an owl, which no
|
||||
plan mentions.
|
||||
|
||||
**Why it bit.** A negative test takes its example from what is not there yet, and the next
|
||||
thing on the roadmap is exactly what is not there yet. The test then fails on the day the
|
||||
feature lands, for a reason that has nothing to do with the feature.
|
||||
|
||||
**How to apply it.** For a "does not exist" example, pick a name no plan will ever add (an owl
|
||||
in a game with a fox, `owl-sheet`), never the next item on the roadmap.
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
# Review — `art/phase2-3-pictures`
|
||||
|
||||
Adversarial self-review (CLAUDE.md §5.3). Analysis:
|
||||
[`features/art-pipeline.md`](../features/art-pipeline.md), decisions A11–A14. Reviewed 2026-11-01
|
||||
on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
|
||||
|
||||
Mark asked for more pictures on the art board. The board went from 11 cards and 25 pictures to
|
||||
18 cards and 53. The new ones are the fox (a character sheet and 12 poses), five berries and the
|
||||
leaf he eats from, the wild bush in three states, the grooming brush, three path stages and a
|
||||
lantern unlit and lit.
|
||||
|
||||
## Gates — counts, not exit codes
|
||||
|
||||
| Gate | Result |
|
||||
|:--|:--|
|
||||
| `pnpm lint` | exit 0 |
|
||||
| `pnpm typecheck` | exit 0, after finding 4 |
|
||||
| `pnpm test` | **186 passed**: schema 15, content 47, **art-prep 56 (+6)**, engine 52, ui 16 |
|
||||
| `pnpm lint:copy` | 12 files, 0 problems |
|
||||
| `pnpm validate:library` | 0 entries; 13 of 13 fixtures rejected |
|
||||
| `pnpm test:e2e` | 7 passed |
|
||||
| `pnpm test:offline` | 1 passed |
|
||||
| `pnpm art:board` | 18 cards, 53 pictures, 63 stand-ins |
|
||||
|
||||
**The app is unchanged** (§5.4). No app file changed. **The board is republished** to the same
|
||||
private address, version 2. Its capabilities and stored rows carried over.
|
||||
|
||||
**Bug drills.** Each new guard was switched off once, and its test failed:
|
||||
|
||||
| Put back | Result |
|
||||
|:--|:--|
|
||||
| Phases out of order accepted | CAUGHT: *a Phase 1 picture listed after Phase 3* |
|
||||
| A missing stand-in drawing returns an empty box | CAUGHT: *a picture with no stand-in drawing stops the build* |
|
||||
|
||||
**The stand-ins, looked at.** The seven new stand-ins were rendered to one PNG with sharp.
|
||||
The browser pane was hidden, so a screenshot there showed nothing. All 12 fox poses, the berries,
|
||||
bush, brush, paths and lanterns read as what they are. The board, served on 127.0.0.1, showed 18
|
||||
cards with *Phase N* on each, and no broken image.
|
||||
|
||||
## Findings
|
||||
|
||||
| # | Area | Finding | Resolution |
|
||||
|:--|:--|:--|:--|
|
||||
| 1 | Copyright | The planets' grown-ups are the book's most recognisable drawings. Pictures asked for before each planet's design exists would fix a look with no design behind it. | **By design (A12)**: no planet pictures. Each planet's feature doc asks for its own. |
|
||||
| 2 | Copyright | The book's fox is pale, sandy and long-eared, and his chapter is full of wheat. A generic "cute fox" prompt drifts towards it. | **Fixed**: a russet fox with a cream mask and tail rings (F1); *pale sandy fur or very large ears* on every fox prompt; *a wheat field* on the shared avoid list; review point 8 names the difference. |
|
||||
| 3 | Soul | The petted fox needs a touch, and STYLE.md forbids hands. A drawn hand would also put a person in the picture. | **Fixed**: the fox leans into "a touch we do not see", and *a human hand or arm* is on every fox sheet's avoid list. |
|
||||
| 4 | Correctness | `board.test.ts` cast `readonly Cell[]` straight to a mutable type: vitest passed, `tsc` refused. | **Fixed** with a cast through `unknown`, as the other tests do. Found by the typecheck gate, not by tests. |
|
||||
| 5 | Test honesty | Two tests used *fox* as their example of a thing not in the manifest (`unknown character "fox"`, `"fox-sheet" is not a picture`). Adding the fox made them fail for the wrong reason. | **Fixed**: the example is now *owl*. Lesson: `testing.md`. |
|
||||
| 6 | Soul | A lantern unlit could read as *nobody answered*. | **Covered by the game, not the picture**: a lantern only one player lit is never shown to the other (CLAUDE.md §8). The unlit cell is described as "quiet, not sad". |
|
||||
| 7 | Scope | Paths and lanterns are Phase 3. The screen that shows two roses and the path between them is not designed. | **Deferred, said on the card**: F4 and the card's *usedBy* say the Phase 3 feature doc may ask for them again. |
|
||||
| 8 | Process | STYLE.md was approved an hour earlier. Adding the fox under that heading would stretch the approval over choices Mark never saw. | **Fixed**: F1–F4 were listed as a draft in §0. Mark then approved them with a deeper red-orange coat (`art/fox-coat`). |
|
||||
| 9 | Process | The full run started with the machine at 85 % CPU. §5.7 says not above ~80 %. The load was not checked first. | **Noted.** The run passed and nothing else was disturbed, but the check comes first next time. |
|
||||
| 10 | Process | A cleanup step in the drill command would have removed `F:\manifest.bak`, a path at the drive's root. The safety check refused it, and nothing ran. | **Fixed**: the drill was rerun with backups only in the scratchpad and no removal. |
|
||||
|
||||
## What was not verified
|
||||
|
||||
- Upload, Accept and the cut lines on the **published** board, for the new cards. That needs Mark signed in.
|
||||
- The published board at phone width and in dark mode.
|
||||
- Whether a generator keeps a 2 × 2 or 2 × 1 grid as well as the 4 × 1 ones. Nothing has been generated yet.
|
||||
- Whether the fox reads as a fox and not a red panda. Only a real picture can show that, and `fox-sheet` is the test.
|
||||
@@ -0,0 +1,73 @@
|
||||
# Review — `feature/art-board`
|
||||
|
||||
Adversarial self-review (CLAUDE.md §5.3). Analysis:
|
||||
[`features/art-pipeline.md`](../features/art-pipeline.md). Reviewed 2026-11-01 on Node 22.11.0,
|
||||
Windows 10. There is no PR: the only remote is Gitea, and this session cannot open one there.
|
||||
|
||||
## Gates — counts, not exit codes
|
||||
|
||||
| Gate | Result |
|
||||
|:--|:--|
|
||||
| `pnpm lint` | exit 0 |
|
||||
| `pnpm typecheck` | exit 0, now including `@rosea/art-prep`; `svelte-check` 0 errors, 0 warnings |
|
||||
| `pnpm test` | **180 passed**: schema 15, content 47, **art-prep 50 (new)**, engine 52, ui 16 |
|
||||
| `pnpm lint:copy` | 12 files, 0 problems (the board and prompts are not player copy; A3 covers prompts) |
|
||||
| `pnpm validate:library` | 0 entries; 13 of 13 fixtures rejected |
|
||||
| `pnpm test:e2e` | 7 passed |
|
||||
| `pnpm test:offline` | 1 passed |
|
||||
| `pnpm art:board` | 11 cards, 25 pictures, 29 stand-ins |
|
||||
|
||||
**The app is unchanged** (§5.4). No app file changed, so the bundle is the same; e2e and offline
|
||||
ran to show that. **The board is published**, as a private claude.ai artifact (version 1).
|
||||
Its `art` collection was read back once and is empty, as it should be.
|
||||
|
||||
**The board, rendered once** from `tools/art-prep/dist/board/` on 127.0.0.1:
|
||||
*Rosea Domi Art Board*, 11 cards, 18 cell slots, groups *Character sheet · 1*,
|
||||
*Sprite sheets · 4*, *Garden layers · 4*, *Single pictures · 1*, *App icon · 1*. No stand-in
|
||||
failed to load and nothing overflowed sideways. Served locally, the page has no claude.ai
|
||||
runtime, so it showed its read-only state. Upload and Accept were **not** exercised (see
|
||||
*not verified*).
|
||||
|
||||
## Test honesty — bugs put back
|
||||
|
||||
| Bug put back | Result |
|
||||
|:--|:--|
|
||||
| The forbidden-word check skipped for asset texts | CAUGHT: 3 failed (book name, medical word, forbidden name never reaches the board) |
|
||||
| The shared avoid list dropped from single-picture prompts | CAUGHT: *every one carries the shared avoid list* |
|
||||
| `art:accept` stops refusing a sheet with an empty cell | CAUGHT: *refuses the whole sheet when a cell is empty* |
|
||||
| The board page loses its *Garden layers* group | CAUGHT: *every kind in the manifest has a group on the board page* |
|
||||
| A committed stand-in drifts from the generator | CAUGHT: *art/placeholders/ holds exactly what the generator makes* |
|
||||
| `fit: cover` with `withoutEnlargement` (the first draft) | CAUGHT, as the real finding 1 |
|
||||
|
||||
## Findings
|
||||
|
||||
| # | Area | Finding | Resolution |
|
||||
|:--|:--|:--|:--|
|
||||
| 1 | **Correctness** | `art:accept` resized full pictures with `cover` + `withoutEnlargement`. A small, wrongly shaped picture skipped the crop too: a 900 × 600 picture accepted as the square app icon stayed 900 × 600. | **Fixed**: crop to shape first (`middle()`), then only shrink. Test asserts 600 × 600. Lesson: `art.md`. |
|
||||
| 2 | **Copyright** | The manifest's own text said the waiting rose is *patient*, a forbidden word, and nothing would have caught a book name in a prompt either, because `lint:copy` does not read prompts. | **Fixed by design**: `checkManifest` runs `findForbidden` over every prompt word, and `art:board` refused its own first draft. Lesson: `art.md`. |
|
||||
| 3 | **Copyright** | No automatic likeness check: a generated picture that looks like the book's drawings is caught only by Claude's review and Mark's eye. | **Accepted for Phase 0**, written down in docs/ART.md §5. The prompts' shared avoid list (A4) lowers the odds, and review point 3 names it. |
|
||||
| 4 | **Soul** | The rose's moods are where guilt can enter art: a thirsty or waiting rose drawn as hurt blames the player (§8). | **Addressed in the prompts**: *tired, not hurt*, *gently comic, never ill*, *quiet, waiting with patience, never sad, hurt or blaming*. Review point 7. The real pictures still need looking at, which is Mark's and Claude's job on the board. |
|
||||
| 5 | **Privacy** | The board stores pictures on claude.ai. | **Accepted**: only generated art and Mark's notes. The app never contacts the board, and art reaches the app only through git. Nothing about a player exists there. |
|
||||
| 6 | Process | The roadmap and CLAUDE.md planned `tools/art-prep` as a 127.0.0.1 page. The board replaces it at Mark's request. | **Recorded**: ROADMAP Phase 0 *Decided 2026-11-01*, CLAUDE.md §2, §3 and §9, docs/ART.md §3. |
|
||||
| 7 | Correctness | STYLE.md is Claude's draft. The roadmap says *drafted with Mark*. Every prompt on the board inherits the draft. | **Closed 2026-11-01**: Mark kept the draft; S1–S5 are decided (`docs/style-approved`). Still true: the first card, `rose-sheet`, is the test. If it looks wrong, STYLE.md changes, `art:board` rebuilds and the board is republished. |
|
||||
| 8 | Correctness | The board's local preview first showed **Ludus**: ports 5180 and 5191 were taken on this machine. | **Fixed** for the preview (port 5237, checked free). It affected only this review's look at the page, not the board. Lesson: `technical.md`. |
|
||||
| 9 | Scope | The garden layers assume a horizon at 40 % and a bed at 72 %. Phase 1's screen design may want other numbers. | **Accepted**: the numbers are in the manifest, so changing them costs a rebuild and new pictures, which is the reason to decide before Mark makes the layers. Noted for the Phase 1 feature doc. |
|
||||
| 10 | Offline | The board needs the network; the game doesn't. | **Not applicable to the player**: the board is a tool. `art/final/` ships inside the precached bundle (Phase 1). |
|
||||
| 11 | Test honesty | `cli-board.ts` and `cli-accept.ts` (file writing, argument parsing) have no tests. `art:board` was run, and `art:accept` was not run on a real file. | **Accepted**: the logic under them is tested. `art:accept` runs for real with the first accepted picture, the Phase 0 gate. |
|
||||
|
||||
Looked for and found none:
|
||||
|
||||
- **Reachability.** No player is involved.
|
||||
- **Correctness cases from §5.3.** Clock, DST, two tabs and partial writes do not apply to the
|
||||
tool. On the board, a second tab is handled by the store's live snapshot, as in Panda Domi's.
|
||||
|
||||
## What was NOT verified
|
||||
|
||||
- **Uploading, pasting and accepting on the published board.** These need Mark signed in. The
|
||||
page code is Panda Domi's, which works there, adapted only in tokens, groups, wording and the
|
||||
review line.
|
||||
- **Any real generated picture.** Every `art:accept` test uses synthetic pictures made with sharp.
|
||||
- **The style itself.** Whether the gouache direction reads as Rosea and not as the book can only be
|
||||
judged on real pictures.
|
||||
- **Dark mode and phone width of the published board** were not looked at. The local check was one
|
||||
desktop render.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Review — `feature/sun`
|
||||
|
||||
Adversarial self-review (CLAUDE.md §5.3). Analysis: [`features/sun.md`](../features/sun.md).
|
||||
Reviewed 2026-11-01 on Node 22.11.0, Windows 10. There is no PR: the only remote is Gitea.
|
||||
|
||||
## Gates — counts, not exit codes
|
||||
|
||||
| Gate | Result |
|
||||
|:--|:--|
|
||||
| `pnpm lint` | exit 0, the engine purity rule included: `src/sun/` reads no clock, no network, no device |
|
||||
| `pnpm typecheck` | exit 0, `scripts/fetch-sun-golden.ts` included |
|
||||
| `pnpm test` | **236 passed**: schema 15, content 47, art-prep 56, **engine 102 (+50 sun)**, ui 16 |
|
||||
| `pnpm test:e2e` / `test:offline` | 7 passed / 1 passed. **The app is unchanged**: nothing imports the sun yet |
|
||||
|
||||
**Golden.** 26 published days in 6 cities match the U.S. Naval Observatory's tables within
|
||||
2 minutes on the city's own clock, for sunrise, solar noon and sunset. Two more days, Tromsø's polar
|
||||
day and night, match the table's *no event*. The table's clock offset agrees with the IANA zone
|
||||
database on all 28 days.
|
||||
|
||||
**Stable.** The property tests ran three times with fresh seeds, 50 of 50 each time.
|
||||
|
||||
## Bug drills — each put back once, in `src/sun/sun.ts`
|
||||
|
||||
| Put back | Result |
|
||||
|:--|:--|
|
||||
| No refraction: the horizon at 90° instead of 90.833° | CAUGHT: 27 failures, every golden day |
|
||||
| No equation of time | CAUGHT: 25 failures |
|
||||
| Polar day and polar night swapped | CAUGHT: 8 failures |
|
||||
| No local-day correction of solar noon | CAUGHT: 2 failures (Kiritimati, D8) |
|
||||
| The UTC date derived back from the noon instant (finding 2's bug) | CAUGHT: 3 failures (properties near 180°) |
|
||||
|
||||
## Findings
|
||||
|
||||
| # | Area | Finding | Resolution |
|
||||
|:--|:--|:--|:--|
|
||||
| 1 | Correctness | The published table for Reykjavík on 21 June lists a sunset at 00:04. That is the **previous evening's** sunset. A naive "events within the calendar day" design would tell a player in Reykjavík that tonight's sunset was 00:04 this morning. | **By design (D2)**: today's sunset is the one after today's solar noon. Tested: it falls on 22 June, local. |
|
||||
| 2 | Correctness | The first draft derived the UTC date back from the noon instant. Near 180° the noon falls on the next UTC date, which would move sunrise and sunset by a whole day. Spotted on re-reading, before any test ran. | **Fixed**: the date is passed in. Drill 5 shows the property tests now catch it. |
|
||||
| 3 | Correctness | fast-check found a day with no solar noon: at 179.9° W on UTC, noon crosses midnight in late December. | **Defined (D8)** and pinned by a unit test. No real zone is twelve hours off the sun, so the properties use zones that follow longitude. |
|
||||
| 4 | Correctness | Near the edge of polar day or night the hour angle can leave its range during refinement. | **Clamped (D5).** Accuracy on those few days is not measured: no golden day sits at the edge. Said here and in *not verified*. |
|
||||
| 5 | Soul | Where the sun never sets or never rises, "every day at sunset" would leave a person with no invitation for months. | **Fixed (D4)**: the lowest light in polar day, noon twilight in polar night. The second is an assumption put to the author (Q10). |
|
||||
| 6 | Soul | A DST change could make the game look as if the sunset "moved" because of the player, or move the rose's sentence to another day. | The engine works in instants (D3); the day comes only from `localDay`. Tested on all six DST days in the fixture. |
|
||||
| 7 | Privacy | The golden script calls a US government API with coordinates. | Only by hand, only for six public city centres, never in a test or the app. The tests read the recorded file. |
|
||||
| 8 | Privacy | A sunset time narrows down where someone is. | It never leaves the device: the module has no I/O and the purity rule forbids any. Phase 4 must never send it (CLAUDE.md §4). |
|
||||
| 9 | Test honesty | The DST tests read the clock with `Intl` in the test, which is also what `localDay` uses. A bug in the platform's zone data would hide in both. | Cross-checked: the USNO table states each day's offset independently, and a test asserts the zone database agrees on all 28 days. |
|
||||
|
||||
## What was not verified
|
||||
|
||||
- Accuracy on the days right at the edge of polar day or night (finding 4).
|
||||
- Latitudes above 72° on ordinary days, other than Tromsø's 69.6°.
|
||||
- Years far from 2026. The method holds for centuries, but only 2026 is tested.
|
||||
- The app: choosing a city, the time-zone guess, and showing the time are later in Phase 1 (G1.2).
|
||||
@@ -115,8 +115,8 @@ feed of anything.
|
||||
|
||||
## 2. Repository layout
|
||||
|
||||
Phase 0 scaffolded `schema`, `engine`, `content`, `ui` and `apps/rosea`. `storage`, `identity`,
|
||||
`sync`, `services/lucerna`, `tools/art-prep` and `art/` arrive with their first feature, because an
|
||||
Phase 0 scaffolded `schema`, `engine`, `content`, `ui`, `apps/rosea`, `tools/art-prep` and `art/`.
|
||||
`storage`, `identity`, `sync` and `services/lucerna` arrive with their first feature, because an
|
||||
empty package has a test suite that runs nothing ([`phase0-workspace.md`](.agents/features/phase0-workspace.md) D1).
|
||||
|
||||
```
|
||||
@@ -154,7 +154,9 @@ art/
|
||||
final/ # approved, optimised illustrations (WebP/AVIF)
|
||||
|
||||
tools/
|
||||
art-prep/ # the art preparation page (docs/ART.md §3). Local only, 127.0.0.1.
|
||||
art-prep/ # prompts, stand-ins and the art board's files from art/manifest.json;
|
||||
# the accept step into art/final/ (docs/ART.md). The board itself is a
|
||||
# private claude.ai page (decided 2026-11-01, docs/ART.md §3).
|
||||
|
||||
content/
|
||||
library/ # hope sentences, one file per source tradition
|
||||
@@ -176,7 +178,7 @@ apps/rosea ──► packages/ui ──► packages/engine ──► packages/sc
|
||||
├───────► packages/sync ──► packages/schema
|
||||
└───────► packages/identity ──► packages/schema
|
||||
services/lucerna ──► packages/schema (trace shape only, via generated JSON Schema)
|
||||
tools/art-prep ──► art/manifest.json (never imported by the app)
|
||||
tools/art-prep ──► art/manifest.json, packages/content, packages/schema (never imported by the app)
|
||||
```
|
||||
|
||||
- `packages/engine` is pure. Time and randomness are parameters. This is what makes growth, taming and
|
||||
@@ -212,14 +214,16 @@ pnpm build # turbo: schema -> engine/content/ui ->
|
||||
pnpm lint # ESLint, incl. the engine-purity rule (§7)
|
||||
pnpm typecheck # tsc + svelte-check, every package plus e2e/ and scripts/
|
||||
pnpm test # vitest, all packages — quote counts per package
|
||||
pnpm --filter @rosea/engine test # incl. fast-check property tests (sun golden tests: later)
|
||||
pnpm --filter @rosea/engine test # incl. fast-check property tests and the sun golden tests
|
||||
tsx scripts/fetch-sun-golden.ts # re-records the sun's published tables (network; by hand, never in a test)
|
||||
pnpm test:e2e # builds, then Playwright against the BUILT app under /Rosea/
|
||||
pnpm test:offline # builds, loads once, CLOSES the server, reloads
|
||||
pnpm validate:library # every hope sentence; fixtures must FAIL
|
||||
pnpm lint:copy # forbidden words and names (§5.6)
|
||||
pnpm art:board # prompts + stand-ins -> tools/art-prep/dist/board/ (docs/ART.md)
|
||||
pnpm art:accept <id> <file> # an accepted picture -> art/final/*.webp, sheets cut
|
||||
|
||||
# Not yet — they arrive with their first feature:
|
||||
pnpm art:prep # opens tools/art-prep on 127.0.0.1
|
||||
cargo test --manifest-path services/lucerna/Cargo.toml # Phase 4 onward
|
||||
```
|
||||
|
||||
@@ -485,8 +489,8 @@ No timestamp finer than a day, no precise location, no free text, no link to the
|
||||
| Trap | Why it bites |
|
||||
|:--|:--|
|
||||
| **A PWA cannot schedule a local notification** *(predicted — verify first)* | The sunset invitation is time-based. A web app generally cannot fire a notification at a set time while closed without a **push server** sending it, and a push server that knows when someone's sunset is knows roughly where they are. On iOS, web push works only for a site added to the home screen. **Decided in Phase 0 (2026-11-01):** in-app sunset only for the web build — no push server — and local notifications through the Tauri shell later (Phase 6). |
|
||||
| **Polar day and polar night** *(predicted)* | Above the Arctic Circle the sun does not set in summer or rise in winter. "Every day at sunset" has no answer there. The engine must return a defined state and the game must have a gentle alternative (e.g. the hour the light is lowest). |
|
||||
| **DST and the local day** *(predicted)* | Sunset jumps an hour twice a year under a player who did nothing; a day boundary computed in UTC records Monday-evening care as Tuesday's. One module computes the day. |
|
||||
| **Polar day and polar night** *(measured 2026-11-01)* | Above the Arctic Circle the sun does not set in summer or rise in winter. "Every day at sunset" has no answer there. Measured: the almanac has no rise or set in Tromsø on 21 June and no events at all on 21 December. `engine/sun` returns `polar-day` or `polar-night` and a gentle moment for each (the lowest light; noon twilight) — `.agents/features/sun.md` D4. |
|
||||
| **DST and the local day** *(measured 2026-11-01)* | Sunset jumps an hour twice a year under a player who did nothing: Prague's is 18:28 on 28 March and 19:29 on the 29th, while the sun moved one minute. A day boundary computed in UTC records Monday-evening care as Tuesday's. One module computes the day; the sun works in instants. |
|
||||
| **Comfort becomes wallpaper** | The same words every day stop meaning anything. Comfort words are occasional; the real trace of a real person is constant. Track repetition in tests. |
|
||||
| **Guilt sneaks in through "gentle" reminders** | "Your rose misses you" is guilt wearing a ribbon. No notification ever refers to neglect — the player's or anyone else's. |
|
||||
| **Streak creep** | Someone will propose "just a small streak". Growth is from total care; a missed day never resets anything. |
|
||||
@@ -514,7 +518,7 @@ No timestamp finer than a day, no precise location, no free text, no link to the
|
||||
|:--|:--|
|
||||
| Understand why something behaves strangely | `.agents/lessons/` — `soul.md` first |
|
||||
| Know what is planned and which gate we are at | `docs/ROADMAP.md` |
|
||||
| Make or replace an illustration | `docs/ART.md`, then `pnpm art:prep` |
|
||||
| Make or replace an illustration | `docs/ART.md`, then `art/manifest.json` and `pnpm art:board` |
|
||||
| Change how the rose grows | `packages/engine/src/growth/` |
|
||||
| Change how the fox comes closer | `packages/engine/src/taming/` |
|
||||
| Change the sunset or sunrise | `packages/engine/src/sun/` — read the polar and DST traps first |
|
||||
|
||||
@@ -12,8 +12,8 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
|
||||
Gitea hashes match. Analysis: [`.agents/features/phase0-workspace.md`](.agents/features/phase0-workspace.md).
|
||||
Review, with counts and the mutation results:
|
||||
[`.agents/reviews/feature-phase0-workspace.md`](.agents/reviews/feature-phase0-workspace.md).
|
||||
- **Gates:** all pass on this machine. Unit tests: 117 (schema 15, content 47,
|
||||
engine 52, ui 3). E2E: 6. Offline: 1. `lint:copy`: 9 files, 0 problems.
|
||||
- **Gates:** all pass on this machine. Unit tests: 236 (schema 15, content 47,
|
||||
art-prep 56, engine 102, ui 16). E2E: 7. Offline: 1. `lint:copy`: 12 files, 0 problems.
|
||||
`validate:library`: 13 of 13 fixtures rejected.
|
||||
- **Built, not deployed:** there is no host yet.
|
||||
- **Roadmap and gameplay docs:** `docs/ROADMAP.md` and `docs/GAMEPLAY.md` are on
|
||||
@@ -25,10 +25,26 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
|
||||
holds slots as comments only. Once the author writes in it, a link to the letter
|
||||
appears in the garden, and the page opens at `#letter`, offline too. Review:
|
||||
[`.agents/reviews/feature-letter-slot.md`](.agents/reviews/feature-letter-slot.md).
|
||||
- **The art pipeline and the art board:** merged to `main`. [`docs/ART.md`](docs/ART.md) is the
|
||||
pipeline. [`art/STYLE.md`](art/STYLE.md) is approved by the author (2026-11-01, S1–S5 kept as drafted). [`art/manifest.json`](art/manifest.json)
|
||||
lists 53 pictures in phase order: 25 for Phase 1, then the fox, berries and bush (Phase 2), then paths and
|
||||
lanterns (Phase 3). 63 stand-ins are in `art/placeholders/`. The planets wait for their own feature docs. `tools/art-prep` builds
|
||||
prompts and the board (`pnpm art:board`) and moves accepted pictures into `art/final/`
|
||||
(`pnpm art:accept`). The board is published, private:
|
||||
https://claude.ai/artifact/Y3xM4F5WGv77Qp2UdMXWix. To update it, run `pnpm art:board`, then
|
||||
republish `tools/art-prep/dist/board/` to that URL. Review:
|
||||
[`.agents/reviews/feature-art-board.md`](.agents/reviews/feature-art-board.md).
|
||||
|
||||
- **The sun (Phase 1 begins):** merged to `main`. `packages/engine/src/sun/sun.ts` gives
|
||||
sunrise, solar noon and sunset for a local day and a place, or polar day or night, and the
|
||||
moment the game invites the player out. It matches the U.S. Naval Observatory's tables within
|
||||
2 minutes in Prague, Reykjavík, Tromsø, Quito, Sydney and Anchorage, DST days included.
|
||||
The app does not use it yet. Analysis: [`.agents/features/sun.md`](.agents/features/sun.md).
|
||||
Review: [`.agents/reviews/feature-sun.md`](.agents/reviews/feature-sun.md).
|
||||
|
||||
**Phase 0 is not finished.** The roadmap's Phase 0 is more than the workspace. Its
|
||||
gate needs 60 verified sentences (G0.18) and one illustration through the art
|
||||
pipeline (G0.24). Also open: a GitHub remote (G0.13). The Letter slot is built (G0.25).
|
||||
pipeline (G0.24). The pipeline and the board are built; the first real picture is not made yet. Also open: a GitHub remote (G0.13). The Letter slot is built (G0.25).
|
||||
The notification decision is made: in-app only on the web (G0.26).
|
||||
|
||||
**Waiting on the author.**
|
||||
@@ -37,9 +53,15 @@ The notification decision is made: in-app only on the web (G0.26).
|
||||
door to real help (G0.27), and Q9 (may the letter name the book).
|
||||
2. **Sentences:** an agent may propose public-domain candidates with their sources.
|
||||
Only the author can mark one verified.
|
||||
3. **`docs/ART.md` and `art/STYLE.md`**, which are needed before the art pipeline.
|
||||
3. **Art:** the style is approved (S1–S5), and so is the fox (F1–F4, with a deep red-orange coat).
|
||||
Make `rose-sheet` on the board and accept it; `fox-sheet` comes first for Phase 2. That is the first step of the Phase 0 art gate.
|
||||
After an accept, Claude reads the row (`ArtifactData get art/<id>`), downloads the picture
|
||||
(`Artifact read` with the asset id as `path`), runs `pnpm art:accept`, commits on `art/<set>`,
|
||||
and writes `final` back into the row.
|
||||
4. **A GitHub repository** for Pages, and whether it is public (G0.13, G0.23).
|
||||
5. **Upgrading Node** to ≥ 22.13 on this machine (G0.20).
|
||||
6. **Q10:** in polar night, should the sunset invitation come at noon, when the twilight is
|
||||
brightest? The engine assumes yes.
|
||||
|
||||
**How this machine works** (not in the code):
|
||||
|
||||
|
||||
@@ -0,0 +1,244 @@
|
||||
# STYLE.md — Rosea Domi art style
|
||||
|
||||
The style system prompt for every picture in Rosea Domi. The pipeline that uses it is
|
||||
[`docs/ART.md`](../docs/ART.md). Every prompt on the art board starts with **§1** word for
|
||||
word, then adds the picture's own part, generated from [`manifest.json`](manifest.json).
|
||||
A picture that is off-style goes back for another try. It is never shipped.
|
||||
|
||||
> **Approved by Mark, 2026-11-01.** Claude drafted this file from CLAUDE.md §1 and GAMEPLAY.md,
|
||||
> and Mark kept the draft as it was: S1–S5 in §0 are decided. The first picture on the board,
|
||||
> the rose's character sheet, is still the test. If it looks wrong, this file changes before
|
||||
> anything else is made, and `pnpm art:board` rebuilds every prompt.
|
||||
>
|
||||
> **The fox and the Phase 2–3 pictures** (F1–F4 in §0, §3a, the new rows in §2 and §4, review
|
||||
> points 8–9) were added later the same day and **approved by Mark** with one change: the fox's
|
||||
> coat is a deep red-orange, not the drafted muted russet.
|
||||
|
||||
---
|
||||
|
||||
## 0. The choices, decided 2026-11-01
|
||||
|
||||
| # | 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. |
|
||||
| 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. |
|
||||
|
||||
**The fox and the Phase 2–3 pictures, decided 2026-11-01.**
|
||||
|
||||
| # | Choice | Decided | Why |
|
||||
|:--|:--|:--|:--|
|
||||
| F1 | The fox's look | A small, young, shy fox with a **deep red-orange** coat, a cream mask round his eyes and muzzle, dark legs, and a bushy tail with faint darker rings. *Mark changed the coat from the drafted muted russet; the rest is as drafted.* | The mask and the rings are the quiet nod to Ulfík the red panda (CLAUDE.md §1), and the deeper coat is closer to his. All of it keeps him far from the book's fox, which is pale and sandy with very long ears. |
|
||||
| F2 | His size | Sitting, he is about as tall as the rose | They share the garden bed and must read together on a phone. |
|
||||
| F3 | Bush and berries | One wild bush in three states. The berries are their own small pictures, placed on the bush in code | Five berry kinds (GAMEPLAY.md §3) then need one bush, not five. |
|
||||
| F4 | Paths and lanterns (Phase 3) | Small vignettes for now | The screen that shows two roses and the path between them is not designed yet. Its feature doc may ask for them again. |
|
||||
|
||||
---
|
||||
|
||||
## 1. The system prompt (paste word for word)
|
||||
|
||||
> Soft, hand-made 2D storybook illustration painted in matte gouache with a gentle dry-brush
|
||||
> texture on warm off-white paper. Simple rounded shapes built from flat, soft colour areas with
|
||||
> two or three gentle tonal steps; no wet watercolour blooms, no thin scratchy pen line. Outlines
|
||||
> are soft, slightly irregular brush lines in deep plum-brown, never pure black, never a hard
|
||||
> vector line. Light is low and warm, as late in the day, coming from the left. The mood is
|
||||
> quiet, tender and hopeful, with generous calm space that never feels empty or bleak.
|
||||
> Characters are cute but alive, with small gentle eyes, often half-closed, and tiny mouths. No
|
||||
> text, letters or numbers anywhere in the image. No humans, no human figures, hands or faces,
|
||||
> no photographs, no logos, no brand characters. No 3D render look, no glossy highlights, no lens
|
||||
> effects, no gradients that look digital. Original artwork, not in the style of any existing
|
||||
> book, illustrator or film.
|
||||
|
||||
---
|
||||
|
||||
## 2. Palette
|
||||
|
||||
The main tones. Small shades in between are fine.
|
||||
|
||||
| Role | Colour | Hex |
|
||||
|:--|:--|:--|
|
||||
| Petals (main) | rose | `#C85A6E` |
|
||||
| Petal edges and light | pale petal | `#F2B5BE` |
|
||||
| Blush | warm pink | `#E8899B` |
|
||||
| Leaves | sage | `#7FA07A` |
|
||||
| Deep leaves and stem | moss | `#4F6E52` |
|
||||
| Outlines | deep plum-brown | `#3A2730` |
|
||||
| Paper | warm off-white | `#FBF6F1` |
|
||||
| Soil and wall stones | warm umber | `#8A6248` |
|
||||
| Wood | honey | `#B98A5A` |
|
||||
| Meadow by day | soft green | `#A9C48E` |
|
||||
| Sunset light | amber gold | `#F2B860` |
|
||||
| Sunset glow | coral | `#E9846A` |
|
||||
| Night | dusk indigo | `#2E3561` |
|
||||
| Lamps and stars | lamp gold | `#F4D58D` |
|
||||
| Fox coat | deep red-orange | `#BC4A22` |
|
||||
| Fox mask, chest, tail tip | cream | `#F3E3C8` |
|
||||
| Fox legs, ear tips | deep brown | `#5A3A33` |
|
||||
| Wild strawberries | strawberry | `#D2554E` |
|
||||
| Blueberries | dusk blue | `#5B6FA6` |
|
||||
| Raspberries | raspberry | `#C2456A` |
|
||||
| Blackberries | bramble | `#3F2E4A` |
|
||||
| Rose hips | hip orange | `#D0632E` |
|
||||
|
||||
Never use neon, saturated primaries, pure black, pure white or cold greys.
|
||||
|
||||
---
|
||||
|
||||
## 3. The rose
|
||||
|
||||
The rose is the only character in Phase 1. Every rose picture follows the character sheet
|
||||
`rose-sheet`, so she looks the same in every one.
|
||||
|
||||
- **One garden rose** on a single slender stem. She is about three blooms tall, from the bloom
|
||||
down to where the stem meets the soil. She has three leaves, two low and one high, and a few
|
||||
small thorns with rounded tips. The thorns are part of her and never look threatening.
|
||||
- **The bloom is her head.** It is made of soft, layered petals in rose (`#C85A6E`) that turn
|
||||
pale petal (`#F2B5BE`) at the edges. Her face sits in the middle of the bloom: two small dark
|
||||
eyes, often half-closed, and a tiny mouth. When she is tended, a faint blush (`#E8899B`) shows
|
||||
on the petals by her cheeks.
|
||||
- **A little vain.** She holds her head high and keeps her petals neat. Her leaves move like
|
||||
small arms: one raised when she speaks, both lowered when she is thirsty.
|
||||
- **Stages:** a tight bud, an opening bud, a half bloom and a full bloom. Each stage has the same
|
||||
face and the same stem, and only the bloom changes.
|
||||
- **Drift looks like waiting, never like hurt** (CLAUDE.md §8). Turned a little away, petals
|
||||
closed a little, eyes looking down. She is never wilted, broken, crying, dead or losing
|
||||
petals in pain. Fallen petals are a care task, not damage.
|
||||
- **Expressions:** content, sleepy, blushing, speaking, thirsty, too much water, windblown,
|
||||
waiting. Never angry, crying hard, frightened or hurt.
|
||||
|
||||
---
|
||||
|
||||
## 3a. The fox (Phase 2: F1–F2)
|
||||
|
||||
The fox is the second character. Every fox picture follows the character sheet `fox-sheet`.
|
||||
|
||||
- **A small, young fox** with a deep red-orange coat (`#BC4A22`), warm and glowing, never neon. His face has a cream mask
|
||||
(`#F3E3C8`): cream cheeks and muzzle, and a small cream spot above each eye. His legs and
|
||||
paws are deep brown (`#5A3A33`). His ears are rounded and of middle size, cream inside with
|
||||
dark tips. His tail is big and bushy, with three faint darker rings and a cream tip.
|
||||
- **His face** is like the rose's: small dark eyes, often half-closed, and a tiny dark nose
|
||||
and mouth. He is shy and curious, never sly.
|
||||
- **He is a fox, not a red panda.** He has a fox's pointed muzzle and a fox's body. The mask
|
||||
and the tail rings are only a nod.
|
||||
- **Sitting, he is about as tall as the rose.**
|
||||
- **How he comes closer:** watching from a distance, curious, sitting, resting near. Then the
|
||||
ways he is tamed: petted, brushed, eating berries. The player's hand is never drawn. A
|
||||
petted fox simply leans into a touch we do not see.
|
||||
- **Never:** pale sandy fur, very large ears, a wheat field, a collar, lead or clothes, or a
|
||||
fox who looks sly, hungry, frightened or hurt.
|
||||
|
||||
---
|
||||
|
||||
## 4. The world
|
||||
|
||||
- **The garden:** a small round garden bed on a hillside meadow. A low dry-stone wall sits
|
||||
behind it, with wild grasses and a few small meadow flowers. The horizon is wide and low in
|
||||
the west, on the left, where the sun sets.
|
||||
- **The sky is drawn in code (S5).** Garden pictures are layers: everything above the horizon
|
||||
is transparent. The sky, the sun, the moon and the real stars are drawn behind them.
|
||||
- **Times of day:** morning, day, sunset and night. Each is its own layer, with its own light
|
||||
on the same garden.
|
||||
- **Care things:** a small watering can, a woven willow windbreak, weeds, fallen petals, and
|
||||
the folded petal that holds the day's sentence. The words on a petal are added in code and
|
||||
never painted.
|
||||
- **The chair:** a small, weathered wooden garden chair. It is the one in the in-game sunset
|
||||
("move the chair, watch it again").
|
||||
- **Never in any picture:** a glass dome or bell jar over the rose, a folding screen, a tiny
|
||||
round planet with someone standing on it, a desert, a child, a scarf, a boy with golden hair,
|
||||
or anything that looks like a drawing from the book (GAMEPLAY.md §8: *a direction only —
|
||||
never, ever copying the illustrations*). The willow windbreak is the shelter from the wind,
|
||||
and it must look nothing like a screen.
|
||||
- **The wild berry bush (Phase 2, F3):** a small round bush beside the rose's bed, with soft
|
||||
oval leaves. It rests, flowers, then ripens. The berries are their own pictures: wild
|
||||
strawberries, blueberries, raspberries, blackberries and rose hips. Code places them on the
|
||||
bush and on the large leaf the fox eats from. A soft wooden brush is used to groom him.
|
||||
- **Paths and lanterns (Phase 3, F4):** a path through the meadow grows from paw prints, to a
|
||||
trodden trail, to a soft earth road edged with stones. A lantern is a small iron-and-glass
|
||||
hand lantern hanging from a shepherd's-crook post, never a street lamp.
|
||||
- No flags, religious symbols, buildings, vehicles or people.
|
||||
|
||||
---
|
||||
|
||||
## 5. Sizes and backgrounds
|
||||
|
||||
Image generators offer 1024 × 1024, 1536 × 1024 and 1024 × 1536. Every picture is made at one
|
||||
of those sizes.
|
||||
|
||||
| Kind | Made at (px) | Background | Notes |
|
||||
|:--|:--|:--|:--|
|
||||
| Character sheet | 1536 × 1024 | full, plain paper | A reference only, never shown in the app |
|
||||
| Sprite sheet | 1536 × 1024 | transparent | Cut into cells along its grid (§9) |
|
||||
| Single picture | 1024 × 1024 | transparent | Centred, whole, about 10 % clear on every side, no ground shadow |
|
||||
| Garden layer | 1024 × 1536 | transparent above the horizon | Horizon at 40 % from the top; keep the lower middle calm for the rose and the controls |
|
||||
| App icon | 1024 × 1024 | full | Keep the bloom inside the middle 70 %; phones cut the corners |
|
||||
|
||||
- Accepted pictures go into `art/final/` as WebP, within the size budget in `docs/ART.md` §4.
|
||||
- One subject per picture. Never crop a petal, leaf or stem.
|
||||
- Keep the same outline weight and paper texture in every picture.
|
||||
|
||||
---
|
||||
|
||||
## 6. How a prompt is built
|
||||
|
||||
The art board writes every prompt. Nobody types them by hand. Each prompt is §1, then:
|
||||
|
||||
```
|
||||
Asset: <id>
|
||||
Purpose: <where it appears and what it must say, in one sentence>
|
||||
Subject: <who or what, with the character sheet to attach>
|
||||
Setting / Canvas / Layout: <by kind: see §5 and §9>
|
||||
Size: <made at W × H px, background>
|
||||
Must include: <…>
|
||||
Must avoid: <the picture's own list, then the list every picture shares (§4)>
|
||||
```
|
||||
|
||||
`tools/art-prep` builds the prompts from `art/manifest.json` (`pnpm art:board`), and a test
|
||||
checks that each one starts with §1 word for word.
|
||||
|
||||
---
|
||||
|
||||
## 7. Review points
|
||||
|
||||
The board shows these under each card, and Claude's review checks them. Mark doesn't have to
|
||||
tick them: *Accept* is one tap.
|
||||
|
||||
0. It reads as one living garden rose with a soft face in her bloom: small eyes, a tiny mouth.
|
||||
1. She matches `rose-sheet`: the same bloom, petal colours, three leaves and rounded thorns.
|
||||
2. The colours stay within §2, with soft plum-brown outlines, in matte gouache, not wet watercolour.
|
||||
3. Nothing from the book: no glass dome, screen, tiny planet, desert, child or scarf, and no
|
||||
look of its drawings.
|
||||
4. No text, numbers, logos, people or stray symbols.
|
||||
5. The size and background are right for its kind in §5.
|
||||
6. It reads clearly at the smallest size it is shown.
|
||||
7. It is gentle: nothing blames, frightens or looks hurt, and drift looks like waiting.
|
||||
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.
|
||||
|
||||
---
|
||||
|
||||
## 8. What Claude checks before Mark sees a picture
|
||||
|
||||
- **Likeness:** the picture is compared with §4's *never* list. A rose under glass, a screen,
|
||||
a planet the size of a house, or a pen-and-wash look means another try, however pretty it is.
|
||||
- **Soul:** CLAUDE.md §8, *drift that reads as blame*. A rose who looks hurt or sad because of
|
||||
the player is refused.
|
||||
- **Words:** a picture with painted letters is refused, because words come from the copy library.
|
||||
|
||||
---
|
||||
|
||||
## 9. Sprite sheets
|
||||
|
||||
A sprite sheet is one prompt that makes several pictures at once on a grid. The board shows the
|
||||
cut lines over the upload. `pnpm art:accept` cuts the sheet apart, and each cell becomes its own
|
||||
picture in `art/final/`.
|
||||
|
||||
- The cells are equal and invisible. They are read like a book: left to right, top row first.
|
||||
- Each drawing stays inside its cell's safe box, which keeps 12 % of the cell's shorter side
|
||||
clear on every side. Nothing crosses a cut line.
|
||||
- The whole sheet uses one scale. The largest drawing fills its safe box, and every other
|
||||
drawing is drawn at that same scale.
|
||||
- When a sheet won't keep to its grid, each cell can be made on its own with its own prompt
|
||||
(*One at a time* on the board). Each one is then accepted separately.
|
||||
@@ -0,0 +1,413 @@
|
||||
{
|
||||
"//": "Every picture Rosea Domi needs, in the order of the phases that use them (docs/ROADMAP.md). tools/art-prep builds the art board's prompts and stand-ins from this file (docs/ART.md). Status lives on the board, not here: this file says what is wanted, never whether it is done.",
|
||||
"characters": {
|
||||
"rose": {
|
||||
"sheet": "rose-sheet",
|
||||
"description": "The rose: one garden rose on a single slender stem, about three blooms tall from the bloom down to where the stem would meet the soil, with three leaves (two low, one high) and a few small thorns with rounded tips that never look threatening. Her bloom is her head: soft layered petals in rose (#C85A6E) turning pale petal (#F2B5BE) at the edges, and in the middle of the bloom a soft face with two small dark eyes, often half-closed, and a tiny mouth; a faint blush (#E8899B) on the petals by her cheeks when she is tended. A little vain: head held high, petals neat. Her leaves move like small arms."
|
||||
},
|
||||
"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."
|
||||
}
|
||||
},
|
||||
"avoid": [
|
||||
"text, letters, numbers or labels",
|
||||
"humans, human hands or faces, children",
|
||||
"logos",
|
||||
"pure black outlines or a thin scratchy pen line",
|
||||
"a glass dome or bell jar",
|
||||
"a folding screen",
|
||||
"a tiny round planet",
|
||||
"a desert",
|
||||
"a scarf",
|
||||
"a wheat field or golden wheat",
|
||||
"the look of any existing book's drawings"
|
||||
],
|
||||
"assets": [
|
||||
{
|
||||
"id": "rose-sheet",
|
||||
"type": "sheet",
|
||||
"phase": 1,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "full",
|
||||
"shipped": false,
|
||||
"smallest": null,
|
||||
"character": "rose",
|
||||
"usedBy": ["The reference for every rose picture. Make this first: every rose prompt asks for it as the reference picture."],
|
||||
"purpose": "Reference sheet that fixes the rose's look; every later rose prompt points to it. Never shown in the app.",
|
||||
"subject": "The rose at full bloom, as described below. Four full figures: front view, three-quarter view facing left, side view facing left, back view; then three close-ups of the bloom only: content (eyes half-closed, a small smile), sleepy (eyes closed, petals a little folded), blushing (eyes closed happily, blush on the cheek petals).",
|
||||
"setting": "Isolated on plain warm off-white paper (#FBF6F1), no scenery, no soil, no pot.",
|
||||
"composition": "Seven figures on one sheet with even spacing: the four full figures in a row across the top two thirds, the three close-ups in a row below, all full figures at the same scale, nothing overlapping.",
|
||||
"include": ["identical proportions, leaf count and thorns in every view", "the face in the middle of the bloom in every view that shows it"],
|
||||
"avoid": ["a pot, vase or soil", "wilted, drooping or fallen petals", "sharp, menacing thorns"],
|
||||
"checks": [0, 2, 3, 4, 5, 7]
|
||||
},
|
||||
{
|
||||
"id": "rose-stages-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 1,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 160,
|
||||
"character": "rose",
|
||||
"usedBy": ["The rose in the garden as she grows: from total days of care, never from a streak (GAMEPLAY.md §1).", "Not in the app yet: Phase 1 builds her screen"],
|
||||
"purpose": "The rose's four stages of growth, from a tight bud to full bloom, for the garden screen.",
|
||||
"angle": "Every stage seen from the front, standing upright, the whole plant visible, at the same scale: the stem the same length and the face the same size in every cell; only the bloom changes.",
|
||||
"grid": { "cols": 4, "rows": 1 },
|
||||
"cells": [
|
||||
{ "id": "rose-bud", "does": "a tight bud: the bloom closed into a small pointed bud with green sepals around it, the face just visible on its front, eyes closed, calm." },
|
||||
{ "id": "rose-opening", "does": "an opening bud: the outer petals just loosening, the face peeking out, eyes half open, curious." },
|
||||
{ "id": "rose-half-bloom", "does": "a half bloom: petals open halfway in a soft cup, the face clear, a small proud smile." },
|
||||
{ "id": "rose-full-bloom", "does": "a full bloom: petals wide open and layered, head held high, eyes half-closed, content and a little vain." }
|
||||
],
|
||||
"include": ["the same stem, leaves and thorns in all four cells", "the face in every cell"],
|
||||
"avoid": ["soil, a pot or ground", "fallen or drooping petals"],
|
||||
"checks": [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
{
|
||||
"id": "rose-care-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 1,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 160,
|
||||
"character": "rose",
|
||||
"usedBy": ["How the rose shows what she needs, and how she answers care (GAMEPLAY.md §1–2: her face and posture are the surface)."],
|
||||
"purpose": "The rose at full bloom in four moods that care answers: thirsty, too much water, windblown, and blushing after being tended.",
|
||||
"angle": "Every mood at full bloom, seen from the front, the whole plant visible, at the same scale as the stages sheet; only the face, leaves and posture change.",
|
||||
"grid": { "cols": 4, "rows": 1 },
|
||||
"cells": [
|
||||
{ "id": "rose-thirsty", "does": "thirsty: both leaves lowered, the bloom tipped slightly forward, petals a touch dull at the edges, eyes heavy and half-closed, mouth small. Tired, not hurt." },
|
||||
{ "id": "rose-overwatered", "does": "too much water: leaves heavy and drooping outwards, a few water drops on the petals, cheeks a little puffed, eyes squeezed shut as if she had a big gulp. Gently comic, never ill." },
|
||||
{ "id": "rose-windblown", "does": "windblown: the stem bending to the right in a breeze, petals fluttering, eyes squeezed shut, both leaves held up as if holding on. Startled, not frightened." },
|
||||
{ "id": "rose-blushing", "does": "blushing after being tended: head high, eyes closed happily, a clear blush on the cheek petals, one leaf raised to her cheek." }
|
||||
],
|
||||
"include": ["the same plant as rose-full-bloom in every cell"],
|
||||
"avoid": ["soil, a pot or ground", "wilted, broken or crying", "tears"],
|
||||
"checks": [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
{
|
||||
"id": "rose-moments-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 1,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 160,
|
||||
"character": "rose",
|
||||
"usedBy": ["Night, teaching in speech bubbles (GAMEPLAY.md §4), drift as waiting (CLAUDE.md §8), and watching the sunset with the player."],
|
||||
"purpose": "The rose at full bloom in four moments: asleep, speaking, waiting while the player is away, and watching the sunset.",
|
||||
"angle": "Every moment at full bloom, the whole plant visible, at the same scale as the stages sheet. Front view unless the cell says otherwise.",
|
||||
"grid": { "cols": 4, "rows": 1 },
|
||||
"cells": [
|
||||
{ "id": "rose-sleepy", "does": "asleep at night: eyes closed, petals folded in a little, the bloom resting slightly forward, a peaceful small smile." },
|
||||
{ "id": "rose-speaking", "does": "speaking: mouth open as if saying something kind, eyes open and bright, one leaf raised like a small hand explaining." },
|
||||
{ "id": "rose-waiting", "does": "waiting while the player is away: the bloom turned a little to the side, petals closed a little, eyes looking down and half-closed. Quiet, waiting with patience, never sad, hurt or blaming." },
|
||||
{ "id": "rose-watching-sunset", "does": "watching the sunset: seen from behind at a slight three-quarter angle, the bloom turned to the left towards a horizon outside the picture, warm light on her left side." }
|
||||
],
|
||||
"include": ["the same plant as rose-full-bloom in every cell"],
|
||||
"avoid": ["soil, a pot or ground", "wilted, crying or hurt", "a speech bubble or any words"],
|
||||
"checks": [0, 1, 2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
{
|
||||
"id": "care-props-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 1,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 64,
|
||||
"usedBy": ["The care things: water by feel, shade from the wind, pull weeds, gather fallen petals, and the folded petal that holds the day's sentence (GAMEPLAY.md §1)."],
|
||||
"purpose": "Six small things the player uses to care for the rose, each one easy to recognise at 64 px.",
|
||||
"angle": "Each thing in a gentle three-quarter view, the same light from the left, at the scale that makes it fill its safe box.",
|
||||
"grid": { "cols": 3, "rows": 2 },
|
||||
"cells": [
|
||||
{ "id": "watering-can", "does": "a small, round, old tin watering can in soft sage green, its spout pointing left, slightly dented, friendly." },
|
||||
{ "id": "windbreak", "does": "a small curved windbreak of woven willow twigs on two short stakes, honey and brown, like a tiny garden hurdle. It must look nothing like a folding screen." },
|
||||
{ "id": "weed-clump", "does": "a small clump of three weeds with soft jagged leaves and roots showing, as if just pulled, harmless and a little cheeky." },
|
||||
{ "id": "fallen-petals", "does": "three fallen rose petals lying together, rose and pale pink, gently curled, lit softly. Fresh and pretty, not withered." },
|
||||
{ "id": "petal-folded", "does": "one large rose petal folded over itself like a little letter, rose on the outside, pale pink on the inside edge, with a soft glow round it." },
|
||||
{ "id": "petal-open", "does": "the same large rose petal opened flat and seen from above, pale pink, smooth and empty in the middle where words are added in code." }
|
||||
],
|
||||
"include": ["each thing whole and clear at 64 px"],
|
||||
"avoid": ["any writing on the petal", "a folding screen", "sharp tools, scissors or knives"],
|
||||
"checks": [2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
{
|
||||
"id": "garden-chair",
|
||||
"type": "sprite",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 96,
|
||||
"usedBy": ["The in-game sunset: the player moves the chair and watches the sunset again (CLAUDE.md §1, the sunset)."],
|
||||
"purpose": "A small, weathered wooden garden chair that the player moves to watch the in-game sunset.",
|
||||
"subject": "A small, weathered wooden garden chair in honey wood (#B98A5A), seen from behind at a three-quarter angle, facing left towards the sunset, with a soft cushion in pale petal pink. Empty and inviting.",
|
||||
"include": ["the whole chair, legs included"],
|
||||
"avoid": ["a person or animal on the chair", "a ground shadow"],
|
||||
"checks": [2, 3, 4, 5, 6]
|
||||
},
|
||||
{
|
||||
"id": "garden-morning",
|
||||
"type": "layer",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1536,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": null,
|
||||
"usedBy": ["The garden from sunrise until mid-morning. The real sunrise sets when it shows (Phase 1, the sun)."],
|
||||
"purpose": "The rose's garden in soft morning light, with the sky left transparent for the sky drawn in code.",
|
||||
"subject": "No characters. The empty garden bed where the rose grows, so the rose picture can stand in it.",
|
||||
"setting": "A small round garden bed of warm umber soil in the lower middle, a low dry-stone wall curving behind it, wild grasses and a few small meadow flowers, the hillside meadow falling away to a wide low horizon. Cool, fresh morning light from the right (east), dew on the grass.",
|
||||
"composition": "Portrait. The horizon line runs straight across at 40 % from the top; above it everything is fully transparent. The garden bed sits in the lower middle with its centre about 72 % down, open and calm, for the rose and the controls.",
|
||||
"include": ["a fully transparent sky above the horizon", "an empty garden bed with nothing growing in it"],
|
||||
"avoid": ["a painted sky, sun, moon, clouds or stars", "buildings, fences with gates, paths with signs", "a rose or any large flower in the bed"],
|
||||
"checks": [2, 3, 4, 5, 7]
|
||||
},
|
||||
{
|
||||
"id": "garden-day",
|
||||
"type": "layer",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1536,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": null,
|
||||
"usedBy": ["The garden through the day."],
|
||||
"purpose": "The same garden in bright, soft daylight, with the sky left transparent.",
|
||||
"subject": "No characters. The same empty garden bed as garden-morning.",
|
||||
"setting": "The same garden as garden-morning, in soft bright daylight from high on the left, warm and green.",
|
||||
"composition": "Portrait. Exactly the same layout as garden-morning: horizon straight across at 40 % from the top, transparent above, the garden bed in the lower middle about 72 % down.",
|
||||
"include": ["a fully transparent sky above the horizon", "the same wall, bed and grasses as garden-morning"],
|
||||
"avoid": ["a painted sky, sun, moon, clouds or stars", "a rose or any large flower in the bed"],
|
||||
"checks": [2, 3, 4, 5, 7]
|
||||
},
|
||||
{
|
||||
"id": "garden-sunset",
|
||||
"type": "layer",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1536,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": null,
|
||||
"usedBy": ["The garden at the player's real local sunset, and the in-game sunset with the chair."],
|
||||
"purpose": "The same garden at sunset: low amber and coral light from the left, long soft shadows, the sky left transparent.",
|
||||
"subject": "No characters. The same empty garden bed as garden-morning, with room on the left of the bed for the chair.",
|
||||
"setting": "The same garden as garden-morning in low sunset light from the left (west): amber gold (#F2B860) and coral (#E9846A) on the wall and grasses, long soft shadows to the right.",
|
||||
"composition": "Portrait. Exactly the same layout as garden-morning: horizon straight across at 40 % from the top, transparent above, the garden bed in the lower middle about 72 % down.",
|
||||
"include": ["a fully transparent sky above the horizon", "the warmest light of the four garden layers"],
|
||||
"avoid": ["a painted sky, sun, moon, clouds or stars", "a chair (it is its own picture)", "a rose or any large flower in the bed"],
|
||||
"checks": [2, 3, 4, 5, 7]
|
||||
},
|
||||
{
|
||||
"id": "garden-night",
|
||||
"type": "layer",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1536,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": null,
|
||||
"usedBy": ["The garden at night, under the real stars drawn in code."],
|
||||
"purpose": "The same garden at night in soft blue moonlight, calm and safe, with the sky left transparent for the real constellations.",
|
||||
"subject": "No characters. The same empty garden bed as garden-morning.",
|
||||
"setting": "The same garden as garden-morning at night: dusk indigo (#2E3561) shadows, soft silver-blue light from above, one or two tiny lamp-gold glow-worms in the grass. Calm and safe, never dark or scary.",
|
||||
"composition": "Portrait. Exactly the same layout as garden-morning: horizon straight across at 40 % from the top, transparent above, the garden bed in the lower middle about 72 % down.",
|
||||
"include": ["a fully transparent sky above the horizon", "enough light that the bed and wall still read clearly"],
|
||||
"avoid": ["a painted sky, moon or stars", "deep black shadows", "a rose or any large flower in the bed"],
|
||||
"checks": [2, 3, 4, 5, 7]
|
||||
},
|
||||
{
|
||||
"id": "app-icon",
|
||||
"type": "icon",
|
||||
"phase": 1,
|
||||
"width": 1024,
|
||||
"height": 1024,
|
||||
"background": "full",
|
||||
"shipped": true,
|
||||
"smallest": 48,
|
||||
"character": "rose",
|
||||
"usedBy": ["The home-screen icon of the installed app (replaces apps/rosea/public/icon.svg)."],
|
||||
"purpose": "The app icon: the rose's bloom with her face, readable at 48 px on a phone's home screen.",
|
||||
"subject": "Only the rose's bloom and the top of her stem with one leaf, filling the middle of the icon: the face clear, eyes half-closed, a small content smile, a faint blush.",
|
||||
"setting": "A soft dusk background, coral (#E9846A) at the bottom warming into amber (#F2B860), painted with the same gouache texture, no horizon detail.",
|
||||
"composition": "Square, full background. The bloom centred and inside the middle 70 %; nothing important near the corners, which phones cut.",
|
||||
"include": ["a bold, simple silhouette that reads at 48 px"],
|
||||
"avoid": ["fine detail that vanishes when small", "a border or rounded-corner frame"],
|
||||
"checks": [0, 1, 2, 3, 4, 5, 6]
|
||||
},
|
||||
{
|
||||
"id": "fox-sheet",
|
||||
"type": "sheet",
|
||||
"phase": 2,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "full",
|
||||
"shipped": false,
|
||||
"smallest": null,
|
||||
"character": "fox",
|
||||
"usedBy": ["The reference for every fox picture. Make it before any other fox picture: every fox prompt asks for it as the reference picture."],
|
||||
"purpose": "Reference sheet that fixes the fox's look; every later fox prompt points to it. Never shown in the app.",
|
||||
"subject": "The fox, as described below. Four full figures: sitting facing the front; standing in side view facing left; standing in three-quarter view facing left; sitting seen from behind, tail curled round. Then three close-ups of the head only: content (eyes half-closed), curious (eyes open, head tilted, ears forward), sleepy (eyes closed).",
|
||||
"setting": "Isolated on plain warm off-white paper (#FBF6F1), no scenery, no ground.",
|
||||
"composition": "Seven figures on one sheet with even spacing: the four full figures in a row across the top two thirds, the three close-ups in a row below, all full figures at the same scale, nothing overlapping.",
|
||||
"include": ["the same markings in every view: the cream mask, the cream spots above the eyes, the dark legs, the three faint tail rings and the cream tail tip", "identical proportions in every view"],
|
||||
"avoid": ["a collar, lead or clothes", "pale sandy fur or very large ears", "a sly, hungry or frightened look"],
|
||||
"checks": [2, 3, 4, 5, 7, 8]
|
||||
},
|
||||
{
|
||||
"id": "fox-trust-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 2,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 96,
|
||||
"character": "fox",
|
||||
"usedBy": ["The fox coming closer: the engine's fox distance picks the pose, never more than one step a day (CLAUDE.md §5.5).", "Pet and brush, the touch half of taming (GAMEPLAY.md §3).", "Not in the app yet: Phase 2 builds the fox"],
|
||||
"purpose": "The fox in six poses of growing trust, from watching at a distance to leaning into a touch.",
|
||||
"angle": "Every pose shows the whole fox at the same scale (the scale of fox-sheet), light from the left. Side and three-quarter views face left unless the cell says otherwise.",
|
||||
"grid": { "cols": 3, "rows": 2 },
|
||||
"cells": [
|
||||
{ "id": "fox-watching", "does": "watching from a distance: sitting half turned away, looking back over his shoulder, ears up, wary but curious." },
|
||||
{ "id": "fox-curious", "does": "curious: standing, one front paw lifted, head tilted, ears forward, sniffing the air towards the left." },
|
||||
{ "id": "fox-sitting", "does": "sitting calmly facing the front, tail wrapped round his paws, eyes half-closed." },
|
||||
{ "id": "fox-resting", "does": "resting close: lying down with his head on his front paws, eyes half-closed, tail curled round. Trusting and at ease." },
|
||||
{ "id": "fox-petted", "does": "being petted: sitting, leaning his head and shoulder to the left into a touch we do not see, eyes closed happily, ears softly back. No hand is drawn." },
|
||||
{ "id": "fox-brushed", "does": "just brushed: sitting tall, his coat fluffed and glossy, tail fanned out, chin up, a little proud, like the rose." }
|
||||
],
|
||||
"include": ["the same fox as fox-sheet in every cell"],
|
||||
"avoid": ["a collar, lead or clothes", "pale sandy fur or very large ears", "a human hand or arm", "ground or grass under him"],
|
||||
"checks": [2, 3, 4, 5, 6, 7, 8, 9]
|
||||
},
|
||||
{
|
||||
"id": "fox-moments-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 2,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 96,
|
||||
"character": "fox",
|
||||
"usedBy": ["Feeding him berries (GAMEPLAY.md §3), the fox at night, following on the journey, and after the taming leading the player towards real people (CLAUDE.md §1).", "Phase 3: carrying a trace of you to a friend, and the thanks visit to your rose.", "Not in the app yet: Phase 2 builds the fox"],
|
||||
"purpose": "The fox in six moments: eating, asleep, following, leading, carrying a petal and visiting.",
|
||||
"angle": "Every moment shows the whole fox at the same scale as fox-trust-sheet, light from the left. Side views face the way the cell says.",
|
||||
"grid": { "cols": 3, "rows": 2 },
|
||||
"cells": [
|
||||
{ "id": "fox-eating", "does": "eating: crouched forward, nose down as if eating from the ground just in front of his paws, tail up and happy. The leaf and berries are their own pictures placed in code, so nothing is drawn there." },
|
||||
{ "id": "fox-asleep", "does": "asleep: curled in a round ball, tail over his nose, eyes closed, peaceful." },
|
||||
{ "id": "fox-trotting", "does": "following: trotting to the left in side view, light on his feet, ears up, tail streaming behind." },
|
||||
{ "id": "fox-leading", "does": "leading the way: walking to the right in side view, looking back over his shoulder at the viewer, one front paw raised mid-step. Inviting." },
|
||||
{ "id": "fox-carrying-petal", "does": "carrying a trace: trotting to the left, holding one rose petal gently in his mouth, careful and proud. The petal is pale cream, so code can tint it with the friend's colour." },
|
||||
{ "id": "fox-visiting", "does": "visiting: sitting very upright, looking up and to the left as if at a rose beside him, tail swept round, eyes soft. A quiet thank-you." }
|
||||
],
|
||||
"include": ["the same fox as fox-sheet in every cell"],
|
||||
"avoid": ["a collar, lead or clothes", "pale sandy fur or very large ears", "a human hand or arm", "ground, grass or a leaf under him"],
|
||||
"checks": [2, 3, 4, 5, 6, 7, 8, 9]
|
||||
},
|
||||
{
|
||||
"id": "berries-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 2,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 48,
|
||||
"usedBy": ["The fox's food. The player's own rose's growth sets the kind: wild strawberries, blueberries, raspberries, blackberries, then rose hips (GAMEPLAY.md §3).", "Placed in code on the berry bush and on the leaf he eats from.", "Not in the app yet: Phase 2"],
|
||||
"purpose": "Five small berry clusters, one of each kind, and the large leaf the fox eats from, each easy to recognise at 48 px.",
|
||||
"angle": "Each thing in a gentle three-quarter view from a little above, the same light from the left. Every berry cluster at the same scale; the leaf is the largest drawing.",
|
||||
"grid": { "cols": 3, "rows": 2 },
|
||||
"cells": [
|
||||
{ "id": "wild-strawberries", "does": "a small cluster of three tiny wild strawberries, cone-shaped and seedy, strawberry red (#D2554E), on a short stalk with two small leaves." },
|
||||
{ "id": "blueberries", "does": "a small cluster of five round blueberries in dusk blue (#5B6FA6), each with a soft bloom and a tiny crown, on a short twig with two leaves." },
|
||||
{ "id": "raspberries", "does": "a small cluster of three raspberries in raspberry (#C2456A), each made of little round drupelets, with one leaf." },
|
||||
{ "id": "blackberries", "does": "a small cluster of three glossy blackberries in bramble (#3F2E4A), with one leaf and no thorns." },
|
||||
{ "id": "rose-hips", "does": "two oval rose hips in hip orange (#D0632E) on one short stem, each with a small dark crown of dried sepals. The rarest and best, so a faint warm glow round them." },
|
||||
{ "id": "leaf-plate", "does": "one large, soft dock leaf lying flat, seen from above, in sage and moss green, empty: the berries are placed on it in code." }
|
||||
],
|
||||
"include": ["each thing whole and clear at 48 px", "the five berry clusters at the same scale"],
|
||||
"avoid": ["thorns", "a bowl, plate or basket", "berries that look bruised or rotten"],
|
||||
"checks": [2, 3, 4, 5, 6]
|
||||
},
|
||||
{
|
||||
"id": "berry-bush-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 2,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 96,
|
||||
"usedBy": ["The wild bush beside the player's own rose. It ripens only on a day the care helped, and gives one harvest a day (GAMEPLAY.md §3; CLAUDE.md §8, berry farming).", "The brush for grooming the fox (GAMEPLAY.md §3).", "Not in the app yet: Phase 2"],
|
||||
"purpose": "The wild berry bush in its three states, and the soft brush used to groom the fox.",
|
||||
"angle": "Each thing in a gentle three-quarter view, the same light from the left. The first three cells are the same bush at the same scale; only its state changes.",
|
||||
"grid": { "cols": 2, "rows": 2 },
|
||||
"cells": [
|
||||
{ "id": "bush-resting", "does": "the wild berry bush at rest: a small round bush of soft oval leaves in sage and moss, calm, with no flowers and no fruit." },
|
||||
{ "id": "bush-flowering", "does": "the same bush flowering: a scatter of small white five-petalled flowers among the leaves." },
|
||||
{ "id": "bush-ripe", "does": "the same bush ready to pick: the leaves lifted and parted in three small, softly lit hollows where the berries are placed in code. No berries drawn." },
|
||||
{ "id": "fox-brush", "does": "a small, soft grooming brush with a rounded honey-wood back (#B98A5A) and pale natural bristles, lying on its side, bristles to the right." }
|
||||
],
|
||||
"include": ["the same bush in the first three cells", "the bush whole, from its base to its top leaves"],
|
||||
"avoid": ["berries drawn on the bush", "thorns", "soil, a pot or ground"],
|
||||
"checks": [2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
{
|
||||
"id": "paths-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 3,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 96,
|
||||
"usedBy": ["The path between two friends' roses, which only grows: paw prints, then a trail, then a road (CLAUDE.md §1, friends).", "Not in the app yet: Phase 3. Its feature doc designs the screen and may ask for these again (STYLE.md F4)."],
|
||||
"purpose": "Three short stretches of the path between two roses, one for each stage of its growth.",
|
||||
"angle": "Each stretch seen from a little above, running from the bottom of its cell up into the distance and narrowing, in a soft oval of meadow grass that fades out at its edges. The same meadow, scale and light in every cell.",
|
||||
"grid": { "cols": 3, "rows": 1 },
|
||||
"cells": [
|
||||
{ "id": "path-prints", "does": "the path at its start: a line of small paw prints through the meadow grass, the grass barely pressed." },
|
||||
{ "id": "path-trail", "does": "a trail: a narrow line of trodden, paler grass with the earth just showing, a few paw prints along it." },
|
||||
{ "id": "path-road", "does": "a road: a soft earth path, a little wider, edged on both sides with small rounded stones and wildflowers." }
|
||||
],
|
||||
"include": ["the same meadow in all three cells", "the grass fading softly to transparency at its edges"],
|
||||
"avoid": ["a signpost, gate or fence", "shoe prints", "a hard square edge to the meadow"],
|
||||
"checks": [2, 3, 4, 5, 6, 7]
|
||||
},
|
||||
{
|
||||
"id": "lanterns-sheet",
|
||||
"type": "spritesheet",
|
||||
"phase": 3,
|
||||
"width": 1536,
|
||||
"height": 1024,
|
||||
"background": "transparent",
|
||||
"shipped": true,
|
||||
"smallest": 96,
|
||||
"usedBy": ["The lantern a player may light once the path is a road. A lantern only one player lit is never shown to the other; when both are lit, the game says so (CLAUDE.md §1; §8, a lantern as rejection).", "Not in the app yet: Phase 3"],
|
||||
"purpose": "The lantern beside the rose, unlit and lit.",
|
||||
"angle": "Both seen from the front with the whole post visible: the same lantern at the same scale, only the light changes.",
|
||||
"grid": { "cols": 2, "rows": 1 },
|
||||
"cells": [
|
||||
{ "id": "lantern-unlit", "does": "unlit: a small iron-and-glass hand lantern hanging from a shepherd's-crook post of honey wood, its glass clear, the candle inside unlit. Quiet, not sad." },
|
||||
{ "id": "lantern-lit", "does": "lit: the same lantern with a small candle flame glowing lamp gold (#F4D58D), and a soft halo of warm light round it that stays inside the safe box." }
|
||||
],
|
||||
"include": ["the same post and lantern in both cells"],
|
||||
"avoid": ["a street lamp", "a flame that looks dangerous", "ground or grass at the foot of the post"],
|
||||
"checks": [2, 3, 4, 5, 6, 7]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
|
||||
<!-- Stand-in for app-icon (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<rect width="1024" height="1024" fill="#e9846a"/><rect y="512" width="1024" height="512" fill="#f2b860" opacity=".6"/> <svg x="153.6" y="122.88" width="716.8" height="778.24" viewBox="0 30 200 230"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M103 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||
<!-- Stand-in for berries-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<svg x="0" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><ellipse cx="120" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(25 120 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="70" cy="120" r="22" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><circle cx="110" cy="140" r="22" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="105" r="22" fill="#d2554e" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="512" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><ellipse cx="120" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(25 120 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="70" cy="120" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="130" cy="120" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="85" cy="95" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="118" cy="95" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="1024" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="72" cy="120" r="22" fill="#c2456a" stroke="#3a2730" stroke-width="4"/><circle cx="110" cy="138" r="22" fill="#c2456a" stroke="#3a2730" stroke-width="4"/><circle cx="138" cy="108" r="22" fill="#c2456a" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="0" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="72" cy="120" r="22" fill="#3f2e4a" stroke="#3a2730" stroke-width="4"/><circle cx="110" cy="138" r="22" fill="#3f2e4a" stroke="#3a2730" stroke-width="4"/><circle cx="138" cy="108" r="22" fill="#3f2e4a" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="512" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="115" r="80" fill="#f4d58d" opacity=".3"/><path d="M100 30 V 70 M100 70 L 70 90 M100 70 L 130 90" stroke="#4f6e52" stroke-width="5" fill="none"/><ellipse cx="70" cy="125" rx="24" ry="34" fill="#d0632e" stroke="#3a2730" stroke-width="4"/><path d="M62 159 l8 10 l8 -10" fill="#5a3a33"/><ellipse cx="130" cy="125" rx="24" ry="34" fill="#d0632e" stroke="#3a2730" stroke-width="4"/><path d="M122 159 l8 10 l8 -10" fill="#5a3a33"/></g></svg><svg x="1024" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M20 110 Q 100 10 185 100 Q 100 190 20 110z" fill="#7fa07a" stroke="#3a2730" stroke-width="5"/><path d="M20 110 Q 100 100 185 100" fill="none" stroke="#4f6e52" stroke-width="5"/></g></svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||
<!-- Stand-in for berry-bush-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<svg x="0" y="0" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><circle cx="60" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="80" r="56" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="46" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 70 q30 -14 60 0 M50 120 q20 -10 40 0 M115 125 q20 -10 40 0" fill="none" stroke="#4f6e52" stroke-width="4"/></g></svg><svg x="768" y="0" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><circle cx="60" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="80" r="56" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="46" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 70 q30 -14 60 0 M50 120 q20 -10 40 0 M115 125 q20 -10 40 0" fill="none" stroke="#4f6e52" stroke-width="4"/><circle cx="55" cy="100" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="55" cy="100" r="3" fill="#f2b860"/><circle cx="100" cy="60" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="60" r="3" fill="#f2b860"/><circle cx="145" cy="105" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="145" cy="105" r="3" fill="#f2b860"/><circle cx="90" cy="135" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="90" cy="135" r="3" fill="#f2b860"/><circle cx="125" cy="150" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="125" cy="150" r="3" fill="#f2b860"/></g></svg><svg x="0" y="512" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><circle cx="60" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="80" r="56" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="46" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 70 q30 -14 60 0 M50 120 q20 -10 40 0 M115 125 q20 -10 40 0" fill="none" stroke="#4f6e52" stroke-width="4"/><ellipse cx="60" cy="105" rx="20" ry="15" fill="#f4d58d" stroke="#4f6e52" stroke-width="3"/><ellipse cx="138" cy="108" rx="20" ry="15" fill="#f4d58d" stroke="#4f6e52" stroke-width="3"/><ellipse cx="100" cy="70" rx="20" ry="15" fill="#f4d58d" stroke="#4f6e52" stroke-width="3"/></g></svg><svg x="768" y="512" width="768" height="512" viewBox="0 0 768 512"><g transform="translate(204.8 76.8) scale(1.7920)"><path d="M30 110 Q 30 70 100 70 Q 170 70 170 110z" fill="#b98a5a" stroke="#3a2730" stroke-width="5"/><path d="M40 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M51 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M62 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M73 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M84 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M95 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M106 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M117 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M128 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M139 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M150 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M161 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/></g></svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.0 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for blackberries (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="72" cy="120" r="22" fill="#3f2e4a" stroke="#3a2730" stroke-width="4"/><circle cx="110" cy="138" r="22" fill="#3f2e4a" stroke="#3a2730" stroke-width="4"/><circle cx="138" cy="108" r="22" fill="#3f2e4a" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 707 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for blueberries (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><ellipse cx="120" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(25 120 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="70" cy="120" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="130" cy="120" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="85" cy="95" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/><circle cx="118" cy="95" r="16" fill="#5b6fa6" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 991 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||
<!-- Stand-in for bush-flowering (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(204.8 76.8) scale(1.7920)"><circle cx="60" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="80" r="56" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="46" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 70 q30 -14 60 0 M50 120 q20 -10 40 0 M115 125 q20 -10 40 0" fill="none" stroke="#4f6e52" stroke-width="4"/><circle cx="55" cy="100" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="55" cy="100" r="3" fill="#f2b860"/><circle cx="100" cy="60" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="60" r="3" fill="#f2b860"/><circle cx="145" cy="105" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="145" cy="105" r="3" fill="#f2b860"/><circle cx="90" cy="135" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="90" cy="135" r="3" fill="#f2b860"/><circle cx="125" cy="150" r="9" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><circle cx="125" cy="150" r="3" fill="#f2b860"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||
<!-- Stand-in for bush-resting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(204.8 76.8) scale(1.7920)"><circle cx="60" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="80" r="56" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="46" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 70 q30 -14 60 0 M50 120 q20 -10 40 0 M115 125 q20 -10 40 0" fill="none" stroke="#4f6e52" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 731 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||
<!-- Stand-in for bush-ripe (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(204.8 76.8) scale(1.7920)"><circle cx="60" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="120" r="50" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="80" r="56" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><circle cx="100" cy="140" r="46" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 70 q30 -14 60 0 M50 120 q20 -10 40 0 M115 125 q20 -10 40 0" fill="none" stroke="#4f6e52" stroke-width="4"/><ellipse cx="60" cy="105" rx="20" ry="15" fill="#f4d58d" stroke="#4f6e52" stroke-width="3"/><ellipse cx="138" cy="108" rx="20" ry="15" fill="#f4d58d" stroke="#4f6e52" stroke-width="3"/><ellipse cx="100" cy="70" rx="20" ry="15" fill="#f4d58d" stroke="#4f6e52" stroke-width="3"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1005 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||
<!-- Stand-in for care-props-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<svg x="0" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><rect x="50" y="80" width="90" height="80" rx="18" fill="#7fa07a" stroke="#3a2730" stroke-width="5"/> <path d="M60 80 q35 -55 70 0" fill="none" stroke="#3a2730" stroke-width="7"/> <path d="M52 110 L12 70" stroke="#3a2730" stroke-width="10" stroke-linecap="round"/><circle cx="12" cy="68" r="10" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/></g></svg><svg x="512" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M30 150 v-90" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M48 143.1116982174284 v-86.1731656763491" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M66 137.27207793864216 v-82.92893218813452" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M84 133.37016841479684 v-80.76120467488713" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M102 132 v-80" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M120 133.37016841479684 v-80.76120467488713" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M138 137.27207793864216 v-82.92893218813452" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M156 143.11169821742837 v-86.1731656763491" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M174 150 v-90" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M24 100 Q100 75 176 100" fill="none" stroke="#8a6248" stroke-width="6"/><path d="M24 128 Q100 103 176 128" fill="none" stroke="#8a6248" stroke-width="6"/> <path d="M30 150 v30 M170 150 v30" stroke="#8a6248" stroke-width="8" stroke-linecap="round"/></g></svg><svg x="1024" y="0" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M60 140 l-18 -60 l14 12 l4 -30 l8 24 l12 -20 l-6 60z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M100 140 l-18 -72 l14 12 l4 -36 l8 24 l12 -20 l-6 68z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M140 140 l-18 -84 l14 12 l4 -42 l8 24 l12 -20 l-6 76z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 140 q10 30 -6 44 M100 140 q-4 26 10 40 M130 140 q8 22 -2 38" fill="none" stroke="#8a6248" stroke-width="4"/></g></svg><svg x="0" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="60" cy="110" rx="34" ry="22" fill="#c85a6e" stroke="#3a2730" stroke-width="4" transform="rotate(-20 60 110)"/><ellipse cx="110" cy="90" rx="34" ry="22" fill="#c85a6e" stroke="#3a2730" stroke-width="4" transform="rotate(25 110 90)"/><ellipse cx="140" cy="130" rx="34" ry="22" fill="#c85a6e" stroke="#3a2730" stroke-width="4" transform="rotate(60 140 130)"/></g></svg><svg x="512" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="100" r="86" fill="#f4d58d" opacity=".35"/><path d="M100 30 C 170 60, 160 160, 100 170 C 40 160, 30 60, 100 30z" fill="#c85a6e" stroke="#3a2730" stroke-width="5"/> <path d="M100 30 C 120 90, 120 130, 100 170" fill="none" stroke="#f2b5be" stroke-width="6"/></g></svg><svg x="1024" y="512" width="512" height="512" viewBox="0 0 512 512"><g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 20 C 190 50, 190 160, 100 182 C 10 160, 10 50, 100 20z" fill="#f2b5be" stroke="#3a2730" stroke-width="5"/></g></svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fallen-petals (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="60" cy="110" rx="34" ry="22" fill="#c85a6e" stroke="#3a2730" stroke-width="4" transform="rotate(-20 60 110)"/><ellipse cx="110" cy="90" rx="34" ry="22" fill="#c85a6e" stroke="#3a2730" stroke-width="4" transform="rotate(25 110 90)"/><ellipse cx="140" cy="130" rx="34" ry="22" fill="#c85a6e" stroke="#3a2730" stroke-width="4" transform="rotate(60 140 130)"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 650 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-asleep (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><circle cx="150" cy="160" r="66" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M205 200 Q 170 235 110 205" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M205 200 Q 170 235 110 205" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M205 200 Q 170 235 110 205" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><path d="M96.5 150 l12 -27 l12 27z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M123.5 150 l12 -27 l12 27z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 125 168)"><circle cx="125" cy="168" r="30" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="108.5" cy="178.5" rx="16.5" ry="11.4" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="113" cy="154.5" r="5" fill="#f3e3c8"/><circle cx="135" cy="154.5" r="5" fill="#f3e3c8"/> <path d="M106 164 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M128 164 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="96.5" cy="177" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 512" width="768" height="512">
|
||||
<!-- Stand-in for fox-brush (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(204.8 76.8) scale(1.7920)"><path d="M30 110 Q 30 70 100 70 Q 170 70 170 110z" fill="#b98a5a" stroke="#3a2730" stroke-width="5"/><path d="M40 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M51 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M62 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M73 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M84 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M95 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M106 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M117 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M128 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M139 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M150 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/><path d="M161 112 v26" stroke="#f3e3c8" stroke-width="6" stroke-linecap="round"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-brushed (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="46" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="40" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(8 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-carrying-petal (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><path d="M110 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M130 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M200 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M220 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><ellipse cx="165" cy="128" rx="80" ry="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M49.3 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M79.9 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 80 98)"><circle cx="80" cy="98" r="34" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="60.5" cy="109.9" rx="18.700000000000003" ry="12.92" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="68" cy="82.7" r="5" fill="#f3e3c8"/><circle cx="90" cy="82.7" r="5" fill="#f3e3c8"/> <path d="M61 94 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M83 94 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="48.5" cy="108.2" r="5" fill="#3a2730"/> <ellipse cx="44.5" cy="123.5" rx="16" ry="9" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-curious (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><path d="M110 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M130 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M200 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M220 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><ellipse cx="165" cy="128" rx="80" ry="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M49.3 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M79.9 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(-14 80 98)"><circle cx="80" cy="98" r="34" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="60.5" cy="109.9" rx="18.700000000000003" ry="12.92" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="68" cy="82.7" r="5" fill="#f3e3c8"/><circle cx="90" cy="82.7" r="5" fill="#f3e3c8"/> <circle cx="67" cy="94" r="4" fill="#3a2730"/><circle cx="89" cy="94" r="4" fill="#3a2730"/><circle cx="48.5" cy="108.2" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-eating (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><path d="M110 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M130 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M200 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M220 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><ellipse cx="165" cy="128" rx="80" ry="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M49.3 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M79.9 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(-30 80 98)"><circle cx="80" cy="98" r="34" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="60.5" cy="109.9" rx="18.700000000000003" ry="12.92" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="68" cy="82.7" r="5" fill="#f3e3c8"/><circle cx="90" cy="82.7" r="5" fill="#f3e3c8"/> <path d="M61 94 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M83 94 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="48.5" cy="108.2" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-leading (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><g transform="translate(300 0) scale(-1 1)"><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><path d="M110 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M130 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M200 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M220 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><ellipse cx="165" cy="128" rx="80" ry="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M221.7 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M191.1 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 215 98)"><circle cx="215" cy="98" r="34" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="234.5" cy="109.9" rx="18.700000000000003" ry="12.92" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="227" cy="82.7" r="5" fill="#f3e3c8"/><circle cx="205" cy="82.7" r="5" fill="#f3e3c8"/> <circle cx="228" cy="94" r="4" fill="#3a2730"/><circle cx="206" cy="94" r="4" fill="#3a2730"/><circle cx="246.5" cy="108.2" r="5" fill="#3a2730"/> </g></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-petted (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(-18 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-resting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M250 205 Q 285 215 290 180" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M250 205 Q 285 215 290 180" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M250 205 Q 285 215 290 180" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="170" cy="192" rx="92" ry="30" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M70 215 V 222" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M42.4 158.8 l12 -28.8 l12 28.8z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M71.2 158.8 l12 -28.8 l12 28.8z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 72 178)"><circle cx="72" cy="178" r="32" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="54" cy="189.2" rx="17.6" ry="12.16" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="60" cy="163.6" r="5" fill="#f3e3c8"/><circle cx="82" cy="163.6" r="5" fill="#f3e3c8"/> <path d="M53 174 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M75 174 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="42" cy="187.6" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 10 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-sitting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-trotting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M235 120 Q 280 110 290 60" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><path d="M110 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M130 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M200 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M220 140 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><ellipse cx="165" cy="128" rx="80" ry="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M49.3 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M79.9 77.6 l12 -30.6 l12 30.6z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 80 98)"><circle cx="80" cy="98" r="34" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="60.5" cy="109.9" rx="18.700000000000003" ry="12.92" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="68" cy="82.7" r="5" fill="#f3e3c8"/><circle cx="90" cy="82.7" r="5" fill="#f3e3c8"/> <circle cx="67" cy="94" r="4" fill="#3a2730"/><circle cx="89" cy="94" r="4" fill="#3a2730"/><circle cx="48.5" cy="108.2" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-visiting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M112.1 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M146.3 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(16 145 72)"><circle cx="145" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="122.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="133" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="155" cy="54.9" r="5" fill="#f3e3c8"/> <path d="M126 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M148 68 q6 4 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="110.5" cy="83.4" r="5" fill="#3a2730"/> </g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for fox-watching (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 100.4) scale(1.2971)"><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#3a2730" stroke-width="38" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#bc4a22" stroke-width="30" stroke-linecap="round"/><path d="M185 215 Q 250 205 240 150" fill="none" stroke="#5a3a33" stroke-width="32" stroke-dasharray="6 26" opacity=".45"/><ellipse cx="160" cy="150" rx="50" ry="64" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><ellipse cx="148" cy="160" rx="24" ry="38" fill="#f3e3c8"/><path d="M140 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M168 175 V 225" stroke="#5a3a33" stroke-width="14" stroke-linecap="round"/><path d="M183.9 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><path d="M149.7 49.2 l12 -34.2 l12 34.2z" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/><g transform="rotate(0 175 72)"><circle cx="175" cy="72" r="38" fill="#bc4a22" stroke="#3a2730" stroke-width="4"/> <ellipse cx="197.5" cy="85.3" rx="20.900000000000002" ry="14.44" fill="#f3e3c8" stroke="#3a2730" stroke-width="4"/> <circle cx="187" cy="54.9" r="5" fill="#f3e3c8"/><circle cx="165" cy="54.9" r="5" fill="#f3e3c8"/> <circle cx="188" cy="68" r="4" fill="#3a2730"/><circle cx="166" cy="68" r="4" fill="#3a2730"/><circle cx="209.5" cy="83.4" r="5" fill="#3a2730"/> </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 1024 1024" width="1024" height="1024">
|
||||
<!-- Stand-in for garden-chair (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(153.6 153.6) scale(3.5840)"><rect x="60" y="40" width="80" height="70" rx="8" fill="#b98a5a" stroke="#3a2730" stroke-width="5"/> <path d="M70 55 h60 M70 75 h60 M70 95 h60" stroke="#8a6248" stroke-width="4"/> <path d="M50 110 h100 l-10 24 h-80z" fill="#f2b5be" stroke="#3a2730" stroke-width="5"/> <path d="M62 134 v46 M138 134 v46 M80 134 v36 M120 134 v36" stroke="#b98a5a" stroke-width="9" stroke-linecap="round"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 672 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||
<!-- Stand-in for garden-day (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<path d="M0 614 Q 307.2 596 563.2 608 T 1024 618 V 1536 H 0z" fill="#b9cfa8"/> <path d="M0 704 Q 512 664 1024 724 V 1536 H 0z" fill="#a9c48e"/> <path d="M122.88 1036 Q 512 956 901.12 1036" fill="none" stroke="#a8957f" stroke-width="44" stroke-linecap="round"/> <ellipse cx="512" cy="1106" rx="307.2" ry="76.80000000000001" fill="#8a6248" stroke="#3a2730" stroke-width="5"/> <circle cx="944" cy="674" r="26" fill="#fff6d8" opacity=".8"/> <path d="M0 614 H 1024" stroke="#3a2730" stroke-width="3" stroke-dasharray="14 10"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 749 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||
<!-- Stand-in for garden-morning (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<path d="M0 614 Q 307.2 596 563.2 608 T 1024 618 V 1536 H 0z" fill="#c9dbe0"/> <path d="M0 704 Q 512 664 1024 724 V 1536 H 0z" fill="#b8d1a0"/> <path d="M122.88 1036 Q 512 956 901.12 1036" fill="none" stroke="#b4a596" stroke-width="44" stroke-linecap="round"/> <ellipse cx="512" cy="1106" rx="307.2" ry="76.80000000000001" fill="#8a6248" stroke="#3a2730" stroke-width="5"/> <circle cx="944" cy="674" r="26" fill="#ffffff" opacity=".8"/> <path d="M0 614 H 1024" stroke="#3a2730" stroke-width="3" stroke-dasharray="14 10"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 753 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||
<!-- Stand-in for garden-night (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<path d="M0 614 Q 307.2 596 563.2 608 T 1024 618 V 1536 H 0z" fill="#46557a"/> <path d="M0 704 Q 512 664 1024 724 V 1536 H 0z" fill="#3c4a6a"/> <path d="M122.88 1036 Q 512 956 901.12 1036" fill="none" stroke="#3a4466" stroke-width="44" stroke-linecap="round"/> <ellipse cx="512" cy="1106" rx="307.2" ry="76.80000000000001" fill="#8a6248" stroke="#3a2730" stroke-width="5"/> <circle cx="944" cy="674" r="26" fill="#f4d58d" opacity=".8"/> <path d="M0 614 H 1024" stroke="#3a2730" stroke-width="3" stroke-dasharray="14 10"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 751 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1536" width="1024" height="1536">
|
||||
<!-- Stand-in for garden-sunset (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<path d="M0 614 Q 307.2 596 563.2 608 T 1024 618 V 1536 H 0z" fill="#d9a98a"/> <path d="M0 704 Q 512 664 1024 724 V 1536 H 0z" fill="#c9b07a"/> <path d="M122.88 1036 Q 512 956 901.12 1036" fill="none" stroke="#a07b62" stroke-width="44" stroke-linecap="round"/> <ellipse cx="512" cy="1106" rx="307.2" ry="76.80000000000001" fill="#8a6248" stroke="#3a2730" stroke-width="5"/> <circle cx="80" cy="674" r="26" fill="#f2b860" opacity=".8"/> <path d="M0 614 H 1024" stroke="#3a2730" stroke-width="3" stroke-dasharray="14 10"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 751 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 1024" width="768" height="1024">
|
||||
<!-- Stand-in for lantern-lit (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(189.4 122.9) scale(1.9456)"><circle cx="140" cy="170" r="60" fill="#f4d58d" opacity=".45"/><path d="M60 390 V 80 Q 60 40 100 40 Q 140 40 140 80 V 110" fill="none" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><rect x="115" y="130" width="50" height="72" rx="8" fill="#f4d58d" stroke="#3a2730" stroke-width="5"/><path d="M115 130 l25 -18 l25 18" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/><rect x="133" y="160" width="14" height="30" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><path d="M140 160 q-8 -12 0 -22 q8 10 0 22z" fill="#f2b860" stroke="#3a2730" stroke-width="2"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 853 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 768 1024" width="768" height="1024">
|
||||
<!-- Stand-in for lantern-unlit (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(189.4 122.9) scale(1.9456)"><path d="M60 390 V 80 Q 60 40 100 40 Q 140 40 140 80 V 110" fill="none" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><rect x="115" y="130" width="50" height="72" rx="8" fill="#e8eef0" stroke="#3a2730" stroke-width="5"/><path d="M115 130 l25 -18 l25 18" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/><rect x="133" y="160" width="14" height="30" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 697 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||
<!-- Stand-in for lanterns-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<svg x="0" y="0" width="768" height="1024" viewBox="0 0 768 1024"><g transform="translate(189.4 122.9) scale(1.9456)"><path d="M60 390 V 80 Q 60 40 100 40 Q 140 40 140 80 V 110" fill="none" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><rect x="115" y="130" width="50" height="72" rx="8" fill="#e8eef0" stroke="#3a2730" stroke-width="5"/><path d="M115 130 l25 -18 l25 18" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/><rect x="133" y="160" width="14" height="30" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/></g></svg><svg x="768" y="0" width="768" height="1024" viewBox="0 0 768 1024"><g transform="translate(189.4 122.9) scale(1.9456)"><circle cx="140" cy="170" r="60" fill="#f4d58d" opacity=".45"/><path d="M60 390 V 80 Q 60 40 100 40 Q 140 40 140 80 V 110" fill="none" stroke="#b98a5a" stroke-width="14" stroke-linecap="round"/><rect x="115" y="130" width="50" height="72" rx="8" fill="#f4d58d" stroke="#3a2730" stroke-width="5"/><path d="M115 130 l25 -18 l25 18" fill="#5a3a33" stroke="#3a2730" stroke-width="4"/><rect x="133" y="160" width="14" height="30" fill="#fbf6f1" stroke="#3a2730" stroke-width="3"/><path d="M140 160 q-8 -12 0 -22 q8 10 0 22z" fill="#f2b860" stroke="#3a2730" stroke-width="2"/></g></svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for leaf-plate (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M20 110 Q 100 10 185 100 Q 100 190 20 110z" fill="#7fa07a" stroke="#3a2730" stroke-width="5"/><path d="M20 110 Q 100 100 185 100" fill="none" stroke="#4f6e52" stroke-width="5"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 464 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 1024" width="512" height="1024">
|
||||
<!-- Stand-in for path-prints (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 122.9) scale(1.9456)"><ellipse cx="100" cy="200" rx="92" ry="190" fill="#a9c48e" stroke="#3a2730" stroke-width="3" stroke-dasharray="10 8"/><ellipse cx="88" cy="340" rx="9" ry="7" fill="#8a6248"/><ellipse cx="110.66666666666667" cy="290" rx="8" ry="6.3" fill="#8a6248"/><ellipse cx="90.66666666666667" cy="240" rx="7" ry="5.6" fill="#8a6248"/><ellipse cx="108" cy="190" rx="6" ry="4.9" fill="#8a6248"/><ellipse cx="93.33333333333333" cy="140" rx="5" ry="4.2" fill="#8a6248"/><ellipse cx="105.33333333333333" cy="95" rx="4" ry="3.5" fill="#8a6248"/><ellipse cx="96" cy="55" rx="3" ry="2.8000000000000007" fill="#8a6248"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 880 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 1024" width="512" height="1024">
|
||||
<!-- Stand-in for path-road (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 122.9) scale(1.9456)"><ellipse cx="100" cy="200" rx="92" ry="190" fill="#a9c48e" stroke="#3a2730" stroke-width="3" stroke-dasharray="10 8"/><path d="M60 388 Q 110 260 88 160 T 92 15 L 108 15 Q 120 120 112 170 T 140 388z" fill="#8a6248" stroke="#3a2730" stroke-width="4"/><circle cx="52" cy="360" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="148" cy="360" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="70" cy="260" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="130" cy="255" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="80" cy="160" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="118" cy="150" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="88" cy="70" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="110" cy="65" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 1024" width="512" height="1024">
|
||||
<!-- Stand-in for path-trail (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(61.4 122.9) scale(1.9456)"><ellipse cx="100" cy="200" rx="92" ry="190" fill="#a9c48e" stroke="#3a2730" stroke-width="3" stroke-dasharray="10 8"/><path d="M92 385 Q 120 260 96 160 T 100 15" fill="none" stroke="#c8d8a8" stroke-width="22" stroke-linecap="round"/><path d="M92 385 Q 120 260 96 160 T 100 15" fill="none" stroke="#8a6248" stroke-width="5" stroke-dasharray="4 18"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 629 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1536 1024" width="1536" height="1024">
|
||||
<!-- Stand-in for paths-sheet (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<svg x="0" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(61.4 122.9) scale(1.9456)"><ellipse cx="100" cy="200" rx="92" ry="190" fill="#a9c48e" stroke="#3a2730" stroke-width="3" stroke-dasharray="10 8"/><ellipse cx="88" cy="340" rx="9" ry="7" fill="#8a6248"/><ellipse cx="110.66666666666667" cy="290" rx="8" ry="6.3" fill="#8a6248"/><ellipse cx="90.66666666666667" cy="240" rx="7" ry="5.6" fill="#8a6248"/><ellipse cx="108" cy="190" rx="6" ry="4.9" fill="#8a6248"/><ellipse cx="93.33333333333333" cy="140" rx="5" ry="4.2" fill="#8a6248"/><ellipse cx="105.33333333333333" cy="95" rx="4" ry="3.5" fill="#8a6248"/><ellipse cx="96" cy="55" rx="3" ry="2.8000000000000007" fill="#8a6248"/></g></svg><svg x="512" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(61.4 122.9) scale(1.9456)"><ellipse cx="100" cy="200" rx="92" ry="190" fill="#a9c48e" stroke="#3a2730" stroke-width="3" stroke-dasharray="10 8"/><path d="M92 385 Q 120 260 96 160 T 100 15" fill="none" stroke="#c8d8a8" stroke-width="22" stroke-linecap="round"/><path d="M92 385 Q 120 260 96 160 T 100 15" fill="none" stroke="#8a6248" stroke-width="5" stroke-dasharray="4 18"/></g></svg><svg x="1024" y="0" width="512" height="1024" viewBox="0 0 512 1024"><g transform="translate(61.4 122.9) scale(1.9456)"><ellipse cx="100" cy="200" rx="92" ry="190" fill="#a9c48e" stroke="#3a2730" stroke-width="3" stroke-dasharray="10 8"/><path d="M60 388 Q 110 260 88 160 T 92 15 L 108 15 Q 120 120 112 170 T 140 388z" fill="#8a6248" stroke="#3a2730" stroke-width="4"/><circle cx="52" cy="360" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="148" cy="360" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="70" cy="260" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="130" cy="255" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="80" cy="160" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="118" cy="150" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="88" cy="70" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/><circle cx="110" cy="65" r="7" fill="#c9bcae" stroke="#3a2730" stroke-width="2"/></g></svg>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for petal-folded (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="100" r="86" fill="#f4d58d" opacity=".35"/><path d="M100 30 C 170 60, 160 160, 100 170 C 40 160, 30 60, 100 30z" fill="#c85a6e" stroke="#3a2730" stroke-width="5"/> <path d="M100 30 C 120 90, 120 130, 100 170" fill="none" stroke="#f2b5be" stroke-width="6"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 556 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for petal-open (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M100 20 C 190 50, 190 160, 100 182 C 10 160, 10 50, 100 20z" fill="#f2b5be" stroke="#3a2730" stroke-width="5"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 398 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for raspberries (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="72" cy="120" r="22" fill="#c2456a" stroke="#3a2730" stroke-width="4"/><circle cx="110" cy="138" r="22" fill="#c2456a" stroke="#3a2730" stroke-width="4"/><circle cx="138" cy="108" r="22" fill="#c2456a" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 706 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-blushing (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(80 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 124 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="82" cy="138" r="8" fill="#e8899b"/><circle cx="118" cy="138" r="8" fill="#e8899b"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-bud (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><path d="M100 82 C 130 100, 130 148, 100 151 C 70 148, 70 100, 100 82z" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/> <path d="M70 150 q30 20 60 0 l-8 18 h-44z" fill="#7fa07a" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 124 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-full-bloom (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(-4 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M103 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-half-bloom (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="131.9" cy="130.0" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="122.6" cy="152.6" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="161.9" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="77.4" cy="152.6" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="68.1" cy="130.0" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="77.4" cy="107.4" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="98.1" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="122.6" cy="107.4" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="36.0" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M103 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for rose-hips (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><circle cx="100" cy="115" r="80" fill="#f4d58d" opacity=".3"/><path d="M100 30 V 70 M100 70 L 70 90 M100 70 L 130 90" stroke="#4f6e52" stroke-width="5" fill="none"/><ellipse cx="70" cy="125" rx="24" ry="34" fill="#d0632e" stroke="#3a2730" stroke-width="4"/><path d="M62 159 l8 10 l8 -10" fill="#5a3a33"/><ellipse cx="130" cy="125" rx="24" ry="34" fill="#d0632e" stroke="#3a2730" stroke-width="4"/><path d="M122 159 l8 10 l8 -10" fill="#5a3a33"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 722 B |
|
After Width: | Height: | Size: 7.2 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-opening (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="124.2" cy="130.0" r="24.2" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="107.5" cy="153.0" r="24.2" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="80.4" cy="144.2" r="24.2" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="80.4" cy="115.8" r="24.2" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="107.5" cy="107.0" r="24.2" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="27.3" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M103 124 q6 5 12 0" fill="#3a2730" stroke="#3a2730" stroke-width="3"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-overwatered (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(10 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-10 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(15 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><circle cx="100" cy="145" r="4" fill="#3a2730"/><circle cx="84" cy="140" r="7" fill="#e8899b" opacity=".7"/><circle cx="116" cy="140" r="7" fill="#e8899b" opacity=".7"/><path d="M64 92 q5 9 0 12 q-5 -3 0 -12z" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/><path d="M138 104 q5 9 0 12 q-5 -3 0 -12z" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/><path d="M120 70 q5 9 0 12 q-5 -3 0 -12z" fill="#9cc3d8" stroke="#3a2730" stroke-width="2"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-sleepy (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(10 100 170)"><circle cx="131.9" cy="130.0" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="122.6" cy="152.6" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="161.9" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="77.4" cy="152.6" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="68.1" cy="130.0" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="77.4" cy="107.4" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="98.1" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="122.6" cy="107.4" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="36.0" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 124 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 124 q6 6 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M93 142 q7 7 14 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-speaking (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(80 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(0 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><circle cx="91" cy="124" r="4.5" fill="#3a2730"/><circle cx="109" cy="124" r="4.5" fill="#3a2730"/><ellipse cx="100" cy="145" rx="6" ry="5" fill="#3a2730"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-thirsty (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(10 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-10 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(15 100 250)"/><g transform="translate(0 0) rotate(14 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 127 q6 4 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 127 q6 4 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-waiting (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(10 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-10 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(15 100 250)"/><g transform="translate(0 0) rotate(-18 100 170)"><circle cx="131.9" cy="130.0" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="122.6" cy="152.6" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="161.9" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="77.4" cy="152.6" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="68.1" cy="130.0" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="77.4" cy="107.4" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="98.1" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="122.6" cy="107.4" r="31.9" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="36.0" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 127 q6 4 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 127 q6 4 12 0" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-watching-sunset (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 100 340 100 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M96 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M104 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M96 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-35 100 400)"/><ellipse cx="130" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(35 100 330)"/><ellipse cx="70" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-30 100 250)"/><g transform="translate(0 0) rotate(-10 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 1024" width="384" height="1024">
|
||||
<!-- Stand-in for rose-windblown (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(46.1 132.6) scale(1.4592)"><path d="M100 520 Q 122 340 135.2 170" fill="none" stroke="#4f6e52" stroke-width="9" stroke-linecap="round"/><path d="M101.65714285714286 430 l-12 -6 l10 -6z" fill="#4f6e52"/><path d="M117.82857142857142 300 l12 -6 l-10 -6z" fill="#4f6e52"/><path d="M114.85714285714286 220 l-12 -6 l10 -6z" fill="#4f6e52"/><ellipse cx="70" cy="400" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-60 100 400)"/><ellipse cx="141" cy="330" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(60 111 330)"/><ellipse cx="92" cy="250" rx="34" ry="14" fill="#7fa07a" stroke="#3a2730" stroke-width="3" transform="rotate(-55 122 250)"/><g transform="translate(35.2 0) rotate(18 100 170)"><circle cx="140.7" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="170.7" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="158.8" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="59.3" cy="130.0" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="71.2" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100.0" cy="89.3" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="128.8" cy="101.2" r="40.7" fill="#c85a6e" stroke="#3a2730" stroke-width="3"/><circle cx="100" cy="130" r="45.9" fill="#f2b5be" stroke="#3a2730" stroke-width="3"/><path d="M85 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M103 120 l12 4 l-12 4" fill="none" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/><path d="M96 144 h8" stroke="#3a2730" stroke-width="3" stroke-linecap="round"/></g></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for watering-can (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><rect x="50" y="80" width="90" height="80" rx="18" fill="#7fa07a" stroke="#3a2730" stroke-width="5"/> <path d="M60 80 q35 -55 70 0" fill="none" stroke="#3a2730" stroke-width="7"/> <path d="M52 110 L12 70" stroke="#3a2730" stroke-width="10" stroke-linecap="round"/><circle cx="12" cy="68" r="10" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 625 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for weed-clump (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M60 140 l-18 -60 l14 12 l4 -30 l8 24 l12 -20 l-6 60z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M100 140 l-18 -72 l14 12 l4 -36 l8 24 l12 -20 l-6 68z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M140 140 l-18 -84 l14 12 l4 -42 l8 24 l12 -20 l-6 76z" fill="#7fa07a" stroke="#3a2730" stroke-width="4"/><path d="M70 140 q10 30 -6 44 M100 140 q-4 26 10 40 M130 140 q8 22 -2 38" fill="none" stroke="#8a6248" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 740 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for wild-strawberries (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><ellipse cx="80" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(-25 80 58)"/><ellipse cx="120" cy="58" rx="30" ry="13" fill="#7fa07a" stroke="#3a2730" stroke-width="4" transform="rotate(25 120 58)"/><path d="M100 40 V 80" stroke="#4f6e52" stroke-width="5"/><circle cx="70" cy="120" r="22" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><circle cx="110" cy="140" r="22" fill="#d2554e" stroke="#3a2730" stroke-width="4"/><circle cx="140" cy="105" r="22" fill="#d2554e" stroke="#3a2730" stroke-width="4"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 834 B |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
|
||||
<!-- Stand-in for windbreak (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->
|
||||
<g transform="translate(76.8 76.8) scale(1.7920)"><path d="M30 150 v-90" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M48 143.1116982174284 v-86.1731656763491" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M66 137.27207793864216 v-82.92893218813452" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M84 133.37016841479684 v-80.76120467488713" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M102 132 v-80" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M120 133.37016841479684 v-80.76120467488713" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M138 137.27207793864216 v-82.92893218813452" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M156 143.11169821742837 v-86.1731656763491" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M174 150 v-90" stroke="#b98a5a" stroke-width="12" stroke-linecap="round"/><path d="M24 100 Q100 75 176 100" fill="none" stroke="#8a6248" stroke-width="6"/><path d="M24 128 Q100 103 176 128" fill="none" stroke="#8a6248" stroke-width="6"/> <path d="M30 150 v30 M170 150 v30" stroke="#8a6248" stroke-width="8" stroke-linecap="round"/></g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
@@ -0,0 +1,123 @@
|
||||
# ART.md — how every picture is made
|
||||
|
||||
Every illustration in Rosea Domi goes through this pipeline. A picture that skipped a step is
|
||||
not shipped, however good it looks (CLAUDE.md §7).
|
||||
|
||||
- **What the pictures look like:** [`art/STYLE.md`](../art/STYLE.md). Mark approved it on
|
||||
2026-11-01 (S1–S5 in its §0). The fox and the Phase 2–3 pictures (F1–F4) were approved the same day, with a deep red-orange coat.
|
||||
- **Which pictures exist:** [`art/manifest.json`](../art/manifest.json), in phase order: Phase 1 (the rose and her garden), Phase 2 (the fox, berries, the bush), and the decided Phase 3 pictures (paths, lanterns). The planets wait for their own feature docs.
|
||||
- **The tools:** [`tools/art-prep/`](../tools/art-prep/). It turns those two files into prompts,
|
||||
stand-ins and the board, and moves accepted pictures into `art/final/`.
|
||||
- **The board:** a private claude.ai page, *Rosea Domi Art Board*. It is published from
|
||||
`tools/art-prep/dist/board/`, and Mark works there.
|
||||
|
||||
---
|
||||
|
||||
## 1. The steps
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
style["art/STYLE.md<br/>§1 system prompt, §7 review points"]
|
||||
manifest["art/manifest.json<br/>every picture"]
|
||||
prep["tools/art-prep<br/>pnpm art:board"]
|
||||
board["Art board<br/>(claude.ai, private)"]
|
||||
gen["Mark's image generator"]
|
||||
final["art/final/*.webp"]
|
||||
app["apps/rosea<br/>(Phase 1 onward)"]
|
||||
style --> prep
|
||||
manifest --> prep
|
||||
prep -- "prompts, stand-ins" --> board
|
||||
board -- "copy prompt" --> gen
|
||||
gen -- "paste picture" --> board
|
||||
board -- "accepted: Claude runs pnpm art:accept" --> final
|
||||
final -- "git" --> app
|
||||
```
|
||||
|
||||
1. **Prompt.** `pnpm art:board` builds every prompt from STYLE.md §1 and the manifest. A
|
||||
prompt is never typed by hand, so the rose is described the same way every time. Claude
|
||||
then republishes the board.
|
||||
2. **Make.** Mark copies a prompt into his image generator. He starts with `rose-sheet`, the
|
||||
character sheet, because every rose prompt asks for it as the reference picture.
|
||||
3. **Paste.** Mark pastes or drops the result onto its card. The board measures it at once:
|
||||
its shape, whether the background is transparent, and for a sprite sheet whether each cell
|
||||
holds its own drawing and stays clear of the cut lines.
|
||||
4. **Claude's review.** Claude reads the uploaded picture and checks it against STYLE.md §7
|
||||
and §8: likeness to the book, soul, and painted words. Claude writes the review into the
|
||||
card's row, and it shows on the card as *Claude's review*.
|
||||
5. **Mark's approval.** *Accept* or *Another try*, with an optional note. The note goes into
|
||||
the next prompt for that picture.
|
||||
6. **Into the game.** Claude downloads the accepted picture from the board, runs
|
||||
`pnpm art:accept <id> <file>`, and commits the WebP files on an `art/<set>` branch.
|
||||
`art:accept` cuts sprite sheets apart, checks again and keeps each file within budget
|
||||
(§4). Claude then writes `final` into the row, and the card says *In art/final/*.
|
||||
|
||||
**The Phase 0 gate** is one picture all the way through these six steps (ROADMAP.md, Phase 0).
|
||||
The board starts with `rose-sheet`. The first picture the app will actually show is the app
|
||||
icon.
|
||||
|
||||
## 2. The manifest
|
||||
|
||||
`art/manifest.json` says what is wanted, never whether it is done. Progress lives on the board.
|
||||
Each picture has an id, a kind, the size it is made at, its background, where it is used, and
|
||||
the words its prompt is built from. `tools/art-prep` refuses a manifest with any of these:
|
||||
|
||||
- an id that repeats, or that isn't lower-case words joined by hyphens
|
||||
- a size image generators don't offer
|
||||
- a grid that doesn't match its cells, or doesn't divide the sheet into whole pixels
|
||||
- a character without a sheet
|
||||
- a sprite or layer on a full background
|
||||
- a review point that STYLE.md §7 doesn't have
|
||||
- **any forbidden word or name** from `@rosea/content`, the same list `lint:copy` uses. A prompt
|
||||
that names the book's title, its author or anything in Tolkien never reaches a generator.
|
||||
|
||||
## 3. The board
|
||||
|
||||
The board is the Panda Domi art board, adapted for Rosea. Its source is
|
||||
`tools/art-prep/board/index.html`. `pnpm art:board` fills in the product name from
|
||||
`@rosea/schema` and writes the page, `board-data.json` and the stand-ins to
|
||||
`tools/art-prep/dist/board/`, which is git-ignored.
|
||||
|
||||
- **Stand-ins** are Claude's SVG placeholders from `tools/art-prep/src/placeholders.ts`. They
|
||||
are committed under `art/placeholders/`, and a test fails if they drift from the manifest.
|
||||
- **The board's store** (claude.ai artifact storage) holds one row per picture: the uploaded
|
||||
image's id, its measurements, the status, Mark's note, Claude's review and `final`. Only
|
||||
editors of the board can write.
|
||||
- **All at once:** every picture still to make can go out as one long prompt. Files dropped
|
||||
together are matched to pictures by their names.
|
||||
|
||||
### Decided 2026-11-01: a claude.ai board, not a page on 127.0.0.1
|
||||
|
||||
The roadmap first planned `tools/art-prep` as a page served on 127.0.0.1. Mark asked instead
|
||||
for the board Panda Domi already uses. It works from any device, it keeps the pictures between
|
||||
sessions, and Claude can read it. `tools/art-prep` stays: it builds the board's files and runs
|
||||
the accept step.
|
||||
|
||||
**Privacy.** Only generated art and Mark's notes go to the board. No player data, ever: the
|
||||
app never talks to the board, and pictures reach the app only through git (`art/final/`). The
|
||||
board is private to Mark unless he shares it.
|
||||
|
||||
## 4. The budget per final picture
|
||||
|
||||
Every final picture is precached, so a player downloads all of them once. `art:accept`
|
||||
encodes WebP at quality 82, then 72, then 62, and refuses a picture that is still over its
|
||||
budget.
|
||||
|
||||
| Kind | Budget | Why |
|
||||
|:--|:--|:--|
|
||||
| Garden layer (1024 × 1536) | 350 KB | Four layers: about 1.4 MB, the largest share of the bundle |
|
||||
| Character sheet | 400 KB | A reference only. It is kept in `art/final/` but never shipped |
|
||||
| Single picture, sprite-sheet cell | 120 KB | Small things over the garden |
|
||||
| App icon | 120 KB | Phase 1 also makes the PNG sizes the web manifest needs from it |
|
||||
|
||||
`art:accept` never makes a picture bigger. A picture smaller than its size is kept at its own
|
||||
size, and the step says so.
|
||||
|
||||
## 5. What is not here yet
|
||||
|
||||
- **The app does not show any final picture yet.** Phase 1 builds the rose's screen and swaps
|
||||
the stand-ins for `art/final/` files. The app icon (`apps/rosea/public/icon.svg`) is still a
|
||||
stand-in.
|
||||
- **A likeness check by machine.** Likeness to the book is judged by Claude's review and
|
||||
Mark's eye (STYLE.md §8). No automatic comparison exists.
|
||||
- **Fox, planets and berries.** These are Phase 2. Their pictures join the manifest with the
|
||||
Phase 2 feature docs.
|
||||
@@ -70,6 +70,8 @@ start.
|
||||
- The first **60 sentences** of the library, each sourced and verified public domain.
|
||||
- **Art**: `art/STYLE.md` drafted with Mark, `art/manifest.json` for Phase 1 assets, Claude's SVG
|
||||
placeholders, and the **art preparation page** (`tools/art-prep`) working end to end on one asset.
|
||||
*Decided 2026-11-01:* the art preparation page is a private claude.ai art board, like Panda Domi's;
|
||||
`tools/art-prep` builds its files and moves accepted pictures into `art/final/` (`docs/ART.md` §3).
|
||||
- A slot for *A Letter from the Gardener* — the author writes it; agents only scaffold the page.
|
||||
- **Decision recorded:** how the sunset invitation reaches the player on the web (see the notification
|
||||
trap in `CLAUDE.md` §8). *Decided 2026-11-01:* on the web the invitation lives inside the app only —
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
"test:e2e": "turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.config.ts",
|
||||
"test:offline": "turbo run build --filter=@rosea/app && playwright test --config=e2e/playwright.offline.config.ts",
|
||||
"validate:library": "tsx scripts/validate-library.ts",
|
||||
"lint:copy": "tsx scripts/lint-copy.ts"
|
||||
"lint:copy": "tsx scripts/lint-copy.ts",
|
||||
"art:board": "tsx tools/art-prep/src/cli-board.ts",
|
||||
"art:accept": "tsx tools/art-prep/src/cli-accept.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@axe-core/playwright": "4.13.0",
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export { isLocalDay, localDay, type LocalDay } from './time/localDay.js';
|
||||
export { invitation, sunDay, type Place, type SunDay } from './sun/sun.js';
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
/**
|
||||
* The ONLY place in the repository where the sun is computed (CLAUDE.md §7).
|
||||
*
|
||||
* NOAA's solar calculator, after Meeus, Astronomical Algorithms: the sun's
|
||||
* declination and the equation of time at an instant, then the hour angle at
|
||||
* which the sun's centre is 0.833° below the horizon (refraction plus its
|
||||
* radius). Good to about a minute below 72° latitude.
|
||||
*
|
||||
* Every time returned is an instant (epoch milliseconds). Reading it on a clock
|
||||
* is the app's job, with the city's zone, so a DST change moves only the clock
|
||||
* (.agents/features/sun.md D3). The place is a city the player chose, or a guess
|
||||
* from the device's zone: never GPS (CLAUDE.md §5.6 rule 6).
|
||||
*/
|
||||
import { isLocalDay, localDay, type LocalDay } from '../time/localDay.js';
|
||||
|
||||
export interface Place {
|
||||
/** Degrees, north positive. */
|
||||
readonly lat: number;
|
||||
/** Degrees, east positive. */
|
||||
readonly lon: number;
|
||||
/** IANA zone whose local day is asked about. */
|
||||
readonly timeZone: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* One local day of sun. Sunrise and sunset are the ones around this day's solar
|
||||
* noon, so tonight's sunset may fall after midnight, on the next local day (D2).
|
||||
*/
|
||||
export type SunDay =
|
||||
| { readonly kind: 'sun-sets'; readonly day: LocalDay; readonly sunrise: number; readonly solarNoon: number; readonly sunset: number }
|
||||
/** The sun never sets. `lowestLight` is solar midnight, after this day's noon. */
|
||||
| { readonly kind: 'polar-day'; readonly day: LocalDay; readonly solarNoon: number; readonly lowestLight: number }
|
||||
/** The sun never rises. Solar noon is when the twilight is brightest. */
|
||||
| { readonly kind: 'polar-night'; readonly day: LocalDay; readonly solarNoon: number };
|
||||
|
||||
const MINUTE = 60_000;
|
||||
const DAY = 24 * 60 * MINUTE;
|
||||
const RAD = Math.PI / 180;
|
||||
/** The sun's centre at sunrise and sunset: 0.833° below the horizon. */
|
||||
const ZENITH = 90.833 * RAD;
|
||||
|
||||
interface Sun {
|
||||
/** Radians. */
|
||||
readonly declination: number;
|
||||
/** Minutes the true sun is ahead of the mean sun. */
|
||||
readonly equationOfTime: number;
|
||||
}
|
||||
|
||||
/** The sun's declination and the equation of time at an instant (NOAA). */
|
||||
function sunAt(epochMs: number): Sun {
|
||||
const T = (epochMs / DAY + 2440587.5 - 2451545) / 36525; // Julian centuries since J2000.0
|
||||
const L0 = (((280.46646 + T * (36000.76983 + T * 0.0003032)) % 360) + 360) % 360;
|
||||
const M = 357.52911 + T * (35999.05029 - 0.0001537 * T);
|
||||
const e = 0.016708634 - T * (0.000042037 + 0.0000001267 * T);
|
||||
const C = Math.sin(M * RAD) * (1.914602 - T * (0.004817 + 0.000014 * T))
|
||||
+ Math.sin(2 * M * RAD) * (0.019993 - 0.000101 * T)
|
||||
+ Math.sin(3 * M * RAD) * 0.000289;
|
||||
const omega = 125.04 - 1934.136 * T;
|
||||
const lambda = L0 + C - 0.00569 - 0.00478 * Math.sin(omega * RAD);
|
||||
const eps0 = 23 + (26 + (21.448 - T * (46.815 + T * (0.00059 - T * 0.001813))) / 60) / 60;
|
||||
const eps = (eps0 + 0.00256 * Math.cos(omega * RAD)) * RAD;
|
||||
const y = Math.tan(eps / 2) ** 2;
|
||||
const eq = y * Math.sin(2 * L0 * RAD) - 2 * e * Math.sin(M * RAD)
|
||||
+ 4 * e * y * Math.sin(M * RAD) * Math.cos(2 * L0 * RAD)
|
||||
- 0.5 * y * y * Math.sin(4 * L0 * RAD) - 1.25 * e * e * Math.sin(2 * M * RAD);
|
||||
return { declination: Math.asin(Math.sin(eps) * Math.sin(lambda * RAD)), equationOfTime: (4 * eq) / RAD };
|
||||
}
|
||||
|
||||
/** cos of the hour angle at sunrise and sunset. Above 1: never rises. Below -1: never sets. */
|
||||
function cosHourAngle(lat: number, declination: number): number {
|
||||
return Math.cos(ZENITH) / (Math.cos(lat * RAD) * Math.cos(declination)) - Math.tan(lat * RAD) * Math.tan(declination);
|
||||
}
|
||||
|
||||
/** Solar noon nearest 12:00 mean solar time on the UTC date starting at `utcMidnight`. */
|
||||
function solarNoonOn(utcMidnight: number, lon: number): number {
|
||||
let noon = utcMidnight + (720 - 4 * lon) * MINUTE;
|
||||
for (let i = 0; i < 2; i++) noon = utcMidnight + (720 - 4 * lon - sunAt(noon).equationOfTime) * MINUTE;
|
||||
return noon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sunrise (`side` -1) or sunset (`side` +1) around the solar noon of the UTC date
|
||||
* starting at `utcMidnight`, refined at its own instant. The date is passed in,
|
||||
* never derived from noon: near 180° the noon itself can fall on the next UTC date.
|
||||
* An hour angle out of range, only near the edge of polar day or night, is clamped (D5).
|
||||
*/
|
||||
function horizonCrossing(utcMidnight: number, noon: number, lat: number, lon: number, side: -1 | 1): number {
|
||||
let at = noon;
|
||||
for (let i = 0; i < 4; i++) {
|
||||
const sun = sunAt(at);
|
||||
const H = Math.acos(Math.min(1, Math.max(-1, cosHourAngle(lat, sun.declination)))) / RAD; // degrees
|
||||
// Minutes from this UTC midnight; below 0 or above 1440 is the day before or after.
|
||||
const fromMidnight = 720 - 4 * lon - sun.equationOfTime + side * 4 * H;
|
||||
at = utcMidnight + fromMidnight * MINUTE;
|
||||
}
|
||||
return at;
|
||||
}
|
||||
|
||||
function check(day: LocalDay, place: Place): number {
|
||||
if (!isLocalDay(day)) throw new RangeError(`sunDay: '${day}' is not a LocalDay (YYYY-MM-DD)`);
|
||||
const [y, m, d] = day.split('-').map(Number) as [number, number, number];
|
||||
const utcMidnight = Date.UTC(y, m - 1, d);
|
||||
if (new Date(utcMidnight).getUTCDate() !== d) throw new RangeError(`sunDay: ${day} does not exist`);
|
||||
if (!(Math.abs(place.lat) <= 90)) throw new RangeError(`sunDay: latitude ${place.lat} is outside -90..90`);
|
||||
if (!(Math.abs(place.lon) <= 180)) throw new RangeError(`sunDay: longitude ${place.lon} is outside -180..180`);
|
||||
return utcMidnight;
|
||||
}
|
||||
|
||||
/** The sun on one local day at one place. */
|
||||
export function sunDay(day: LocalDay, place: Place): SunDay {
|
||||
const { lat, lon, timeZone } = place;
|
||||
let utcMidnight = check(day, place);
|
||||
|
||||
// The solar noon that falls on this local day. Zones far from their longitude
|
||||
// (UTC+14 at 157° W) put it on the UTC date before or after. A clock twelve
|
||||
// hours off the sun can leave a day with no noon at all; then the nearest is
|
||||
// used (D8). No real zone is that far off.
|
||||
let solarNoon = solarNoonOn(utcMidnight, lon);
|
||||
for (let i = 0; i < 2; i++) {
|
||||
const on = localDay(solarNoon, timeZone);
|
||||
if (on === day) break;
|
||||
utcMidnight += on < day ? DAY : -DAY;
|
||||
solarNoon = solarNoonOn(utcMidnight, lon);
|
||||
}
|
||||
|
||||
const c = cosHourAngle(lat, sunAt(solarNoon).declination);
|
||||
if (c > 1) return { kind: 'polar-night', day, solarNoon };
|
||||
// Solar midnight: halfway to the next solar noon.
|
||||
if (c < -1) return { kind: 'polar-day', day, solarNoon, lowestLight: (solarNoon + solarNoonOn(utcMidnight + DAY, lon)) / 2 };
|
||||
return {
|
||||
kind: 'sun-sets', day, solarNoon,
|
||||
sunrise: horizonCrossing(utcMidnight, solarNoon, lat, lon, -1),
|
||||
sunset: horizonCrossing(utcMidnight, solarNoon, lat, lon, 1)
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* When the game invites the player outside: the sunset; in polar day the lowest
|
||||
* light; in polar night noon, when the twilight is brightest (D4, an assumption
|
||||
* for the author: Q10).
|
||||
*/
|
||||
export function invitation(sun: SunDay): number {
|
||||
switch (sun.kind) {
|
||||
case 'sun-sets': return sun.sunset;
|
||||
case 'polar-day': return sun.lowestLight;
|
||||
case 'polar-night': return sun.solarNoon;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,342 @@
|
||||
{
|
||||
"source": "https://aa.usno.navy.mil/api/rstt/oneday (U.S. Naval Observatory, Astronomical Applications). Times are HH:MM on the local clock at utcOffset; null means the event does not happen that day.",
|
||||
"recorded": "2026-11-01",
|
||||
"rows": [
|
||||
{
|
||||
"city": "Prague",
|
||||
"lat": 50.0755,
|
||||
"lon": 14.4378,
|
||||
"timeZone": "Europe/Prague",
|
||||
"day": "2026-03-28",
|
||||
"utcOffset": 1,
|
||||
"why": "the day before DST starts",
|
||||
"rise": "05:48",
|
||||
"transit": "12:07",
|
||||
"set": "18:28"
|
||||
},
|
||||
{
|
||||
"city": "Prague",
|
||||
"lat": 50.0755,
|
||||
"lon": 14.4378,
|
||||
"timeZone": "Europe/Prague",
|
||||
"day": "2026-03-29",
|
||||
"utcOffset": 2,
|
||||
"why": "DST starts",
|
||||
"rise": "06:46",
|
||||
"transit": "13:07",
|
||||
"set": "19:29"
|
||||
},
|
||||
{
|
||||
"city": "Prague",
|
||||
"lat": 50.0755,
|
||||
"lon": 14.4378,
|
||||
"timeZone": "Europe/Prague",
|
||||
"day": "2026-06-21",
|
||||
"utcOffset": 2,
|
||||
"why": "midsummer",
|
||||
"rise": "04:53",
|
||||
"transit": "13:04",
|
||||
"set": "21:16"
|
||||
},
|
||||
{
|
||||
"city": "Prague",
|
||||
"lat": 50.0755,
|
||||
"lon": 14.4378,
|
||||
"timeZone": "Europe/Prague",
|
||||
"day": "2026-10-24",
|
||||
"utcOffset": 2,
|
||||
"why": "the day before DST ends",
|
||||
"rise": "07:39",
|
||||
"transit": "12:46",
|
||||
"set": "17:54"
|
||||
},
|
||||
{
|
||||
"city": "Prague",
|
||||
"lat": 50.0755,
|
||||
"lon": 14.4378,
|
||||
"timeZone": "Europe/Prague",
|
||||
"day": "2026-10-25",
|
||||
"utcOffset": 1,
|
||||
"why": "DST ends",
|
||||
"rise": "06:40",
|
||||
"transit": "11:46",
|
||||
"set": "16:52"
|
||||
},
|
||||
{
|
||||
"city": "Prague",
|
||||
"lat": 50.0755,
|
||||
"lon": 14.4378,
|
||||
"timeZone": "Europe/Prague",
|
||||
"day": "2026-12-21",
|
||||
"utcOffset": 1,
|
||||
"why": "midwinter",
|
||||
"rise": "07:58",
|
||||
"transit": "12:00",
|
||||
"set": "16:02"
|
||||
},
|
||||
{
|
||||
"city": "Reykjavík",
|
||||
"lat": 64.1466,
|
||||
"lon": -21.9426,
|
||||
"timeZone": "Atlantic/Reykjavik",
|
||||
"day": "2026-03-20",
|
||||
"utcOffset": 0,
|
||||
"why": "equinox",
|
||||
"rise": "07:29",
|
||||
"transit": "13:35",
|
||||
"set": "19:43"
|
||||
},
|
||||
{
|
||||
"city": "Reykjavík",
|
||||
"lat": 64.1466,
|
||||
"lon": -21.9426,
|
||||
"timeZone": "Atlantic/Reykjavik",
|
||||
"day": "2026-06-21",
|
||||
"utcOffset": 0,
|
||||
"why": "midsummer: a sunset near midnight",
|
||||
"rise": "02:55",
|
||||
"transit": "13:30",
|
||||
"set": "00:04"
|
||||
},
|
||||
{
|
||||
"city": "Reykjavík",
|
||||
"lat": 64.1466,
|
||||
"lon": -21.9426,
|
||||
"timeZone": "Atlantic/Reykjavik",
|
||||
"day": "2026-12-21",
|
||||
"utcOffset": 0,
|
||||
"why": "midwinter: four hours of day",
|
||||
"rise": "11:22",
|
||||
"transit": "13:26",
|
||||
"set": "15:29"
|
||||
},
|
||||
{
|
||||
"city": "Tromsø",
|
||||
"lat": 69.6492,
|
||||
"lon": 18.9553,
|
||||
"timeZone": "Europe/Oslo",
|
||||
"day": "2026-03-29",
|
||||
"utcOffset": 2,
|
||||
"why": "DST starts",
|
||||
"rise": "06:03",
|
||||
"transit": "12:49",
|
||||
"set": "19:37"
|
||||
},
|
||||
{
|
||||
"city": "Tromsø",
|
||||
"lat": 69.6492,
|
||||
"lon": 18.9553,
|
||||
"timeZone": "Europe/Oslo",
|
||||
"day": "2026-06-21",
|
||||
"utcOffset": 2,
|
||||
"why": "polar day",
|
||||
"rise": null,
|
||||
"transit": "12:46",
|
||||
"set": null
|
||||
},
|
||||
{
|
||||
"city": "Tromsø",
|
||||
"lat": 69.6492,
|
||||
"lon": 18.9553,
|
||||
"timeZone": "Europe/Oslo",
|
||||
"day": "2026-10-25",
|
||||
"utcOffset": 1,
|
||||
"why": "DST ends",
|
||||
"rise": "07:38",
|
||||
"transit": "11:28",
|
||||
"set": "15:17"
|
||||
},
|
||||
{
|
||||
"city": "Tromsø",
|
||||
"lat": 69.6492,
|
||||
"lon": 18.9553,
|
||||
"timeZone": "Europe/Oslo",
|
||||
"day": "2026-12-21",
|
||||
"utcOffset": 1,
|
||||
"why": "polar night",
|
||||
"rise": null,
|
||||
"transit": null,
|
||||
"set": null
|
||||
},
|
||||
{
|
||||
"city": "Quito",
|
||||
"lat": -0.1807,
|
||||
"lon": -78.4678,
|
||||
"timeZone": "America/Guayaquil",
|
||||
"day": "2026-03-20",
|
||||
"utcOffset": -5,
|
||||
"why": "equinox on the equator",
|
||||
"rise": "06:18",
|
||||
"transit": "12:21",
|
||||
"set": "18:24"
|
||||
},
|
||||
{
|
||||
"city": "Quito",
|
||||
"lat": -0.1807,
|
||||
"lon": -78.4678,
|
||||
"timeZone": "America/Guayaquil",
|
||||
"day": "2026-06-21",
|
||||
"utcOffset": -5,
|
||||
"why": "June solstice",
|
||||
"rise": "06:12",
|
||||
"transit": "12:16",
|
||||
"set": "18:19"
|
||||
},
|
||||
{
|
||||
"city": "Quito",
|
||||
"lat": -0.1807,
|
||||
"lon": -78.4678,
|
||||
"timeZone": "America/Guayaquil",
|
||||
"day": "2026-12-21",
|
||||
"utcOffset": -5,
|
||||
"why": "December solstice",
|
||||
"rise": "06:08",
|
||||
"transit": "12:12",
|
||||
"set": "18:16"
|
||||
},
|
||||
{
|
||||
"city": "Sydney",
|
||||
"lat": -33.8688,
|
||||
"lon": 151.2093,
|
||||
"timeZone": "Australia/Sydney",
|
||||
"day": "2026-04-04",
|
||||
"utcOffset": 11,
|
||||
"why": "the day before DST ends",
|
||||
"rise": "07:09",
|
||||
"transit": "12:58",
|
||||
"set": "18:47"
|
||||
},
|
||||
{
|
||||
"city": "Sydney",
|
||||
"lat": -33.8688,
|
||||
"lon": 151.2093,
|
||||
"timeZone": "Australia/Sydney",
|
||||
"day": "2026-04-05",
|
||||
"utcOffset": 10,
|
||||
"why": "DST ends",
|
||||
"rise": "06:10",
|
||||
"transit": "11:58",
|
||||
"set": "17:45"
|
||||
},
|
||||
{
|
||||
"city": "Sydney",
|
||||
"lat": -33.8688,
|
||||
"lon": 151.2093,
|
||||
"timeZone": "Australia/Sydney",
|
||||
"day": "2026-06-21",
|
||||
"utcOffset": 10,
|
||||
"why": "midwinter",
|
||||
"rise": "07:00",
|
||||
"transit": "11:57",
|
||||
"set": "16:54"
|
||||
},
|
||||
{
|
||||
"city": "Sydney",
|
||||
"lat": -33.8688,
|
||||
"lon": 151.2093,
|
||||
"timeZone": "Australia/Sydney",
|
||||
"day": "2026-10-03",
|
||||
"utcOffset": 10,
|
||||
"why": "the day before DST starts",
|
||||
"rise": "05:30",
|
||||
"transit": "11:44",
|
||||
"set": "17:59"
|
||||
},
|
||||
{
|
||||
"city": "Sydney",
|
||||
"lat": -33.8688,
|
||||
"lon": 151.2093,
|
||||
"timeZone": "Australia/Sydney",
|
||||
"day": "2026-10-04",
|
||||
"utcOffset": 11,
|
||||
"why": "DST starts",
|
||||
"rise": "06:29",
|
||||
"transit": "12:44",
|
||||
"set": "19:00"
|
||||
},
|
||||
{
|
||||
"city": "Sydney",
|
||||
"lat": -33.8688,
|
||||
"lon": 151.2093,
|
||||
"timeZone": "Australia/Sydney",
|
||||
"day": "2026-12-21",
|
||||
"utcOffset": 11,
|
||||
"why": "midsummer",
|
||||
"rise": "05:41",
|
||||
"transit": "12:53",
|
||||
"set": "20:05"
|
||||
},
|
||||
{
|
||||
"city": "Anchorage",
|
||||
"lat": 61.2181,
|
||||
"lon": -149.9003,
|
||||
"timeZone": "America/Anchorage",
|
||||
"day": "2026-03-07",
|
||||
"utcOffset": -9,
|
||||
"why": "the day before DST starts",
|
||||
"rise": "07:41",
|
||||
"transit": "13:10",
|
||||
"set": "18:41"
|
||||
},
|
||||
{
|
||||
"city": "Anchorage",
|
||||
"lat": 61.2181,
|
||||
"lon": -149.9003,
|
||||
"timeZone": "America/Anchorage",
|
||||
"day": "2026-03-08",
|
||||
"utcOffset": -8,
|
||||
"why": "DST starts",
|
||||
"rise": "08:38",
|
||||
"transit": "14:10",
|
||||
"set": "19:44"
|
||||
},
|
||||
{
|
||||
"city": "Anchorage",
|
||||
"lat": 61.2181,
|
||||
"lon": -149.9003,
|
||||
"timeZone": "America/Anchorage",
|
||||
"day": "2026-06-21",
|
||||
"utcOffset": -8,
|
||||
"why": "midsummer",
|
||||
"rise": "04:20",
|
||||
"transit": "14:02",
|
||||
"set": "23:43"
|
||||
},
|
||||
{
|
||||
"city": "Anchorage",
|
||||
"lat": 61.2181,
|
||||
"lon": -149.9003,
|
||||
"timeZone": "America/Anchorage",
|
||||
"day": "2026-10-31",
|
||||
"utcOffset": -8,
|
||||
"why": "the day before DST ends",
|
||||
"rise": "09:26",
|
||||
"transit": "13:43",
|
||||
"set": "18:00"
|
||||
},
|
||||
{
|
||||
"city": "Anchorage",
|
||||
"lat": 61.2181,
|
||||
"lon": -149.9003,
|
||||
"timeZone": "America/Anchorage",
|
||||
"day": "2026-11-01",
|
||||
"utcOffset": -9,
|
||||
"why": "DST ends",
|
||||
"rise": "08:28",
|
||||
"transit": "12:43",
|
||||
"set": "16:57"
|
||||
},
|
||||
{
|
||||
"city": "Anchorage",
|
||||
"lat": 61.2181,
|
||||
"lon": -149.9003,
|
||||
"timeZone": "America/Anchorage",
|
||||
"day": "2026-12-21",
|
||||
"utcOffset": -9,
|
||||
"why": "midwinter",
|
||||
"rise": "10:14",
|
||||
"transit": "12:58",
|
||||
"set": "15:41"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
import { ESLint } from 'eslint';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { beforeAll, describe, expect, it } from 'vitest';
|
||||
|
||||
const repoRoot = fileURLToPath(new URL('../../..', import.meta.url));
|
||||
const eslint = new ESLint({ cwd: repoRoot });
|
||||
@@ -42,6 +42,12 @@ const IMPURE: readonly [what: string, code: string][] = [
|
||||
];
|
||||
|
||||
describe('engine purity lint rule', () => {
|
||||
// The first lint loads the config and typescript-eslint. On a busy machine that
|
||||
// alone took over vitest's 5 s, failing whichever case ran first. Pay it here.
|
||||
beforeAll(async () => {
|
||||
await messages('export {};', ENGINE_FILE);
|
||||
}, 60_000);
|
||||
|
||||
it.each(IMPURE)('reports %s inside packages/engine/src', async (_what, code) => {
|
||||
const found = await messages(code, ENGINE_FILE);
|
||||
expect(found.filter((m) => m.startsWith('fatal')), 'snippet must parse').toEqual([]);
|
||||
|
||||
@@ -0,0 +1,219 @@
|
||||
import fc from 'fast-check';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { invitation, sunDay, type Place, type SunDay } from '../src/sun/sun.js';
|
||||
import { localDay } from '../src/time/localDay.js';
|
||||
|
||||
/** Recorded by scripts/fetch-sun-golden.ts from the U.S. Naval Observatory. */
|
||||
interface Row {
|
||||
readonly city: string;
|
||||
readonly lat: number;
|
||||
readonly lon: number;
|
||||
readonly timeZone: string;
|
||||
readonly day: string;
|
||||
readonly utcOffset: number;
|
||||
readonly why: string;
|
||||
readonly rise: string | null;
|
||||
readonly transit: string | null;
|
||||
readonly set: string | null;
|
||||
}
|
||||
const golden = JSON.parse(readFileSync(new URL('./fixtures/sun-usno.json', import.meta.url), 'utf8')) as { rows: Row[] };
|
||||
|
||||
/** The almanac rounds to the minute, and NOAA's method is good to about a minute below 72°. */
|
||||
const TOLERANCE_MINUTES = 2;
|
||||
const MINUTE = 60_000;
|
||||
const HOUR = 60 * MINUTE;
|
||||
|
||||
const clocks = new Map<string, Intl.DateTimeFormat>();
|
||||
/** Minutes after midnight on the local clock of `timeZone`: what a person there reads. */
|
||||
function clock(epochMs: number, timeZone: string): number {
|
||||
let f = clocks.get(timeZone);
|
||||
if (!f) {
|
||||
f = new Intl.DateTimeFormat('en-GB', { timeZone, hour: '2-digit', minute: '2-digit', second: '2-digit', hourCycle: 'h23' });
|
||||
clocks.set(timeZone, f);
|
||||
}
|
||||
const p = Object.fromEntries(f.formatToParts(epochMs).map((x) => [x.type, x.value]));
|
||||
return Number(p.hour) * 60 + Number(p.minute) + Number(p.second) / 60;
|
||||
}
|
||||
const minutes = (hhmm: string): number => Number(hhmm.slice(0, 2)) * 60 + Number(hhmm.slice(3));
|
||||
/** The shortest way round the clock face, so 23:59 and 00:01 are 2 minutes apart. */
|
||||
const apart = (a: number, b: number): number => Math.min(Math.abs(a - b), 1440 - Math.abs(a - b));
|
||||
|
||||
function offsetHours(epochMs: number, timeZone: string): number {
|
||||
const name = new Intl.DateTimeFormat('en-US', { timeZone, timeZoneName: 'longOffset' }).formatToParts(epochMs).find((p) => p.type === 'timeZoneName')?.value ?? '';
|
||||
const m = /GMT([+-])(\d\d):(\d\d)/.exec(name);
|
||||
return m ? (m[1] === '-' ? -1 : 1) * (Number(m[2]) + Number(m[3]) / 60) : 0;
|
||||
}
|
||||
|
||||
const placeOf = (r: Row): Place => ({ lat: r.lat, lon: r.lon, timeZone: r.timeZone });
|
||||
const UTC = (lat: number, lon: number): Place => ({ lat, lon, timeZone: 'UTC' });
|
||||
/**
|
||||
* A place whose clock follows its longitude, as real zones roughly do. Etc/GMT
|
||||
* signs are inverted: Etc/GMT-5 is UTC+5.
|
||||
*/
|
||||
const zoned = (lat: number, lon: number): Place => {
|
||||
const offset = Math.round(lon / 15);
|
||||
return { lat, lon, timeZone: offset === 0 ? 'Etc/GMT' : `Etc/GMT${offset > 0 ? '-' : '+'}${Math.abs(offset)}` };
|
||||
};
|
||||
|
||||
describe('sunDay — golden, against the U.S. Naval Observatory tables', () => {
|
||||
it('the fixture covers six cities, both hemispheres, the equator, the Arctic and every DST change it names', () => {
|
||||
expect(new Set(golden.rows.map((r) => r.city))).toEqual(new Set(['Prague', 'Reykjavík', 'Tromsø', 'Quito', 'Sydney', 'Anchorage']));
|
||||
expect(golden.rows.filter((r) => /DST (starts|ends)/.test(r.why) && !r.why.startsWith('the day before'))).toHaveLength(8);
|
||||
});
|
||||
|
||||
const sunny = golden.rows.filter((r) => r.rise !== null && r.set !== null);
|
||||
it.each(sunny.map((r) => [r.city, r.day, r.why, r] as const))('%s %s (%s): rise, noon and set within 2 min, on the local clock', (_c, _d, _w, r) => {
|
||||
const s = sunDay(r.day, placeOf(r));
|
||||
if (s.kind !== 'sun-sets') throw new Error(`expected a sunset, got ${s.kind}`);
|
||||
// The table and the zone database agree about the clock that day.
|
||||
expect(offsetHours(s.solarNoon, r.timeZone)).toBe(r.utcOffset);
|
||||
expect(apart(clock(s.sunrise, r.timeZone), minutes(r.rise ?? ''))).toBeLessThanOrEqual(TOLERANCE_MINUTES);
|
||||
expect(apart(clock(s.solarNoon, r.timeZone), minutes(r.transit ?? ''))).toBeLessThanOrEqual(TOLERANCE_MINUTES);
|
||||
expect(apart(clock(s.sunset, r.timeZone), minutes(r.set ?? ''))).toBeLessThanOrEqual(TOLERANCE_MINUTES);
|
||||
expect(localDay(s.solarNoon, r.timeZone)).toBe(r.day);
|
||||
});
|
||||
|
||||
it('Reykjavík at midsummer: tonight\'s sunset falls after midnight, so it is on the next local day (D2)', () => {
|
||||
const r = golden.rows.find((x) => x.city === 'Reykjavík' && x.day === '2026-06-21');
|
||||
const s = sunDay('2026-06-21', placeOf(r!));
|
||||
if (s.kind !== 'sun-sets') throw new Error(s.kind);
|
||||
// The table lists 00:04 on the 21st: that is the evening of the 20th. Ours is the evening of the 21st.
|
||||
expect(localDay(s.sunset, 'Atlantic/Reykjavik')).toBe('2026-06-22');
|
||||
expect(s.sunset - s.solarNoon).toBeGreaterThan(10 * HOUR);
|
||||
});
|
||||
|
||||
it('Tromsø: polar day on 21 June, polar night on 21 December, as the table says', () => {
|
||||
const tromso = golden.rows.filter((r) => r.city === 'Tromsø');
|
||||
const june = tromso.find((r) => r.day === '2026-06-21')!;
|
||||
const december = tromso.find((r) => r.day === '2026-12-21')!;
|
||||
expect([june.rise, june.set, december.rise, december.set]).toEqual([null, null, null, null]);
|
||||
|
||||
const summer = sunDay(june.day, placeOf(june));
|
||||
expect(summer.kind).toBe('polar-day');
|
||||
expect(apart(clock(summer.solarNoon, june.timeZone), minutes(june.transit ?? ''))).toBeLessThanOrEqual(TOLERANCE_MINUTES);
|
||||
expect(sunDay(december.day, placeOf(december)).kind).toBe('polar-night');
|
||||
});
|
||||
});
|
||||
|
||||
describe('sunDay — the clock changes, the sun does not', () => {
|
||||
it('Prague, 29 March: the sunset on the clock jumps an hour, the instant moves about a day', () => {
|
||||
const prague: Place = { lat: 50.0755, lon: 14.4378, timeZone: 'Europe/Prague' };
|
||||
const before = sunDay('2026-03-28', prague);
|
||||
const after = sunDay('2026-03-29', prague);
|
||||
if (before.kind !== 'sun-sets' || after.kind !== 'sun-sets') throw new Error('expected sunsets');
|
||||
const moved = after.sunset - before.sunset;
|
||||
expect(Math.abs(moved - 24 * HOUR)).toBeLessThan(3 * MINUTE); // the sun: a minute or two
|
||||
const onTheClock = clock(after.sunset, prague.timeZone) - clock(before.sunset, prague.timeZone);
|
||||
expect(onTheClock).toBeGreaterThan(58);
|
||||
expect(onTheClock).toBeLessThan(63); // the clock: an hour
|
||||
});
|
||||
|
||||
it('Sydney, 5 April: the clocks go back, and the sunset on the clock comes an hour earlier', () => {
|
||||
const sydney: Place = { lat: -33.8688, lon: 151.2093, timeZone: 'Australia/Sydney' };
|
||||
const before = sunDay('2026-04-04', sydney);
|
||||
const after = sunDay('2026-04-05', sydney);
|
||||
if (before.kind !== 'sun-sets' || after.kind !== 'sun-sets') throw new Error('expected sunsets');
|
||||
const onTheClock = clock(after.sunset, sydney.timeZone) - clock(before.sunset, sydney.timeZone);
|
||||
expect(onTheClock).toBeLessThan(-58);
|
||||
expect(onTheClock).toBeGreaterThan(-63);
|
||||
});
|
||||
});
|
||||
|
||||
describe('sunDay — properties', () => {
|
||||
const days2026 = fc.integer({ min: 0, max: 364 }).map((n) => localDay(Date.UTC(2026, 0, 1) + n * 24 * HOUR, 'UTC'));
|
||||
const midLatitudes = fc.double({ min: -60, max: 60, noNaN: true });
|
||||
const longitudes = fc.double({ min: -180, max: 180, noNaN: true });
|
||||
|
||||
it('within ±60°, at any longitude with its own clock: sunrise before noon before sunset, noon midway, noon on the asked day', () => {
|
||||
fc.assert(fc.property(midLatitudes, longitudes, days2026, (lat, lon, day) => {
|
||||
const place = zoned(lat, lon);
|
||||
const s = sunDay(day, place);
|
||||
if (s.kind !== 'sun-sets') return false;
|
||||
const morning = s.solarNoon - s.sunrise;
|
||||
const afternoon = s.sunset - s.solarNoon;
|
||||
return s.sunrise < s.solarNoon && s.solarNoon < s.sunset
|
||||
&& Math.abs(morning - afternoon) < 2 * MINUTE
|
||||
&& s.sunset - s.sunrise < 24 * HOUR
|
||||
&& localDay(s.solarNoon, place.timeZone) === day;
|
||||
}), { numRuns: 500 });
|
||||
});
|
||||
|
||||
it('within ±60°, sunsets on consecutive days are never more than 5 minutes apart on the sun\'s own clock', () => {
|
||||
fc.assert(fc.property(midLatitudes, longitudes, fc.integer({ min: 0, max: 363 }), (lat, lon, n) => {
|
||||
const day = (k: number): string => localDay(Date.UTC(2026, 0, 1) + k * 24 * HOUR, 'UTC');
|
||||
const a = sunDay(day(n), zoned(lat, lon));
|
||||
const b = sunDay(day(n + 1), zoned(lat, lon));
|
||||
if (a.kind !== 'sun-sets' || b.kind !== 'sun-sets') return false;
|
||||
return Math.abs(b.sunset - a.sunset - 24 * HOUR) < 5 * MINUTE;
|
||||
}), { numRuns: 300 });
|
||||
});
|
||||
|
||||
it('the invitation is always a defined instant near the asked day, for every latitude', () => {
|
||||
fc.assert(fc.property(fc.double({ min: -90, max: 90, noNaN: true }), longitudes, days2026, (lat, lon, day) => {
|
||||
const s = sunDay(day, UTC(lat, lon));
|
||||
const at = invitation(s);
|
||||
return Number.isFinite(at) && at >= s.solarNoon - 12 * HOUR && at <= s.solarNoon + 24 * HOUR;
|
||||
}), { numRuns: 500 });
|
||||
});
|
||||
});
|
||||
|
||||
describe('sunDay — the far north and south (D4)', () => {
|
||||
it.each([
|
||||
[80, '2026-06-21', 'polar-day'], [80, '2026-12-21', 'polar-night'],
|
||||
[-80, '2026-06-21', 'polar-night'], [-80, '2026-12-21', 'polar-day'],
|
||||
[90, '2026-06-21', 'polar-day'], [-90, '2026-06-21', 'polar-night']
|
||||
] as const)('latitude %s on %s is %s', (lat, day, kind) => {
|
||||
expect(sunDay(day, UTC(lat, 0)).kind).toBe(kind);
|
||||
});
|
||||
|
||||
it('polar day invites at the lowest light, about twelve hours after noon; polar night at noon, when the twilight is brightest', () => {
|
||||
const summer = sunDay('2026-06-21', UTC(80, 15));
|
||||
if (summer.kind !== 'polar-day') throw new Error(summer.kind);
|
||||
expect(invitation(summer)).toBe(summer.lowestLight);
|
||||
expect(Math.abs(summer.lowestLight - summer.solarNoon - 12 * HOUR)).toBeLessThan(MINUTE);
|
||||
const winter = sunDay('2026-12-21', UTC(80, 15));
|
||||
expect(invitation(winter)).toBe(winter.solarNoon);
|
||||
});
|
||||
|
||||
it('where the sun sets, the invitation is the sunset', () => {
|
||||
const s: SunDay = sunDay('2026-06-21', { lat: 50.0755, lon: 14.4378, timeZone: 'Europe/Prague' });
|
||||
if (s.kind !== 'sun-sets') throw new Error(s.kind);
|
||||
expect(invitation(s)).toBe(s.sunset);
|
||||
});
|
||||
});
|
||||
|
||||
describe('sunDay — the edges of the clock face', () => {
|
||||
it('Kiritimati, UTC+14 at 157° W: noon falls on the next UTC date, and is still on the asked local day', () => {
|
||||
const kiritimati: Place = { lat: 1.87, lon: -157.4, timeZone: 'Pacific/Kiritimati' };
|
||||
for (const day of ['2026-01-01', '2026-06-21', '2026-12-31']) {
|
||||
const s = sunDay(day, kiritimati);
|
||||
expect(localDay(s.solarNoon, kiritimati.timeZone)).toBe(day);
|
||||
expect(localDay(s.solarNoon, 'UTC') < day).toBe(true); // UTC is still on the day before
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('sunDay — a clock twelve hours off the sun (D8)', () => {
|
||||
it('at 179.9° W on UTC, 26 December has no solar noon of its own; the engine gives the nearest one, never throws', () => {
|
||||
// Found by fast-check. Solar noon sits at midnight there and crosses it in late
|
||||
// December, so one calendar day holds none. No real zone is this far off the sun.
|
||||
const place = UTC(0, -179.92);
|
||||
const noons = ['2026-12-25', '2026-12-26', '2026-12-27'].map((d) => sunDay(d, place).solarNoon);
|
||||
expect(noons.map((n) => localDay(n, 'UTC'))).toEqual(['2026-12-25', '2026-12-27', '2026-12-27']);
|
||||
for (const n of noons) expect(Math.abs(n - Date.UTC(2026, 11, 26, 24))).toBeLessThan(25 * HOUR);
|
||||
});
|
||||
});
|
||||
|
||||
describe('sunDay — refusals', () => {
|
||||
it.each([
|
||||
['2026-02-30', UTC(50, 14), /does not exist/],
|
||||
['2026-6-1', UTC(50, 14), /not a LocalDay/],
|
||||
['2026-06-21', UTC(91, 14), /latitude/],
|
||||
['2026-06-21', UTC(50, 181), /longitude/],
|
||||
['2026-06-21', UTC(Number.NaN, 14), /latitude/],
|
||||
['2026-06-21', { lat: 50, lon: 14, timeZone: 'Europe/Pargue' }, /time zone/i]
|
||||
] as const)('%s at %o', (day, place, message) => {
|
||||
expect(() => sunDay(day, place)).toThrow(message);
|
||||
});
|
||||
});
|
||||
@@ -167,6 +167,28 @@ importers:
|
||||
specifier: 3.2.7
|
||||
version: 3.2.7(@types/node@22.20.1)(jsdom@25.0.1)(terser@5.51.2)(tsx@4.23.12)
|
||||
|
||||
tools/art-prep:
|
||||
dependencies:
|
||||
'@rosea/content':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/content
|
||||
'@rosea/schema':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/schema
|
||||
sharp:
|
||||
specifier: 0.34.4
|
||||
version: 0.34.4
|
||||
devDependencies:
|
||||
'@types/node':
|
||||
specifier: 22.20.1
|
||||
version: 22.20.1
|
||||
typescript:
|
||||
specifier: 5.9.3
|
||||
version: 5.9.3
|
||||
vitest:
|
||||
specifier: 3.2.7
|
||||
version: 3.2.7(@types/node@22.20.1)(jsdom@25.0.1)(terser@5.51.2)(tsx@4.23.12)
|
||||
|
||||
packages:
|
||||
|
||||
'@apideck/better-ajv-errors@0.3.7':
|
||||
@@ -716,6 +738,9 @@ packages:
|
||||
resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
'@emnapi/runtime@1.11.3':
|
||||
resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==}
|
||||
|
||||
'@esbuild/aix-ppc64@0.25.12':
|
||||
resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==}
|
||||
engines: {node: '>=18'}
|
||||
@@ -1086,6 +1111,132 @@ packages:
|
||||
resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
|
||||
engines: {node: '>=18.18'}
|
||||
|
||||
'@img/colour@1.1.0':
|
||||
resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
'@img/sharp-darwin-arm64@0.34.4':
|
||||
resolution: {integrity: sha512-sitdlPzDVyvmINUdJle3TNHl+AG9QcwiAMsXmccqsCOMZNIdW2/7S26w0LyU8euiLVzFBL3dXPwVCq/ODnf2vA==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@img/sharp-darwin-x64@0.34.4':
|
||||
resolution: {integrity: sha512-rZheupWIoa3+SOdF/IcUe1ah4ZDpKBGWcsPX6MT0lYniH9micvIU7HQkYTfrx5Xi8u+YqwLtxC/3vl8TQN6rMg==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@img/sharp-libvips-darwin-arm64@1.2.3':
|
||||
resolution: {integrity: sha512-QzWAKo7kpHxbuHqUC28DZ9pIKpSi2ts2OJnoIGI26+HMgq92ZZ4vk8iJd4XsxN+tYfNJxzH6W62X5eTcsBymHw==}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@img/sharp-libvips-darwin-x64@1.2.3':
|
||||
resolution: {integrity: sha512-Ju+g2xn1E2AKO6YBhxjj+ACcsPQRHT0bhpglxcEf+3uyPY+/gL8veniKoo96335ZaPo03bdDXMv0t+BBFAbmRA==}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@img/sharp-libvips-linux-arm64@1.2.3':
|
||||
resolution: {integrity: sha512-I4RxkXU90cpufazhGPyVujYwfIm9Nk1QDEmiIsaPwdnm013F7RIceaCc87kAH+oUB1ezqEvC6ga4m7MSlqsJvQ==}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-libvips-linux-arm@1.2.3':
|
||||
resolution: {integrity: sha512-x1uE93lyP6wEwGvgAIV0gP6zmaL/a0tGzJs/BIDDG0zeBhMnuUPm7ptxGhUbcGs4okDJrk4nxgrmxpib9g6HpA==}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-libvips-linux-ppc64@1.2.3':
|
||||
resolution: {integrity: sha512-Y2T7IsQvJLMCBM+pmPbM3bKT/yYJvVtLJGfCs4Sp95SjvnFIjynbjzsa7dY1fRJX45FTSfDksbTp6AGWudiyCg==}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-libvips-linux-s390x@1.2.3':
|
||||
resolution: {integrity: sha512-RgWrs/gVU7f+K7P+KeHFaBAJlNkD1nIZuVXdQv6S+fNA6syCcoboNjsV2Pou7zNlVdNQoQUpQTk8SWDHUA3y/w==}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-libvips-linux-x64@1.2.3':
|
||||
resolution: {integrity: sha512-3JU7LmR85K6bBiRzSUc/Ff9JBVIFVvq6bomKE0e63UXGeRw2HPVEjoJke1Yx+iU4rL7/7kUjES4dZ/81Qjhyxg==}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-libvips-linuxmusl-arm64@1.2.3':
|
||||
resolution: {integrity: sha512-F9q83RZ8yaCwENw1GieztSfj5msz7GGykG/BA+MOUefvER69K/ubgFHNeSyUu64amHIYKGDs4sRCMzXVj8sEyw==}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-libvips-linuxmusl-x64@1.2.3':
|
||||
resolution: {integrity: sha512-U5PUY5jbc45ANM6tSJpsgqmBF/VsL6LnxJmIf11kB7J5DctHgqm0SkuXzVWtIY90GnJxKnC/JT251TDnk1fu/g==}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-linux-arm64@0.34.4':
|
||||
resolution: {integrity: sha512-YXU1F/mN/Wu786tl72CyJjP/Ngl8mGHN1hST4BGl+hiW5jhCnV2uRVTNOcaYPs73NeT/H8Upm3y9582JVuZHrQ==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-linux-arm@0.34.4':
|
||||
resolution: {integrity: sha512-Xyam4mlqM0KkTHYVSuc6wXRmM7LGN0P12li03jAnZ3EJWZqj83+hi8Y9UxZUbxsgsK1qOEwg7O0Bc0LjqQVtxA==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-linux-ppc64@0.34.4':
|
||||
resolution: {integrity: sha512-F4PDtF4Cy8L8hXA2p3TO6s4aDt93v+LKmpcYFLAVdkkD3hSxZzee0rh6/+94FpAynsuMpLX5h+LRsSG3rIciUQ==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-linux-s390x@0.34.4':
|
||||
resolution: {integrity: sha512-qVrZKE9Bsnzy+myf7lFKvng6bQzhNUAYcVORq2P7bDlvmF6u2sCmK2KyEQEBdYk+u3T01pVsPrkj943T1aJAsw==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-linux-x64@0.34.4':
|
||||
resolution: {integrity: sha512-ZfGtcp2xS51iG79c6Vhw9CWqQC8l2Ot8dygxoDoIQPTat/Ov3qAa8qpxSrtAEAJW+UjTXc4yxCjNfxm4h6Xm2A==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-linuxmusl-arm64@0.34.4':
|
||||
resolution: {integrity: sha512-8hDVvW9eu4yHWnjaOOR8kHVrew1iIX+MUgwxSuH2XyYeNRtLUe4VNioSqbNkB7ZYQJj9rUTT4PyRscyk2PXFKA==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-linuxmusl-x64@0.34.4':
|
||||
resolution: {integrity: sha512-lU0aA5L8QTlfKjpDCEFOZsTYGn3AEiO6db8W5aQDxj0nQkVrZWmN3ZP9sYKWJdtq3PWPhUNlqehWyXpYDcI9Sg==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
|
||||
'@img/sharp-wasm32@0.34.4':
|
||||
resolution: {integrity: sha512-33QL6ZO/qpRyG7woB/HUALz28WnTMI2W1jgX3Nu2bypqLIKx/QKMILLJzJjI+SIbvXdG9fUnmrxR7vbi1sTBeA==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [wasm32]
|
||||
|
||||
'@img/sharp-win32-arm64@0.34.4':
|
||||
resolution: {integrity: sha512-2Q250do/5WXTwxW3zjsEuMSv5sUU4Tq9VThWKlU2EYLm4MB7ZeMwF+SFJutldYODXF6jzc6YEOC+VfX0SZQPqA==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@img/sharp-win32-ia32@0.34.4':
|
||||
resolution: {integrity: sha512-3ZeLue5V82dT92CNL6rsal6I2weKw1cYu+rGKm8fOCCtJTR2gYeUfY3FqUnIJsMUPIH68oS5jmZ0NiJ508YpEw==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [ia32]
|
||||
os: [win32]
|
||||
|
||||
'@img/sharp-win32-x64@0.34.4':
|
||||
resolution: {integrity: sha512-xIyj4wpYs8J18sVN3mSQjwrw7fKUqRw+Z5rnHNCy5fYTxigBz81u5mOMPmFumwjcn8+ld1ppptMBCLic1nz6ig==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
|
||||
'@isaacs/cliui@9.0.0':
|
||||
resolution: {integrity: sha512-AokJm4tuBHillT+FpMtxQ60n8ObyXBatq7jD2/JA9dxbDDokKQm8KMht5ibGzLVU9IJDIKK4TPKgMHEYMn3lMg==}
|
||||
engines: {node: '>=18'}
|
||||
@@ -1766,6 +1917,10 @@ packages:
|
||||
resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
detect-libc@2.1.2:
|
||||
resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
|
||||
engines: {node: '>=8'}
|
||||
|
||||
devalue@5.9.4:
|
||||
resolution: {integrity: sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg==}
|
||||
|
||||
@@ -2661,6 +2816,10 @@ packages:
|
||||
resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
sharp@0.34.4:
|
||||
resolution: {integrity: sha512-FUH39xp3SBPnxWvd5iib1X8XY7J0K0X7d93sie9CJg2PO8/7gmg89Nve6OjItK53/MlAushNNxteBYfM6DEuoA==}
|
||||
engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
|
||||
|
||||
shebang-command@2.0.0:
|
||||
resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
|
||||
engines: {node: '>=8'}
|
||||
@@ -2840,6 +2999,9 @@ packages:
|
||||
peerDependencies:
|
||||
typescript: '>=4.8.4'
|
||||
|
||||
tslib@2.9.1:
|
||||
resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==}
|
||||
|
||||
tsx@4.23.12:
|
||||
resolution: {integrity: sha512-FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==}
|
||||
engines: {node: '>=18.0.0'}
|
||||
@@ -3868,6 +4030,11 @@ snapshots:
|
||||
|
||||
'@csstools/css-tokenizer@3.0.4': {}
|
||||
|
||||
'@emnapi/runtime@1.11.3':
|
||||
dependencies:
|
||||
tslib: 2.9.1
|
||||
optional: true
|
||||
|
||||
'@esbuild/aix-ppc64@0.25.12':
|
||||
optional: true
|
||||
|
||||
@@ -4086,6 +4253,94 @@ snapshots:
|
||||
|
||||
'@humanwhocodes/retry@0.4.3': {}
|
||||
|
||||
'@img/colour@1.1.0': {}
|
||||
|
||||
'@img/sharp-darwin-arm64@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-darwin-arm64': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-darwin-x64@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-darwin-x64': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-darwin-arm64@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-darwin-x64@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-linux-arm64@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-linux-arm@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-linux-ppc64@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-linux-s390x@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-linux-x64@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-linuxmusl-arm64@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-libvips-linuxmusl-x64@1.2.3':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-linux-arm64@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-linux-arm64': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-linux-arm@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-linux-arm': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-linux-ppc64@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-linux-ppc64': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-linux-s390x@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-linux-s390x': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-linux-x64@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-linux-x64': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-linuxmusl-arm64@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-linuxmusl-arm64': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-linuxmusl-x64@0.34.4':
|
||||
optionalDependencies:
|
||||
'@img/sharp-libvips-linuxmusl-x64': 1.2.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-wasm32@0.34.4':
|
||||
dependencies:
|
||||
'@emnapi/runtime': 1.11.3
|
||||
optional: true
|
||||
|
||||
'@img/sharp-win32-arm64@0.34.4':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-win32-ia32@0.34.4':
|
||||
optional: true
|
||||
|
||||
'@img/sharp-win32-x64@0.34.4':
|
||||
optional: true
|
||||
|
||||
'@isaacs/cliui@9.0.0': {}
|
||||
|
||||
'@jridgewell/gen-mapping@0.3.13':
|
||||
@@ -4731,6 +4986,8 @@ snapshots:
|
||||
|
||||
dequal@2.0.3: {}
|
||||
|
||||
detect-libc@2.1.2: {}
|
||||
|
||||
devalue@5.9.4: {}
|
||||
|
||||
dom-accessibility-api@0.5.16: {}
|
||||
@@ -5763,6 +6020,35 @@ snapshots:
|
||||
es-errors: 1.3.0
|
||||
es-object-atoms: 1.1.2
|
||||
|
||||
sharp@0.34.4:
|
||||
dependencies:
|
||||
'@img/colour': 1.1.0
|
||||
detect-libc: 2.1.2
|
||||
semver: 7.8.5
|
||||
optionalDependencies:
|
||||
'@img/sharp-darwin-arm64': 0.34.4
|
||||
'@img/sharp-darwin-x64': 0.34.4
|
||||
'@img/sharp-libvips-darwin-arm64': 1.2.3
|
||||
'@img/sharp-libvips-darwin-x64': 1.2.3
|
||||
'@img/sharp-libvips-linux-arm': 1.2.3
|
||||
'@img/sharp-libvips-linux-arm64': 1.2.3
|
||||
'@img/sharp-libvips-linux-ppc64': 1.2.3
|
||||
'@img/sharp-libvips-linux-s390x': 1.2.3
|
||||
'@img/sharp-libvips-linux-x64': 1.2.3
|
||||
'@img/sharp-libvips-linuxmusl-arm64': 1.2.3
|
||||
'@img/sharp-libvips-linuxmusl-x64': 1.2.3
|
||||
'@img/sharp-linux-arm': 0.34.4
|
||||
'@img/sharp-linux-arm64': 0.34.4
|
||||
'@img/sharp-linux-ppc64': 0.34.4
|
||||
'@img/sharp-linux-s390x': 0.34.4
|
||||
'@img/sharp-linux-x64': 0.34.4
|
||||
'@img/sharp-linuxmusl-arm64': 0.34.4
|
||||
'@img/sharp-linuxmusl-x64': 0.34.4
|
||||
'@img/sharp-wasm32': 0.34.4
|
||||
'@img/sharp-win32-arm64': 0.34.4
|
||||
'@img/sharp-win32-ia32': 0.34.4
|
||||
'@img/sharp-win32-x64': 0.34.4
|
||||
|
||||
shebang-command@2.0.0:
|
||||
dependencies:
|
||||
shebang-regex: 3.0.0
|
||||
@@ -5980,6 +6266,9 @@ snapshots:
|
||||
dependencies:
|
||||
typescript: 5.9.3
|
||||
|
||||
tslib@2.9.1:
|
||||
optional: true
|
||||
|
||||
tsx@4.23.12:
|
||||
dependencies:
|
||||
esbuild: 0.28.2
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
packages:
|
||||
- 'packages/*'
|
||||
- 'apps/*'
|
||||
- 'tools/*'
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/**
|
||||
* Records the sun's published times for the golden tests (CLAUDE.md §5.5) into
|
||||
* packages/engine/test/fixtures/sun-usno.json. Run by hand, never by a test: the
|
||||
* tests read the recorded file and make no network call.
|
||||
*
|
||||
* tsx scripts/fetch-sun-golden.ts
|
||||
*
|
||||
* Source: the U.S. Naval Observatory's Astronomical Applications API (one day of
|
||||
* rise, upper transit and set for a point). Each row asks for the clock offset the
|
||||
* place keeps on that date after any DST change, so the table is the local clock a
|
||||
* person there reads. The cities and coordinates are public places, never a player.
|
||||
*/
|
||||
import { writeFileSync } from 'node:fs';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
interface City {
|
||||
readonly name: string;
|
||||
readonly lat: number;
|
||||
readonly lon: number;
|
||||
readonly timeZone: string;
|
||||
/** [local day, the UTC offset in hours the clocks show that day after any change, why this day]. */
|
||||
readonly days: readonly (readonly [string, number, string])[];
|
||||
}
|
||||
|
||||
const CITIES: readonly City[] = [
|
||||
{ name: 'Prague', lat: 50.0755, lon: 14.4378, timeZone: 'Europe/Prague', days: [
|
||||
['2026-03-28', 1, 'the day before DST starts'], ['2026-03-29', 2, 'DST starts'],
|
||||
['2026-06-21', 2, 'midsummer'], ['2026-10-24', 2, 'the day before DST ends'],
|
||||
['2026-10-25', 1, 'DST ends'], ['2026-12-21', 1, 'midwinter']] },
|
||||
{ name: 'Reykjavík', lat: 64.1466, lon: -21.9426, timeZone: 'Atlantic/Reykjavik', days: [
|
||||
['2026-03-20', 0, 'equinox'], ['2026-06-21', 0, 'midsummer: a sunset near midnight'], ['2026-12-21', 0, 'midwinter: four hours of day']] },
|
||||
{ name: 'Tromsø', lat: 69.6492, lon: 18.9553, timeZone: 'Europe/Oslo', days: [
|
||||
['2026-03-29', 2, 'DST starts'], ['2026-06-21', 2, 'polar day'],
|
||||
['2026-10-25', 1, 'DST ends'], ['2026-12-21', 1, 'polar night']] },
|
||||
{ name: 'Quito', lat: -0.1807, lon: -78.4678, timeZone: 'America/Guayaquil', days: [
|
||||
['2026-03-20', -5, 'equinox on the equator'], ['2026-06-21', -5, 'June solstice'], ['2026-12-21', -5, 'December solstice']] },
|
||||
{ name: 'Sydney', lat: -33.8688, lon: 151.2093, timeZone: 'Australia/Sydney', days: [
|
||||
['2026-04-04', 11, 'the day before DST ends'], ['2026-04-05', 10, 'DST ends'],
|
||||
['2026-06-21', 10, 'midwinter'], ['2026-10-03', 10, 'the day before DST starts'],
|
||||
['2026-10-04', 11, 'DST starts'], ['2026-12-21', 11, 'midsummer']] },
|
||||
{ name: 'Anchorage', lat: 61.2181, lon: -149.9003, timeZone: 'America/Anchorage', days: [
|
||||
['2026-03-07', -9, 'the day before DST starts'], ['2026-03-08', -8, 'DST starts'],
|
||||
['2026-06-21', -8, 'midsummer'], ['2026-10-31', -8, 'the day before DST ends'],
|
||||
['2026-11-01', -9, 'DST ends'], ['2026-12-21', -9, 'midwinter']] }
|
||||
];
|
||||
|
||||
const API = 'https://aa.usno.navy.mil/api/rstt/oneday';
|
||||
|
||||
interface Phenomenon { readonly phen: string; readonly time: string }
|
||||
|
||||
async function oneDay(c: City, day: string, tz: number): Promise<Record<string, string | null>> {
|
||||
const url = `${API}?date=${day}&coords=${c.lat},${c.lon}&tz=${tz}&dst=false`;
|
||||
const res = await fetch(url);
|
||||
if (!res.ok) throw new Error(`${url}: HTTP ${res.status}`);
|
||||
const body = (await res.json()) as { properties: { data: { sundata: Phenomenon[] } } };
|
||||
const at = (phen: string): string | null => body.properties.data.sundata.find((p) => p.phen === phen)?.time ?? null;
|
||||
return { rise: at('Rise'), transit: at('Upper Transit'), set: at('Set') };
|
||||
}
|
||||
|
||||
const rows = [];
|
||||
for (const c of CITIES) {
|
||||
for (const [day, tz, why] of c.days) {
|
||||
rows.push({ city: c.name, lat: c.lat, lon: c.lon, timeZone: c.timeZone, day, utcOffset: tz, why, ...(await oneDay(c, day, tz)) });
|
||||
}
|
||||
}
|
||||
|
||||
const out = fileURLToPath(new URL('../packages/engine/test/fixtures/sun-usno.json', import.meta.url));
|
||||
writeFileSync(out, JSON.stringify({
|
||||
source: `${API} (U.S. Naval Observatory, Astronomical Applications). Times are HH:MM on the local clock at utcOffset; null means the event does not happen that day.`,
|
||||
recorded: new Date().toISOString().slice(0, 10),
|
||||
rows
|
||||
}, null, 2) + '\n');
|
||||
console.log(`fetch-sun-golden: ${rows.length} days -> ${out}`);
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "@rosea/art-prep",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"description": "The art pipeline's tools (docs/ART.md): prompts and stand-ins from art/manifest.json, the art board's files, and the step that moves an accepted picture into art/final/. Never imported by the app.",
|
||||
"scripts": {
|
||||
"typecheck": "tsc -p tsconfig.json",
|
||||
"test": "vitest run --reporter=verbose"
|
||||
},
|
||||
"dependencies": {
|
||||
"@rosea/content": "workspace:*",
|
||||
"@rosea/schema": "workspace:*",
|
||||
"sharp": "0.34.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "22.20.1",
|
||||
"typescript": "5.9.3",
|
||||
"vitest": "3.2.7"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
/**
|
||||
* The last step of the pipeline (docs/ART.md §3, step 6): a picture Mark accepted on the
|
||||
* board becomes optimised WebP in art/final/. A sprite sheet is cut along its grid here.
|
||||
* It refuses rather than guesses: a sheet with an empty cell or a painted background is
|
||||
* refused whole, because a cut that "mostly worked" ships a broken picture.
|
||||
*/
|
||||
import sharp from 'sharp';
|
||||
import type { Asset, Manifest } from './manifest.js';
|
||||
import { cellSize, cutLines } from './prompt.js';
|
||||
|
||||
/** Bytes per final file (docs/ART.md §4). The app precaches every one. */
|
||||
export const BUDGET: Record<Asset['type'] | 'cell', number> = {
|
||||
sheet: 400_000,
|
||||
spritesheet: 0, // never written whole: its cells are
|
||||
layer: 350_000,
|
||||
icon: 120_000,
|
||||
sprite: 120_000,
|
||||
cell: 120_000
|
||||
};
|
||||
|
||||
const QUALITIES = [82, 72, 62];
|
||||
const ALPHA = 16;
|
||||
|
||||
export interface FinalFile {
|
||||
readonly id: string;
|
||||
readonly data: Buffer;
|
||||
readonly width: number;
|
||||
readonly height: number;
|
||||
}
|
||||
|
||||
export interface Accepted {
|
||||
readonly files: readonly FinalFile[];
|
||||
/** Things Mark or Claude should know, none of them a reason to refuse. */
|
||||
readonly notes: readonly string[];
|
||||
}
|
||||
|
||||
export class Refused extends Error {
|
||||
override readonly name = 'Refused';
|
||||
}
|
||||
|
||||
interface Target {
|
||||
readonly asset: Asset;
|
||||
/** Set when `id` names one cell of a sprite sheet, made on its own. */
|
||||
readonly cell?: string;
|
||||
}
|
||||
|
||||
export function findTarget(m: Manifest, id: string): Target {
|
||||
for (const asset of m.assets) {
|
||||
if (asset.id === id) return { asset };
|
||||
if (asset.cells?.some((c) => c.id === id)) return { asset, cell: id };
|
||||
}
|
||||
throw new Refused(`"${id}" is not a picture in art/manifest.json`);
|
||||
}
|
||||
|
||||
async function encode(img: sharp.Sharp, budget: number, id: string): Promise<{ data: Buffer; width: number; height: number }> {
|
||||
for (const quality of QUALITIES) {
|
||||
const { data, info } = await img.clone().webp({ quality, alphaQuality: 90, effort: 5 }).toBuffer({ resolveWithObject: true });
|
||||
if (data.length <= budget) return { data, width: info.width, height: info.height };
|
||||
}
|
||||
throw new Refused(`${id}: over its budget of ${Math.round(budget / 1000)} KB even at WebP quality ${QUALITIES.at(-1)}. Ask for a simpler picture, or raise the budget in docs/ART.md §4 with a reason.`);
|
||||
}
|
||||
|
||||
interface Coverage {
|
||||
readonly drawn: number;
|
||||
readonly seeThrough: number;
|
||||
readonly touches: boolean;
|
||||
}
|
||||
|
||||
/** How much of a region is drawn, and whether the drawing reaches its edge (two pixels or more). */
|
||||
function coverage(px: Buffer, width: number, x0: number, y0: number, x1: number, y1: number): Coverage {
|
||||
let drawn = 0, edge = 0;
|
||||
for (let y = y0; y < y1; y++) {
|
||||
for (let x = x0; x < x1; x++) {
|
||||
if ((px[(y * width + x) * 4 + 3] ?? 0) >= ALPHA) {
|
||||
drawn++;
|
||||
if (x === x0 || x === x1 - 1 || y === y0 || y === y1 - 1) edge++;
|
||||
}
|
||||
}
|
||||
}
|
||||
const area = (x1 - x0) * (y1 - y0);
|
||||
return { drawn: drawn / area, seeThrough: Math.round(100 * (1 - drawn / area)), touches: edge >= 2 };
|
||||
}
|
||||
|
||||
/** The largest region of the given shape in the middle of a width × height picture. */
|
||||
function middle(width: number, height: number, shape: number): sharp.Region {
|
||||
if (width / height > shape) {
|
||||
const w = Math.round(height * shape);
|
||||
return { left: Math.floor((width - w) / 2), top: 0, width: w, height };
|
||||
}
|
||||
const h = Math.round(width / shape);
|
||||
return { left: 0, top: Math.floor((height - h) / 2), width, height: h };
|
||||
}
|
||||
|
||||
async function rgba(input: Buffer): Promise<{ px: Buffer; width: number; height: number }> {
|
||||
const { data, info } = await sharp(input).ensureAlpha().raw().toBuffer({ resolveWithObject: true });
|
||||
return { px: data, width: info.width, height: info.height };
|
||||
}
|
||||
|
||||
export async function acceptPicture(input: Buffer, id: string, m: Manifest): Promise<Accepted> {
|
||||
const target = findTarget(m, id);
|
||||
const a = target.asset;
|
||||
const notes: string[] = [];
|
||||
const { px, width, height } = await rgba(input).catch((e: unknown) => {
|
||||
throw new Refused(`${id}: the file could not be read as a picture (${String(e)})`);
|
||||
});
|
||||
|
||||
if (a.type === 'spritesheet') {
|
||||
const { width: cw, height: ch } = cellSize(a);
|
||||
const fitCell = (img: sharp.Sharp): sharp.Sharp =>
|
||||
img.resize(cw, ch, { fit: 'contain', background: { r: 0, g: 0, b: 0, alpha: 0 }, withoutEnlargement: true });
|
||||
|
||||
if (target.cell) {
|
||||
const corners = [[0, 0], [width - 1, 0], [0, height - 1], [width - 1, height - 1]] as const;
|
||||
if (corners.some(([x, y]) => (px[(y * width + x) * 4 + 3] ?? 0) >= ALPHA)) {
|
||||
throw new Refused(`${id}: the background is not transparent. Ask for a transparent PNG.`);
|
||||
}
|
||||
if (coverage(px, width, 0, 0, width, height).touches) notes.push(`${id}: the drawing touches the edge; something may be cut off.`);
|
||||
const out = await encode(fitCell(sharp(input)), BUDGET.cell, id);
|
||||
return { files: [{ id, ...out }], notes };
|
||||
}
|
||||
|
||||
const g = a.grid ?? { cols: 1, rows: 1 };
|
||||
if (Math.abs(width / height - a.width / a.height) > 0.02) {
|
||||
notes.push(`${id}: made at ${width} × ${height}, not ${a.width} × ${a.height}; cut by its ${g.cols} × ${g.rows} grid anyway.`);
|
||||
}
|
||||
const xs = cutLines(width, g.cols), ys = cutLines(height, g.rows);
|
||||
const cells = a.cells ?? [];
|
||||
const empty: string[] = [], painted: string[] = [];
|
||||
const regions = cells.map((c, i) => {
|
||||
const col = i % g.cols, row = Math.floor(i / g.cols);
|
||||
const x0 = xs[col] ?? 0, x1 = xs[col + 1] ?? width, y0 = ys[row] ?? 0, y1 = ys[row + 1] ?? height;
|
||||
const cov = coverage(px, width, x0, y0, x1, y1);
|
||||
if (cov.drawn < 0.005) empty.push(c.id);
|
||||
else if (cov.seeThrough < 5) painted.push(c.id);
|
||||
else if (cov.touches) notes.push(`${c.id}: the drawing touches its cell's edge; a neighbour may spill in.`);
|
||||
return { id: c.id, left: x0, top: y0, width: x1 - x0, height: y1 - y0 };
|
||||
});
|
||||
if (empty.length) throw new Refused(`${id}: nothing drawn in ${empty.join(', ')}. The whole sheet is refused.`);
|
||||
if (painted.length) throw new Refused(`${id}: painted on a background in ${painted.join(', ')}. The whole sheet is refused.`);
|
||||
const files: FinalFile[] = [];
|
||||
for (const r of regions) {
|
||||
const out = await encode(fitCell(sharp(input).extract({ left: r.left, top: r.top, width: r.width, height: r.height })), BUDGET.cell, r.id);
|
||||
files.push({ id: r.id, ...out });
|
||||
}
|
||||
return { files, notes };
|
||||
}
|
||||
|
||||
if (a.background === 'transparent') {
|
||||
// A garden layer is opaque below its horizon: only the top edge must be clear.
|
||||
const row = a.type === 'layer' ? coverage(px, width, 0, 0, width, 1).drawn : null;
|
||||
const corners = [[0, 0], [width - 1, 0], [0, height - 1], [width - 1, height - 1]] as const;
|
||||
const clear = row === null ? corners.every(([x, y]) => (px[(y * width + x) * 4 + 3] ?? 0) < ALPHA) : row < 0.02;
|
||||
if (!clear) throw new Refused(`${id}: the ${a.type === 'layer' ? 'sky' : 'background'} is not transparent. Ask for a transparent PNG.`);
|
||||
}
|
||||
if (Math.abs(width / height - a.width / a.height) > 0.02) {
|
||||
notes.push(`${id}: made at ${width} × ${height}, not ${a.width} × ${a.height}; ${a.background === 'full' ? 'cropped from the middle' : 'fitted inside with clear edges'}.`);
|
||||
}
|
||||
if (width < a.width) notes.push(`${id}: only ${width} px wide; kept at that size, never blown up.`);
|
||||
// Never blown up, so the shape comes first: a full picture is cropped from the middle to the
|
||||
// target shape, then only ever shrunk. Resizing with cover would skip the crop on a small one.
|
||||
const img = a.background === 'full'
|
||||
? sharp(input).extract(middle(width, height, a.width / a.height)).resize(a.width, a.height, { fit: 'inside', withoutEnlargement: true })
|
||||
: sharp(input).resize(a.width, a.height, { fit: 'contain', background: { r: 0, g: 0, b: 0, alpha: 0 }, withoutEnlargement: true });
|
||||
const out = await encode(img, BUDGET[a.type], id);
|
||||
return { files: [{ id, ...out }], notes };
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* The art board's data: every picture with its prompt, built from art/manifest.json and
|
||||
* art/STYLE.md (docs/ART.md §3). `pnpm art:board` writes it next to the board page and
|
||||
* refreshes art/placeholders/; Claude publishes the folder as the art board artifact.
|
||||
*/
|
||||
import { checkManifest, type Asset, type Background, type Manifest } from './manifest.js';
|
||||
import { attachments, cellPromptFor, cellSize, promptFor } from './prompt.js';
|
||||
import { reviewPoints, stylePrompt } from './style.js';
|
||||
|
||||
export interface BoardCell {
|
||||
readonly id: string;
|
||||
readonly type: 'pose';
|
||||
readonly width: number;
|
||||
readonly height: number;
|
||||
readonly background: Background;
|
||||
readonly prompt: string;
|
||||
}
|
||||
|
||||
export interface BoardAsset {
|
||||
readonly id: string;
|
||||
readonly type: Asset['type'];
|
||||
readonly phase: number;
|
||||
readonly width: number;
|
||||
readonly height: number;
|
||||
readonly background: Background;
|
||||
readonly shipped: boolean;
|
||||
readonly usedBy: readonly string[];
|
||||
readonly checks: readonly number[];
|
||||
readonly smallest: number | null;
|
||||
readonly attach: readonly string[];
|
||||
readonly prompt: string;
|
||||
readonly grid?: { readonly cols: number; readonly rows: number };
|
||||
readonly cells?: readonly BoardCell[];
|
||||
}
|
||||
|
||||
export interface BoardData {
|
||||
readonly generatedFrom: string;
|
||||
readonly checklist: readonly string[];
|
||||
readonly assets: readonly BoardAsset[];
|
||||
}
|
||||
|
||||
/** The board's data, or the manifest's problems. Nothing half-checked reaches the board. */
|
||||
export function boardData(m: Manifest, styleMarkdown: string): BoardData {
|
||||
const style = stylePrompt(styleMarkdown);
|
||||
const checklist = reviewPoints(styleMarkdown);
|
||||
const problems = checkManifest(m, checklist.length);
|
||||
if (problems.length > 0) throw new Error(`art/manifest.json:\n ${problems.join('\n ')}`);
|
||||
|
||||
const assets = m.assets.map((a): BoardAsset => {
|
||||
const base = {
|
||||
id: a.id, type: a.type, phase: a.phase, width: a.width, height: a.height, background: a.background,
|
||||
shipped: a.shipped, usedBy: a.usedBy, checks: a.checks, smallest: a.smallest,
|
||||
attach: attachments(a, m), prompt: promptFor(a, m, style)
|
||||
};
|
||||
if (a.type !== 'spritesheet' || !a.grid) return base;
|
||||
const { width, height } = cellSize(a);
|
||||
return {
|
||||
...base,
|
||||
grid: a.grid,
|
||||
cells: (a.cells ?? []).map((c) => ({
|
||||
id: c.id, type: 'pose', width, height, background: a.background, prompt: cellPromptFor(a, c, m, style)
|
||||
}))
|
||||
};
|
||||
});
|
||||
return { generatedFrom: 'art/manifest.json, art/STYLE.md §1 and §7', checklist, assets };
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* `pnpm art:accept <id> <file>` — moves a picture Mark accepted on the art board into
|
||||
* art/final/ as WebP (docs/ART.md §3, step 6). For a sprite sheet, `<id>` is the sheet
|
||||
* and every cell is written; for one cell made on its own, `<id>` is the cell.
|
||||
*/
|
||||
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
||||
import { join, relative } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { Refused, acceptPicture } from './accept.js';
|
||||
import type { Manifest } from './manifest.js';
|
||||
|
||||
const root = fileURLToPath(new URL('../../../', import.meta.url));
|
||||
const [id, file] = process.argv.slice(2);
|
||||
if (!id || !file) {
|
||||
console.error('Usage: pnpm art:accept <id> <file> (the id from art/manifest.json, the picture downloaded from the board)');
|
||||
process.exit(2);
|
||||
}
|
||||
|
||||
const manifest = JSON.parse(readFileSync(join(root, 'art/manifest.json'), 'utf8')) as Manifest;
|
||||
try {
|
||||
const { files, notes } = await acceptPicture(readFileSync(file), id, manifest);
|
||||
const dir = join(root, 'art/final');
|
||||
mkdirSync(dir, { recursive: true });
|
||||
for (const f of files) {
|
||||
const path = join(dir, `${f.id}.webp`);
|
||||
writeFileSync(path, f.data);
|
||||
console.log(`${relative(root, path).replace(/\\/g, '/')} ${f.width} × ${f.height} ${(f.data.length / 1000).toFixed(1)} KB`);
|
||||
}
|
||||
for (const n of notes) console.log(`note: ${n}`);
|
||||
} catch (e) {
|
||||
if (e instanceof Refused) {
|
||||
console.error(`refused: ${e.message}`);
|
||||
process.exit(1);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* `pnpm art:board` — writes the art board's files to tools/art-prep/dist/board/ and
|
||||
* refreshes the stand-ins in art/placeholders/ (docs/ART.md §3).
|
||||
*/
|
||||
import { mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { PRODUCT_NAME } from '@rosea/schema';
|
||||
import { boardData } from './board.js';
|
||||
import type { Manifest } from './manifest.js';
|
||||
import { placeholders } from './placeholders.js';
|
||||
|
||||
const root = fileURLToPath(new URL('../../../', import.meta.url));
|
||||
const manifest = JSON.parse(readFileSync(join(root, 'art/manifest.json'), 'utf8')) as Manifest;
|
||||
const style = readFileSync(join(root, 'art/STYLE.md'), 'utf8');
|
||||
|
||||
const data = boardData(manifest, style);
|
||||
const stand = placeholders(manifest);
|
||||
|
||||
// art/placeholders/ holds exactly the stand-ins the manifest asks for: a removed picture loses its stand-in too.
|
||||
const placeDir = join(root, 'art/placeholders');
|
||||
mkdirSync(placeDir, { recursive: true });
|
||||
for (const f of readdirSync(placeDir)) if (f.endsWith('.svg') && !stand.has(f.slice(0, -4))) rmSync(join(placeDir, f));
|
||||
for (const [id, svg] of stand) writeFileSync(join(placeDir, `${id}.svg`), svg);
|
||||
|
||||
const out = join(root, 'tools/art-prep/dist/board');
|
||||
rmSync(out, { recursive: true, force: true });
|
||||
mkdirSync(join(out, 'placeholders'), { recursive: true });
|
||||
for (const [id, svg] of stand) writeFileSync(join(out, 'placeholders', `${id}.svg`), svg);
|
||||
writeFileSync(join(out, 'board-data.json'), JSON.stringify(data));
|
||||
const page = readFileSync(join(root, 'tools/art-prep/board/index.html'), 'utf8').replaceAll('%PRODUCT_NAME%', PRODUCT_NAME);
|
||||
writeFileSync(join(out, 'index.html'), page);
|
||||
|
||||
const pictures = data.assets.reduce((n, a) => n + (a.cells ? a.cells.length : 1), 0);
|
||||
console.log(`art:board: ${data.assets.length} cards, ${pictures} pictures, ${stand.size} stand-ins -> tools/art-prep/dist/board/`);
|
||||
@@ -0,0 +1,144 @@
|
||||
/**
|
||||
* art/manifest.json: every picture the game needs, and the checks that keep the
|
||||
* list honest before a single prompt is written (docs/ART.md §2).
|
||||
*/
|
||||
import { findForbidden } from '@rosea/content';
|
||||
|
||||
export type Background = 'full' | 'transparent';
|
||||
export type AssetType = 'sheet' | 'spritesheet' | 'sprite' | 'layer' | 'icon';
|
||||
|
||||
export interface Cell {
|
||||
readonly id: string;
|
||||
/** What this one picture shows, finishing the sentence "Cell n: …". */
|
||||
readonly does: string;
|
||||
}
|
||||
|
||||
export interface Asset {
|
||||
readonly id: string;
|
||||
readonly type: AssetType;
|
||||
/** The roadmap phase that first shows it (docs/ROADMAP.md §4). The manifest lists phases in order. */
|
||||
readonly phase: number;
|
||||
readonly width: number;
|
||||
readonly height: number;
|
||||
readonly background: Background;
|
||||
/** False for a reference that never appears in the app (a character sheet). */
|
||||
readonly shipped: boolean;
|
||||
/** The smallest size, in px across, the app ever shows it; null when it is only shown large. */
|
||||
readonly smallest: number | null;
|
||||
readonly character?: string;
|
||||
readonly usedBy: readonly string[];
|
||||
readonly purpose: string;
|
||||
readonly subject?: string;
|
||||
readonly setting?: string;
|
||||
readonly composition?: string;
|
||||
readonly angle?: string;
|
||||
readonly grid?: { readonly cols: number; readonly rows: number };
|
||||
readonly cells?: readonly Cell[];
|
||||
readonly include: readonly string[];
|
||||
readonly avoid: readonly string[];
|
||||
/** Indices into STYLE.md §7, the review points shown on its card. */
|
||||
readonly checks: readonly number[];
|
||||
}
|
||||
|
||||
export interface Character {
|
||||
readonly sheet: string;
|
||||
readonly description: string;
|
||||
}
|
||||
|
||||
export interface Manifest {
|
||||
readonly characters: Readonly<Record<string, Character>>;
|
||||
/** What no picture may show, appended to every prompt (STYLE.md §4). */
|
||||
readonly avoid: readonly string[];
|
||||
readonly assets: readonly Asset[];
|
||||
}
|
||||
|
||||
/** The canvases image generators offer (STYLE.md §5). Anything else gets resized by the tool, unasked. */
|
||||
export const GENERATOR_SIZES: readonly (readonly [number, number])[] = [
|
||||
[1024, 1024],
|
||||
[1536, 1024],
|
||||
[1024, 1536]
|
||||
];
|
||||
|
||||
const ID = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
||||
const TYPES: readonly AssetType[] = ['sheet', 'spritesheet', 'sprite', 'layer', 'icon'];
|
||||
|
||||
/** Every text a prompt is built from, so the forbidden-names check reads all of it. */
|
||||
function textsOf(a: Asset): string[] {
|
||||
return [
|
||||
a.purpose, a.subject, a.setting, a.composition, a.angle,
|
||||
...a.usedBy, ...a.include, ...a.avoid,
|
||||
...(a.cells ?? []).flatMap((c) => [c.id, c.does])
|
||||
].filter((t): t is string => typeof t === 'string');
|
||||
}
|
||||
|
||||
/**
|
||||
* Problems with the manifest, each naming the asset. An empty list is a pass.
|
||||
* `checklistLength` is the number of review points in STYLE.md §7.
|
||||
*/
|
||||
export function checkManifest(m: Manifest, checklistLength: number): string[] {
|
||||
const problems: string[] = [];
|
||||
const seen = new Set<string>();
|
||||
const claim = (id: string, where: string): void => {
|
||||
if (!ID.test(id)) problems.push(`${where}: id "${id}" must be lower-case words joined by hyphens`);
|
||||
if (seen.has(id)) problems.push(`${where}: id "${id}" is used twice; each picture needs its own`);
|
||||
seen.add(id);
|
||||
};
|
||||
|
||||
for (const [name, c] of Object.entries(m.characters)) {
|
||||
const sheet = m.assets.find((a) => a.id === c.sheet);
|
||||
if (!sheet) problems.push(`character ${name}: its sheet "${c.sheet}" is not in the manifest`);
|
||||
else if (sheet.type !== 'sheet') problems.push(`character ${name}: "${c.sheet}" is a ${sheet.type}, not a character sheet`);
|
||||
}
|
||||
|
||||
let lastPhase = 0;
|
||||
for (const a of m.assets) {
|
||||
claim(a.id, a.id);
|
||||
if (!Number.isInteger(a.phase) || a.phase < 1 || a.phase > 6) problems.push(`${a.id}: phase ${String(a.phase)} is not a roadmap phase (1–6)`);
|
||||
else if (a.phase < lastPhase) problems.push(`${a.id}: phase ${a.phase} comes after phase ${lastPhase}; list the pictures in phase order`);
|
||||
else lastPhase = a.phase;
|
||||
if (!TYPES.includes(a.type)) problems.push(`${a.id}: unknown type "${a.type}"`);
|
||||
if (!GENERATOR_SIZES.some(([w, h]) => w === a.width && h === a.height)) {
|
||||
problems.push(`${a.id}: ${a.width} × ${a.height} is not a size image generators offer (${GENERATOR_SIZES.map(([w, h]) => `${w} × ${h}`).join(', ')})`);
|
||||
}
|
||||
if (a.purpose.trim() === '') problems.push(`${a.id}: no purpose`);
|
||||
if (a.usedBy.length === 0) problems.push(`${a.id}: usedBy is empty; say where it appears`);
|
||||
if (a.character !== undefined && !(a.character in m.characters)) problems.push(`${a.id}: unknown character "${a.character}"`);
|
||||
if (a.type === 'sheet' && a.shipped) problems.push(`${a.id}: a character sheet is a reference and never shipped`);
|
||||
if ((a.type === 'layer' || a.type === 'sprite' || a.type === 'spritesheet') && a.background !== 'transparent') {
|
||||
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 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`);
|
||||
}
|
||||
|
||||
if (a.type === 'spritesheet') {
|
||||
const g = a.grid;
|
||||
const cells = a.cells ?? [];
|
||||
if (!g) problems.push(`${a.id}: a sprite sheet needs a grid`);
|
||||
else {
|
||||
if (cells.length !== g.cols * g.rows) problems.push(`${a.id}: ${cells.length} cells for a ${g.cols} × ${g.rows} grid`);
|
||||
if (a.width % g.cols !== 0 || a.height % g.rows !== 0) problems.push(`${a.id}: ${a.width} × ${a.height} does not divide into ${g.cols} × ${g.rows} whole-pixel cells`);
|
||||
}
|
||||
if ((a.angle ?? '').trim() === '') problems.push(`${a.id}: a sprite sheet needs an angle, so every cell is drawn alike`);
|
||||
for (const c of cells) {
|
||||
claim(c.id, `${a.id} cell`);
|
||||
if (c.does.trim() === '') problems.push(`${a.id}: cell ${c.id} does not say what it shows`);
|
||||
}
|
||||
} else if (a.grid || a.cells) {
|
||||
problems.push(`${a.id}: only a sprite sheet has a grid and cells`);
|
||||
}
|
||||
|
||||
for (const text of textsOf(a)) {
|
||||
for (const hit of findForbidden(text)) problems.push(`${a.id}: "${hit.term}" (${hit.category}) may not appear in a prompt`);
|
||||
}
|
||||
}
|
||||
|
||||
for (const [name, c] of Object.entries(m.characters)) {
|
||||
for (const hit of findForbidden(c.description)) problems.push(`character ${name}: "${hit.term}" (${hit.category}) may not appear in a prompt`);
|
||||
}
|
||||
for (const text of m.avoid) {
|
||||
for (const hit of findForbidden(text)) problems.push(`avoid list: "${hit.term}" (${hit.category}) may not appear in a prompt`);
|
||||
}
|
||||
return problems;
|
||||
}
|
||||
@@ -0,0 +1,364 @@
|
||||
/**
|
||||
* Claude's stand-ins (CLAUDE.md §2, art/placeholders/): plain SVG shapes that test form and
|
||||
* layout until a real picture is accepted. They are deliberately simple. A stand-in that
|
||||
* looked finished would hide that the real picture is still missing.
|
||||
*/
|
||||
import type { Asset, Manifest } from './manifest.js';
|
||||
import { cellBoxes, cellSize } from './prompt.js';
|
||||
|
||||
const C = {
|
||||
rose: '#c85a6e',
|
||||
petal: '#f2b5be',
|
||||
blush: '#e8899b',
|
||||
leaf: '#7fa07a',
|
||||
moss: '#4f6e52',
|
||||
ink: '#3a2730',
|
||||
paper: '#fbf6f1',
|
||||
soil: '#8a6248',
|
||||
wood: '#b98a5a',
|
||||
meadow: '#a9c48e',
|
||||
amber: '#f2b860',
|
||||
coral: '#e9846a',
|
||||
night: '#2e3561',
|
||||
lamp: '#f4d58d',
|
||||
fox: '#bc4a22',
|
||||
cream: '#f3e3c8',
|
||||
foxLeg: '#5a3a33',
|
||||
strawberry: '#d2554e',
|
||||
blueberry: '#5b6fa6',
|
||||
raspberry: '#c2456a',
|
||||
blackberry: '#3f2e4a',
|
||||
hip: '#d0632e'
|
||||
} as const;
|
||||
|
||||
type Eyes = 'open' | 'half' | 'closed' | 'down' | 'squeeze';
|
||||
type Mouth = 'smile' | 'small' | 'open' | 'puff';
|
||||
|
||||
interface RoseLook {
|
||||
readonly stage: 'bud' | 'opening' | 'half' | 'full';
|
||||
readonly eyes: Eyes;
|
||||
readonly mouth: Mouth;
|
||||
readonly blush?: boolean;
|
||||
/** Degrees the bloom leans from the stem top; negative is left. */
|
||||
readonly tilt?: number;
|
||||
readonly leaves?: 'normal' | 'down' | 'up' | 'raised';
|
||||
readonly back?: boolean;
|
||||
readonly drops?: boolean;
|
||||
readonly bend?: number;
|
||||
}
|
||||
|
||||
/** The rose in a 200 × 520 box: bloom near the top, stem down to the bottom edge. */
|
||||
function rose(look: RoseLook): string {
|
||||
const r = { bud: 30, opening: 44, half: 58, full: 74 }[look.stage];
|
||||
const bend = look.bend ?? 0;
|
||||
const stem = `<path d="M100 520 Q ${100 + bend} 340 ${100 + bend * 1.6} 170" fill="none" stroke="${C.moss}" stroke-width="9" stroke-linecap="round"/>`;
|
||||
const thorns = [430, 300, 220]
|
||||
.map((y, i) => `<path d="M${100 + (bend * (520 - y)) / 350 + (i % 2 ? 4 : -4)} ${y} l${i % 2 ? 12 : -12} -6 l${i % 2 ? -10 : 10} -6z" fill="${C.moss}"/>`)
|
||||
.join('');
|
||||
const leafRot = { normal: [-35, 35, -30], down: [10, -10, 15], up: [-60, 60, -55], raised: [-35, 80, -30] }[look.leaves ?? 'normal'];
|
||||
const leaf = (x: number, y: number, dir: number, rot: number): string =>
|
||||
`<ellipse cx="${x + dir * 30}" cy="${y}" rx="34" ry="14" fill="${C.leaf}" stroke="${C.ink}" stroke-width="3" transform="rotate(${rot} ${x} ${y})"/>`;
|
||||
const leaves = leaf(100, 400, -1, leafRot[0] ?? 0) + leaf(100 + bend * 0.5, 330, 1, leafRot[1] ?? 0) + leaf(100 + bend, 250, -1, leafRot[2] ?? 0);
|
||||
|
||||
const count = look.stage === 'opening' ? 5 : 8;
|
||||
const petals =
|
||||
look.stage === 'bud'
|
||||
? `<path d="M100 ${130 - r * 1.6} C ${100 + r} ${130 - r}, ${100 + r} ${130 + r * 0.6}, 100 ${130 + r * 0.7} C ${100 - r} ${130 + r * 0.6}, ${100 - r} ${130 - r}, 100 ${130 - r * 1.6}z" fill="${C.rose}" stroke="${C.ink}" stroke-width="3"/>
|
||||
<path d="M70 ${150} q30 20 60 0 l-8 18 h-44z" fill="${C.leaf}" stroke="${C.ink}" stroke-width="3"/>`
|
||||
: Array.from({ length: count }, (_, i) => {
|
||||
const a = (i / count) * Math.PI * 2;
|
||||
return `<circle cx="${(100 + Math.cos(a) * r * 0.55).toFixed(1)}" cy="${(130 + Math.sin(a) * r * 0.55).toFixed(1)}" r="${(r * 0.55).toFixed(1)}" fill="${C.rose}" stroke="${C.ink}" stroke-width="3"/>`;
|
||||
}).join('') + `<circle cx="100" cy="130" r="${(r * 0.62).toFixed(1)}" fill="${C.petal}" stroke="${C.ink}" stroke-width="3"/>`;
|
||||
|
||||
const eye = (x: number): string => {
|
||||
const y = 124;
|
||||
switch (look.eyes) {
|
||||
case 'open': return `<circle cx="${x}" cy="${y}" r="4.5" fill="${C.ink}"/>`;
|
||||
case 'half': return `<path d="M${x - 6} ${y} q6 5 12 0" fill="${C.ink}" stroke="${C.ink}" stroke-width="3"/>`;
|
||||
case 'closed': return `<path d="M${x - 6} ${y} q6 6 12 0" fill="none" stroke="${C.ink}" stroke-width="3" stroke-linecap="round"/>`;
|
||||
case 'down': return `<path d="M${x - 6} ${y + 3} q6 4 12 0" fill="none" stroke="${C.ink}" stroke-width="3" stroke-linecap="round"/>`;
|
||||
case 'squeeze': return `<path d="M${x - 6} ${y - 4} l12 4 l-12 4" fill="none" stroke="${C.ink}" stroke-width="3" stroke-linecap="round"/>`;
|
||||
}
|
||||
};
|
||||
const mouth = {
|
||||
smile: `<path d="M93 142 q7 7 14 0" fill="none" stroke="${C.ink}" stroke-width="3" stroke-linecap="round"/>`,
|
||||
small: `<path d="M96 144 h8" stroke="${C.ink}" stroke-width="3" stroke-linecap="round"/>`,
|
||||
open: `<ellipse cx="100" cy="145" rx="6" ry="5" fill="${C.ink}"/>`,
|
||||
puff: `<circle cx="100" cy="145" r="4" fill="${C.ink}"/><circle cx="84" cy="140" r="7" fill="${C.blush}" opacity=".7"/><circle cx="116" cy="140" r="7" fill="${C.blush}" opacity=".7"/>`
|
||||
}[look.mouth];
|
||||
const blush = look.blush ? `<circle cx="82" cy="138" r="8" fill="${C.blush}"/><circle cx="118" cy="138" r="8" fill="${C.blush}"/>` : '';
|
||||
const face = look.back ? '' : eye(91) + eye(109) + mouth + blush;
|
||||
const drops = look.drops
|
||||
? [[64, 92], [138, 104], [120, 70]].map(([x, y]) => `<path d="M${x} ${y} q5 9 0 12 q-5 -3 0 -12z" fill="#9cc3d8" stroke="${C.ink}" stroke-width="2"/>`).join('')
|
||||
: '';
|
||||
const bloom = `<g transform="translate(${bend * 1.6} 0) rotate(${look.tilt ?? 0} 100 170)">${petals}${face}${drops}</g>`;
|
||||
return stem + thorns + leaves + bloom;
|
||||
}
|
||||
|
||||
interface FoxLook {
|
||||
readonly pose: 'sit' | 'stand' | 'lie' | 'curl';
|
||||
readonly eyes: 'open' | 'half' | 'closed';
|
||||
/** Faces right instead of left. */
|
||||
readonly right?: boolean;
|
||||
/** The head turned back over the shoulder. */
|
||||
readonly back?: boolean;
|
||||
/** Seen from behind: no face. */
|
||||
readonly behind?: boolean;
|
||||
readonly petal?: boolean;
|
||||
readonly fluffed?: boolean;
|
||||
/** Degrees the head tilts. */
|
||||
readonly tilt?: number;
|
||||
}
|
||||
|
||||
/** The fox in a 300 × 240 box, facing left unless `right`, feet on the bottom edge. */
|
||||
function fox(look: FoxLook): string {
|
||||
const ink = `stroke="${C.ink}" stroke-width="4"`;
|
||||
const leg = (x: number, y0: number, y1: number): string => `<path d="M${x} ${y0} V ${y1}" stroke="${C.foxLeg}" stroke-width="14" stroke-linecap="round"/>`;
|
||||
const thick = look.fluffed ? 8 : 0;
|
||||
const tail = (d: string): string =>
|
||||
`<path d="${d}" fill="none" stroke="${C.ink}" stroke-width="${38 + thick}" stroke-linecap="round"/>` +
|
||||
`<path d="${d}" fill="none" stroke="${C.fox}" stroke-width="${30 + thick}" stroke-linecap="round"/>` +
|
||||
`<path d="${d}" fill="none" stroke="${C.foxLeg}" stroke-width="${32 + thick}" stroke-dasharray="6 26" opacity=".45"/>`;
|
||||
const head = (x: number, y: number, r: number): string => {
|
||||
const k = look.back ? -1 : 1;
|
||||
const ears = [-0.55, 0.35].map((o) => `<path d="M${x + o * r * k - 12} ${y - r * 0.6} l12 -${r * 0.9} l12 ${r * 0.9}z" fill="${C.fox}" ${ink}/>`).join('');
|
||||
if (look.behind) return ears + `<circle cx="${x}" cy="${y}" r="${r}" fill="${C.fox}" ${ink}/>`;
|
||||
const eye = (ex: number): string =>
|
||||
look.eyes === 'open'
|
||||
? `<circle cx="${ex}" cy="${y - 4}" r="4" fill="${C.ink}"/>`
|
||||
: `<path d="M${ex - 6} ${y - 4} q6 ${look.eyes === 'half' ? 4 : 6} 12 0" fill="${look.eyes === 'half' ? C.ink : 'none'}" stroke="${C.ink}" stroke-width="3" stroke-linecap="round"/>`;
|
||||
const snout = x - k * r * 0.75;
|
||||
return ears + `<g transform="rotate(${look.tilt ?? 0} ${x} ${y})"><circle cx="${x}" cy="${y}" r="${r}" fill="${C.fox}" ${ink}/>
|
||||
<ellipse cx="${snout + k * 6}" cy="${y + r * 0.35}" rx="${r * 0.55}" ry="${r * 0.38}" fill="${C.cream}" ${ink}/>
|
||||
<circle cx="${x - k * 12}" cy="${y - r * 0.45}" r="5" fill="${C.cream}"/><circle cx="${x + k * 10}" cy="${y - r * 0.45}" r="5" fill="${C.cream}"/>
|
||||
${eye(x - k * 13)}${eye(x + k * 9)}<circle cx="${snout - k * 6}" cy="${y + r * 0.3}" r="5" fill="${C.ink}"/>
|
||||
${look.petal ? `<ellipse cx="${snout - k * 10}" cy="${y + r * 0.75}" rx="16" ry="9" fill="${C.cream}" ${ink}/>` : ''}</g>`;
|
||||
};
|
||||
let body: string;
|
||||
switch (look.pose) {
|
||||
case 'sit':
|
||||
body = tail('M185 215 Q 250 205 240 150') + `<ellipse cx="160" cy="150" rx="50" ry="64" fill="${C.fox}" ${ink}/>`
|
||||
+ `<ellipse cx="148" cy="160" rx="24" ry="38" fill="${C.cream}"/>` + leg(140, 175, 225) + leg(168, 175, 225)
|
||||
+ head(look.back ? 175 : 145, 72, 38);
|
||||
break;
|
||||
case 'stand':
|
||||
body = tail('M235 120 Q 280 110 290 60') + leg(110, 140, 225) + leg(130, 140, 225) + leg(200, 140, 225) + leg(220, 140, 225)
|
||||
+ `<ellipse cx="165" cy="128" rx="80" ry="38" fill="${C.fox}" ${ink}/>` + head(look.back ? 215 : 80, 98, 34);
|
||||
break;
|
||||
case 'lie':
|
||||
body = tail('M250 205 Q 285 215 290 180') + `<ellipse cx="170" cy="192" rx="92" ry="30" fill="${C.fox}" ${ink}/>`
|
||||
+ leg(70, 215, 222) + head(72, 178, 32);
|
||||
break;
|
||||
case 'curl':
|
||||
body = `<circle cx="150" cy="160" r="66" fill="${C.fox}" ${ink}/>` + tail('M205 200 Q 170 235 110 205') + head(125, 168, 30);
|
||||
break;
|
||||
}
|
||||
return look.right ? `<g transform="translate(300 0) scale(-1 1)">${body}</g>` : body;
|
||||
}
|
||||
|
||||
const FOXES: Record<string, FoxLook> = {
|
||||
'fox-watching': { pose: 'sit', eyes: 'open', back: true },
|
||||
'fox-curious': { pose: 'stand', eyes: 'open', tilt: -14 },
|
||||
'fox-sitting': { pose: 'sit', eyes: 'half' },
|
||||
'fox-resting': { pose: 'lie', eyes: 'half' },
|
||||
'fox-petted': { pose: 'sit', eyes: 'closed', tilt: -18 },
|
||||
'fox-brushed': { pose: 'sit', eyes: 'half', fluffed: true, tilt: 8 },
|
||||
'fox-eating': { pose: 'stand', eyes: 'closed', tilt: -30 },
|
||||
'fox-asleep': { pose: 'curl', eyes: 'closed' },
|
||||
'fox-trotting': { pose: 'stand', eyes: 'open' },
|
||||
'fox-leading': { pose: 'stand', eyes: 'open', right: true, back: true },
|
||||
'fox-carrying-petal': { pose: 'stand', eyes: 'half', petal: true },
|
||||
'fox-visiting': { pose: 'sit', eyes: 'half', tilt: 16 }
|
||||
};
|
||||
|
||||
/** Place a drawing made in a w × h box centred in the target, filling about 76 %. */
|
||||
function fit(body: string, w: number, h: number, W: number, H: number, fill = 0.76): string {
|
||||
const s = Math.min((W * fill) / w, (H * fill) / h);
|
||||
return `<g transform="translate(${((W - w * s) / 2).toFixed(1)} ${((H - h * s) / 2).toFixed(1)}) scale(${s.toFixed(4)})">${body}</g>`;
|
||||
}
|
||||
|
||||
const ROSES: Record<string, RoseLook> = {
|
||||
'rose-bud': { stage: 'bud', eyes: 'closed', mouth: 'small' },
|
||||
'rose-opening': { stage: 'opening', eyes: 'half', mouth: 'small' },
|
||||
'rose-half-bloom': { stage: 'half', eyes: 'half', mouth: 'smile' },
|
||||
'rose-full-bloom': { stage: 'full', eyes: 'half', mouth: 'smile', tilt: -4 },
|
||||
'rose-thirsty': { stage: 'full', eyes: 'down', mouth: 'small', tilt: 14, leaves: 'down' },
|
||||
'rose-overwatered': { stage: 'full', eyes: 'squeeze', mouth: 'puff', leaves: 'down', drops: true },
|
||||
'rose-windblown': { stage: 'full', eyes: 'squeeze', mouth: 'small', bend: 22, tilt: 18, leaves: 'up' },
|
||||
'rose-blushing': { stage: 'full', eyes: 'closed', mouth: 'smile', blush: true, leaves: 'raised' },
|
||||
'rose-sleepy': { stage: 'half', eyes: 'closed', mouth: 'smile', tilt: 10 },
|
||||
'rose-speaking': { stage: 'full', eyes: 'open', mouth: 'open', leaves: 'raised' },
|
||||
'rose-waiting': { stage: 'half', eyes: 'down', mouth: 'small', tilt: -18, leaves: 'down' },
|
||||
'rose-watching-sunset': { stage: 'full', eyes: 'open', mouth: 'small', back: true, tilt: -10 }
|
||||
};
|
||||
|
||||
/** The care things, each in a 200 × 200 box. */
|
||||
const PROPS: Record<string, string> = {
|
||||
'watering-can': `<rect x="50" y="80" width="90" height="80" rx="18" fill="${C.leaf}" stroke="${C.ink}" stroke-width="5"/>
|
||||
<path d="M60 80 q35 -55 70 0" fill="none" stroke="${C.ink}" stroke-width="7"/>
|
||||
<path d="M52 110 L12 70" stroke="${C.ink}" stroke-width="10" stroke-linecap="round"/><circle cx="12" cy="68" r="10" fill="${C.leaf}" stroke="${C.ink}" stroke-width="4"/>`,
|
||||
windbreak: Array.from({ length: 9 }, (_, i) => `<path d="M${30 + i * 18} ${150 - Math.sin((i / 8) * Math.PI) * 18} v-${90 - Math.sin((i / 8) * Math.PI) * 10}" stroke="${C.wood}" stroke-width="12" stroke-linecap="round"/>`).join('')
|
||||
+ `<path d="M24 100 Q100 75 176 100" fill="none" stroke="${C.soil}" stroke-width="6"/><path d="M24 128 Q100 103 176 128" fill="none" stroke="${C.soil}" stroke-width="6"/>
|
||||
<path d="M30 150 v30 M170 150 v30" stroke="${C.soil}" stroke-width="8" stroke-linecap="round"/>`,
|
||||
'weed-clump': [60, 100, 140].map((x, i) => `<path d="M${x} 140 l-18 -${60 + i * 12} l14 12 l4 -${30 + i * 6} l8 24 l12 -20 l-6 ${60 + i * 8}z" fill="${C.leaf}" stroke="${C.ink}" stroke-width="4"/>`).join('')
|
||||
+ `<path d="M70 140 q10 30 -6 44 M100 140 q-4 26 10 40 M130 140 q8 22 -2 38" fill="none" stroke="${C.soil}" stroke-width="4"/>`,
|
||||
'fallen-petals': [[60, 110, -20], [110, 90, 25], [140, 130, 60]].map(([x, y, r]) => `<ellipse cx="${x}" cy="${y}" rx="34" ry="22" fill="${C.rose}" stroke="${C.ink}" stroke-width="4" transform="rotate(${r} ${x} ${y})"/>`).join(''),
|
||||
'petal-folded': `<circle cx="100" cy="100" r="86" fill="${C.lamp}" opacity=".35"/><path d="M100 30 C 170 60, 160 160, 100 170 C 40 160, 30 60, 100 30z" fill="${C.rose}" stroke="${C.ink}" stroke-width="5"/>
|
||||
<path d="M100 30 C 120 90, 120 130, 100 170" fill="none" stroke="${C.petal}" stroke-width="6"/>`,
|
||||
'petal-open': `<path d="M100 20 C 190 50, 190 160, 100 182 C 10 160, 10 50, 100 20z" fill="${C.petal}" stroke="${C.ink}" stroke-width="5"/>`,
|
||||
'garden-chair': `<rect x="60" y="40" width="80" height="70" rx="8" fill="${C.wood}" stroke="${C.ink}" stroke-width="5"/>
|
||||
<path d="M70 55 h60 M70 75 h60 M70 95 h60" stroke="${C.soil}" stroke-width="4"/>
|
||||
<path d="M50 110 h100 l-10 24 h-80z" fill="${C.petal}" stroke="${C.ink}" stroke-width="5"/>
|
||||
<path d="M62 134 v46 M138 134 v46 M80 134 v36 M120 134 v36" stroke="${C.wood}" stroke-width="9" stroke-linecap="round"/>`
|
||||
};
|
||||
|
||||
const berries = (fill: string, at: readonly (readonly [number, number])[], r: number, leaves = 1): string =>
|
||||
Array.from({ length: leaves }, (_, i) => `<ellipse cx="${80 + i * 40}" cy="58" rx="30" ry="13" fill="${C.leaf}" stroke="${C.ink}" stroke-width="4" transform="rotate(${i ? 25 : -25} ${80 + i * 40} 58)"/>`).join('')
|
||||
+ `<path d="M100 40 V 80" stroke="${C.moss}" stroke-width="5"/>`
|
||||
+ at.map(([x, y]) => `<circle cx="${x}" cy="${y}" r="${r}" fill="${fill}" stroke="${C.ink}" stroke-width="4"/>`).join('');
|
||||
|
||||
const bush = (extra: string): string =>
|
||||
[[60, 120, 50], [140, 120, 50], [100, 80, 56], [100, 140, 46]].map(([x, y, r]) => `<circle cx="${x}" cy="${y}" r="${r}" fill="${C.leaf}" stroke="${C.ink}" stroke-width="4"/>`).join('')
|
||||
+ `<path d="M70 70 q30 -14 60 0 M50 120 q20 -10 40 0 M115 125 q20 -10 40 0" fill="none" stroke="${C.moss}" stroke-width="4"/>` + extra;
|
||||
|
||||
/** The fox's food and the bush, each in a 200 × 200 box like PROPS. */
|
||||
const MORE_PROPS: Record<string, string> = {
|
||||
'wild-strawberries': berries(C.strawberry, [[70, 120], [110, 140], [140, 105]], 22, 2),
|
||||
blueberries: berries(C.blueberry, [[70, 120], [100, 140], [130, 120], [85, 95], [118, 95]], 16, 2),
|
||||
raspberries: berries(C.raspberry, [[72, 120], [110, 138], [138, 108]], 22),
|
||||
blackberries: berries(C.blackberry, [[72, 120], [110, 138], [138, 108]], 22),
|
||||
'rose-hips': `<circle cx="100" cy="115" r="80" fill="${C.lamp}" opacity=".3"/><path d="M100 30 V 70 M100 70 L 70 90 M100 70 L 130 90" stroke="${C.moss}" stroke-width="5" fill="none"/>`
|
||||
+ [[70, 125], [130, 125]].map(([x, y]) => `<ellipse cx="${x}" cy="${y}" rx="24" ry="34" fill="${C.hip}" stroke="${C.ink}" stroke-width="4"/><path d="M${(x ?? 0) - 8} ${(y ?? 0) + 34} l8 10 l8 -10" fill="${C.foxLeg}"/>`).join(''),
|
||||
'leaf-plate': `<path d="M20 110 Q 100 10 185 100 Q 100 190 20 110z" fill="${C.leaf}" stroke="${C.ink}" stroke-width="5"/><path d="M20 110 Q 100 100 185 100" fill="none" stroke="${C.moss}" stroke-width="5"/>`,
|
||||
'bush-resting': bush(''),
|
||||
'bush-flowering': bush([[55, 100], [100, 60], [145, 105], [90, 135], [125, 150]].map(([x, y]) => `<circle cx="${x}" cy="${y}" r="9" fill="${C.paper}" stroke="${C.ink}" stroke-width="3"/><circle cx="${x}" cy="${y}" r="3" fill="${C.amber}"/>`).join('')),
|
||||
'bush-ripe': bush([[60, 105], [138, 108], [100, 70]].map(([x, y]) => `<ellipse cx="${x}" cy="${y}" rx="20" ry="15" fill="${C.lamp}" stroke="${C.moss}" stroke-width="3"/>`).join('')),
|
||||
'fox-brush': `<path d="M30 110 Q 30 70 100 70 Q 170 70 170 110z" fill="${C.wood}" stroke="${C.ink}" stroke-width="5"/>`
|
||||
+ Array.from({ length: 12 }, (_, i) => `<path d="M${40 + i * 11} 112 v26" stroke="${C.cream}" stroke-width="6" stroke-linecap="round"/>`).join('')
|
||||
};
|
||||
|
||||
const meadow = (path: string): string =>
|
||||
`<ellipse cx="100" cy="200" rx="92" ry="190" fill="${C.meadow}" stroke="${C.ink}" stroke-width="3" stroke-dasharray="10 8"/>${path}`;
|
||||
const lantern = (lit: boolean): string =>
|
||||
(lit ? `<circle cx="140" cy="170" r="60" fill="${C.lamp}" opacity=".45"/>` : '')
|
||||
+ `<path d="M60 390 V 80 Q 60 40 100 40 Q 140 40 140 80 V 110" fill="none" stroke="${C.wood}" stroke-width="14" stroke-linecap="round"/>`
|
||||
+ `<rect x="115" y="130" width="50" height="72" rx="8" fill="${lit ? C.lamp : '#e8eef0'}" stroke="${C.ink}" stroke-width="5"/>`
|
||||
+ `<path d="M115 130 l25 -18 l25 18" fill="${C.foxLeg}" stroke="${C.ink}" stroke-width="4"/>`
|
||||
+ `<rect x="133" y="160" width="14" height="30" fill="${C.paper}" stroke="${C.ink}" stroke-width="3"/>`
|
||||
+ (lit ? `<path d="M140 160 q-8 -12 0 -22 q8 10 0 22z" fill="${C.amber}" stroke="${C.ink}" stroke-width="2"/>` : '');
|
||||
|
||||
/** Tall things, each in a 200 × 400 box: the path stretches and the lanterns. */
|
||||
const TALL: Record<string, string> = {
|
||||
'path-prints': meadow([340, 290, 240, 190, 140, 95, 55].map((y, i) => `<ellipse cx="${100 + (i % 2 ? 12 : -12) * (1 - i / 9)}" cy="${y}" rx="${9 - i}" ry="${7 - i * 0.7}" fill="${C.soil}"/>`).join('')),
|
||||
'path-trail': meadow(`<path d="M92 385 Q 120 260 96 160 T 100 15" fill="none" stroke="#c8d8a8" stroke-width="22" stroke-linecap="round"/><path d="M92 385 Q 120 260 96 160 T 100 15" fill="none" stroke="${C.soil}" stroke-width="5" stroke-dasharray="4 18"/>`),
|
||||
'path-road': meadow(`<path d="M60 388 Q 110 260 88 160 T 92 15 L 108 15 Q 120 120 112 170 T 140 388z" fill="${C.soil}" stroke="${C.ink}" stroke-width="4"/>`
|
||||
+ [[52, 360], [148, 360], [70, 260], [130, 255], [80, 160], [118, 150], [88, 70], [110, 65]].map(([x, y]) => `<circle cx="${x}" cy="${y}" r="7" fill="#c9bcae" stroke="${C.ink}" stroke-width="2"/>`).join('')),
|
||||
'lantern-unlit': lantern(false),
|
||||
'lantern-lit': lantern(true)
|
||||
};
|
||||
|
||||
function garden(W: number, H: number, time: 'morning' | 'day' | 'sunset' | 'night'): string {
|
||||
const tint = {
|
||||
morning: { field: '#b8d1a0', far: '#c9dbe0', wall: '#b4a596', light: '#ffffff' },
|
||||
day: { field: C.meadow, far: '#b9cfa8', wall: '#a8957f', light: '#fff6d8' },
|
||||
sunset: { field: '#c9b07a', far: '#d9a98a', wall: '#a07b62', light: C.amber },
|
||||
night: { field: '#3c4a6a', far: '#46557a', wall: '#3a4466', light: C.lamp }
|
||||
}[time];
|
||||
const h = Math.round(H * 0.4);
|
||||
const bedY = Math.round(H * 0.72);
|
||||
return `<path d="M0 ${h} Q ${W * 0.3} ${h - 18} ${W * 0.55} ${h - 6} T ${W} ${h + 4} V ${H} H 0z" fill="${tint.far}"/>
|
||||
<path d="M0 ${h + 90} Q ${W * 0.5} ${h + 50} ${W} ${h + 110} V ${H} H 0z" fill="${tint.field}"/>
|
||||
<path d="M${W * 0.12} ${bedY - 70} Q ${W * 0.5} ${bedY - 150} ${W * 0.88} ${bedY - 70}" fill="none" stroke="${tint.wall}" stroke-width="44" stroke-linecap="round"/>
|
||||
<ellipse cx="${W / 2}" cy="${bedY}" rx="${W * 0.3}" ry="${H * 0.05}" fill="${C.soil}" stroke="${C.ink}" stroke-width="5"/>
|
||||
<circle cx="${time === 'sunset' ? 80 : W - 80}" cy="${h + 60}" r="26" fill="${tint.light}" opacity=".8"/>
|
||||
<path d="M0 ${h} H ${W}" stroke="${C.ink}" stroke-width="3" stroke-dasharray="14 10"/>`;
|
||||
}
|
||||
|
||||
function single(a: Asset): string {
|
||||
const { width: W, height: H } = a;
|
||||
switch (a.type) {
|
||||
case 'sheet': {
|
||||
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('');
|
||||
const heads: FoxLook[] = [{ pose: 'sit', eyes: 'half' }, { pose: 'sit', eyes: 'open', tilt: -14 }, { pose: 'sit', eyes: 'closed' }];
|
||||
// Close-ups: only the head, cropped by a nested viewBox.
|
||||
const close = heads.map((l, i) => `<svg x="${200 + i * 400}" y="620" width="320" height="320" viewBox="90 10 120 120">${fox(l)}</svg>`).join('');
|
||||
return `<rect width="${W}" height="${H}" fill="${C.paper}"/>${figures}${close}`;
|
||||
}
|
||||
const looks: RoseLook[] = [
|
||||
{ stage: 'full', eyes: 'half', mouth: 'smile' },
|
||||
{ stage: 'full', eyes: 'half', mouth: 'smile', tilt: -12 },
|
||||
{ stage: 'full', eyes: 'half', mouth: 'small', tilt: -20 },
|
||||
{ stage: 'full', eyes: 'half', mouth: 'small', back: true }
|
||||
];
|
||||
const figures = looks.map((l, i) => `<g transform="translate(${60 + i * 360} 40) scale(1.15)">${rose(l)}</g>`).join('');
|
||||
const heads: RoseLook[] = [
|
||||
{ stage: 'full', eyes: 'half', mouth: 'smile' },
|
||||
{ stage: 'half', eyes: 'closed', mouth: 'smile' },
|
||||
{ stage: 'full', eyes: 'closed', mouth: 'smile', blush: true }
|
||||
];
|
||||
// Close-ups: only the bloom, cropped by a nested viewBox.
|
||||
const close = heads.map((l, i) => `<svg x="${200 + i * 400}" y="660" width="320" height="320" viewBox="10 40 180 180">${rose(l)}</svg>`).join('');
|
||||
return `<rect width="${W}" height="${H}" fill="${C.paper}"/>${figures}${close}`;
|
||||
}
|
||||
case 'sprite':
|
||||
return fit(drawing(PROPS, a.id), 200, 200, W, H, 0.7);
|
||||
case 'layer': {
|
||||
const time = (['morning', 'day', 'sunset', 'night'] as const).find((t) => a.id.endsWith(t)) ?? 'day';
|
||||
return garden(W, H, time);
|
||||
}
|
||||
case 'icon':
|
||||
return `<rect width="${W}" height="${H}" fill="${C.coral}"/><rect y="${H / 2}" width="${W}" height="${H / 2}" fill="${C.amber}" opacity=".6"/>
|
||||
<svg x="${W * 0.15}" y="${H * 0.12}" width="${W * 0.7}" height="${H * 0.76}" viewBox="0 30 200 230">${rose({ stage: 'full', eyes: 'half', mouth: 'smile', blush: true })}</svg>`;
|
||||
case 'spritesheet':
|
||||
return sheet(a);
|
||||
}
|
||||
}
|
||||
|
||||
/** A stand-in drawing by id. A picture with none fails the build rather than showing an empty box. */
|
||||
function drawing(from: Record<string, string>, id: string): string {
|
||||
const d = from[id];
|
||||
if (d === undefined) throw new Error(`tools/art-prep/src/placeholders.ts has no stand-in drawing for "${id}"`);
|
||||
return d;
|
||||
}
|
||||
|
||||
/** One cell's drawing, sized to the cell it ships at. */
|
||||
function cellBody(id: string, W: number, H: number): string {
|
||||
const look = ROSES[id];
|
||||
if (look) return fit(rose(look), 200, 520, W, H);
|
||||
const pose = FOXES[id];
|
||||
if (pose) return fit(fox(pose), 300, 240, W, H);
|
||||
if (id in TALL) return fit(drawing(TALL, id), 200, 400, W, H);
|
||||
return fit(drawing({ ...PROPS, ...MORE_PROPS }, id), 200, 200, W, H, 0.7);
|
||||
}
|
||||
|
||||
function sheet(a: Asset): string {
|
||||
const g = a.grid ?? { cols: 1, rows: 1 };
|
||||
return cellBoxes(a.width, a.height, g.cols, g.rows)
|
||||
.map((b, i) => {
|
||||
const c = a.cells?.[i];
|
||||
if (!c) return '';
|
||||
const w = b.x1 - b.x0, h = b.y1 - b.y0;
|
||||
return `<svg x="${b.x0}" y="${b.y0}" width="${w}" height="${h}" viewBox="0 0 ${w} ${h}">${cellBody(c.id, w, h)}</svg>`;
|
||||
})
|
||||
.join('');
|
||||
}
|
||||
|
||||
const wrap = (id: string, W: number, H: number, body: string): string =>
|
||||
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${W} ${H}" width="${W}" height="${H}">\n` +
|
||||
` <!-- Stand-in for ${id} (art/placeholders, CLAUDE.md §2): form and layout only, not art. Built by tools/art-prep. -->\n` +
|
||||
` ${body.replace(/\s*\n\s*/g, ' ')}\n</svg>\n`;
|
||||
|
||||
/** Every stand-in the board and the app may show: one per asset and one per sprite-sheet cell. */
|
||||
export function placeholders(m: Manifest): Map<string, string> {
|
||||
const out = new Map<string, string>();
|
||||
for (const a of m.assets) {
|
||||
out.set(a.id, wrap(a.id, a.width, a.height, single(a)));
|
||||
if (a.type === 'spritesheet') {
|
||||
const { width, height } = cellSize(a);
|
||||
for (const c of a.cells ?? []) out.set(c.id, wrap(c.id, width, height, cellBody(c.id, width, height)));
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
/**
|
||||
* The prompts on the art board, built from the manifest and STYLE.md §1. Nobody types
|
||||
* a prompt by hand (STYLE.md §6): the same words describe the rose every time.
|
||||
*/
|
||||
import type { Asset, Cell, Manifest } from './manifest.js';
|
||||
|
||||
/** Where a cut falls: rounded once and shared by the board's overlay and `art:accept`. */
|
||||
export function cutLines(size: number, parts: number): number[] {
|
||||
return Array.from({ length: parts + 1 }, (_, i) => Math.round((i * size) / parts));
|
||||
}
|
||||
|
||||
export interface CellBox {
|
||||
readonly index: number;
|
||||
readonly row: number;
|
||||
readonly col: number;
|
||||
readonly x0: number;
|
||||
readonly y0: number;
|
||||
readonly x1: number;
|
||||
readonly y1: number;
|
||||
readonly cx: number;
|
||||
readonly cy: number;
|
||||
/** The safe box: the drawing stays inside it (STYLE.md §9). */
|
||||
readonly safe: { readonly x0: number; readonly y0: number; readonly x1: number; readonly y1: number };
|
||||
}
|
||||
|
||||
/** STYLE.md §9: the clear band inside every cell edge, as a share of the cell's shorter side. */
|
||||
export const SAFE_MARGIN = 0.12;
|
||||
|
||||
export function cellBoxes(width: number, height: number, cols: number, rows: number): CellBox[] {
|
||||
const xs = cutLines(width, cols);
|
||||
const ys = cutLines(height, rows);
|
||||
const boxes: CellBox[] = [];
|
||||
for (let row = 0; row < rows; row++) {
|
||||
for (let col = 0; col < cols; col++) {
|
||||
const x0 = xs[col] ?? 0, x1 = xs[col + 1] ?? width, y0 = ys[row] ?? 0, y1 = ys[row + 1] ?? height;
|
||||
const m = Math.round(SAFE_MARGIN * Math.min(x1 - x0, y1 - y0));
|
||||
boxes.push({
|
||||
index: boxes.length, row, col, x0, y0, x1, y1,
|
||||
cx: Math.round((x0 + x1) / 2), cy: Math.round((y0 + y1) / 2),
|
||||
safe: { x0: x0 + m, y0: y0 + m, x1: x1 - m, y1: y1 - m }
|
||||
});
|
||||
}
|
||||
}
|
||||
return boxes;
|
||||
}
|
||||
|
||||
/** The size one cell ships at: its share of the sheet. */
|
||||
export function cellSize(a: Asset): { width: number; height: number } {
|
||||
const g = a.grid ?? { cols: 1, rows: 1 };
|
||||
return { width: Math.floor(a.width / g.cols), height: Math.floor(a.height / g.rows) };
|
||||
}
|
||||
|
||||
/** A cell made on its own is made on the generator canvas closest to its shape. */
|
||||
export function soloCanvas(a: Asset): { width: number; height: number } {
|
||||
const { width, height } = cellSize(a);
|
||||
if (height > width * 1.2) return { width: 1024, height: 1536 };
|
||||
if (width > height * 1.2) return { width: 1536, height: 1024 };
|
||||
return { width: 1024, height: 1024 };
|
||||
}
|
||||
|
||||
const KIND: Record<Asset['type'], string> = {
|
||||
sheet: 'character sheet',
|
||||
spritesheet: 'sprite sheet',
|
||||
sprite: 'single picture',
|
||||
layer: 'garden layer',
|
||||
icon: 'app icon'
|
||||
};
|
||||
|
||||
const bg = (b: Asset['background']): string => (b === 'transparent' ? 'transparent background' : 'full background');
|
||||
const list = (items: readonly string[]): string => items.join('; ');
|
||||
|
||||
/** Extra things a sprite sheet must never have, so it can be cut cleanly. */
|
||||
const SHEET_AVOID = [
|
||||
'grid lines, cell borders or frames',
|
||||
'a background colour or paper behind the drawings',
|
||||
'ground or cast shadows',
|
||||
'drawings touching or overlapping',
|
||||
'cropped petals, leaves or stems'
|
||||
];
|
||||
|
||||
/** The character the picture shows, with the sheet to attach, or the sheet's own description. */
|
||||
function subjectLine(a: Asset, m: Manifest, subject: string): string {
|
||||
const c = a.character === undefined ? undefined : m.characters[a.character];
|
||||
if (!c) return subject;
|
||||
if (c.sheet === a.id) return `${subject} ${c.description}`;
|
||||
return `${subject} Attach the character sheet ${c.sheet} as the reference picture and match it exactly. ${c.description}`.trim();
|
||||
}
|
||||
|
||||
/** The reference pictures to attach when making `a`. */
|
||||
export function attachments(a: Asset, m: Manifest): string[] {
|
||||
const c = a.character === undefined ? undefined : m.characters[a.character];
|
||||
return c && c.sheet !== a.id ? [c.sheet] : [];
|
||||
}
|
||||
|
||||
function canvasLine(width: number, height: number): string {
|
||||
const mx = Math.round(width * 0.15), my = Math.round(height * 0.15);
|
||||
return `Canvas: ${width} × ${height} px, fully transparent background. One subject, centred on (${width / 2}, ${height / 2}), whole and uncropped, filling about 70 % of the canvas: everything inside x ${mx}–${width - mx}, y ${my}–${height - my}, nothing touching an edge. No background colour or paper behind it, no ground, no cast shadow.`;
|
||||
}
|
||||
|
||||
/** The prompt for one picture, or for a whole sprite sheet. */
|
||||
export function promptFor(a: Asset, m: Manifest, style: string): string {
|
||||
if (a.type === 'spritesheet') return sheetPrompt(a, m, style);
|
||||
const lines = [
|
||||
style,
|
||||
'',
|
||||
`Asset: ${a.id}`,
|
||||
`Purpose: ${a.purpose}`,
|
||||
`Subject: ${subjectLine(a, m, a.subject ?? '')}`
|
||||
];
|
||||
if (a.setting) lines.push(`Setting: ${a.setting}`);
|
||||
if (a.type === 'sprite') lines.push(canvasLine(a.width, a.height));
|
||||
if (a.composition) lines.push(`Composition: ${a.composition}`);
|
||||
lines.push(
|
||||
`Size: ${a.width} × ${a.height} px, ${bg(a.background)} (STYLE.md §5, ${KIND[a.type]})`,
|
||||
`Must include: ${list(a.include)}`,
|
||||
`Must avoid: ${list([...a.avoid, ...m.avoid])}`
|
||||
);
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
||||
function sheetPrompt(a: Asset, m: Manifest, style: string): string {
|
||||
const g = a.grid ?? { cols: 1, rows: 1 };
|
||||
const cells = a.cells ?? [];
|
||||
const { width: cw, height: ch } = cellSize(a);
|
||||
const boxes = cellBoxes(a.width, a.height, g.cols, g.rows);
|
||||
const margin = Math.round(SAFE_MARGIN * Math.min(cw, ch));
|
||||
const xs = cutLines(a.width, g.cols).slice(1, -1);
|
||||
const ys = cutLines(a.height, g.rows).slice(1, -1);
|
||||
const cuts = [
|
||||
xs.length ? `Cut lines down the image at x = ${xs.join(', ')}.` : '',
|
||||
ys.length ? `Cut lines across the image at y = ${ys.join(', ')}.` : ''
|
||||
].filter(Boolean).join(' ');
|
||||
|
||||
return [
|
||||
style,
|
||||
'',
|
||||
`Asset: ${a.id}`,
|
||||
`Kind: a sprite sheet. One image holding ${cells.length} separate pictures on a clean grid; it is cut apart along the grid and each cell becomes its own picture in the app. The sheet itself is never shown.`,
|
||||
`Purpose: ${a.purpose}`,
|
||||
`Subject: ${subjectLine(a, m, '') || 'Each cell holds its own thing, described in the cell list below.'}`,
|
||||
`Angle and scale: ${a.angle ?? ''}`,
|
||||
`Canvas: ${a.width} × ${a.height} px, transparent background: a size image generators offer, and the size the grid below is measured on. The app divides the image into ${g.cols} × ${g.rows} equal cells whatever its size.`,
|
||||
`Layout: a clean grid of ${g.cols} column${g.cols === 1 ? '' : 's'} × ${g.rows} row${g.rows === 1 ? '' : 's'} of equal, invisible cells, each ${cw} × ${ch} px, read like a book (left to right, top row first). One subject per cell, centred in its cell, whole and uncropped, with generous empty gutters, so nothing touches the edge of its cell or reaches into a neighbour. No grid lines, borders, frames, numbers, labels or captions anywhere. Fully transparent background between and around the subjects: no paper colour, no ground, no cast shadows. The same light from the left, the same outline weight and the same gouache texture in every cell.`,
|
||||
`Cells (${cells.length}, in reading order):`,
|
||||
...cells.map((c, i) => {
|
||||
const b = boxes[i];
|
||||
return `${i + 1}. ${c.id} (row ${(b?.row ?? 0) + 1}, column ${(b?.col ?? 0) + 1}): ${c.does}`;
|
||||
}),
|
||||
`Grid in pixels:`,
|
||||
`- ${cuts} The lines are never drawn: they are where the scissors go.`,
|
||||
`- Each drawing stays whole inside its own safe box, at least ${margin} px clear of every edge of its cell, so a band of at least ${margin * 2} px of empty transparency runs along every cut line and round the outside. Nothing crosses a cut line: no petal, leaf, stem, shadow or sparkle.`,
|
||||
...cells.map((c, i) => {
|
||||
const b = boxes[i];
|
||||
if (!b) return '';
|
||||
return `- Cell ${i + 1}, ${c.id}: starts at (${b.x0}, ${b.y0}), ends at (${b.x1}, ${b.y1}); centre the drawing on (${b.cx}, ${b.cy}); safe box x ${b.safe.x0}–${b.safe.x1}, y ${b.safe.y0}–${b.safe.y1}.`;
|
||||
}).filter(Boolean),
|
||||
`- One scale for the whole sheet: the largest drawing fills its safe box and every other cell is drawn at that same scale, centred on its cell's centre.`,
|
||||
`- If the tool makes the image another size, keep the same ${g.cols} × ${g.rows} division into equal cells and scale every number above by the same factor.`,
|
||||
`Size: generate at ${a.width} × ${a.height} px (see Canvas); each cell ships at up to ${cw} × ${ch} px, transparent (STYLE.md §5 and §9).`,
|
||||
`Must include: ${list(a.include)}`,
|
||||
`Must avoid: ${list([...a.avoid, ...SHEET_AVOID, ...m.avoid])}`
|
||||
].join('\n');
|
||||
}
|
||||
|
||||
/** The prompt for one cell of a sprite sheet, made on its own (STYLE.md §9, "One at a time"). */
|
||||
export function cellPromptFor(a: Asset, cell: Cell, m: Manifest, style: string): string {
|
||||
const { width, height } = soloCanvas(a);
|
||||
return [
|
||||
style,
|
||||
'',
|
||||
`Asset: ${cell.id} (one picture of ${a.id}, made on its own)`,
|
||||
'Kind: a single picture on a transparent background; it becomes one picture in the app.',
|
||||
`Purpose: ${a.purpose}`,
|
||||
`Subject: ${subjectLine(a, m, '') || 'Each cell holds its own thing, described in the cell list below.'}`,
|
||||
`Angle and scale: ${a.angle ?? ''}`,
|
||||
`This picture: ${cell.does}`,
|
||||
canvasLine(width, height),
|
||||
`Must include: ${list(a.include)}`,
|
||||
`Must avoid: ${list([...a.avoid, ...m.avoid])}`
|
||||
].join('\n');
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Reads art/STYLE.md: §1, the system prompt every picture starts with, and §7, the
|
||||
* review points. The file is the only copy of both, so Mark edits one place.
|
||||
*/
|
||||
|
||||
function section(markdown: string, n: number): string {
|
||||
const text = markdown.replace(/\r\n?/g, '\n');
|
||||
const start = text.search(new RegExp(`^## ${n}\\.`, 'm'));
|
||||
if (start < 0) throw new Error(`art/STYLE.md has no "## ${n}." section`);
|
||||
const rest = text.slice(start);
|
||||
const end = rest.slice(1).search(/^## /m);
|
||||
return end < 0 ? rest : rest.slice(0, end + 1);
|
||||
}
|
||||
|
||||
/** §1: the quoted paragraph, line breaks kept, the `> ` markers removed. */
|
||||
export function stylePrompt(markdown: string): string {
|
||||
const lines = section(markdown, 1)
|
||||
.split('\n')
|
||||
.filter((l) => l.startsWith('>'))
|
||||
.map((l) => l.replace(/^>\s?/, ''));
|
||||
if (lines.length === 0) throw new Error('art/STYLE.md §1 has no quoted system prompt');
|
||||
return lines.join('\n').trim();
|
||||
}
|
||||
|
||||
/** §7: the numbered review points, each joined into one line. */
|
||||
export function reviewPoints(markdown: string): string[] {
|
||||
const points: string[] = [];
|
||||
for (const line of section(markdown, 7).split('\n')) {
|
||||
const item = /^(\d+)\.\s+(.*)$/.exec(line);
|
||||
if (item) {
|
||||
if (Number(item[1]) !== points.length) throw new Error(`art/STYLE.md §7: point ${item[1]} is out of order`);
|
||||
points.push((item[2] ?? '').trim());
|
||||
} else if (/^\s+\S/.test(line) && points.length > 0) {
|
||||
points[points.length - 1] += ' ' + line.trim();
|
||||
}
|
||||
}
|
||||
if (points.length === 0) throw new Error('art/STYLE.md §7 has no review points');
|
||||
return points;
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
import sharp from 'sharp';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { BUDGET, Refused, acceptPicture } from '../src/accept.js';
|
||||
import { readManifest } from './fixtures.js';
|
||||
|
||||
const m = readManifest();
|
||||
const CLEAR = { r: 0, g: 0, b: 0, alpha: 0 };
|
||||
|
||||
/** A transparent canvas with soft blobs drawn where asked: what a well-behaved generator returns. */
|
||||
async function picture(width: number, height: number, blobs: { x: number; y: number; w: number; h: number }[], background = CLEAR): Promise<Buffer> {
|
||||
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}">${blobs
|
||||
.map((b) => `<ellipse cx="${b.x + b.w / 2}" cy="${b.y + b.h / 2}" rx="${b.w / 2}" ry="${b.h / 2}" fill="#c85a6e"/>`)
|
||||
.join('')}</svg>`;
|
||||
return sharp({ create: { width, height, channels: 4, background } }).composite([{ input: Buffer.from(svg) }]).png().toBuffer();
|
||||
}
|
||||
|
||||
/** One blob in the middle of every cell of a grid, optionally leaving cells empty. */
|
||||
const sheetBlobs = (width: number, height: number, cols: number, rows: number, skip: number[] = []) =>
|
||||
Array.from({ length: cols * rows }, (_, i) => i)
|
||||
.filter((i) => !skip.includes(i))
|
||||
.map((i) => {
|
||||
const cw = width / cols, ch = height / rows;
|
||||
return { x: (i % cols) * cw + cw * 0.25, y: Math.floor(i / cols) * ch + ch * 0.25, w: cw * 0.5, h: ch * 0.5 };
|
||||
});
|
||||
|
||||
const refusal = async (p: Promise<unknown>): Promise<string> => {
|
||||
try {
|
||||
await p;
|
||||
} catch (e) {
|
||||
if (e instanceof Refused) return e.message;
|
||||
throw e;
|
||||
}
|
||||
throw new Error('expected a refusal');
|
||||
};
|
||||
|
||||
describe('art:accept', () => {
|
||||
it('a single transparent picture becomes WebP at its size, within its budget', async () => {
|
||||
const { files, notes } = await acceptPicture(await picture(1024, 1024, [{ x: 300, y: 300, w: 400, h: 400 }]), 'garden-chair', m);
|
||||
expect(files).toHaveLength(1);
|
||||
expect(files[0]).toMatchObject({ id: 'garden-chair', width: 1024, height: 1024 });
|
||||
expect(files[0]!.data.subarray(8, 12).toString()).toBe('WEBP');
|
||||
expect(files[0]!.data.length).toBeLessThanOrEqual(BUDGET.sprite);
|
||||
expect(notes).toEqual([]);
|
||||
});
|
||||
|
||||
it('refuses a transparent picture painted on a background', async () => {
|
||||
const opaque = await picture(1024, 1024, [], { r: 251, g: 246, b: 241, alpha: 1 });
|
||||
expect(await refusal(acceptPicture(opaque, 'garden-chair', m))).toMatch(/background is not transparent/);
|
||||
});
|
||||
|
||||
it('cuts a sprite sheet into its cells, each at the size it ships at', async () => {
|
||||
const { files } = await acceptPicture(await picture(1536, 1024, sheetBlobs(1536, 1024, 4, 1)), 'rose-stages-sheet', m);
|
||||
expect(files.map((f) => f.id)).toEqual(['rose-bud', 'rose-opening', 'rose-half-bloom', 'rose-full-bloom']);
|
||||
for (const f of files) expect([f.width, f.height]).toEqual([384, 1024]);
|
||||
});
|
||||
|
||||
it('cuts by the grid whatever size the generator made, and says so', async () => {
|
||||
const { files, notes } = await acceptPicture(await picture(1200, 1000, sheetBlobs(1200, 1000, 3, 2)), 'care-props-sheet', m);
|
||||
expect(files).toHaveLength(6);
|
||||
expect(notes.join('\n')).toMatch(/made at 1200 × 1000, not 1536 × 1024; cut by its 3 × 2 grid anyway/);
|
||||
for (const f of files) expect(Math.max(f.width, f.height)).toBeLessThanOrEqual(512);
|
||||
});
|
||||
|
||||
it('refuses the whole sheet when a cell is empty, naming the cell', async () => {
|
||||
const img = await picture(1536, 1024, sheetBlobs(1536, 1024, 3, 2, [4]));
|
||||
expect(await refusal(acceptPicture(img, 'care-props-sheet', m))).toBe('care-props-sheet: nothing drawn in petal-folded. The whole sheet is refused.');
|
||||
});
|
||||
|
||||
it('refuses the whole sheet when a cell is painted on a background', async () => {
|
||||
const blobs = sheetBlobs(1536, 1024, 3, 2);
|
||||
blobs[2] = { x: 1024, y: 0, w: 512, h: 512 };
|
||||
const img = await sharp(await picture(1536, 1024, blobs))
|
||||
.composite([{ input: { create: { width: 512, height: 512, channels: 4, background: { r: 200, g: 90, b: 110, alpha: 1 } } }, left: 1024, top: 0 }])
|
||||
.png().toBuffer();
|
||||
expect(await refusal(acceptPicture(img, 'care-props-sheet', m))).toMatch(/painted on a background in weed-clump/);
|
||||
});
|
||||
|
||||
it('warns when a drawing touches its cell edge, without refusing', async () => {
|
||||
const blobs = sheetBlobs(1536, 1024, 4, 1);
|
||||
blobs[0] = { x: 0, y: 200, w: 300, h: 600 };
|
||||
const { notes } = await acceptPicture(await picture(1536, 1024, blobs), 'rose-stages-sheet', m);
|
||||
expect(notes).toEqual(["rose-bud: the drawing touches its cell's edge; a neighbour may spill in."]);
|
||||
});
|
||||
|
||||
it('takes one cell made on its own and fits it to the cell', async () => {
|
||||
const { files } = await acceptPicture(await picture(1024, 1536, [{ x: 300, y: 200, w: 400, h: 1100 }]), 'rose-waiting', m);
|
||||
expect(files).toHaveLength(1);
|
||||
expect(files[0]!.id).toBe('rose-waiting');
|
||||
expect(files[0]!.width).toBeLessThanOrEqual(384);
|
||||
expect(files[0]!.height).toBeLessThanOrEqual(1024);
|
||||
});
|
||||
|
||||
it('a garden layer needs a clear sky but may be solid below the horizon', async () => {
|
||||
const ground = { input: { create: { width: 1024, height: 922, channels: 4 as const, background: { r: 169, g: 196, b: 142, alpha: 1 } } }, left: 0, top: 614 };
|
||||
const good = await sharp(await picture(1024, 1536, [])).composite([ground]).png().toBuffer();
|
||||
expect((await acceptPicture(good, 'garden-day', m)).files[0]).toMatchObject({ width: 1024, height: 1536 });
|
||||
const painted = await sharp({ create: { width: 1024, height: 1536, channels: 4, background: { r: 207, g: 224, b: 234, alpha: 1 } } }).png().toBuffer();
|
||||
expect(await refusal(acceptPicture(painted, 'garden-day', m))).toMatch(/sky is not transparent/);
|
||||
});
|
||||
|
||||
it('a full-background picture of the wrong shape is cropped from the middle, and a small one never blown up', async () => {
|
||||
const icon = await sharp({ create: { width: 900, height: 600, channels: 3, background: { r: 233, g: 132, b: 106 } } }).png().toBuffer();
|
||||
const { files, notes } = await acceptPicture(icon, 'app-icon', m);
|
||||
expect(notes.join('\n')).toMatch(/made at 900 × 600, not 1024 × 1024; cropped from the middle/);
|
||||
expect(notes.join('\n')).toMatch(/only 900 px wide; kept at that size, never blown up/);
|
||||
expect([files[0]!.width, files[0]!.height]).toEqual([600, 600]);
|
||||
});
|
||||
|
||||
it('refuses a picture over its budget instead of shipping it', async () => {
|
||||
const noise = Buffer.alloc(1024 * 1024 * 3);
|
||||
for (let i = 0; i < noise.length; i++) noise[i] = (i * 2654435761) >>> 24;
|
||||
const img = await sharp(noise, { raw: { width: 1024, height: 1024, channels: 3 } }).png().toBuffer();
|
||||
expect(await refusal(acceptPicture(img, 'app-icon', m))).toMatch(/over its budget of 120 KB/);
|
||||
});
|
||||
|
||||
it('refuses a name that is not in the manifest, and a file that is not a picture', async () => {
|
||||
expect(await refusal(acceptPicture(Buffer.from('x'), 'owl-sheet', m))).toMatch(/"owl-sheet" is not a picture/);
|
||||
expect(await refusal(acceptPicture(Buffer.from('not an image'), 'garden-chair', m))).toMatch(/could not be read as a picture/);
|
||||
});
|
||||
});
|
||||