[art] BoardV2: Every picture Phases 1-5 need: 86 pictures, each with a stand-in

This commit is contained in:
2026-11-07 15:38:35 +01:00
parent 5f2a5f3cfc
commit d968998f23
42 changed files with 1551 additions and 162 deletions
+101 -4
View File
@@ -189,7 +189,9 @@ const ROSES: Record<string, RoseLook> = {
'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 }
'rose-watching-sunset': { stage: 'full', eyes: 'open', mouth: 'small', back: true, tilt: -10 },
'rose-tickled': { stage: 'full', eyes: 'squeeze', mouth: 'smile', blush: true, leaves: 'down' },
'rose-gentle': { stage: 'full', eyes: 'open', mouth: 'small', leaves: 'raised', tilt: 6 }
};
/** The care things, each in a 200 × 200 box. */
@@ -257,6 +259,86 @@ const TALL: Record<string, string> = {
'lantern-lit': lantern(true)
};
const ink = (w = 4): string => `stroke="${C.ink}" stroke-width="${w}"`;
/** The pictures added with the art board v2 (STYLE.md, 2026-11-07), each in a 200 × 200 box. */
const V2_PROPS: Record<string, string> = {
'weeds-growing': `<ellipse cx="100" cy="160" rx="80" ry="22" fill="${C.soil}" opacity=".85"/>`
+ [70, 100, 130].map((x, i) => `<path d="M${x} 160 l-14 -${40 + i * 10} l12 10 l2 -${22 + i * 5} l8 18 l10 -16 l-4 ${44 + i * 8}z" fill="${C.leaf}" ${ink()}/>`).join(''),
'watering-can-pouring': `<g transform="rotate(24 100 110)"><rect x="70" y="80" width="90" height="80" rx="18" fill="${C.leaf}" ${ink(5)}/>`
+ `<path d="M80 80 q35 -55 70 0" fill="none" ${ink(7)}/><path d="M72 110 L32 70" ${ink(10)} stroke-linecap="round"/></g>`
+ `<path d="M24 66 q-6 40 -4 90" fill="none" stroke="#9cc3d8" stroke-width="6" stroke-linecap="round"/>`
+ [[16, 170], [30, 182]].map(([x, y]) => `<circle cx="${x}" cy="${y}" r="5" fill="#9cc3d8" ${ink(2)}/>`).join(''),
'wind-gust': [60, 100, 140].map((y, i) => `<path d="M20 ${y} q60 -30 110 0 t60 -10" fill="none" stroke="${i === 1 ? C.cream : C.petal}" stroke-width="10" stroke-linecap="round"/>`).join('')
+ `<ellipse cx="150" cy="70" rx="16" ry="7" fill="${C.leaf}" ${ink(3)} transform="rotate(-30 150 70)"/><ellipse cx="80" cy="150" rx="14" ry="6" fill="${C.leaf}" ${ink(3)} transform="rotate(20 80 150)"/>`,
'water-drops': [[70, 80, 14], [120, 70, 10], [100, 120, 16], [140, 130, 9], [60, 140, 8]].map(([x, y, r]) => `<path d="M${x} ${(y ?? 0) - (r ?? 0) * 1.6} q${r} ${(r ?? 0) * 1.6} 0 ${(r ?? 0) * 2.6} q-${r} -${r} 0 -${(r ?? 0) * 2.6}z" fill="#9cc3d8" ${ink(3)}/>`).join(''),
'letter-header': `<rect x="20" y="60" width="160" height="110" rx="6" fill="${C.wood}" ${ink()}/>`
+ `<path d="M40 70 h120 v90 h-120z" fill="${C.paper}" ${ink(3)}/><path d="M100 70 v90" stroke="${C.ink}" stroke-width="2"/>`
+ `<ellipse cx="128" cy="110" rx="18" ry="11" fill="${C.rose}" ${ink(3)} transform="rotate(-25 128 110)"/><path d="M60 150 q20 -40 40 -60" fill="none" stroke="${C.moss}" stroke-width="4"/>`,
'geographers-book': `<path d="M20 70 q40 -14 80 0 q40 -14 80 0 v90 q-40 -14 -80 0 q-40 -14 -80 0z" fill="${C.paper}" ${ink(5)}/>`
+ `<path d="M100 70 v90" ${ink(3)}/><path d="M16 66 v100 h168 v-100" fill="none" stroke="${C.moss}" stroke-width="8"/>`
+ [92, 110, 128].map((y) => `<path d="M34 ${y} h52 M114 ${y} h52" stroke="#d8cfc4" stroke-width="2"/>`).join('')
+ `<path d="M120 160 v30 l6 -8 l6 8 v-30" fill="${C.amber}" ${ink(2)}/>`,
'petal-trace': `<path d="M100 30 C 175 55, 170 165, 100 175 C 35 165, 30 60, 100 30z" fill="${C.cream}" ${ink(5)}/><path d="M100 50 q20 50 0 110" fill="none" stroke="#e0cfb2" stroke-width="3"/>`,
'foxes-meeting': `<svg x="0" y="50" width="200" height="100" viewBox="0 0 600 260">${fox({ pose: 'sit', eyes: 'half', right: true })}<g transform="translate(300 0)">${fox({ pose: 'sit', eyes: 'half' })}</g></svg>`,
'visitor-hedgehog': `<ellipse cx="110" cy="120" rx="62" ry="40" fill="${C.wood}" ${ink()}/>`
+ `<ellipse cx="54" cy="128" rx="26" ry="20" fill="${C.cream}" ${ink()}/><circle cx="30" cy="130" r="5" fill="${C.ink}"/><circle cx="50" cy="120" r="3.5" fill="${C.ink}"/>`
+ Array.from({ length: 7 }, (_, i) => `<path d="M${90 + i * 13} 86 l6 -18 l6 18" fill="${C.foxLeg}"/>`).join(''),
'visitor-robin': `<ellipse cx="110" cy="110" rx="50" ry="40" fill="#8a7a52" ${ink()}/><circle cx="74" cy="92" r="26" fill="#8a7a52" ${ink()}/>`
+ `<ellipse cx="86" cy="116" rx="26" ry="24" fill="${C.coral}"/><path d="M48 92 l-16 4 l16 4z" fill="${C.wood}" ${ink(2)}/><circle cx="68" cy="86" r="3.5" fill="${C.ink}"/><path d="M150 106 l34 -8 l-10 22z" fill="#8a7a52" ${ink(3)}/>`,
'visitor-snail': `<circle cx="120" cy="105" r="42" fill="${C.wood}" ${ink()}/><path d="M120 105 m-26 0 a26 26 0 1 1 26 26 a14 14 0 1 1 -14 -14" fill="none" ${ink(3)}/>`
+ `<path d="M30 150 h150 q-10 -14 -40 -14 h-70 q-30 -10 -40 -40" fill="${C.cream}" ${ink()}/><path d="M42 98 l-6 -26 M54 100 l2 -26" ${ink(3)}/>`,
'visitor-moth': `<path d="M100 100 q-70 -60 -80 10 q20 40 80 0z M100 100 q70 -60 80 10 q-20 40 -80 0z" fill="${C.cream}" ${ink()}/>`
+ `<ellipse cx="100" cy="110" rx="9" ry="30" fill="${C.wood}" ${ink(3)}/><circle cx="62" cy="96" r="9" fill="${C.lamp}"/><circle cx="138" cy="96" r="9" fill="${C.lamp}"/><path d="M96 82 q-10 -24 -26 -30 M104 82 q10 -24 26 -30" fill="none" ${ink(3)}/>`,
'visitor-ladybird': `<ellipse cx="100" cy="110" rx="60" ry="50" fill="${C.strawberry}" ${ink()}/><path d="M100 60 v100" ${ink(3)}/><circle cx="100" cy="64" r="22" fill="${C.ink}"/>`
+ [[74, 100], [126, 100], [80, 135], [120, 135]].map(([x, y]) => `<circle cx="${x}" cy="${y}" r="9" fill="${C.ink}"/>`).join(''),
'visitor-owl': `<ellipse cx="100" cy="115" rx="56" ry="66" fill="${C.wood}" ${ink()}/><ellipse cx="100" cy="135" rx="34" ry="38" fill="${C.cream}"/>`
+ `<path d="M76 84 q8 6 16 0 M108 84 q8 6 16 0" fill="none" ${ink(3)}/><path d="M96 96 l4 8 l4 -8z" fill="${C.amber}"/><path d="M50 60 l14 14 M150 60 l-14 14" ${ink(5)}/>`,
'memento-feather': `<path d="M40 160 Q 100 30 170 40 Q 130 120 40 160z" fill="#b8b0a8" ${ink()}/><path d="M40 160 Q 110 90 170 40" fill="none" stroke="${C.coral}" stroke-width="3"/>`,
'memento-pebble': `<ellipse cx="100" cy="110" rx="70" ry="46" fill="#c9c4bc" ${ink()}/><path d="M50 100 q50 20 100 4" fill="none" stroke="${C.paper}" stroke-width="5"/>`,
'memento-acorn-cup': `<path d="M50 100 q50 70 100 0z" fill="${C.wood}" ${ink()}/><path d="M50 100 h100" ${ink()}/><path d="M100 100 v-30" stroke="${C.foxLeg}" stroke-width="6"/>`,
'memento-snail-shell': `<circle cx="100" cy="105" r="56" fill="${C.wood}" ${ink()}/><path d="M100 105 m-34 0 a34 34 0 1 1 34 34 a18 18 0 1 1 -18 -18" fill="none" ${ink(3)}/>`,
'memento-pressed-flower': `<path d="M100 170 V 90" stroke="${C.moss}" stroke-width="5"/><ellipse cx="80" cy="140" rx="18" ry="8" fill="${C.leaf}" ${ink(3)} transform="rotate(-30 80 140)"/>`
+ Array.from({ length: 5 }, (_, i) => { const a = (i / 5) * Math.PI * 2; return `<circle cx="${(100 + Math.cos(a) * 22).toFixed(1)}" cy="${(70 + Math.sin(a) * 22).toFixed(1)}" r="16" fill="#a9c1e0" ${ink(3)}/>`; }).join('') + `<circle cx="100" cy="70" r="8" fill="${C.amber}"/>`,
'memento-seed-head': `<path d="M100 190 V 100" stroke="${C.moss}" stroke-width="5"/><circle cx="100" cy="80" r="50" fill="${C.paper}" ${ink(3)} stroke-dasharray="4 6"/>`
+ Array.from({ length: 10 }, (_, i) => { const a = (i / 10) * Math.PI * 2; return `<path d="M100 80 l${(Math.cos(a) * 46).toFixed(1)} ${(Math.sin(a) * 46).toFixed(1)}" stroke="#d8d4cc" stroke-width="2"/>`; }).join(''),
'sky-light': `<circle cx="100" cy="100" r="80" fill="${C.lamp}" opacity=".3"/><circle cx="100" cy="100" r="40" fill="${C.lamp}" opacity=".7"/><circle cx="100" cy="100" r="16" fill="${C.paper}"/>`
};
const streetLamp = (lit: boolean): string =>
(lit ? `<circle cx="100" cy="70" r="56" fill="${C.lamp}" opacity=".45"/>` : '')
+ `<path d="M100 390 V 110" stroke="${C.foxLeg}" stroke-width="12"/><path d="M80 390 h40" ${ink(8)}/>`
+ `<path d="M76 110 h48 l-8 -60 h-32z" fill="${lit ? C.lamp : '#e8eef0'}" ${ink(5)}/><path d="M70 50 h60 l-30 -24z" fill="${C.foxLeg}" ${ink(4)}/>`;
/** Tall things added with v2, each in a 200 × 400 box. */
const V2_TALL: Record<string, string> = {
'wave-lamp-unlit': streetLamp(false),
'wave-lamp-lit': streetLamp(true)
};
/** A planet stand-in: a grassy hilltop with the shapes of what its grown-up left there (never a sphere). */
function planet(W: number, H: number, id: string): string {
const top = Math.round(H * 0.6);
const things: Record<string, string> = {
'planet-king': `<rect x="-60" y="-150" width="120" height="150" rx="14" fill="#7a4f6e" ${ink(5)}/><path d="M-30 -60 l10 -24 l20 14 l20 -14 l10 24z" fill="${C.amber}" ${ink(3)}/><path d="M60 0 q120 30 260 120" fill="none" stroke="#7a4f6e" stroke-width="26"/>`,
'planet-vain': `<rect x="-140" y="-200" width="80" height="200" rx="40" fill="#d9e2e6" stroke="${C.amber}" stroke-width="10"/><ellipse cx="80" cy="-10" rx="90" ry="22" fill="${C.wood}" ${ink(4)}/><path d="M10 -60 v60 M150 -60 v60" stroke="${C.amber}" stroke-width="8"/><path d="M10 -55 q70 30 140 0" fill="none" stroke="#7a4f6e" stroke-width="8"/>`,
'planet-businessman': `<rect x="-130" y="-80" width="260" height="20" fill="${C.wood}" ${ink(4)}/><path d="M-120 -60 v60 M120 -60 v60" ${ink(8)}/>`
+ [[-100, 6], [-60, 4], [40, 7]].map(([x, n]) => Array.from({ length: n ?? 0 }, (_, i) => `<rect x="${x}" y="${-96 - i * 14}" width="50" height="12" fill="${C.paper}" ${ink(2)}/>`).join('')).join('') + `<rect x="100" y="-120" width="40" height="40" fill="${C.foxLeg}" ${ink(3)}/>`,
'planet-lamplighter': `<g transform="translate(-100 -390)">${streetLamp(false)}</g><path d="M60 0 L 120 -260" stroke="${C.wood}" stroke-width="10"/>`,
'planet-geographer': `<rect x="-150" y="-80" width="300" height="20" fill="${C.wood}" ${ink(4)}/><path d="M-130 -60 v60 M130 -60 v60" ${ink(8)}/><path d="M-90 -80 q50 -20 90 0 q40 -20 90 0 v-50 q-50 -20 -90 0 q-40 -20 -90 0z" fill="${C.paper}" ${ink(3)}/><circle cx="120" cy="-100" r="16" fill="none" ${ink(4)}/>`
};
return `<path d="M0 ${H} V ${top + 60} Q ${W * 0.2} ${top} ${W / 2} ${top - 10} T ${W} ${top + 60} V ${H}z" fill="${C.meadow}" ${ink(5)}/>`
+ `<path d="M0 ${H - 120} H ${W}" stroke="${C.paper}" stroke-width="240" opacity=".5"/>`
+ `<g transform="translate(${W / 2} ${top - 4}) scale(1.8)">${drawing(things, id)}</g>`;
}
/** The share frame's stand-in: meadow along the bottom and up the sides, the middle left empty. */
function shareFrame(W: number, H: number): string {
return `<path d="M0 ${H} V ${H * 0.55} Q ${W * 0.06} ${H * 0.7} ${W * 0.1} ${H * 0.75} Q ${W / 2} ${H * 0.7} ${W * 0.9} ${H * 0.75} Q ${W * 0.94} ${H * 0.7} ${W} ${H * 0.55} V ${H}z" fill="#3c4a6a" ${ink(5)}/>`
+ `<path d="M0 ${H * 0.86} Q ${W / 2} ${H * 0.8} ${W} ${H * 0.86}" stroke="#46557a" stroke-width="60" fill="none"/>`
+ [[0.2, 0.84], [0.7, 0.82]].map(([x, y]) => `<circle cx="${W * (x ?? 0)}" cy="${H * (y ?? 0)}" r="8" fill="${C.lamp}"/>`).join('');
}
function garden(W: number, H: number, time: 'morning' | 'day' | 'sunset' | 'night'): string {
const tint = {
morning: { field: '#b8d1a0', far: '#c9dbe0', wall: '#b4a596', light: '#ffffff' },
@@ -303,12 +385,27 @@ function single(a: Asset): string {
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);
return fit(drawing({ ...PROPS, ...V2_PROPS }, a.id), 200, 200, W, H, 0.7);
case 'layer': {
if (a.id.startsWith('planet-')) return planet(W, H, a.id);
if (a.id === 'share-frame') return shareFrame(W, H);
const time = (['morning', 'day', 'sunset', 'night'] as const).find((t) => a.id.endsWith(t)) ?? 'day';
return garden(W, H, time);
}
case 'icon':
if (a.id === 'favicon-mark') {
// A bloom of a few bold petals, no face: it must read at 16 px.
const petals = Array.from({ length: 6 }, (_, i) => {
const t = (i / 6) * Math.PI * 2;
return `<circle cx="${(W / 2 + Math.cos(t) * W * 0.17).toFixed(1)}" cy="${(H / 2 + Math.sin(t) * H * 0.17).toFixed(1)}" r="${W * 0.17}" fill="${C.rose}" ${ink(12)}/>`;
}).join('');
return `<rect width="${W}" height="${H}" fill="${C.amber}"/>${petals}<circle cx="${W / 2}" cy="${H / 2}" r="${W * 0.16}" fill="${C.petal}" ${ink(12)}/>`;
}
if (a.id === 'app-icon-maskable') {
return `<rect width="${W}" height="${H}" fill="${C.coral}"/><rect y="${H / 2}" width="${W}" height="${H / 2}" fill="${C.amber}" opacity=".6"/>
<circle cx="${W / 2}" cy="${H / 2}" r="${W * 0.3}" fill="none" stroke="${C.paper}" stroke-width="4" stroke-dasharray="16 12"/>
<svg x="${W * 0.25}" y="${H * 0.22}" width="${W * 0.5}" height="${H * 0.56}" viewBox="0 30 200 230">${rose({ stage: 'full', eyes: 'half', mouth: 'smile', blush: true })}</svg>`;
}
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':
@@ -329,8 +426,8 @@ function cellBody(id: string, W: number, H: number): string {
if (look) return fit(rose(look), 200, 520, W, H);
const pose = FOXES[id];
if (pose) return fit(fox(pose), 300, 240, W, H);
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);
if (id in TALL || id in V2_TALL) return fit(drawing({ ...TALL, ...V2_TALL }, id), 200, 400, W, H);
return fit(drawing({ ...PROPS, ...MORE_PROPS, ...V2_PROPS }, id), 200, 200, W, H, 0.7);
}
function sheet(a: Asset): string {