[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116855":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":10,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":35,"discoverSource":36},116855,"frostwind","trinity-works\u002Ffrostwind","trinity-works","A nature-grounded world compiler for pixel art. Real physics, imaginary worlds.","https:\u002F\u002Fproject-frostwind.fly.dev",null,"JavaScript",89,2,56,0,1,8,10,48.23,"MIT License",false,"main",[24,25,26,27,28,29,30,31],"agents","claude-code","gamedev","pixel-art","procedural-generation","threejs","webgl","world-generation","2026-11-19 09:21:44","2026-11-23 13:23:57","# Frostwind\n\nFrostwind is a **nature-grounded world compiler for pixel-art game worlds**.\nReal physics, imaginary worlds. It turns explicit models of nature, life,\nculture, craft, and art direction into deterministic, inspectable scenes.\n\nAn LLM cannot see. Writing a 2D world, it guesses at every question a human\nartist answers by looking: how big is a deer next to a person, does a head read\nat this height, how far does a foot travel in one frame, what colour is snow in\nshadow at 62 degrees north. Each answer is plausible on its own, and together\nthey produce a world where nothing agrees with anything.\n\nFrostwind puts a derivation layer between intent and pixels. Physics settles\nwhat has a physical answer: 26 px is 1.70 m, a roe buck is 1.18 m, so he is\n20 px. Craft settles what the medium constrains, like the row budget a head needs\nto read. Anything left over is declared as taste and applied consistently. Tests\nhold all three true as the world outgrows what anyone can keep in their head.\n\n> Nothing is drawn that can be derived. Nothing is chosen that can be measured.\n> Nothing is claimed that cannot be checked.\n\nSprites store material, normal, occlusion, and thickness, never colour. Terrain\nis queried from analytic fields rather than painted maps. Reality and the pixel\nmedium are both authorities; when they conflict, the legibility floor is\nexplicit. An LLM may research and propose schema-checked tables, and pixels\nstill pass through the same deterministic compiler: **the model is the\nguardrail; the LLM writes tables, not pixels.**\n\nThis is a physically grounded world model and reference implementation. It is\nnot a general game engine or a runtime prompt-to-image system.\n\n**[Play it in the browser](https:\u002F\u002Fproject-frostwind.fly.dev\u002F)**, or build it\nfrom source with the three commands below. The code is open source under the\n[MIT licence](LICENSE).\n\n## Showcase\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Ffrostwood.png\" alt=\"Frostwood winter forest, cabins, lake and traveller\" width=\"32%\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fmeadow.png\" alt=\"Sun Meadow with palms, sward, dust path and traveller\" width=\"32%\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fswamp.png\" alt=\"Green Swamp landing, pile houses, water and residents\" width=\"32%\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Cem>Frostwood · Sun Meadow · Green Swamp\u003C\u002Fem>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fdesert.png\" alt=\"Amber Waste oasis with date palms, salt crust and dunes\" width=\"49%\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fdesert-storm.png\" alt=\"Blown sand over the Amber Waste dune field\" width=\"49%\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Cem>Amber Waste · the same dunes under blown sand\u003C\u002Fem>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fhollow.png\" alt=\"Amethyst Hollow crystal sea, each group in its own pool of violet light\" width=\"49%\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fhollow-hall.png\" alt=\"Amethyst Hollow hall with the Mirror pool, cap houses, lamp posts and the pale herd\" width=\"49%\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Cem>Amethyst Hollow · the Amethyst Sea and the hall\u003C\u002Fem>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fpond-court.png\" alt=\"Compiled Pond Court with analytic pond, paving and ruined masonry\" width=\"49%\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fswamp-lakehouse.png\" alt=\"Compiled Swamp Lakehouse above its sinkhole basin\" width=\"49%\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Cem>Pond Court · Swamp Lakehouse\u003C\u002Fem>\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fcreatures.png\" alt=\"Staged boreal fauna and folk on snow\" width=\"49%\">\n  \u003Cimg src=\"docs\u002Fimages\u002Fmachines.png\" alt=\"Three meadow dream-machine body plans\" width=\"49%\">\n\u003C\u002Fp>\n\u003Cp align=\"center\">\u003Cem>Boreal fauna and folk · Meadow dream-machines\u003C\u002Fem>\u003C\u002Fp>\n\nThese are deterministic captures from the real renderer, not concept art. The\ncapture commands are in [tools\u002Fshot.mjs](tools\u002Fshot.mjs).\n\n## Quick start and controls\n\nUse a current Node.js LTS release, npm, and a WebGL-capable browser.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ftrinity-works\u002Ffrostwind.git\ncd frostwind\nnpm install\nnpx playwright install chromium   # browser captures and frame tests only\nnpm run build\n```\n\nOpen `dist\u002Ffrostwood.html` directly; it is a self-contained page that works from\n`file:\u002F\u002F`. The title screen offers Frostwood, Sun Meadow, Green Swamp, Amber Waste and\nAmethyst Hollow;\nManifesto opens the project statement. Deep links skip the menu.\n\n- Walk: arrow keys or WASD (touch: drag the stick; diagonals allowed)\n- Run: Shift (keyboard only)\n- Map: M\n- Menu: open the non-destructive world picker over the current scene\n- World controls: the ⚙ panel changes seed, resolution, density, snow, water,\n  fog, wind, light, and render passes\n- Start in Sun Meadow: `dist\u002Ffrostwood.html?at=meadow`\n- Start at its settlement: `dist\u002Ffrostwood.html?at=meadow&poi=village`\n\nThe default scene is Frostwood. Its distant portal rebuilds the resident scene\nas Sun Meadow. Cabins, steadings, and swamp houses are outdoor props; doors do\nnot cross into a separate room place.\n\n## What is implemented\n\nThe compiler is a five-stage pipeline:\n\n1. **World model:** analytic terrain, water, slope, shore distance, paths,\nplaces, and affordance fields. 2. **Sprite synthesis:** growth and\nconstruction grammars emit material, normal, occlusion, thickness, and contact\nchannels. 3. **Placement:** streamable jittered grids and explicit place plans\nselect valid candidates from the fields. 4. **Composite:** ordered GPU passes\ndraw ground, shadows, reflections, sprites, and fire. 5. **Quantise:** Bayer\ndither and a scene-local locked palette resolve the final pixels.\n\nCurrent proofs:\n\n- **Frostwood:** boreal light, snow, lakes, trails, cabins, animals, people,\n  and tracks.\n- **Sun Meadow:** a separate latitude, derived summer ramps, pond optics,\n  palms, open-grown crowns, sward, steading, wind machines, and dream-machines.\n- **Green Swamp:** shared hydrology drives travel, rain response, habitat,\n  resident work, pile houses, and the compiled Swamp Lakehouse.\n- **Amber Waste:** one wind field drives dune shape, where a wall may stand,\n  blown-sand transport above a threshold, and what a worm can swim through. The\n  first world to spend the angle of repose.\n- **Amethyst Hollow:** a cavern with no sun. Emission bands give the lamp\n  colours, each luminous body lights its own pool of floor, and rooms cut in\n  rock say where a body walks.\n- **Pond Court:** `fields → affordance → cultural plan → candidates → pixels`.\n- **Built form:** one construct layer owns cabinet projection, face values,\n  drawn-base collision, and lift. Cabins, steadings, pavilions, pile houses,\n  lakehouses, and ruins remain explicit vernaculars.\n- **Pixel bodies:** a grid-authored folk cast with biome-owned dress,\n  displacement-locked walk\u002Frun, and transient gaze; two rigged quadrupeds, a\n  roe deer and a wolf, whose measured disagreements decided how much machinery\n  they may share; hand-drawn small animals; botanical grammars; and a parallel\n  non-human machine morphology.\n\nThe authored\u002Fprocedural boundary is deliberate: nature generates continuous\nconditions and variation; authors state culture, landmarks, identity, and\nexceptions that no physical law can choose.\n\n### Known limits\n\n- The current scene rosters pack to 1024x2048 for boreal, 1024x1024 for meadow\n  and desert, and 1024x512 for swamp.\n- Sun Meadow has an explicit traveller plus three unique machine lives; its\n  houses remain exterior builders.\n- The construct layer shares mechanics, while each vernacular still has an\n  explicit builder rather than a general architecture grammar.\n- Pond Court and the Swamp Lakehouse are bespoke compiled places. There is no\n  general place search or beauty-search interface.\n- Night is not represented. Dialogue, quests, and persistent game saves remain\n  outside the compiler's scope.\n- Frostwood and Green Swamp have their own music. Amber Waste and Amethyst\n  Hollow borrow Frostwood's piece. Sun Meadow's piece is an optional paid file.\n  A tree without the file plays Frostwood's piece in Sun Meadow. See\n  [assets\u002Fmusic\u002FCREDITS.md](assets\u002Fmusic\u002FCREDITS.md).\n\n## Create a new world\n\nA world is data: plan rows and tables, in the order the `add-world` skill\n(`.claude\u002Fskills\u002Fadd-world\u002FSKILL.md`) lists with the check for each step.\n\n1. **State the plan.** Add a `BIOMES` row in [src\u002Fbiome.js](src\u002Fbiome.js):\n   scene, latitude, water model, traversal surfaces, ground remap, place ring,\n   settlement slots, cultures, and portals. [src\u002Fworldgen.js](src\u002Fworldgen.js)\n   composes the stages in [src\u002Fworld\u002F](src\u002Fworld\u002F) from that row. Add a stage\n   branch only for a new model (a new kind of water, a new landform), keyed on\n   the plan.\n2. **Declare surfaces and ramps.** Append new surface rows in\n   [src\u002Fsurface.js](src\u002Fsurface.js); persisted surface ids must never be\n   reordered. Add physically derived ramps in\n   [src\u002Fsunlight.js](src\u002Fsunlight.js), or a clearly authored ramp in\n   [src\u002Fpalette.js](src\u002Fpalette.js). Ramp ids are also append-only.\n3. **Add life as data.** Add semantic conditions, resources, activity,\n   sociality, behavior, provenance, and non-claims in\n   [src\u002Flife.js](src\u002Flife.js); add authored human meanings only in\n   [src\u002Fculture.js](src\u002Fculture.js). Botanical distributions and growth\n   grammars remain in [src\u002Fspecies.js](src\u002Fspecies.js). State the wild cohorts\n   in `ROSTER` in [src\u002Fworld\u002Flife-field.js](src\u002Fworld\u002Flife-field.js).\n4. **Register the scene.** Add a `SCENES` row in\n   [src\u002Fscene.js](src\u002Fscene.js) with its biome, output ramps, haze treatment,\n   and water reflection window.\n5. **Compile authored places.** Follow\n   [src\u002Fpond-court.js](src\u002Fpond-court.js): derive a plan from fields, generate\n   candidates, reject illegal ones, and emit ordinary scene props. A place does\n   not get a branch in the renderer.\n6. **Prove the result.** Add direct model tests first. Run `npm run test:palette`\n   to see which ramps moved, then look at a real frame before accepting it.\n\nKeep one sun, palette request, generator, atlas, and bake context per resident\nscene. If two worlds need different physical conditions, make two scenes and a\nportal; do not hide both inside one biome function.\n\n## Extend the compiler\n\nFor a new physical, biological, cultural, or craft rule:\n\n1. Classify it as **measured law**, **derived consequence**, **authored taste**,\n   **medium constraint**, or **fictional law**.\n2. Put one authority in the owning layer:\n   - dimensions in [src\u002Fscale.js](src\u002Fscale.js);\n   - terrain, water, dunes, siting, placement, and ground in the stages of\n     [src\u002Fworld\u002F](src\u002Fworld\u002F);\n   - semantic life, culture, continuity, and behavior in\n     [src\u002Flife.js](src\u002Flife.js), [src\u002Fculture.js](src\u002Fculture.js),\n     [src\u002Flife-session.js](src\u002Flife-session.js), and\n     [src\u002Fbehavior.js](src\u002Fbehavior.js);\n   - surface\u002Fmaterial behavior in [src\u002Fsurface.js](src\u002Fsurface.js);\n   - light, atmosphere, canopy, and water optics in\n     [src\u002Fsunlight.js](src\u002Fsunlight.js);\n   - morphology and growth in [src\u002Fspecies.js](src\u002Fspecies.js),\n     [src\u002Fbody-deer.js](src\u002Fbody-deer.js), or [src\u002Fmachine.js](src\u002Fmachine.js);\n   - sprite-channel operations in [src\u002Fsprite.js](src\u002Fsprite.js);\n   - composition and world state in [src\u002Fscene.js](src\u002Fscene.js).\n3. Make drawing and placement read that authority. A table no executable path\n   reads is documentation, not a model.\n4. Add a narrow test that measures the cause and, where relevant, its drawn\n   consequence. A check names an authority and says what moved.\n5. Add or move the row in [docs\u002FCANON.md](docs\u002FCANON.md), including provenance,\n   scope, concessions, and the exact executable reader.\n\nThe renderer owns the frame; the scene owns the world. Do not add biome,\ndoorway, entity, or place branches to [src\u002Frender.js](src\u002Frender.js).\n\n## Work with a coding agent\n\nThe repository ships the contract its own agents work under, so a coding agent\ncan extend a world without guessing:\n\n- [AGENTS.md](AGENTS.md): the golden rule, the pipeline, and one authority per\n  dimension. Claude Code, Codex and Cursor read it.\n- [.claude\u002Frules\u002F](.claude\u002Frules\u002F): one path-scoped rule per authority cluster.\n  Each names its owning spec and its closest test. `npm run rules` mirrors them\n  to `.cursor\u002Frules\u002F`.\n- [.claude\u002Fskills\u002F](.claude\u002Fskills\u002F): `add-world`, `add-character` and\n  `frame-check`, each a checked list of steps.\n\nOpen the repository in your agent and ask for a world, for example:\n\n> Add a tundra world with a frozen river, a reindeer herd and a herders' camp.\n\nThe agent writes plan rows, tables and tests. The compiler derives the pixels.\n\n## Commands and verification\n\n```bash\nnpm run build            # dist\u002Ffrostwood.html\nnpm run dev              # rebuild the game on change\nnpm run lab              # dist\u002Flab.html: sprite\u002Ffigure inspection\nnpm run preview          # 13.5-second, three-world MP4 from the current build\nnpm run context:stats    # always-loaded, routed, and repository prose budgets\nnpm run lint             # undefined names, unused bindings, world stage wiring\nnpm run codehash         # which edited files changed code, which only comments\nnpm run rules            # write the Cursor rule mirror from .claude\u002Frules\n\nnpm run test:built-form  # scale, construction, pavilion, architecture, steading\nnpm run test:people      # both human rasters, culture, and attention\nnpm run test:world       # scene, palette, weather, biome, and swamp integration\nnpm run test:life        # life, ecology, culture, continuity, disturbance\nnpm run test:culture     # dress vocabulary and weather selection only\nnpm run test:folk:contract\nnpm run test:folk:raster\nnpm run test:folk:colour\nnpm run test:biome\nnpm run test:machine\nnpm run test:pond-court\nnpm run test:swamp       # swamp hydrology, settlement and lakehouse\nnpm run test:desert      # dune field, oasis, and the worm\nnpm run test:architecture\nnpm run test:palette     # every ramp and scene snap list, no browser\nnpm run palette:update   # rewrite the colour baseline once you have read the delta\nnpm run test:frame       # one real frame per world, against its locked palette\nnpm run test:music\nnpm run test:review      # three-option human pixel-review manifests\nnpm test                 # every *.test.mjs, without rebuilding\nnpm run verify           # lint, build, then the full test suite\n```\n\nUseful captures:\n\n```bash\nnode tools\u002Fshot.mjs --out docs\u002Fimages\u002Ffrostwood.png --zoom 3\nnode tools\u002Fshot.mjs --scene meadow --common --out docs\u002Fimages\u002Fmeadow.png --zoom 3\nnode tools\u002Fshot.mjs --scene swamp --settlement --out docs\u002Fimages\u002Fswamp.png --zoom 3\nnode tools\u002Fshot.mjs --scene swamp --lakehouse --out docs\u002Fimages\u002Fswamp-lakehouse.png --zoom 3\nnode tools\u002Fshot.mjs --creatures --at 0,1000 --out docs\u002Fimages\u002Fcreatures.png --zoom 4\nnode tools\u002Fshot.mjs --machines --out docs\u002Fimages\u002Fmachines.png --zoom 4\nnode tools\u002Fshot.mjs --scene meadow --poi pondCourt --out docs\u002Fimages\u002Fpond-court.png --zoom 3\nnode tools\u002Fshot.mjs --oasis --out docs\u002Fimages\u002Fdesert.png --zoom 3\nnode tools\u002Fshot.mjs --dunes --wind 2.4 --out docs\u002Fimages\u002Fdesert-storm.png --zoom 3\nnode tools\u002Fshot.mjs --scene hollow --at -1010,560 --out docs\u002Fimages\u002Fhollow.png --zoom 3\nnode tools\u002Fshot.mjs --scene hollow --at 60,570 --out docs\u002Fimages\u002Fhollow-hall.png --zoom 3\n```\n\n### Human pixel review\n\n`.claude\u002Frules\u002Fpixel-review-gate.md` owns the gate. The agent measures and\nlooks at its own frames; a change that alters a world's look carries a before\nand after pair. An open question with no law and no defect goes to a\nthree-option human review, and `test\u002Freview.test.mjs` holds the manifest\nfixture.\n\n```bash\nnode tools\u002Freview.mjs review\u002Froof.json\n```\n\nThe command writes `review\u002FFW-VR-\u003Cdate>-\u003Chash>.html` and a normalized JSON\nrecord, and it rejects any option count other than three. Reply with the\nprinted review ID and `A`, `B`, or `C`, for example `FW-VR-20260807-12AB34CD\nB`.\n\nThe preview renderer needs `ffmpeg` on `PATH` and reads the current\n`dist\u002Ffrostwood.html`. Playwright records the deterministic world plate, then\nRemotion cuts the three world clips:\n\n```bash\nnode tools\u002Fpreview.mjs --draft             # short capture smoke check\nnpm run preview                            # capture and polish the full handoff\nnpm run preview:capture                    # refresh only the source plate\nnpm run preview:studio                     # tune the Remotion composition\nnpm run preview:polish                     # render the current source plate\n```\n\nThe final render is three 4.5-second cuts: Frostwood, Sun Meadow, and Green\nSwamp. It keeps the 960×540 viewport scaled exactly 2×, eased diagonal camera\nmotion, staged wildlife, and each world's music with short cut fades. The only\noverlay is a compact upper-left world name, main-menu icon, seed, pinned time,\nand viewport. Generated videos stay under `artifacts\u002Fpreview\u002F`.\n\nDirect tests own equations, dimensions, and tables. Rig identity owns synthesized\nfigure bytes. `test:palette` owns every ramp and scene snap list. The frame gate\nowns the one claim no model test can make, that the shader agrees with the model:\nevery pixel a GPU drew is an entry in the palette that world declared. Visual\nreview remains the authority for intentional art changes. A check names an\nauthority and says what moved; it does not prove beauty.\n\n## Repository map\n\n```text\nsrc\u002F\n  main.js                  bootstrap, controls, DOM boundary\n  scale.js                 dimensional authority: 26 px = 1.70 m\n  render.js                GPU frame, batches, render targets and passes\n  scene.js                 resident world, entities, places and portals\n  worldgen.js              composes the world stages in dependency order\n  world\u002F                   terrain, dunes, swamp water, water, siting, life\n                           field, placement, ground painters, chunk bake\n  biome.js                 world plans, placement lattices, habitat niches\n  weather.js               rain, blown sand and gust fronts on one wind axis\n  life.js culture.js       semantic species and authored cultural authority\n  life-session.js          clock, records, events, memory and snapshots\n  behavior.js life-runtime.js  pure decisions and nearby realization\n  surface.js               append-only material\u002Fsurface table\n  sunlight.js palette.js   physical light\u002Framps and locked palette bakes\n  sprite.js species.js     channel operations and plant grammars\n  gait.js quadruped.js     Hildebrand contact schedules; the shared limb solver\n  body-deer.js figure-deer.js  the first rigged animal\n  body-wolf.js figure-wolf.js  the second rigged animal, and the shared seam's proof\n  people.js                the one cast list and world-to-traveller wardrobe map\n  body-folk.js figure-folk.js  grid-authored human anatomy and raster\n  animal.js fauna.js       hand-drawn small animals and actor expression rows\n  machine.js               non-human morphology and dream-law boundary\n  construct.js             shared built-form volume, projection and contact\n  cabin.js steading.js pavilion.js  explicit built-form generators\n  swamp-settlement.js swamp-lakehouse.js  compiled swamp settlement and place\n  ruins.js pond-court.js   ruins synthesis and compiled-place plan\n  atlas.js                 synthesis orchestration and GPU atlas packing\n  shaders\u002F                 GLSL templates; palette resolution happens here\n\nassets\u002F                    fonts and music, each with its own licence file\nreference\u002F                 retained human source studies, not runtime assets\nlab\u002F                       browser inspection entry points\ntools\u002F                     captures, lint, code identity, rule mirror\ntest\u002F                      model specifications and rendered regression gates\ndocs\u002F                      canon, decisions, biome and machine specifications\nbuild.mjs                  game\u002Flab single-file build targets\n```\n\n## Documentation path\n\nRead in this order:\n\n1. [VISION.md](VISION.md): the derivation layer, two canons, method limits\n2. [ARCHITECTURE.md](ARCHITECTURE.md): pipeline, ownership, scene exclusivity\n3. [docs\u002FCANON.md](docs\u002FCANON.md): encoded, downgraded, refused, and available laws\n4. [docs\u002FDECISIONS.md](docs\u002FDECISIONS.md): current decisions and concessions\n5. [ROADMAP.md](ROADMAP.md): completed foundations and open structural debt\n\nThen route by subject:\n\n- Worlds and ecology: [docs\u002FMEADOW.md](docs\u002FMEADOW.md) (biome physics);\n  [docs\u002FSWAMP.md](docs\u002FSWAMP.md); [docs\u002FDESERT.md](docs\u002FDESERT.md);\n  habitat dossiers under [docs\u002Flife\u002F](docs\u002Flife\u002F)\n- Semantic life and culture: [LIFE.md](LIFE.md)\n- Production morphology and pixel-medium laws: [docs\u002FLIFE.md](docs\u002FLIFE.md)\n- Source studies retained behind the current folk raster: [reference\u002F](reference\u002F)\n- Machines and invented physics: [docs\u002FMACHINES.md](docs\u002FMACHINES.md)\n- Projection: [PROJECTION.md](PROJECTION.md)\n- Pixel craft: [PIXEL-ART.md](PIXEL-ART.md)\n- Contribution\u002Fagent constraints: [AGENTS.md](AGENTS.md)\n\n## References and research leads\n\nThe full provenance register, including unsupported folklore, is\n[docs\u002FCANON.md](docs\u002FCANON.md). Important encoded starting points include:\n\n- Lindenmayer, *Journal of Theoretical Biology* (1968): growth grammars.\n- Monsi & Saeki, *Japanese Journal of Botany* 14:22–52 (1953):\n  Beer–Lambert canopy attenuation.\n- Naka & Rushton, *Journal of Physiology* 185:536–555 (1966):\n  photoreceptor response.\n- Hallé, Oldeman & Tomlinson, *Tropical Trees and Forests* (1978):\n  architectural plant models.\n- Livingstone & Hubel, *Science* 240:740–749 (1988): form failure at\n  equiluminance.\n- Pope & Fry, *Applied Optics* 36(33):8710–8723 (1997): pure-water\n  absorption.\n- Merrell et al., *ACM TOG* 30(4), SIGGRAPH (2011): outdoor yard circulation\n  clearance (`YARD_M`).\n\nPromising sources not yet encoded:\n\n- Dreyfuss, *The Measure of Man*, and NASA-STD-3000: anthropometric\n  percentiles for limb ratios.\n- Inman, *Human Walking* (1981), and Perry, *Gait Analysis* (1992):\n  quantitative stance\u002Fswing timing and joint angles.\n- Horton (1945) and Strahler (1952): ordered drainage networks.\n- Soil and snow mechanics literature on angle of repose: slope terracing and\n  deposition; the current `SURFACE.repose` column is not yet executable.\n- West, Brown & Enquist, *Science* (1997): metabolic scaling; currently\n  declined for world-height selection because the pixel frame, not mass, is the\n  binding authority.\n\n## Contributing\n\nIssues and pull requests are welcome at\n[trinity-works\u002Ffrostwind](https:\u002F\u002Fgithub.com\u002Ftrinity-works\u002Ffrostwind).\n\n- [AGENTS.md](AGENTS.md) is the contract for people and agents alike: find the\n  one authority, edit it, and add the closest test.\n- Run `npm run verify` before you open a pull request. It runs lint, the build\n  and the full test suite.\n- A change to drawn output needs a before and after frame from\n  [tools\u002Fshot.mjs](tools\u002Fshot.mjs).\n- Add an asset only with a licence that allows redistribution, and record it\n  beside the file.\n\n## Licence and credits\n\nCode and documentation are under the [MIT licence](LICENSE), copyright Trinity\nLabs Pte. Ltd. Third-party material keeps its own licence:\n\n- **Music:** Veil of Dreams and Lily-Paddling Down the Stream by\n  [Fablefly Music](https:\u002F\u002Ffablefly-music.itch.io\u002F), CC BY 4.0. The hosted\n  demo also plays their track Sunny Stroll, an optional file that the public\n  repository does not carry.\n  See [assets\u002Fmusic\u002FCREDITS.md](assets\u002Fmusic\u002FCREDITS.md).\n- **Font:** Pixelify Sans, SIL Open Font License 1.1. See\n  [assets\u002Ffonts\u002FOFL.txt](assets\u002Ffonts\u002FOFL.txt).\n- **Runtime library:** [three.js](https:\u002F\u002Fthreejs.org\u002F), MIT. The build bundles\n  it into `dist\u002Ffrostwood.html`.\n- **Preview video only:** `npm run preview` uses\n  [Remotion](https:\u002F\u002Fwww.remotion.dev\u002F), which has its own licence. Some\n  companies need a paid Remotion licence. The game, the lab and the tests do\n  not use it.\n- **Craft sources:** [PIXEL-ART.md](PIXEL-ART.md) checks the pipeline against\n  published tutorials and names each source.\n\n> Nature provides the laws. Life provides growth and interaction. Culture\n> provides meaning. Craft provides the language. Beauty provides direction.\n> Frostwind compiles the world.\n","2026-11-24 04:54:22","CREATED_QUERY"]