audit.mjs

Tools · A check on the result · MIT

What it does

Proves a figure's geometry instead of trusting the eye: records each part's true shape as you draw it, ray-casts every overlapping pair to set the painting order, and then checks that nothing passes through anything, every pipe end sits on a mount, no bend folds, and every overlap is drawn in true depth order, at rest, taken apart and in every replayed frame between. The build exits non-zero on any failure.

Get it

import * as A from './kit/audit.mjs'; const R = A.recorder(P, { order, spring }); /* record parts */ A.settle(R, P); A.auditOrExit(R, P); then: node build.mjs --audit

Source on GitHub
Needs (the whole pack)

Node 20.10 or later for builds and checks, with nothing to npm install. Chrome for the checking scripts. React only for the React output. No API keys.

License

MIT

License notes are on the pack's page

From

Anatomy

Everything from Anatomy in the gallery

Back to the Asset Library