Art and animation, written as code. Illustrations, loops, interactive web art, launch-videos and scored films in dozens of styles, identical on every render.
TypeScript agent-skillsanimationcanvasclaude-codeclaude-pluginclaude-skillscodex-plugincreative-codecreative-codingcreative-toolsdeterministicgenerative-arthand-drawnillustrationlaunch-videomotion-designmotion-graphicspluginprocedural-generationskill
fix(registry): adaptAlmond is a house style, brickBalloon a scene in toyBrick; style count back to 31 (docs-check PASS)
Alex Greenshpun0cf67d71f8e8
diff --git a/skills/anidoodle/engine/src/canvas-core/adaptAlmond.ts b/skills/anidoodle/engine/src/canvas-core/adaptAlmond.tsindex 99f2e89..9251077 100644--- a/skills/anidoodle/engine/src/canvas-core/adaptAlmond.ts+++ b/skills/anidoodle/engine/src/canvas-core/adaptAlmond.ts@@ -172,7 +172,7 @@ const build = (k: number): Proc => {let PROC: Proc | null = null;const proc = () => (PROC ??= fit(build, N - 31));-export const STYLE = { id: "adaptAlmond", name: "Almond-blossom hand, adapted", family: "paint", medium: "opaque oil in short patterned strokes on canvas, a broken dark blue-green contour, thick lead-white lights", nearest: "paintedOil", hero: "the launch film's koi, repainted in a hand borrowed from a public-domain painting" };+export const STYLE = { id: "adaptAlmond", name: "Almond-blossom hand, adapted", family: "paint", medium: "opaque oil in short patterned strokes on canvas, a broken dark blue-green contour, thick lead-white lights", nearest: "paintedOil", hero: "the launch film's koi, repainted in a hand borrowed from a public-domain painting", house: "styles/house/almond-blossom.json" };export const adaptAlmond: Film = {meta: { title: "Koi · the almond-blossom hand (adapted)", W, H, fps: 30, bpm: 120, durationFrames: N, raster: "cpu" },diff --git a/skills/anidoodle/engine/src/canvas-core/brickBalloon.ts b/skills/anidoodle/engine/src/canvas-core/brickBalloon.tsindex f7a33f8..f3a7de1 100644--- a/skills/anidoodle/engine/src/canvas-core/brickBalloon.ts+++ b/skills/anidoodle/engine/src/canvas-core/brickBalloon.ts@@ -347,7 +347,7 @@ const drawFrame = (ctx: Ctx, fr: number, env: Env) => {if (f < T.fallB) drawMosaic(ctx, env, f);};-export const STYLE = { id: "brickBalloon", name: "Toy brick, from crayon, flying", family: "rendered", medium: "the crayon balloon turned into a toy-brick mosaic, rebuilt in moulded ABS bricks, then flown over a brick world", nearest: "toyBrick", hero: "the crayon hot-air balloon rebuilt in bricks, lifting off" };+export const STYLE = { id: "brickBalloon", name: "Toy brick, from crayon, flying", family: "rendered", medium: "the crayon balloon turned into a toy-brick mosaic, rebuilt in moulded ABS bricks, then flown over a brick world", nearest: "toyBrick", hero: "the crayon hot-air balloon rebuilt in bricks, lifting off", sceneOf: "toyBrick" };export const brickBalloon: Film = {meta: { title: "Balloon · crayon to bricks, and away", W, H, fps: FPS, bpm: 90, durationFrames: N, raster: "cpu" },diff --git a/skills/anidoodle/engine/tools/registry.mjs b/skills/anidoodle/engine/tools/registry.mjsindex ef578cd..f4027bb 100644--- a/skills/anidoodle/engine/tools/registry.mjs+++ b/skills/anidoodle/engine/tools/registry.mjs@@ -29,8 +29,9 @@ export const loadRegistry = () => {const byId = new Map(), shadowed = [];for (const s of legacy) byId.set(s.id, s);- // A house style (a hand matched from someone's image) or a recreation/study USES a hand; it is not a new one.- scanned.splice(0, scanned.length, ...scanned.filter((s) => !s.house && !s.recreationOf && !s.study));+ // A house style (a hand matched from someone's image), a recreation/study, or a scene drawn in an+ // existing hand (`sceneOf: "<hand id>"`) USES a hand; it is not a new one.+ scanned.splice(0, scanned.length, ...scanned.filter((s) => !s.house && !s.recreationOf && !s.study && !s.sceneOf));// "<plate>Draw" is the drawing film of an existing hand, not a new hand: fold it into its parent.const drawOf = (s) => (s.id.endsWith("Draw") && byId.has(s.id.slice(0, -4)) ? s.id.slice(0, -4) : null);for (const s of scanned.filter(drawOf)) byId.set(drawOf(s), { ...byId.get(drawOf(s)), drawFilm: s.id });