diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index a94dd59..d846422 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -2,19 +2,19 @@ "name": "loop-studio-marketplace", "owner": { "name": "Marcusk00", - "url": "https://github.com/Marcusk00" + "url": "https://github.com/MarcusK00" }, "plugins": [ { "name": "loop-studio", "source": "./", - "description": "Deterministic phase-driven seamless animation studio & verification CLI for coding agents.", - "version": "1.0.0", + "description": "Deterministic HTML/WebGL2 browser capture, dual-theme dark/light README bundles, and universal loop/source-drift auditing.", + "version": "2.0.0", "author": { "name": "Marcusk00" }, - "homepage": "https://github.com/Marcusk00/loop-studio", - "tags": ["animation", "loop", "gif", "showcase", "video", "canvas"] + "homepage": "https://github.com/MarcusK00/loop-studio", + "tags": ["readme-demo", "loop", "gif", "webp", "audit", "wcag"] } ] } diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 2fb688a..c51f425 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,21 +1,21 @@ { "name": "loop-studio", - "version": "1.0.0", - "description": "Produce verified, seamless animations and repo showcase loops (GIF, MP4, WebM, PNG) driven by deterministic phase math, seam analysis, legibility checks, and cold-read evaluation.", + "version": "2.0.0", + "description": "Deterministic HTML/WebGL2 browser capture, dual-theme dark/light README bundles, and universal loop/source-drift auditing.", "author": { "name": "Marcusk00", "url": "https://github.com/Marcusk00" }, - "homepage": "https://github.com/Marcusk00/loop-studio", - "repository": "https://github.com/Marcusk00/loop-studio", + "homepage": "https://github.com/MarcusK00/loop-studio", + "repository": "https://github.com/MarcusK00/loop-studio", "license": "MIT", "keywords": [ + "readme-demo", "animation", "seamless-loop", - "showcase", + "webp", "gif", - "mp4", - "generative-art", - "readme" + "wcag", + "audit" ] } diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d16778..23edaf9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,9 +14,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20" + - name: Install FFmpeg for external video audit tests + run: sudo apt-get update && sudo apt-get install -y --no-install-recommends ffmpeg - name: Check Loop CLI Doctor run: node ./tool/bin/loop.js doctor - - name: Rebuild & Audit Gallery Loops - run: npm run build:gallery - - name: Run Positive & Negative Eval Suite + - name: Run Core, Chromium & External Video Eval Suite run: npm test diff --git a/.gitignore b/.gitignore index e19578c..664e327 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,12 @@ node_modules/ .DS_Store *.log tmp/ +examples/**/*.gif +examples/**/*.webp +examples/**/*.mp4 +examples/**/*.webm +examples/**/*.png +examples/**/audit.json +examples/**/seam.json +examples/**/legible.json +examples/**/sources.json diff --git a/AGENTS.md b/AGENTS.md index 33af165..8f12157 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,35 +4,21 @@ ## Quick Command Reference -Use the `loop` CLI (`npx loop` or `node tool/bin/loop.js`) for every stage of the workflow: +| Command | Purpose | +| :--- | :--- | +| `loop new [--template html\|code-diff\|shader]` | Scaffold a clean `scene.html` / `shader.frag` starter with `showcase.json` / `brief.json` | +| `loop sheet ` | Render a numbered contact sheet (`sheet.png`) | +| `loop story ` | Render Frame `0` + step midpoints into `storyboard.png` for cold reading | +| `loop seam ` | Measure wrap-seam RMS delta, duplicate frames, and flicker (works on projects or external videos via `ffmpeg`) | +| `loop legible [--themes dark,light]` | Verify stage labels, reading time, DOM overflow, `400px` width, and WCAG `4.5:1` contrast | +| `loop source-check [--repo .]` | Verify repo-relative `file:line` citations and `"match"` doc-drift tokens | +| `loop audit [--repo .] [--themes dark,light]` | Unified verification gate (`0` pass, `1` fail, `2` missing runtime / invalid input) | +| `loop render [--themes dark,light] [--formats webp,gif,mp4]` | Export verified WebP, GIF, MP4, PNG, and GitHub `` embeds | +| `loop serve ` | Launch interactive phase scrubber, dark/light switcher, and `400px` preview | +| `loop doctor` | Inspect available browser engines and encoders/decoders | -| Command | Purpose | Output | -| :--- | :--- | :--- | -| `loop new [--mode showcase\|ambient] [--style ] [--scene ] [--fps ]` | Scaffold a loop project with `brief.json` / `showcase.json`, `sketch.js`, and preview HTML | `/sketch.js`, `/index.html` | -| `loop sheet [--cols 4] [--every 8]` | Render every Nth frame into a numbered contact sheet for visual critique | `/sheet.png` | -| `loop story ` | Render Frame `0` plus the midpoint frame of each step in `showcase.json` | `/storyboard.png` | -| `loop seam ` | Measure frame-to-frame pixel deltas, last-to-first seam ratio, duplicate frames, and flicker | `/seam.json` | -| `loop legible ` | Audit caption reading time, WCAG contrast (`>= 4.5:1`), safe margins, and phone-width readability | `/legible.json` | -| `loop source-check [--repo ]` | Verify every `file:line` citation in `showcase.json` exists in the target repository | `/sources.json` | -| `loop audit ` | Run `seam`, `legible`, and `source-check` together as a unified quality gate | `/audit.json` | -| `loop render [--fps ] [--formats gif,mp4,webp,webm,png\|all]` | Render full-resolution `loop.gif` / `showcase.gif`, `poster.png`, `loop.mp4` (FFmpeg or macOS AVFoundation), Animated WebP, and WebM at up to `60–120 fps` | `/loop.gif`, `/loop.mp4`, `/poster.png` | -| `loop serve [--port 4173]` | Launch interactive browser workbench with phase scrubber, seam oscilloscope, and mobile preview | `http://localhost:4173` | -| `loop doctor` | Check runtime capabilities (Pure-JS engine, Headless Chrome/Chromium, FFmpeg) | JSON / terminal diagnostic | +## Skills & Agent -## Skill Routing - -1. Start every session by reading [`skills/loop-studio/SKILL.md`](skills/loop-studio/SKILL.md). -2. For **Showcase loops** ("animate what this repo does"), load: - - [`skills/loop-showcase/SKILL.md`](skills/loop-showcase/SKILL.md) - - [`skills/loop-timeline/SKILL.md`](skills/loop-timeline/SKILL.md) - - [`skills/loop-type/SKILL.md`](skills/loop-type/SKILL.md) - - One scene pack from `skills/scenes//SKILL.md` (`flow`, `transform`, `terminal`, `code`, `interface`, `structure`, `architecture`, or `benchmark`) - - [`skills/loop-cold-read/SKILL.md`](skills/loop-cold-read/SKILL.md) -3. For **Ambient loops** ("make a looping background / shader / generative animation"), load: - - [`skills/loop-brief/SKILL.md`](skills/loop-brief/SKILL.md) - - [`skills/loop-math/SKILL.md`](skills/loop-math/SKILL.md) - - [`skills/loop-compose/SKILL.md`](skills/loop-compose/SKILL.md) - - [`skills/loop-palette/SKILL.md`](skills/loop-palette/SKILL.md) - - One style pack from `skills/styles/ + + +
+
+ + + + + loop audit · refactor diff +
+
+ Diff + Phase Contract + Verified +
+
+ +
+
+
+
sketch.js · refactor/phase-loop
+
seam: 1.00 PASS
+
+
+
+
12-const x = (Date.now() * 0.12) % W;
+
13-const jitter = Math.random() * 8;
+
12+const turn = phase * kit.TAU; // [0, 1)
+
13+const x = cx + Math.cos(turn) * r;
+
14+const n = kit.loopNoise(phase, 0.8, 7);
+
+
+ +
+
+ + + +
+ detect clock drift and random jitter +
+ + + + diff --git a/examples/code-diff/showcase.json b/examples/code-diff/showcase.json new file mode 100644 index 0000000..7cae26f --- /dev/null +++ b/examples/code-diff/showcase.json @@ -0,0 +1,34 @@ +{ + "title": "Code Diff Refactor Showcase", + "says": "Loop Studio freezes wall clocks, steps pure phase, and audits seam and contrast.", + "mode": "showcase", + "seconds": 9, + "fps": 24, + "width": 800, + "height": 400, + "palette": "studio-dark", + "stage": ["Diff", "Phase Contract", "Verified"], + "steps": [ + { + "from": 8.0, + "to": 3.0, + "caption": "detect clock drift and random jitter", + "source": "tool/lib/harness.js:82-88", + "match": ["FIXED_EPOCH", "Math.random"] + }, + { + "from": 3.0, + "to": 6.0, + "caption": "replace timer state with pure phase", + "source": "tool/lib/harness.js:158-163", + "match": ["__LOOP_STEP__", "renderLoop(phase"] + }, + { + "from": 6.0, + "to": 8.0, + "caption": "audit seam and WCAG contrast", + "source": "tool/lib/analyzers.js:34-94", + "match": ["analyzeSeam", "evaluateLegibilityFromTextLogs"] + } + ] +} diff --git a/examples/shader-hero/brief.json b/examples/shader-hero/brief.json new file mode 100644 index 0000000..a6024bb --- /dev/null +++ b/examples/shader-hero/brief.json @@ -0,0 +1,11 @@ +{ + "title": "GLSL Iridescent Torus Shader", + "mode": "ambient", + "style": "glsl-shader", + "palette": "nebula", + "seconds": 4, + "fps": 30, + "width": 320, + "height": 320, + "seed": 17 +} diff --git a/examples/shader-hero/shader.frag b/examples/shader-hero/shader.frag new file mode 100644 index 0000000..58d6e5e --- /dev/null +++ b/examples/shader-hero/shader.frag @@ -0,0 +1,86 @@ +float smin(float a, float b, float k) { + float h = clamp(0.5 + 0.5 * (b - a) / k, 0.0, 1.0); + return mix(b, a, h) - k * h * (1.0 - h); +} + +mat2 rot2(float a) { + float c = cos(a); + float s = sin(a); + return mat2(c, -s, s, c); +} + +float mapSDF(vec3 p, float ang) { + vec3 q = p; + q.xz *= rot2(ang); + q.xy *= rot2(ang); + + vec2 t = vec2(length(q.xz) - 0.68, q.y); + float torus = length(t) - 0.22; + + float d = torus; + for (int i = 0; i < 3; i++) { + float fi = float(i); + float oa = ang * 2.0 + fi * (u_tau / 3.0); + vec3 sp = vec3(cos(oa) * 0.86, sin(oa) * 0.86, sin(ang + fi * 2.094) * 0.34); + d = smin(d, length(p - sp) - 0.21, 0.34); + } + return d; +} + +vec3 calcNormal(vec3 p, float ang) { + vec2 e = vec2(0.0025, 0.0); + return normalize(vec3( + mapSDF(p + e.xyy, ang) - mapSDF(p - e.xyy, ang), + mapSDF(p + e.yxy, ang) - mapSDF(p - e.yxy, ang), + mapSDF(p + e.yyx, ang) - mapSDF(p - e.yyx, ang) + )); +} + +void main() { + vec2 uv = (gl_FragCoord.xy - 0.5 * u_resolution) / min(u_resolution.x, u_resolution.y); + float ang = u_phase * u_tau; + + // Cyclic aurora background mist + float wave = 0.5 + 0.5 * sin(uv.x * 3.0 + uv.y * 2.4 + ang); + float glowBg = exp(-dot(uv, uv) * 1.9); + vec3 bg = mix(u_ground, u_surface, glowBg * (0.65 + 0.35 * wave)); + bg += u_spark * (0.08 * glowBg * wave); + + vec3 ro = vec3(0.0, 0.0, 3.45); + vec3 rd = normalize(vec3(uv, -1.65)); + + float t = 0.0; + bool hit = false; + for (int i = 0; i < 52; i++) { + vec3 p = ro + rd * t; + float d = mapSDF(p, ang); + if (d < 0.0018) { + hit = true; + break; + } + t += d; + if (t > 5.0) break; + } + + vec3 col = bg; + if (hit) { + vec3 p = ro + rd * t; + vec3 n = calcNormal(p, ang); + vec3 v = normalize(ro - p); + vec3 l1 = normalize(vec3(1.2, 1.4, 1.6)); + vec3 l2 = normalize(vec3(-1.4, -0.8, 1.0)); + + float diff1 = max(dot(n, l1), 0.0); + float diff2 = max(dot(n, l2), 0.0); + float fresnel = pow(1.0 - max(dot(n, v), 0.0), 2.6); + float spec = pow(max(dot(reflect(-l1, n), v), 0.0), 28.0); + + vec3 irid = mix(u_accent, u_spark, 0.5 + 0.5 * sin(dot(n, vec3(2.2, 1.8, -1.5)) + ang)); + col = u_surface * 0.45 + irid * (0.35 + 0.72 * diff1) + u_spark * (0.35 * diff2); + col += mix(u_accent, u_body, 0.5) * fresnel * 0.85; + col += u_body * spec * 0.65; + } + + col = pow(clamp(col, 0.0, 1.0), vec3(0.95)); + fragColor = vec4(col, 1.0); +} diff --git a/examples/ui-showcase/scene.html b/examples/ui-showcase/scene.html new file mode 100644 index 0000000..8f004e6 --- /dev/null +++ b/examples/ui-showcase/scene.html @@ -0,0 +1,358 @@ + + + + + + + +
+ Loop Workbench +
+ Configure + Preview + Audit + Publish +
+
+ +
+ + +
+
+
+
Frame Rate
+
60 fps
+
+
+
Seam Delta
+
1.00×
+
+
+
Contrast
+
13.4:1
+
+
+ +
+
+ Phase Stability Waveform + +
+ + + + + + + + + + + +
+ +
+ + + +
+
+ +
+ configure loop fps and palette +
+ + + + diff --git a/examples/ui-showcase/showcase.json b/examples/ui-showcase/showcase.json new file mode 100644 index 0000000..ca259b3 --- /dev/null +++ b/examples/ui-showcase/showcase.json @@ -0,0 +1,41 @@ +{ + "title": "UI Product Showcase", + "says": "Loop Workbench previews phase, audits seam and contrast, and renders dark/light bundles.", + "mode": "showcase", + "seconds": 10, + "fps": 24, + "width": 800, + "height": 420, + "palette": "studio-dark", + "stage": ["Configure", "Preview", "Audit", "Publish"], + "steps": [ + { + "from": 8.75, + "to": 1.25, + "caption": "configure loop fps and palette", + "source": "tool/lib/harness.js:23-35", + "match": ["resolveThemePalette", "studio-dark"] + }, + { + "from": 1.25, + "to": 3.75, + "caption": "scrub phase across live waveform", + "source": "tool/lib/server.js:108-120", + "match": ["drawFrame", "__LOOP_STEP__"] + }, + { + "from": 3.75, + "to": 6.25, + "caption": "verify seam score and contrast", + "source": "tool/lib/analyzers.js:34-36", + "match": ["analyzeSeam", "maxSeamScore"] + }, + { + "from": 6.25, + "to": 8.75, + "caption": "publish verified dark & light loops", + "source": "tool/lib/encoders.js:683", + "match": ["encodeAnimatedWebP"] + } + ] +} diff --git a/gallery/api-pipeline-code/audit.json b/gallery/api-pipeline-code/audit.json deleted file mode 100644 index de6136a..0000000 --- a/gallery/api-pipeline-code/audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "api-pipeline-code", - "title": "Phase Contract SDK Showcase (Code)", - "mode": "showcase", - "useCase": "SDK / library docs pairing live-stepping code with a synchronized state monitor", - "fps": 20, - "pass": true, - "seamScore": 1.006, - "duplicateFrames": 0, - "flickerScore": 0.08, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 2343.8, - "totalFrames": 200 -} diff --git a/gallery/api-pipeline-code/index.html b/gallery/api-pipeline-code/index.html deleted file mode 100644 index fc9009b..0000000 --- a/gallery/api-pipeline-code/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Phase Contract SDK Showcase (Code) · Loop Studio - - - -
-
-

Phase Contract SDK Showcase (Code)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/api-pipeline-code/legible.json b/gallery/api-pipeline-code/legible.json deleted file mode 100644 index 9328bdd..0000000 --- a/gallery/api-pipeline-code/legible.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "pass": true, - "width": 800, - "height": 320, - "phoneWidth": 400, - "frame0ShowsAllStageLabels": true, - "stageLabelsChecked": 4, - "captions": [ - { - "step": 1, - "caption": "declare duration and fps in meta", - "words": 6, - "chars": 32, - "windowSeconds": 2.5, - "requiredSeconds": 2.3, - "passReadingTime": true, - "contrastRatio": 14.25, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 2, - "caption": "pass normalized phase to render()", - "words": 5, - "chars": 33, - "windowSeconds": 2.5, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.25, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 3, - "caption": "convert phase to integer cycles", - "words": 5, - "chars": 31, - "windowSeconds": 2.5, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.25, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 4, - "caption": "last frame meets frame 0 cleanly", - "words": 6, - "chars": 32, - "windowSeconds": 2.5, - "requiredSeconds": 2.3, - "passReadingTime": true, - "contrastRatio": 14.25, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - } - ], - "reasons": [] -} diff --git a/gallery/api-pipeline-code/loop.gif b/gallery/api-pipeline-code/loop.gif deleted file mode 100644 index a934b14..0000000 Binary files a/gallery/api-pipeline-code/loop.gif and /dev/null differ diff --git a/gallery/api-pipeline-code/poster.png b/gallery/api-pipeline-code/poster.png deleted file mode 100644 index 1053b88..0000000 Binary files a/gallery/api-pipeline-code/poster.png and /dev/null differ diff --git a/gallery/api-pipeline-code/seam.json b/gallery/api-pipeline-code/seam.json deleted file mode 100644 index c12908c..0000000 --- a/gallery/api-pipeline-code/seam.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "pass": true, - "totalFrames": 200, - "seamScore": 1.006, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.08, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.016208, - "seamStepDelta": 0.016312, - "normalizedSteps": [ - 1.006, - 0.997, - 0.997, - 1.001, - 1.003, - 0.997, - 0.997, - 0.995, - 0.999, - 0.999, - 1.003, - 0.999, - 0.997, - 1.001, - 1, - 1, - 0.994, - 0.996, - 1.072, - 1.072, - 1.061, - 1.071, - 1.068, - 1.026, - 1.726, - 1.001, - 1.027, - 1.071, - 1.075, - 1.064, - 1.076, - 1.076, - 0.996, - 0.994, - 1, - 1, - 1.001, - 0.997, - 0.999, - 1.003, - 0.999, - 0.999, - 0.995, - 0.997, - 0.997, - 1.003, - 1.001, - 0.997, - 0.997, - 1.006, - 1.006, - 0.997, - 0.997, - 1.001, - 1.003, - 0.997, - 0.997, - 0.995, - 0.999, - 0.999, - 1.003, - 0.999, - 0.997, - 1.001, - 1, - 1, - 0.994, - 0.996, - 1.076, - 1.076, - 1.064, - 1.075, - 1.071, - 1.027, - 1.658, - 1.001, - 1.024, - 1.063, - 1.067, - 1.057, - 1.068, - 1.068, - 0.996, - 0.994, - 1, - 1, - 1.001, - 0.997, - 0.999, - 1.003, - 0.999, - 0.999, - 0.995, - 0.997, - 0.997, - 1.003, - 1.001, - 0.997, - 0.997, - 1.006, - 1.006, - 0.997, - 0.997, - 1.001, - 1.003, - 0.997, - 0.997, - 0.995, - 0.999, - 0.999, - 1.003, - 0.999, - 0.997, - 1.001, - 1, - 1, - 0.994, - 0.996, - 1.068, - 1.068, - 1.057, - 1.067, - 1.063, - 1.024, - 1.654, - 1.001, - 1.025, - 1.066, - 1.069, - 1.059, - 1.071, - 1.071, - 0.996, - 0.994, - 1, - 1, - 1.001, - 0.997, - 0.999, - 1.003, - 0.999, - 0.999, - 0.995, - 0.997, - 0.997, - 1.003, - 1.001, - 0.997, - 0.997, - 1.006, - 1.006, - 0.997, - 0.997, - 1.001, - 1.003, - 0.997, - 0.997, - 0.995, - 0.999, - 0.999, - 1.003, - 0.999, - 0.997, - 1.001, - 1, - 1, - 0.994, - 0.996, - 1.071, - 1.071, - 1.059, - 1.069, - 1.066, - 1.025, - 1.646, - 1.001, - 1.026, - 1.068, - 1.071, - 1.061, - 1.072, - 1.072, - 0.996, - 0.994, - 1, - 1, - 1.001, - 0.997, - 0.999, - 1.003, - 0.999, - 0.999, - 0.995, - 0.997, - 0.997, - 1.003, - 1.001, - 0.997, - 0.997, - 1.006 - ], - "reasons": [] -} diff --git a/gallery/api-pipeline-code/sheet.png b/gallery/api-pipeline-code/sheet.png deleted file mode 100644 index 0c5a90f..0000000 Binary files a/gallery/api-pipeline-code/sheet.png and /dev/null differ diff --git a/gallery/api-pipeline-code/showcase.gif b/gallery/api-pipeline-code/showcase.gif deleted file mode 100644 index a934b14..0000000 Binary files a/gallery/api-pipeline-code/showcase.gif and /dev/null differ diff --git a/gallery/api-pipeline-code/showcase.json b/gallery/api-pipeline-code/showcase.json deleted file mode 100644 index 466884e..0000000 --- a/gallery/api-pipeline-code/showcase.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Phase Contract SDK Showcase", - "says": "Every Loop Studio sketch exports meta and a pure render(ctx, phase) function.", - "seconds": 10, - "fps": 20, - "width": 800, - "height": 320, - "palette": "studio-dark", - "scene": "code", - "stage": [ - "export const meta = { seconds: 4 };", - "export function render(ctx, phase) {", - " const a = phase * Math.PI * 2;", - " drawOrbit(ctx, a); // seam 1.00" - ], - "steps": [ - { - "from": 8.75, - "to": 1.25, - "caption": "declare duration and fps in meta", - "source": "rules/AGENTS.md:8" - }, - { - "from": 1.25, - "to": 3.75, - "caption": "pass normalized phase to render()", - "source": "rules/AGENTS.md:17" - }, - { - "from": 3.75, - "to": 6.25, - "caption": "convert phase to integer cycles", - "source": "skills/loop-math/SKILL.md:22" - }, - { - "from": 6.25, - "to": 8.75, - "caption": "last frame meets frame 0 cleanly", - "source": "skills/loop-render/SKILL.md:30" - } - ] -} diff --git a/gallery/api-pipeline-code/sketch.js b/gallery/api-pipeline-code/sketch.js deleted file mode 100644 index ecc4ff8..0000000 --- a/gallery/api-pipeline-code/sketch.js +++ /dev/null @@ -1,127 +0,0 @@ -// Scene Pack: code — Stepping code editor + live inspector pane -export const meta = { - mode: "showcase", - scene: "code", - seconds: 10, - fps: 20, - width: 800, - height: 320, - seed: 29, - palette: "studio-dark" -}; - -export const showcase = { - says: "Every Loop Studio sketch exports meta and a pure render(ctx, phase) function.", - seconds: 10, - scene: "code", - stage: [ - "export const meta = { seconds: 4 };", - "export function render(ctx, phase) {", - " const a = phase * Math.PI * 2;", - " drawOrbit(ctx, a); // seam 1.00" - ], - steps: [ - { from: 8.75, to: 1.25, caption: "declare duration and fps in meta", source: "rules/AGENTS.md:8" }, - { from: 1.25, to: 3.75, caption: "pass normalized phase to render()", source: "rules/AGENTS.md:17" }, - { from: 3.75, to: 6.25, caption: "convert phase to integer cycles", source: "skills/loop-math/SKILL.md:22" }, - { from: 6.25, to: 8.75, caption: "last frame meets frame 0 cleanly", source: "skills/loop-render/SKILL.md:30" } - ] -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["studio-dark"]; - const S = kit.showcase || showcase; - const codeLines = S.stage || showcase.stage; - const steps = S.steps || showcase.steps; - const SECONDS = S.seconds || meta.seconds; - const t = phase * SECONDS; - const TAU = Math.PI * 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const codeW = Math.round(W * 0.56); - const paneH = Math.round(H * 0.60); - const codeX = Math.round(W * 0.06); - const paneY = Math.round(H * 0.08); - const inspW = Math.round(W * 0.29); - const inspX = codeX + codeW + Math.round(W * 0.03); - - kit.roundRect(ctx, codeX, paneY, codeW, paneH, 10); - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1.5; - ctx.stroke(); - - const rowStep = (paneH - 36) / Math.max(1, codeLines.length); - let activeLine = 0; - if (t >= 1.25 && t < 3.75) activeLine = 1; - else if (t >= 3.75 && t < 6.25) activeLine = 2; - else if (t >= 6.25 && t < 8.75) activeLine = 3; - - ctx.font = "500 12.5px monospace"; - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - codeLines.forEach((line, idx) => { - const ly = paneY + 24 + (idx + 0.4) * rowStep; - ctx.globalAlpha = 1; - ctx.fillStyle = idx === activeLine ? C.body : C.muted; - ctx.fillText(line, codeX + 18, ly); - }); - - // Inspector pane with constant-speed orbital particles - ctx.globalAlpha = 1; - kit.roundRect(ctx, inspX, paneY, inspW, paneH, 10); - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.spark; - ctx.lineWidth = 1.5; - ctx.stroke(); - - const cx = inspX + inspW / 2; - const cy = paneY + paneH * 0.5; - const r = Math.min(inspW, paneH) * 0.30; - ctx.strokeStyle = C.line; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.arc(cx, cy, r, 0, TAU); - ctx.stroke(); - - for (let k = 0; k < 3; k++) { - const ang = phase * TAU + (k * TAU) / 3; - const px = cx + Math.cos(ang) * r; - const py = cy + Math.sin(ang) * r; - ctx.fillStyle = k === 0 ? C.accent : C.spark; - ctx.beginPath(); - ctx.arc(px, py, Math.max(5, r * 0.2), 0, TAU); - ctx.fill(); - } - - // Fixed caption pill + cross-faded text - const capY = Math.round(H * 0.86); - const pillW = Math.round(W * 0.62); - kit.roundRect(ctx, W / 2 - pillW / 2, capY - 16, pillW, 32, 6); - ctx.globalAlpha = 0.95; - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1; - ctx.stroke(); - - ctx.font = "500 13px monospace"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - steps.forEach((c) => { - const len = ((c.to - c.from) % SECONDS + SECONDS) % SECONDS || SECONDS; - const u = ((t - c.from) % SECONDS + SECONDS) % SECONDS; - if (u >= len) return; - const fade = Math.max(0.2, Math.min(1, u / 0.35, (len - u) / 0.35)); - ctx.globalAlpha = fade; - ctx.fillStyle = C.body; - ctx.fillText(c.caption, W / 2, capY); - }); - ctx.globalAlpha = 1; -} diff --git a/gallery/api-pipeline-code/sources.json b/gallery/api-pipeline-code/sources.json deleted file mode 100644 index bbeb576..0000000 --- a/gallery/api-pipeline-code/sources.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "pass": true, - "repoRoot": "/Users/marcusk/.gemini/antigravity/scratch/loop-studio", - "checked": 4, - "citations": [ - { - "step": 1, - "source": "rules/AGENTS.md:8", - "file": "rules/AGENTS.md", - "line": 8, - "excerpt": "", - "valid": true - }, - { - "step": 2, - "source": "rules/AGENTS.md:17", - "file": "rules/AGENTS.md", - "line": 17, - "excerpt": "palette: \"abyss\"", - "valid": true - }, - { - "step": 3, - "source": "skills/loop-math/SKILL.md:22", - "file": "skills/loop-math/SKILL.md", - "line": 22, - "excerpt": "", - "valid": true - }, - { - "step": 4, - "source": "skills/loop-render/SKILL.md:30", - "file": "skills/loop-render/SKILL.md", - "line": 30, - "excerpt": "### 4. Seam Analysis (`loop seam`)", - "valid": true - } - ], - "reasons": [] -} diff --git a/gallery/api-pipeline-code/storyboard.png b/gallery/api-pipeline-code/storyboard.png deleted file mode 100644 index 91e92d9..0000000 Binary files a/gallery/api-pipeline-code/storyboard.png and /dev/null differ diff --git a/gallery/aurora-flow-field/audit.json b/gallery/aurora-flow-field/audit.json deleted file mode 100644 index 6caa210..0000000 --- a/gallery/aurora-flow-field/audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "aurora-flow-field", - "title": "Arctic Currents (Flow Field)", - "mode": "ambient", - "useCase": "Organic generative header for landing pages, music visualizers, and project banners", - "fps": 20, - "pass": true, - "seamScore": 1.037, - "duplicateFrames": 0, - "flickerScore": 0.028, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 3076.4, - "totalFrames": 80 -} diff --git a/gallery/aurora-flow-field/brief.json b/gallery/aurora-flow-field/brief.json deleted file mode 100644 index 643b505..0000000 --- a/gallery/aurora-flow-field/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Arctic Currents", - "prompt": "Drifting aurora currents, organic silk streamlines, 4-second loop.", - "mode": "ambient", - "style": "flow-field", - "palette": "aurora", - "seconds": 4, - "fps": 20, - "width": 320, - "height": 320, - "seed": 17 -} diff --git a/gallery/aurora-flow-field/index.html b/gallery/aurora-flow-field/index.html deleted file mode 100644 index 992cd3a..0000000 --- a/gallery/aurora-flow-field/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Arctic Currents (Flow Field) · Loop Studio - - - -
-
-

Arctic Currents (Flow Field)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/aurora-flow-field/legible.json b/gallery/aurora-flow-field/legible.json deleted file mode 100644 index 58322b2..0000000 --- a/gallery/aurora-flow-field/legible.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 0, - "captions": [], - "reasons": [] -} diff --git a/gallery/aurora-flow-field/loop.gif b/gallery/aurora-flow-field/loop.gif deleted file mode 100644 index 0ece294..0000000 Binary files a/gallery/aurora-flow-field/loop.gif and /dev/null differ diff --git a/gallery/aurora-flow-field/poster.png b/gallery/aurora-flow-field/poster.png deleted file mode 100644 index 73d8fdf..0000000 Binary files a/gallery/aurora-flow-field/poster.png and /dev/null differ diff --git a/gallery/aurora-flow-field/seam.json b/gallery/aurora-flow-field/seam.json deleted file mode 100644 index 5f9b6a5..0000000 --- a/gallery/aurora-flow-field/seam.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "pass": true, - "totalFrames": 80, - "seamScore": 1.037, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.028, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.199618, - "seamStepDelta": 0.207054, - "normalizedSteps": [ - 1.042, - 1.051, - 1.033, - 1.023, - 0.993, - 1.002, - 1.002, - 1, - 1.001, - 0.979, - 0.964, - 0.986, - 0.994, - 1.015, - 1.028, - 1.04, - 1.019, - 1.024, - 1.002, - 0.99, - 0.987, - 0.979, - 0.966, - 0.97, - 0.99, - 1.011, - 0.995, - 0.984, - 0.989, - 1.017, - 1, - 0.987, - 0.979, - 0.972, - 0.983, - 0.957, - 0.947, - 0.948, - 0.945, - 0.96, - 0.965, - 0.968, - 0.957, - 0.947, - 0.954, - 0.965, - 0.979, - 1.006, - 1.034, - 1.035, - 1.034, - 1.031, - 1.025, - 1.036, - 1.061, - 1.036, - 1.048, - 1.052, - 1.061, - 1.058, - 1.034, - 1.028, - 1.027, - 1.023, - 1.024, - 0.997, - 0.974, - 0.968, - 0.98, - 0.986, - 0.981, - 0.968, - 0.968, - 0.967, - 1.003, - 1.034, - 1.054, - 1.055, - 1.044, - 1.037 - ], - "reasons": [] -} diff --git a/gallery/aurora-flow-field/sheet.png b/gallery/aurora-flow-field/sheet.png deleted file mode 100644 index 2ecb38e..0000000 Binary files a/gallery/aurora-flow-field/sheet.png and /dev/null differ diff --git a/gallery/aurora-flow-field/sketch.js b/gallery/aurora-flow-field/sketch.js deleted file mode 100644 index 84fa9eb..0000000 --- a/gallery/aurora-flow-field/sketch.js +++ /dev/null @@ -1,75 +0,0 @@ -// Style Pack: flow-field — Drifting streamlines on a circular phase-noise field -export const meta = { - mode: "ambient", - style: "flow-field", - seconds: 4, - fps: 20, - width: 320, - height: 320, - seed: 17, - palette: "aurora" -}; - -export function render(ctx, phase, kit) { - const W = meta.width; - const H = meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["aurora"]; - const TAU = Math.PI * 2; - - ctx.globalAlpha = 1; - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - // Layer 1: Ground slow radial atmospheric pulse (1 cycle) - const pulse = 0.5 + 0.5 * Math.sin(TAU * phase); - ctx.globalAlpha = 0.16; - ctx.fillStyle = C.surface; - ctx.beginPath(); - ctx.arc(W * 0.5, H * 0.5, W * (0.34 + 0.04 * pulse), 0, TAU); - ctx.fill(); - - const cx = Math.cos(TAU * phase) * 0.75; - const cy = Math.sin(TAU * phase) * 0.75; - const strands = 85; - const steps = 14; - const stepLen = W / 54; - - // Layer 2 & 3: Streamlines across 3 overlapping generations - kit.generations(phase, 3, (age, alpha, gen) => { - const rand = kit.rng(meta.seed + gen * 101); - for (let i = 0; i < strands; i++) { - let x = rand() * W; - let y = rand() * H; - const isSpark = i % 7 === 0; - - // Advect starting point slightly by generation age - const baseAngle = kit.noise2D(x / (W * 0.45) + cx, y / (H * 0.45) + cy, meta.seed) * Math.PI * 1.8; - x += Math.cos(baseAngle) * age * (W * 0.09); - y += Math.sin(baseAngle) * age * (H * 0.09); - - ctx.strokeStyle = isSpark ? C.spark : i % 2 === 0 ? C.accent : C.body; - ctx.lineWidth = isSpark ? 2.2 : 1.4; - ctx.globalAlpha = alpha * (isSpark ? 0.92 : 0.55); - - ctx.beginPath(); - ctx.moveTo(x, y); - for (let s = 0; s < steps; s++) { - const n = kit.noise2D(x / (W * 0.42) + cx, y / (H * 0.42) + cy, meta.seed + 7); - const angle = n * Math.PI * 2.1 + 0.35 * Math.sin(TAU * phase + i * 0.1); - x += Math.cos(angle) * stepLen; - y += Math.sin(angle) * stepLen; - ctx.lineTo(x, y); - } - ctx.stroke(); - - if (isSpark) { - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(x, y, 2.2, 0, TAU); - ctx.fill(); - } - } - }); - - ctx.globalAlpha = 1; -} diff --git a/gallery/aurora-flow-field/sources.json b/gallery/aurora-flow-field/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/aurora-flow-field/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/cad-planetary/audit.json b/gallery/cad-planetary/audit.json deleted file mode 100644 index ad3853a..0000000 --- a/gallery/cad-planetary/audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "cad-planetary", - "title": "Epicyclic Telemetry (Blueprint CAD)", - "mode": "ambient", - "useCase": "Robotics, hardware, CAD, and precision engineering repo badges", - "fps": 20, - "pass": true, - "seamScore": 1.023, - "duplicateFrames": 0, - "flickerScore": 0.031, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1193.9, - "totalFrames": 80 -} diff --git a/gallery/cad-planetary/brief.json b/gallery/cad-planetary/brief.json deleted file mode 100644 index 8cd0b3c..0000000 --- a/gallery/cad-planetary/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Epicyclic Telemetry", - "prompt": "Precision engineering blueprint with planetary gear linkages rotating at 1x and -2x harmonic speeds.", - "mode": "ambient", - "style": "blueprint-cad", - "palette": "blueprint", - "seconds": 4, - "fps": 20, - "width": 320, - "height": 320, - "seed": 79 -} diff --git a/gallery/cad-planetary/index.html b/gallery/cad-planetary/index.html deleted file mode 100644 index 1d29209..0000000 --- a/gallery/cad-planetary/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Epicyclic Telemetry (Blueprint CAD) · Loop Studio - - - -
-
-

Epicyclic Telemetry (Blueprint CAD)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/cad-planetary/legible.json b/gallery/cad-planetary/legible.json deleted file mode 100644 index bcd5604..0000000 --- a/gallery/cad-planetary/legible.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 2, - "captions": [ - { - "text": "CAD // HARMONIC-3X", - "contrastRatio": 11.34, - "minMarginPx": 13, - "passContrast": true - }, - { - "text": "THETA: 0 DEG", - "contrastRatio": 7.86, - "minMarginPx": 13, - "passContrast": true - } - ], - "reasons": [] -} diff --git a/gallery/cad-planetary/loop.gif b/gallery/cad-planetary/loop.gif deleted file mode 100644 index c265556..0000000 Binary files a/gallery/cad-planetary/loop.gif and /dev/null differ diff --git a/gallery/cad-planetary/poster.png b/gallery/cad-planetary/poster.png deleted file mode 100644 index 9e0445b..0000000 Binary files a/gallery/cad-planetary/poster.png and /dev/null differ diff --git a/gallery/cad-planetary/seam.json b/gallery/cad-planetary/seam.json deleted file mode 100644 index 04a2d9f..0000000 --- a/gallery/cad-planetary/seam.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "pass": true, - "totalFrames": 80, - "seamScore": 1.023, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.031, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.094522, - "seamStepDelta": 0.096689, - "normalizedSteps": [ - 1.01, - 1.02, - 1.035, - 1, - 1.006, - 0.998, - 1.002, - 0.994, - 1.004, - 0.993, - 0.998, - 1.001, - 1.007, - 1.008, - 0.999, - 1.028, - 1.011, - 1.008, - 0.978, - 0.954, - 0.964, - 0.956, - 0.987, - 0.959, - 0.952, - 0.974, - 1, - 1.014, - 1.027, - 1.001, - 1.01, - 1.006, - 1.003, - 1.001, - 0.993, - 1, - 0.988, - 1.005, - 0.998, - 1.012, - 1.004, - 1.007, - 1.023, - 1.005, - 0.991, - 0.959, - 0.957, - 0.964, - 0.96, - 0.959, - 0.959, - 0.955, - 0.98, - 1.005, - 1.015, - 1.019, - 0.996, - 1.017, - 1.004, - 1.016, - 0.997, - 0.991, - 0.997, - 0.991, - 1.004, - 1.003, - 1.019, - 1.001, - 1.02, - 1.018, - 1.005, - 0.983, - 0.952, - 0.959, - 0.956, - 0.959, - 0.962, - 0.964, - 0.957, - 1.023 - ], - "reasons": [] -} diff --git a/gallery/cad-planetary/sheet.png b/gallery/cad-planetary/sheet.png deleted file mode 100644 index 5e38cb1..0000000 Binary files a/gallery/cad-planetary/sheet.png and /dev/null differ diff --git a/gallery/cad-planetary/sketch.js b/gallery/cad-planetary/sketch.js deleted file mode 100644 index b917b5e..0000000 --- a/gallery/cad-planetary/sketch.js +++ /dev/null @@ -1,123 +0,0 @@ -// Style Pack: blueprint-cad — Precision technical schematic & epicyclic linkage -export const meta = { - mode: "ambient", - style: "blueprint-cad", - seconds: 4, - fps: 20, - width: 320, - height: 320, - seed: 79, - palette: "blueprint" -}; - -export function render(ctx, phase, kit) { - const W = meta.width; - const H = meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["blueprint"]; - const TAU = Math.PI * 2; - const cx = W / 2; - const cy = H / 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - // CAD minor & major grid - const step = 25; - for (let x = step; x < W; x += step) { - ctx.strokeStyle = C.line; - ctx.lineWidth = x % 100 === 0 ? 1.4 : 0.7; - ctx.globalAlpha = x % 100 === 0 ? 0.55 : 0.25; - ctx.beginPath(); - ctx.moveTo(x, 0); - ctx.lineTo(x, H); - ctx.stroke(); - } - for (let y = step; y < H; y += step) { - ctx.strokeStyle = C.line; - ctx.lineWidth = y % 100 === 0 ? 1.4 : 0.7; - ctx.globalAlpha = y % 100 === 0 ? 0.55 : 0.25; - ctx.beginPath(); - ctx.moveTo(0, y); - ctx.lineTo(W, y); - ctx.stroke(); - } - - // Outer graduated compass ring - ctx.globalAlpha = 0.85; - ctx.strokeStyle = C.muted; - ctx.lineWidth = 1.5; - const outerR = W * 0.37; - ctx.beginPath(); - ctx.arc(cx, cy, outerR, 0, TAU); - ctx.stroke(); - - for (let t = 0; t < 36; t++) { - const a = (t / 36) * TAU; - const r0 = outerR - (t % 3 === 0 ? 10 : 5); - ctx.beginPath(); - ctx.moveTo(cx + Math.cos(a) * r0, cy + Math.sin(a) * r0); - ctx.lineTo(cx + Math.cos(a) * outerR, cy + Math.sin(a) * outerR); - ctx.stroke(); - } - - // Planetary carrier arm (1x speed) and 3 satellite gears (-2x speed) - const a1 = phase * TAU; - const orbitR = W * 0.21; - ctx.strokeStyle = C.accent; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.arc(cx, cy, orbitR, 0, TAU); - ctx.stroke(); - - const joints = []; - for (let i = 0; i < 3; i++) { - const armA = a1 + (i * TAU) / 3; - const gx = cx + Math.cos(armA) * orbitR; - const gy = cy + Math.sin(armA) * orbitR; - const subA = -a1 * 2 + i; - const px = gx + Math.cos(subA) * (W * 0.085); - const py = gy + Math.sin(subA) * (W * 0.085); - joints.push({ gx, gy, px, py }); - - // Carrier strut - ctx.strokeStyle = C.body; - ctx.lineWidth = 1.8; - ctx.beginPath(); - ctx.moveTo(cx, cy); - ctx.lineTo(gx, gy); - ctx.lineTo(px, py); - ctx.stroke(); - - // Satellite pitch circle - ctx.strokeStyle = C.accent; - ctx.lineWidth = 1.5; - ctx.beginPath(); - ctx.arc(gx, gy, W * 0.085, 0, TAU); - ctx.stroke(); - - // Joint pin - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(px, py, 5, 0, TAU); - ctx.fill(); - } - - // Connecting triangle between satellite pins - ctx.strokeStyle = C.spark; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.moveTo(joints[0].px, joints[0].py); - ctx.lineTo(joints[1].px, joints[1].py); - ctx.lineTo(joints[2].px, joints[2].py); - ctx.closePath(); - ctx.stroke(); - - // Technical readout stamp - ctx.font = "600 11.5px monospace"; - ctx.fillStyle = C.body; - ctx.textAlign = "left"; - ctx.fillText("CAD // HARMONIC-3X", 18, 24); - ctx.fillStyle = C.spark; - ctx.fillText("THETA: " + Math.round(phase * 360) + " DEG", 18, H - 16); - ctx.globalAlpha = 1; -} diff --git a/gallery/cad-planetary/sources.json b/gallery/cad-planetary/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/cad-planetary/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/cli-audit-session/audit.json b/gallery/cli-audit-session/audit.json deleted file mode 100644 index 9a45b0c..0000000 --- a/gallery/cli-audit-session/audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "cli-audit-session", - "title": "Loop CLI Audit Showcase (Terminal)", - "mode": "showcase", - "useCase": "CLI documentation showing commands, flags, and pass/fail audit output", - "fps": 16, - "pass": true, - "seamScore": 0.989, - "duplicateFrames": 0, - "flickerScore": 0.89, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1371.6, - "totalFrames": 160 -} diff --git a/gallery/cli-audit-session/index.html b/gallery/cli-audit-session/index.html deleted file mode 100644 index 2f2256c..0000000 --- a/gallery/cli-audit-session/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Loop CLI Audit Showcase (Terminal) · Loop Studio - - - -
-
-

Loop CLI Audit Showcase (Terminal)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/cli-audit-session/legible.json b/gallery/cli-audit-session/legible.json deleted file mode 100644 index a6c2f38..0000000 --- a/gallery/cli-audit-session/legible.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "pass": true, - "width": 800, - "height": 320, - "phoneWidth": 400, - "frame0ShowsAllStageLabels": true, - "stageLabelsChecked": 4, - "captions": [ - { - "step": 1, - "caption": "run `loop audit` on sketch folder", - "words": 6, - "chars": 33, - "windowSeconds": 2.5, - "requiredSeconds": 2.3, - "passReadingTime": true, - "contrastRatio": 16.56, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 2, - "caption": "measures frame deltas & seam score", - "words": 6, - "chars": 34, - "windowSeconds": 2.5, - "requiredSeconds": 2.3, - "passReadingTime": true, - "contrastRatio": 16.56, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 3, - "caption": "verifies WCAG contrast & sources", - "words": 5, - "chars": 32, - "windowSeconds": 2.5, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 16.56, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 4, - "caption": "encodes verified loop.gif & poster", - "words": 5, - "chars": 34, - "windowSeconds": 2.5, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 16.56, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - } - ], - "reasons": [] -} diff --git a/gallery/cli-audit-session/loop.gif b/gallery/cli-audit-session/loop.gif deleted file mode 100644 index 6511cf9..0000000 Binary files a/gallery/cli-audit-session/loop.gif and /dev/null differ diff --git a/gallery/cli-audit-session/poster.png b/gallery/cli-audit-session/poster.png deleted file mode 100644 index 6ec2d72..0000000 Binary files a/gallery/cli-audit-session/poster.png and /dev/null differ diff --git a/gallery/cli-audit-session/seam.json b/gallery/cli-audit-session/seam.json deleted file mode 100644 index 2182486..0000000 --- a/gallery/cli-audit-session/seam.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "pass": true, - "totalFrames": 160, - "seamScore": 0.989, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.89, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.009432, - "seamStepDelta": 0.009329, - "normalizedSteps": [ - 0.989, - 0.997, - 1.009, - 0.995, - 1, - 1, - 0.995, - 0.996, - 0.99, - 1.003, - 0.987, - 0.988, - 0.997, - 1.004, - 1.141, - 1.313, - 1.298, - 1.31, - 1.245, - 2.136, - 1.004, - 1.271, - 1.343, - 1.33, - 1.346, - 1.159, - 1.004, - 0.997, - 0.988, - 0.987, - 1.003, - 0.99, - 0.996, - 0.995, - 1, - 1, - 0.995, - 1.009, - 0.997, - 0.989, - 0.989, - 0.997, - 1.009, - 0.995, - 1, - 1, - 0.995, - 0.996, - 0.99, - 1.003, - 0.987, - 0.988, - 0.997, - 1.004, - 1.159, - 1.346, - 1.33, - 1.343, - 1.271, - 2.599, - 1.004, - 1.252, - 1.319, - 1.306, - 1.322, - 1.146, - 1.004, - 0.997, - 0.988, - 0.987, - 1.003, - 0.99, - 0.996, - 0.995, - 1, - 1, - 0.995, - 1.009, - 0.997, - 0.989, - 0.989, - 0.997, - 1.009, - 0.995, - 1, - 1, - 0.995, - 0.996, - 0.99, - 1.003, - 0.987, - 0.988, - 0.997, - 1.004, - 1.146, - 1.322, - 1.306, - 1.319, - 1.252, - 2.634, - 1.004, - 1.27, - 1.341, - 1.328, - 1.344, - 1.156, - 1.004, - 0.997, - 0.988, - 0.987, - 1.003, - 0.99, - 0.996, - 0.995, - 1, - 1, - 0.995, - 1.009, - 0.997, - 0.989, - 0.989, - 0.997, - 1.009, - 0.995, - 1, - 1, - 0.995, - 0.996, - 0.99, - 1.003, - 0.987, - 0.988, - 0.997, - 1.004, - 1.156, - 1.344, - 1.328, - 1.341, - 1.27, - 2.16, - 1.004, - 1.245, - 1.31, - 1.298, - 1.313, - 1.141, - 1.004, - 0.997, - 0.988, - 0.987, - 1.003, - 0.99, - 0.996, - 0.995, - 1, - 1, - 0.995, - 1.009, - 0.997, - 0.989 - ], - "reasons": [] -} diff --git a/gallery/cli-audit-session/sheet.png b/gallery/cli-audit-session/sheet.png deleted file mode 100644 index dcc4aaa..0000000 Binary files a/gallery/cli-audit-session/sheet.png and /dev/null differ diff --git a/gallery/cli-audit-session/showcase.gif b/gallery/cli-audit-session/showcase.gif deleted file mode 100644 index 6511cf9..0000000 Binary files a/gallery/cli-audit-session/showcase.gif and /dev/null differ diff --git a/gallery/cli-audit-session/showcase.json b/gallery/cli-audit-session/showcase.json deleted file mode 100644 index a3820ba..0000000 --- a/gallery/cli-audit-session/showcase.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Loop CLI Audit Session", - "says": "The loop CLI audits any sketch for seam jumps, caption legibility, and source citations before rendering.", - "seconds": 10, - "fps": 16, - "width": 800, - "height": 320, - "palette": "phosphor", - "scene": "terminal", - "stage": [ - "$ loop audit ./demo", - "seam: 1.04 PASS", - "legible: 4.5:1 PASS", - "render: loop.gif" - ], - "steps": [ - { - "from": 8.75, - "to": 1.25, - "caption": "run `loop audit` on sketch folder", - "source": "docs/tool.md:22" - }, - { - "from": 1.25, - "to": 3.75, - "caption": "measures frame deltas & seam score", - "source": "docs/tool.md:14" - }, - { - "from": 3.75, - "to": 6.25, - "caption": "verifies WCAG contrast & sources", - "source": "docs/tool.md:17" - }, - { - "from": 6.25, - "to": 8.75, - "caption": "encodes verified loop.gif & poster", - "source": "docs/tool.md:24" - } - ] -} diff --git a/gallery/cli-audit-session/sketch.js b/gallery/cli-audit-session/sketch.js deleted file mode 100644 index 9e18dee..0000000 --- a/gallery/cli-audit-session/sketch.js +++ /dev/null @@ -1,125 +0,0 @@ -// Scene Pack: terminal — Deterministic vector CLI session -export const meta = { - mode: "showcase", - scene: "terminal", - seconds: 10, - fps: 16, - width: 800, - height: 320, - seed: 23, - palette: "phosphor" -}; - -export const showcase = { - says: "The loop CLI audits any sketch for seam jumps, caption legibility, and source citations before rendering.", - seconds: 10, - scene: "terminal", - stage: ["$ loop audit ./demo", "seam: 1.04 PASS", "legible: 4.5:1 PASS", "render: loop.gif"], - steps: [ - { from: 8.75, to: 1.25, caption: "run `loop audit` on sketch folder", source: "docs/tool.md:22" }, - { from: 1.25, to: 3.75, caption: "measures frame deltas & seam score", source: "docs/tool.md:14" }, - { from: 3.75, to: 6.25, caption: "verifies WCAG contrast & sources", source: "docs/tool.md:17" }, - { from: 6.25, to: 8.75, caption: "encodes verified loop.gif & poster", source: "docs/tool.md:24" } - ] -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["phosphor"]; - const S = kit.showcase || showcase; - const lines = S.stage || showcase.stage; - const steps = S.steps || showcase.steps; - const SECONDS = S.seconds || meta.seconds; - const t = phase * SECONDS; - const TAU = Math.PI * 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const termW = Math.round(W * 0.82); - const termH = Math.round(H * 0.61); - const tx = Math.round((W - termW) / 2); - const ty = Math.round(H * 0.075); - - kit.roundRect(ctx, tx, ty, termW, termH, 10); - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 2; - ctx.stroke(); - - const headH = Math.round(termH * 0.16); - ctx.fillStyle = C.line; - ctx.fillRect(tx + 1, ty + headH, termW - 2, 1); - - const dotColors = [C.accent, C.spark, C.muted]; - dotColors.forEach((col, i) => { - ctx.fillStyle = col; - ctx.beginPath(); - ctx.arc(tx + 18 + i * 14, ty + headH / 2, 4, 0, TAU); - ctx.fill(); - }); - - // Constant-speed orbital phase spinner on right side of terminal viewport - const spinCx = tx + termW - Math.round(termW * 0.14); - const spinCy = ty + headH + (termH - headH) * 0.5; - const spinR = Math.min(termW, termH) * 0.22; - ctx.strokeStyle = C.line; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.arc(spinCx, spinCy, spinR, 0, TAU); - ctx.stroke(); - - for (let k = 0; k < 3; k++) { - const a = TAU * (phase + k / 3); - const ox = spinCx + Math.cos(a) * spinR; - const oy = spinCy + Math.sin(a) * spinR; - ctx.fillStyle = k === 0 ? C.spark : C.accent; - ctx.beginPath(); - ctx.arc(ox, oy, 5, 0, TAU); - ctx.fill(); - } - - let activeRow = 0; - if (t >= 1.25 && t < 3.75) activeRow = 1; - else if (t >= 3.75 && t < 6.25) activeRow = 2; - else if (t >= 6.25 && t < 8.75) activeRow = 3; - - const rowStep = (termH - headH - 20) / Math.max(1, lines.length); - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - ctx.font = "500 13px monospace"; - lines.forEach((line, idx) => { - const ly = ty + headH + 12 + (idx + 0.45) * rowStep; - const isActive = idx === activeRow; - ctx.globalAlpha = 1; - ctx.fillStyle = idx === 0 ? C.body : isActive ? C.spark : C.accent; - ctx.fillText(line, tx + 22, ly); - }); - - // Bottom caption with smooth cross-fade - const capY = Math.round(H * 0.86); - const pillW = Math.round(W * 0.62); - kit.roundRect(ctx, W / 2 - pillW / 2, capY - 16, pillW, 32, 6); - ctx.globalAlpha = 0.95; - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1; - ctx.stroke(); - - ctx.font = "500 13px monospace"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - steps.forEach((c) => { - const len = ((c.to - c.from) % SECONDS + SECONDS) % SECONDS || SECONDS; - const u = ((t - c.from) % SECONDS + SECONDS) % SECONDS; - if (u >= len) return; - const fade = Math.max(0.2, Math.min(1, u / 0.35, (len - u) / 0.35)); - ctx.globalAlpha = fade; - ctx.fillStyle = C.body; - ctx.fillText(c.caption, W / 2, capY); - }); - ctx.globalAlpha = 1; -} diff --git a/gallery/cli-audit-session/sources.json b/gallery/cli-audit-session/sources.json deleted file mode 100644 index 1cd3ef8..0000000 --- a/gallery/cli-audit-session/sources.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "pass": true, - "repoRoot": "/Users/marcusk/.gemini/antigravity/scratch/loop-studio", - "checked": 4, - "citations": [ - { - "step": 1, - "source": "docs/tool.md:22", - "file": "docs/tool.md", - "line": 22, - "excerpt": "Renders all frames `0..N-1` at full resolution and outputs `showcase.gif` / `loop.gif`, `poster.png`, `loop.mp4` (via FF", - "valid": true - }, - { - "step": 2, - "source": "docs/tool.md:14", - "file": "docs/tool.md", - "line": 14, - "excerpt": "Measures frame-to-frame RMS pixel changes and computes `seamScore` (last-to-first change divided by median frame-to-fram", - "valid": true - }, - { - "step": 3, - "source": "docs/tool.md:17", - "file": "docs/tool.md", - "line": 17, - "excerpt": "6. `loop source-check [--repo ]`", - "valid": true - }, - { - "step": 4, - "source": "docs/tool.md:24", - "file": "docs/tool.md", - "line": 24, - "excerpt": "Opens the interactive browser workbench with phase scrubber and mobile width toggle.", - "valid": true - } - ], - "reasons": [] -} diff --git a/gallery/cli-audit-session/storyboard.png b/gallery/cli-audit-session/storyboard.png deleted file mode 100644 index a615eed..0000000 Binary files a/gallery/cli-audit-session/storyboard.png and /dev/null differ diff --git a/gallery/deep-sea-orbits/audit.json b/gallery/deep-sea-orbits/audit.json deleted file mode 100644 index 371c177..0000000 --- a/gallery/deep-sea-orbits/audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "deep-sea-orbits", - "title": "Abyssal Bioluminescence (Particle Orbit)", - "mode": "ambient", - "useCase": "Calm ambient background for dark-mode apps, streams, and loading states", - "fps": 20, - "pass": true, - "seamScore": 0.972, - "duplicateFrames": 0, - "flickerScore": 0.024, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1247.8, - "totalFrames": 80 -} diff --git a/gallery/deep-sea-orbits/brief.json b/gallery/deep-sea-orbits/brief.json deleted file mode 100644 index 62dd784..0000000 --- a/gallery/deep-sea-orbits/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Abyssal Bioluminescence", - "prompt": "Make a 4-second square loop. Deep sea, slow, bioluminescent.", - "mode": "ambient", - "style": "particle-orbit", - "palette": "abyss", - "seconds": 4, - "fps": 20, - "width": 320, - "height": 320, - "seed": 42 -} diff --git a/gallery/deep-sea-orbits/index.html b/gallery/deep-sea-orbits/index.html deleted file mode 100644 index 22dbd0e..0000000 --- a/gallery/deep-sea-orbits/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Abyssal Bioluminescence (Particle Orbit) · Loop Studio - - - -
-
-

Abyssal Bioluminescence (Particle Orbit)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/deep-sea-orbits/legible.json b/gallery/deep-sea-orbits/legible.json deleted file mode 100644 index 58322b2..0000000 --- a/gallery/deep-sea-orbits/legible.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 0, - "captions": [], - "reasons": [] -} diff --git a/gallery/deep-sea-orbits/loop.gif b/gallery/deep-sea-orbits/loop.gif deleted file mode 100644 index cb945b7..0000000 Binary files a/gallery/deep-sea-orbits/loop.gif and /dev/null differ diff --git a/gallery/deep-sea-orbits/poster.png b/gallery/deep-sea-orbits/poster.png deleted file mode 100644 index 4414e28..0000000 Binary files a/gallery/deep-sea-orbits/poster.png and /dev/null differ diff --git a/gallery/deep-sea-orbits/seam.json b/gallery/deep-sea-orbits/seam.json deleted file mode 100644 index d7defbc..0000000 --- a/gallery/deep-sea-orbits/seam.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "pass": true, - "totalFrames": 80, - "seamScore": 0.972, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.024, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.128576, - "seamStepDelta": 0.125015, - "normalizedSteps": [ - 0.969, - 0.945, - 0.967, - 0.96, - 0.963, - 0.965, - 0.98, - 0.97, - 0.954, - 0.987, - 0.983, - 0.98, - 0.998, - 0.984, - 0.994, - 1, - 1.014, - 1.008, - 0.993, - 1.021, - 1.018, - 1.013, - 1.029, - 1.016, - 1.03, - 1.021, - 1.037, - 1.03, - 1.024, - 1.031, - 1.039, - 1.032, - 1.041, - 1.03, - 1.038, - 1.037, - 1.044, - 1.039, - 1.037, - 1.046, - 1.049, - 1.048, - 1.05, - 1.036, - 1.038, - 1.044, - 1.046, - 1.039, - 1.022, - 1.021, - 1.029, - 1.032, - 1.023, - 0.999, - 0.996, - 1.011, - 1.022, - 1, - 0.984, - 0.996, - 1.001, - 0.999, - 0.992, - 0.987, - 0.987, - 0.991, - 0.998, - 0.974, - 0.964, - 0.984, - 0.975, - 0.956, - 0.961, - 0.96, - 0.96, - 0.961, - 0.974, - 0.962, - 0.939, - 0.972 - ], - "reasons": [] -} diff --git a/gallery/deep-sea-orbits/sheet.png b/gallery/deep-sea-orbits/sheet.png deleted file mode 100644 index 15b5a82..0000000 Binary files a/gallery/deep-sea-orbits/sheet.png and /dev/null differ diff --git a/gallery/deep-sea-orbits/sketch.js b/gallery/deep-sea-orbits/sketch.js deleted file mode 100644 index a2e0712..0000000 --- a/gallery/deep-sea-orbits/sketch.js +++ /dev/null @@ -1,110 +0,0 @@ -// Style Pack: particle-orbit — Deep sea bioluminescent nested orbits -export const meta = { - mode: "ambient", - style: "particle-orbit", - seconds: 4, - fps: 20, - width: 320, - height: 320, - seed: 42, - palette: "abyss" -}; - -export function render(ctx, phase, kit) { - const W = meta.width; - const H = meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["abyss"]; - const TAU = Math.PI * 2; - const cx = W / 2; - const cy = H / 2; - - ctx.globalAlpha = 1; - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - // Layer 1 (Ground): Slower background depth lattice (added per Round 1 critique rule) - const cols = 14; - const cell = W / cols; - for (let j = 0; j < cols; j++) { - for (let i = 0; i < cols; i++) { - const gx = (i + 0.5) * cell; - const gy = (j + 0.5) * cell; - const dx = (gx - cx) / cx; - const dy = (gy - cy) / cy; - const d = Math.sqrt(dx * dx + dy * dy); - const wave = 0.5 + 0.5 * Math.sin(TAU * (phase - d * 1.4)); - ctx.globalAlpha = 0.14 + 0.22 * wave; - ctx.fillStyle = C.surface; - ctx.beginPath(); - ctx.arc(gx, gy, cell * 0.26 * (0.3 + 0.7 * wave), 0, TAU); - ctx.fill(); - } - } - - // Layer 2 (Body): Nested elliptical orbits at 1x and 2x integer speeds - const rings = 5; - for (let r = 1; r <= rings; r++) { - const rx = W * (0.11 + r * 0.068); - const ry = rx * (0.64 + 0.06 * Math.sin(TAU * phase + r)); - const tilt = r * 0.32 + Math.sin(TAU * phase) * 0.08; - const count = 14 + r * 4; - const speed = r % 2 === 0 ? -1 : 1; - - // Subtle orbit track - ctx.globalAlpha = 0.18; - ctx.strokeStyle = C.line; - ctx.lineWidth = 1; - ctx.beginPath(); - for (let s = 0; s <= 48; s++) { - const a = (s / 48) * TAU; - const ox = Math.cos(a) * rx; - const oy = Math.sin(a) * ry; - const px = cx + ox * Math.cos(tilt) - oy * Math.sin(tilt); - const py = cy + ox * Math.sin(tilt) + oy * Math.cos(tilt); - if (s === 0) ctx.moveTo(px, py); - else ctx.lineTo(px, py); - } - ctx.stroke(); - - for (let i = 0; i < count; i++) { - const a = TAU * ((phase * speed + i / count) % 1); - const ox = Math.cos(a) * rx; - const oy = Math.sin(a) * ry; - const px = cx + ox * Math.cos(tilt) - oy * Math.sin(tilt); - const py = cy + ox * Math.sin(tilt) + oy * Math.cos(tilt); - const depth = 0.5 + 0.5 * Math.sin(a); - const rad = (2.0 + depth * 3.8) * (W / 400); - const isSpark = i % 6 === 0; - - if (isSpark) { - ctx.globalAlpha = 0.25 * (0.5 + 0.5 * depth); - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(px, py, rad * 2.4, 0, TAU); - ctx.fill(); - } - - ctx.globalAlpha = 0.35 + 0.65 * depth; - ctx.fillStyle = isSpark ? C.spark : C.accent; - ctx.beginPath(); - ctx.arc(px, py, rad, 0, TAU); - ctx.fill(); - } - } - - // Layer 3 (Spark): Focal core beacon pulsing at 2x speed - const corePulse = 0.5 + 0.5 * Math.sin(TAU * phase * 2); - ctx.globalAlpha = 0.28; - ctx.fillStyle = C.accent; - ctx.beginPath(); - ctx.arc(cx, cy, W * (0.065 + 0.02 * corePulse), 0, TAU); - ctx.fill(); - - ctx.globalAlpha = 0.95; - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(cx, cy, W * (0.026 + 0.008 * corePulse), 0, TAU); - ctx.fill(); - - ctx.globalAlpha = 1; -} diff --git a/gallery/deep-sea-orbits/sources.json b/gallery/deep-sea-orbits/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/deep-sea-orbits/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/git-pr-guardrails/audit.json b/gallery/git-pr-guardrails/audit.json deleted file mode 100644 index 8c36c69..0000000 --- a/gallery/git-pr-guardrails/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "git-pr-guardrails", - "title": "Protected Git Workflow (8s @ 60fps)", - "mode": "showcase", - "useCase": "GitHub workflow & CI/CD guardrails explainer showing branch protection, evals, and PR merges", - "fps": 60, - "pass": true, - "seamScore": 1.148, - "duplicateFrames": 0, - "flickerScore": 0.736, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 6539.7, - "webpKB": 3114.5, - "totalFrames": 480 -} diff --git a/gallery/git-pr-guardrails/index.html b/gallery/git-pr-guardrails/index.html deleted file mode 100644 index d1d42b5..0000000 --- a/gallery/git-pr-guardrails/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Protected Git Workflow (8s @ 60fps) · Loop Studio - - - -
-
-

Protected Git Workflow (8s @ 60fps)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/git-pr-guardrails/legible.json b/gallery/git-pr-guardrails/legible.json deleted file mode 100644 index 63ee006..0000000 --- a/gallery/git-pr-guardrails/legible.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "pass": true, - "width": 640, - "height": 270, - "phoneWidth": 400, - "frame0ShowsAllStageLabels": true, - "stageLabelsChecked": 4, - "captions": [ - { - "step": 1, - "caption": "branch feat/* forks from dev", - "words": 5, - "chars": 28, - "windowSeconds": 2, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - }, - { - "step": 2, - "caption": "CI runs 34 eval checks", - "words": 5, - "chars": 22, - "windowSeconds": 2, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - }, - { - "step": 3, - "caption": "CODEOWNERS approves the PR", - "words": 4, - "chars": 26, - "windowSeconds": 2, - "requiredSeconds": 1.7, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - }, - { - "step": 4, - "caption": "merged into dev & main", - "words": 5, - "chars": 22, - "windowSeconds": 2, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - } - ], - "reasons": [] -} diff --git a/gallery/git-pr-guardrails/loop.gif b/gallery/git-pr-guardrails/loop.gif deleted file mode 100644 index ba4180d..0000000 Binary files a/gallery/git-pr-guardrails/loop.gif and /dev/null differ diff --git a/gallery/git-pr-guardrails/poster.png b/gallery/git-pr-guardrails/poster.png deleted file mode 100644 index be84ca8..0000000 Binary files a/gallery/git-pr-guardrails/poster.png and /dev/null differ diff --git a/gallery/git-pr-guardrails/seam.json b/gallery/git-pr-guardrails/seam.json deleted file mode 100644 index 2b621c9..0000000 --- a/gallery/git-pr-guardrails/seam.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "pass": true, - "totalFrames": 480, - "seamScore": 1.148, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.736, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.010235, - "seamStepDelta": 0.011745, - "normalizedSteps": [ - 1.042, - 0.986, - 1.061, - 1.053, - 1.058, - 1, - 1.056, - 1.052, - 1.06, - 0.999, - 0.982, - 1.107, - 1.04, - 0.991, - 0.973, - 1.018, - 1.026, - 1.022, - 0.979, - 1.017, - 0.958, - 1.009, - 0.942, - 1.002, - 0.946, - 0.981, - 0.93, - 0.911, - 0.907, - 0.96, - 0.965, - 0.872, - 0.872, - 0.859, - 0.771, - 0.907, - 0.835, - 0.811, - 0.707, - 0.776, - 0.753, - 0.767, - 0.885, - 0.7, - 0.853, - 0.689, - 0.82, - 0.746, - 0.72, - 0.723, - 0.692, - 0.711, - 0.752, - 0.584, - 0.658, - 0.62, - 0.584, - 0.577, - 0.469, - 1.377, - 0.585, - 0.59, - 0.516, - 0.62, - 0.721, - 0.68, - 0.692, - 0.778, - 0.728, - 0.727, - 0.812, - 0.755, - 0.769, - 0.838, - 0.78, - 0.85, - 0.782, - 0.896, - 0.931, - 0.808, - 0.896, - 0.83, - 0.842, - 0.988, - 0.952, - 0.879, - 0.887, - 0.964, - 0.952, - 0.971, - 0.996, - 0.933, - 1.05, - 0.954, - 1.007, - 1.012, - 0.966, - 1.03, - 0.981, - 1.027, - 1.045, - 0.995, - 0.991, - 1.095, - 0.988, - 0.991, - 0.997, - 1.057, - 1.064, - 1.004, - 1.015, - 1.019, - 1.11, - 3.89, - 1.021, - 1.067, - 1.067, - 1.011, - 1.059, - 1.537, - 1.62, - 1.061, - 1.016, - 1.119, - 1.001, - 1.064, - 4.337, - 1.062, - 1.058, - 0.994, - 1.015, - 1.044, - 1.087, - 0.972, - 0.995, - 1.041, - 0.988, - 1.084, - 1.023, - 0.977, - 1.016, - 0.969, - 1.001, - 0.958, - 0.95, - 0.981, - 0.938, - 0.93, - 0.954, - 0.899, - 0.895, - 0.94, - 0.881, - 0.823, - 0.87, - 0.857, - 0.895, - 0.771, - 0.833, - 0.828, - 0.812, - 0.802, - 0.774, - 0.851, - 0.797, - 0.784, - 0.733, - 0.748, - 0.74, - 0.776, - 0.631, - 0.761, - 0.601, - 0.726, - 2.896, - 0.65, - 0.604, - 0.529, - 0.56, - 1.324, - 0.637, - 0.496, - 0.589, - 0.597, - 0.636, - 0.756, - 0.788, - 0.717, - 0.772, - 0.768, - 0.839, - 0.817, - 0.882, - 0.826, - 0.909, - 0.861, - 0.926, - 0.919, - 0.943, - 0.938, - 0.977, - 0.929, - 0.942, - 1.014, - 1.073, - 0.992, - 1.004, - 1.062, - 1.068, - 1.088, - 1.049, - 1.11, - 1.104, - 1.128, - 1.085, - 1.145, - 1.14, - 1.149, - 1.115, - 1.158, - 1.13, - 1.186, - 1.187, - 1.18, - 1.154, - 1.153, - 1.161, - 1.214, - 1.205, - 1.172, - 1.178, - 1.18, - 1.224, - 4.285, - 1.234, - 1.184, - 1.231, - 1.186, - 1.235, - 1.761, - 1.637, - 1.187, - 1.239, - 1.239, - 1.232, - 1.187, - 3.953, - 1.226, - 1.233, - 1.197, - 1.179, - 1.277, - 1.224, - 1.18, - 1.167, - 1.215, - 1.222, - 1.207, - 1.161, - 1.199, - 1.148, - 1.186, - 1.132, - 1.172, - 1.127, - 1.154, - 1.108, - 1.096, - 1.089, - 1.124, - 1.125, - 1.056, - 1.043, - 1.039, - 0.96, - 1.071, - 0.993, - 0.98, - 0.898, - 0.96, - 0.937, - 0.924, - 1.014, - 0.848, - 0.979, - 0.83, - 0.927, - 0.865, - 0.845, - 0.829, - 0.794, - 0.815, - 0.83, - 0.681, - 0.727, - 0.686, - 0.635, - 0.628, - 0.51, - 1.367, - 0.591, - 0.602, - 0.543, - 0.641, - 0.747, - 0.719, - 0.734, - 0.825, - 0.787, - 0.784, - 0.883, - 0.834, - 0.841, - 0.919, - 0.886, - 0.962, - 0.909, - 1.011, - 1.041, - 0.939, - 1.02, - 0.969, - 0.981, - 1.098, - 1.069, - 1.023, - 1.043, - 1.103, - 1.098, - 1.122, - 1.134, - 1.088, - 1.197, - 1.116, - 1.169, - 1.174, - 1.139, - 1.193, - 1.154, - 1.197, - 1.221, - 1.172, - 1.176, - 1.274, - 1.186, - 1.188, - 1.183, - 1.233, - 1.252, - 1.204, - 1.209, - 1.207, - 1.301, - 4.294, - 1.216, - 1.264, - 1.268, - 1.222, - 1.265, - 1.767, - 1.722, - 1.262, - 1.221, - 1.317, - 1.215, - 1.274, - 4.298, - 1.265, - 1.264, - 1.215, - 1.219, - 1.253, - 1.306, - 1.194, - 1.199, - 1.24, - 1.193, - 1.283, - 1.231, - 1.184, - 1.218, - 1.171, - 1.203, - 1.158, - 1.152, - 1.179, - 1.136, - 1.122, - 1.153, - 1.108, - 1.089, - 1.132, - 1.072, - 0.997, - 1.043, - 1.038, - 1.074, - 0.938, - 0.982, - 0.969, - 0.952, - 0.936, - 0.893, - 0.973, - 0.908, - 0.901, - 0.862, - 0.874, - 0.853, - 0.882, - 0.73, - 0.866, - 0.675, - 0.822, - 0.716, - 0.686, - 0.643, - 0.545, - 0.602, - 1.338, - 0.674, - 0.54, - 0.713, - 0.787, - 0.886, - 1.044, - 1.111, - 1.098, - 1.15, - 1.176, - 1.253, - 1.239, - 1.303, - 1.264, - 1.325, - 1.27, - 1.312, - 1.266, - 1.276, - 1.227, - 1.245, - 1.167, - 1.147, - 1.175, - 1.188, - 1.072, - 1.581, - 1.063, - 1.023, - 1.018, - 4.219, - 0.97, - 0.929, - 0.919, - 0.818, - 0.924, - 0.89, - 0.896, - 0.83, - 0.888, - 0.812, - 0.884, - 0.868, - 0.852, - 0.803, - 0.817, - 0.836, - 0.951, - 1.012, - 4.314, - 0.977, - 0.99, - 1.057, - 1.049, - 1.059, - 1.581, - 1.059, - 0.997, - 1.057, - 1.148 - ], - "reasons": [] -} diff --git a/gallery/git-pr-guardrails/sheet.png b/gallery/git-pr-guardrails/sheet.png deleted file mode 100644 index 9c5e767..0000000 Binary files a/gallery/git-pr-guardrails/sheet.png and /dev/null differ diff --git a/gallery/git-pr-guardrails/showcase.gif b/gallery/git-pr-guardrails/showcase.gif deleted file mode 100644 index ba4180d..0000000 Binary files a/gallery/git-pr-guardrails/showcase.gif and /dev/null differ diff --git a/gallery/git-pr-guardrails/showcase.json b/gallery/git-pr-guardrails/showcase.json deleted file mode 100644 index 682932f..0000000 --- a/gallery/git-pr-guardrails/showcase.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Protected Git Workflow (60fps)", - "says": "Branch guardrails block direct pushes and require passing CI evals before merging into dev and main.", - "seconds": 8, - "fps": 60, - "width": 640, - "height": 270, - "palette": "studio-dark", - "scene": "flow", - "stage": [ - "feat/*", - "PR + CI", - "dev", - "main" - ], - "steps": [ - { - "from": 7, - "to": 1, - "caption": "branch feat/* forks from dev", - "source": ".github/workflows/ci.yml:5" - }, - { - "from": 1, - "to": 3, - "caption": "CI runs 34 eval checks", - "source": ".github/workflows/ci.yml:19" - }, - { - "from": 3, - "to": 5, - "caption": "CODEOWNERS approves the PR", - "source": ".github/CODEOWNERS:2" - }, - { - "from": 5, - "to": 7, - "caption": "merged into dev & main", - "source": ".github/workflows/ci.yml:4" - } - ] -} diff --git a/gallery/git-pr-guardrails/showcase.webp b/gallery/git-pr-guardrails/showcase.webp deleted file mode 100644 index b94f945..0000000 Binary files a/gallery/git-pr-guardrails/showcase.webp and /dev/null differ diff --git a/gallery/git-pr-guardrails/sketch.js b/gallery/git-pr-guardrails/sketch.js deleted file mode 100644 index 910cf72..0000000 --- a/gallery/git-pr-guardrails/sketch.js +++ /dev/null @@ -1,252 +0,0 @@ -// Custom 60fps Showcase: git-pr-guardrails — Shows branch fork -> direct push shield -> CI evals -> PR merge -export const meta = { - mode: "showcase", - scene: "flow", - seconds: 8, - fps: 60, - width: 640, - height: 270, - seed: 91, - palette: "studio-dark" -}; - -export const showcase = { - title: "Protected Git Workflow (60fps)", - says: "Branch guardrails block direct pushes and require passing CI evals before merging into dev and main.", - seconds: 8, - fps: 60, - width: 640, - height: 270, - palette: "studio-dark", - scene: "flow", - stage: ["feat/*", "PR + CI", "dev", "main"], - steps: [ - { from: 7.0, to: 1.0, caption: "branch feat/* forks from dev", source: ".github/workflows/ci.yml:5" }, - { from: 1.0, to: 3.0, caption: "CI runs 34 eval checks", source: ".github/workflows/ci.yml:19" }, - { from: 3.0, to: 5.0, caption: "CODEOWNERS approves the PR", source: ".github/CODEOWNERS:2" }, - { from: 5.0, to: 7.0, caption: "merged into dev & main", source: ".github/workflows/ci.yml:4" } - ] -}; - -function ease(x) { - return x <= 0 ? 0 : x >= 1 ? 1 : x * x * (3 - 2 * x); -} - -function placeCommit(age, xs, W) { - const left = -0.06 * W; - const right = 1.06 * W; - let x = left; - let alpha = 1; - if (age < 2.0) { - x = left + (xs[0] - left) * ease(age / 2.0); - } else if (age < 4.0) { - const u = (age - 2.0) / 2.0; - x = xs[0] + (xs[1] - xs[0]) * (0.15 * u + 0.85 * ease(u)); - } else if (age < 6.0) { - const u = (age - 4.0) / 2.0; - x = xs[1] + (xs[2] - xs[1]) * (0.15 * u + 0.85 * ease(u)); - } else if (age < 8.0) { - const u = (age - 6.0) / 2.0; - x = xs[2] + (xs[3] - xs[2]) * (0.15 * u + 0.85 * ease(u)); - } else { - const e = ease((age - 8.0) / 1.0); - x = xs[3] + (right - xs[3]) * e; - alpha = 1 - e; - } - return { - x, - alpha, - verified: ease((age - 3.6) / 0.6) - }; -} - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["studio-dark"]; - const S = kit.showcase || showcase; - const labels = S.stage || showcase.stage; - const steps = S.steps || showcase.steps; - const SECONDS = S.seconds || meta.seconds; - const t = phase * SECONDS; - const TAU = Math.PI * 2; - const cyan = "#00E5B0"; - - // Layer 1: Radial gradient ground + harmonic wave lattice - if (ctx.createRadialGradient) { - const bg = ctx.createRadialGradient(W * 0.5, H * 0.4, 15, W * 0.5, H * 0.5, W * 0.65); - bg.addColorStop(0, "#141A33"); - bg.addColorStop(1, C.ground); - ctx.fillStyle = bg; - } else { - ctx.fillStyle = C.ground; - } - ctx.fillRect(0, 0, W, H); - - const count = 4; - const margin = W * 0.05; - const gap = W * 0.03; - const bw = (W - 2 * margin - (count - 1) * gap) / count; - const bh = Math.round(H * 0.42); - const by = Math.round(H * 0.30); - const railY = Math.round(H * 0.66); - const capY = Math.round(H * 0.86); - - const xs = [0, 1, 2, 3].map((i) => margin + i * (bw + gap) + bw / 2); - const items = [placeCommit(t + 1.0, xs, W)]; - if (t >= 7.0) items.push(placeCommit(t - 7.0, xs, W)); - - // Git rail + continuous commit ticks - ctx.strokeStyle = C.line; - ctx.lineWidth = 2.5; - ctx.beginPath(); - ctx.moveTo(0, railY); - ctx.lineTo(W, railY); - ctx.stroke(); - - const tickSpace = W / 16; - const tickShift = (phase * 4 * tickSpace) % tickSpace; - for (let i = 0; i <= 16; i++) { - ctx.globalAlpha = 0.4; - ctx.fillStyle = i % 2 === 0 ? C.spark : C.accent; - ctx.beginPath(); - ctx.arc(i * tickSpace + tickShift, railY, 1.8, 0, TAU); - ctx.fill(); - } - - xs.forEach((cx, i) => { - let near = 0; - items.forEach((it) => { - near = Math.max(near, it.alpha * Math.max(0, 1 - Math.abs(it.x - cx) / (bw * 0.78))); - }); - - const left = cx - bw / 2; - const top = by - bh / 2; - const activeCol = i === 1 ? cyan : i >= 2 ? C.spark : C.accent; - - ctx.globalAlpha = 1; - ctx.strokeStyle = near > 0.25 ? activeCol : C.line; - ctx.lineWidth = near > 0.25 ? 2.2 : 1.4; - ctx.beginPath(); - ctx.moveTo(cx, top + bh); - ctx.lineTo(cx, railY); - ctx.stroke(); - - kit.roundRect(ctx, left, top, bw, bh, 9); - ctx.fillStyle = C.surface; - ctx.fill(); - if (near > 0.02) { - ctx.globalAlpha = 0.16 * near; - ctx.fillStyle = activeCol; - ctx.fill(); - } - ctx.globalAlpha = 1; - ctx.strokeStyle = near > 0.15 ? activeCol : C.line; - ctx.lineWidth = near > 0.15 ? 2.2 : 1.3; - ctx.stroke(); - - // Stage label - ctx.font = "700 12px monospace"; - ctx.fillStyle = C.body; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - ctx.fillText(labels[i], cx, top + 20); - - // Rich card graphic per git stage - const cy = top + bh * 0.63; - if (i === 0) { - // Forking branch curve - ctx.strokeStyle = C.accent; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.moveTo(left + 16, cy + 12); - ctx.bezierCurveTo(cx - 10, cy + 12, cx - 10, cy - 12, left + bw - 16, cy - 12); - ctx.stroke(); - const u = (phase * 2) % 1; - const dotX = left + 16 + (bw - 32) * u; - const dotY = cy + 12 - 24 * ease(u); - ctx.globalAlpha = Math.sin(Math.PI * u); - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(dotX, dotY, 4, 0, TAU); - ctx.fill(); - ctx.globalAlpha = 1; - } else if (i === 1) { - // CI Eval progress bars - for (let b = 0; b < 3; b++) { - const bwBar = (bw - 32) * (0.5 + 0.5 * Math.sin(TAU * (phase * 2 - b * 0.2))); - ctx.fillStyle = b === 2 ? cyan : C.spark; - ctx.fillRect(left + 16, cy - 14 + b * 12, bwBar, 6); - } - } else { - // Protected Shield Lock Ring on dev & main - const r = 18; - ctx.strokeStyle = i === 3 ? C.accent : cyan; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.arc(cx, cy, r, 0, TAU); - ctx.stroke(); - - const ang = phase * TAU * 2 * (i === 3 ? -1 : 1); - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(cx + Math.cos(ang) * r, cy + Math.sin(ang) * r, 3.5, 0, TAU); - ctx.fill(); - - ctx.font = "600 9px monospace"; - ctx.fillStyle = C.muted; - ctx.fillText("PROTECTED", cx, cy); - } - }); - - // Moving commit orb - items.forEach((it) => { - const r = 10; - const col = it.verified > 0.5 ? cyan : C.accent; - ctx.globalAlpha = it.alpha * 0.28; - ctx.fillStyle = col; - ctx.beginPath(); - ctx.arc(it.x, railY, r * 1.6, 0, TAU); - ctx.fill(); - - ctx.globalAlpha = it.alpha; - ctx.fillStyle = col; - ctx.beginPath(); - ctx.arc(it.x, railY, r, 0, TAU); - ctx.fill(); - - if (it.verified > 0.5) { - ctx.strokeStyle = C.ground; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.moveTo(it.x - 4, railY); - ctx.lineTo(it.x - 1, railY + 3.5); - ctx.lineTo(it.x + 4.5, railY - 3.5); - ctx.stroke(); - } - }); - - // Caption pill - const pillW = Math.round(W * 0.66); - kit.roundRect(ctx, W / 2 - pillW / 2, capY - 16, pillW, 32, 7); - ctx.globalAlpha = 0.96; - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1.2; - ctx.stroke(); - - ctx.font = "500 12.5px monospace"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - steps.forEach((c) => { - const len = ((c.to - c.from) % SECONDS + SECONDS) % SECONDS || SECONDS; - const u = ((t - c.from) % SECONDS + SECONDS) % SECONDS; - if (u >= len) return; - const fade = Math.max(0.25, Math.min(1, u / 0.3, (len - u) / 0.3)); - ctx.globalAlpha = fade; - ctx.fillStyle = C.body; - ctx.fillText(c.caption, W / 2, capY); - }); - ctx.globalAlpha = 1; -} diff --git a/gallery/git-pr-guardrails/sources.json b/gallery/git-pr-guardrails/sources.json deleted file mode 100644 index 8c1e0ed..0000000 --- a/gallery/git-pr-guardrails/sources.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "pass": true, - "repoRoot": "/Users/marcusk/.gemini/antigravity/scratch/loop-studio", - "checked": 4, - "citations": [ - { - "step": 1, - "source": ".github/workflows/ci.yml:5", - "file": ".github/workflows/ci.yml", - "line": 5, - "excerpt": "branches: [main, dev]", - "valid": true - }, - { - "step": 2, - "source": ".github/workflows/ci.yml:19", - "file": ".github/workflows/ci.yml", - "line": 19, - "excerpt": "- name: Rebuild & Audit Gallery Loops", - "valid": true - }, - { - "step": 3, - "source": ".github/CODEOWNERS:2", - "file": ".github/CODEOWNERS", - "line": 2, - "excerpt": "* @MarcusK00", - "valid": true - }, - { - "step": 4, - "source": ".github/workflows/ci.yml:4", - "file": ".github/workflows/ci.yml", - "line": 4, - "excerpt": "push:", - "valid": true - } - ], - "reasons": [] -} diff --git a/gallery/git-pr-guardrails/storyboard.png b/gallery/git-pr-guardrails/storyboard.png deleted file mode 100644 index bdea0c2..0000000 Binary files a/gallery/git-pr-guardrails/storyboard.png and /dev/null differ diff --git a/gallery/json-to-gif-transform/audit.json b/gallery/json-to-gif-transform/audit.json deleted file mode 100644 index 4933b4e..0000000 --- a/gallery/json-to-gif-transform/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "json-to-gif-transform", - "title": "60fps Video Transformer (8s @ 60fps)", - "mode": "showcase", - "useCase": "Compiler, build pipeline, or media-processing explainer showing specs transforming into 60fps video", - "fps": 60, - "pass": true, - "seamScore": 1.005, - "duplicateFrames": 0, - "flickerScore": 0.103, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 5008.7, - "webpKB": 3798.9, - "totalFrames": 480 -} diff --git a/gallery/json-to-gif-transform/index.html b/gallery/json-to-gif-transform/index.html deleted file mode 100644 index a212a09..0000000 --- a/gallery/json-to-gif-transform/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - 60fps Video Transformer (8s @ 60fps) · Loop Studio - - - -
-
-

60fps Video Transformer (8s @ 60fps)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/json-to-gif-transform/legible.json b/gallery/json-to-gif-transform/legible.json deleted file mode 100644 index 7c098c5..0000000 --- a/gallery/json-to-gif-transform/legible.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "pass": true, - "width": 640, - "height": 270, - "phoneWidth": 400, - "frame0ShowsAllStageLabels": true, - "stageLabelsChecked": 3, - "captions": [ - { - "step": 1, - "caption": "brief.json sets 60fps target", - "words": 4, - "chars": 28, - "windowSeconds": 2, - "requiredSeconds": 1.7, - "passReadingTime": true, - "contrastRatio": 15.28, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - }, - { - "step": 2, - "caption": "renders 480 phase-exact frames", - "words": 4, - "chars": 30, - "windowSeconds": 2, - "requiredSeconds": 1.7, - "passReadingTime": true, - "contrastRatio": 15.28, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - }, - { - "step": 3, - "caption": "verifies seam score & contrast", - "words": 5, - "chars": 30, - "windowSeconds": 2, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 15.28, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - }, - { - "step": 4, - "caption": "encodes 60fps MP4 & WebP", - "words": 5, - "chars": 24, - "windowSeconds": 2, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 15.28, - "passContrast": true, - "minEdgeMarginPx": 30, - "phoneFontPx": 7.81, - "passMobileWidth": true, - "pass": true - } - ], - "reasons": [] -} diff --git a/gallery/json-to-gif-transform/loop.gif b/gallery/json-to-gif-transform/loop.gif deleted file mode 100644 index 21407f6..0000000 Binary files a/gallery/json-to-gif-transform/loop.gif and /dev/null differ diff --git a/gallery/json-to-gif-transform/poster.png b/gallery/json-to-gif-transform/poster.png deleted file mode 100644 index ef98600..0000000 Binary files a/gallery/json-to-gif-transform/poster.png and /dev/null differ diff --git a/gallery/json-to-gif-transform/seam.json b/gallery/json-to-gif-transform/seam.json deleted file mode 100644 index d1a666e..0000000 --- a/gallery/json-to-gif-transform/seam.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "pass": true, - "totalFrames": 480, - "seamScore": 1.005, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.103, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.017136, - "seamStepDelta": 0.017224, - "normalizedSteps": [ - 0.914, - 0.929, - 0.949, - 0.975, - 0.976, - 0.98, - 0.989, - 0.992, - 0.997, - 1, - 1.017, - 1.01, - 1.007, - 1.007, - 1.008, - 1.001, - 1.012, - 1.011, - 1.012, - 1.02, - 1.012, - 1.018, - 1.007, - 0.992, - 0.975, - 0.974, - 1.068, - 0.953, - 0.936, - 0.924, - 0.946, - 0.961, - 0.98, - 1.001, - 0.993, - 0.992, - 1.001, - 1.018, - 1.012, - 1.007, - 1.013, - 1.012, - 1.037, - 1.024, - 1.026, - 1.019, - 1.021, - 1.026, - 1.023, - 1.011, - 0.995, - 0.992, - 0.982, - 1.079, - 0.971, - 0.96, - 0.968, - 0.967, - 0.949, - 1.154, - 0.934, - 0.947, - 0.961, - 0.988, - 0.989, - 1.002, - 1.013, - 1.013, - 1.027, - 1.031, - 1.038, - 1.024, - 1.023, - 1.025, - 1.024, - 1.017, - 1.004, - 1.007, - 0.987, - 1.093, - 0.981, - 0.987, - 0.984, - 0.987, - 0.991, - 0.989, - 0.997, - 0.974, - 0.956, - 0.949, - 0.963, - 0.978, - 0.985, - 1.009, - 1.002, - 1.012, - 1.021, - 1.016, - 1.02, - 1.015, - 1.024, - 1.018, - 1.003, - 0.985, - 0.979, - 0.977, - 1.076, - 0.971, - 0.973, - 0.983, - 0.991, - 0.996, - 0.991, - 0.986, - 0.98, - 0.977, - 0.991, - 0.984, - 0.961, - 0.94, - 0.94, - 0.966, - 0.989, - 1, - 0.99, - 0.99, - 0.998, - 1.003, - 1.006, - 0.984, - 0.985, - 0.978, - 0.977, - 1.074, - 0.975, - 0.973, - 0.981, - 1.005, - 1.008, - 1.013, - 1.004, - 1.01, - 1.006, - 1.014, - 1.011, - 1.003, - 1.01, - 0.985, - 0.979, - 0.97, - 0.962, - 0.968, - 0.984, - 1.007, - 0.997, - 0.993, - 0.985, - 0.988, - 0.989, - 1.085, - 0.988, - 0.983, - 1.003, - 1.006, - 1.015, - 1.013, - 1.016, - 1.015, - 1.015, - 1.028, - 1.027, - 1.027, - 1.015, - 1.012, - 1.006, - 0.993, - 0.996, - 0.972, - 0.957, - 1.175, - 0.944, - 0.96, - 0.964, - 0.969, - 0.961, - 0.973, - 1.082, - 0.977, - 0.987, - 0.993, - 1.017, - 1.015, - 1.017, - 1.013, - 1.012, - 1.013, - 1.015, - 1.035, - 1.009, - 1.013, - 1.008, - 1.016, - 1.022, - 1.008, - 1.005, - 1.004, - 1.011, - 0.99, - 0.97, - 0.939, - 0.928, - 0.942, - 0.959, - 1.067, - 0.97, - 0.971, - 0.992, - 1.008, - 1.009, - 1.002, - 1.012, - 1.003, - 1.003, - 1.006, - 1.001, - 1.004, - 1.007, - 1.008, - 1.012, - 1.024, - 1.011, - 1.008, - 1, - 0.998, - 0.991, - 0.98, - 0.975, - 0.953, - 0.93, - 1.006, - 0.913, - 0.927, - 0.946, - 0.973, - 0.973, - 0.977, - 0.986, - 0.989, - 0.994, - 0.998, - 1.017, - 1.01, - 1.009, - 1.01, - 1.011, - 1.004, - 1.016, - 1.015, - 1.016, - 1.023, - 1.014, - 1.02, - 1.008, - 0.992, - 0.974, - 0.972, - 1.061, - 0.949, - 0.934, - 0.923, - 0.943, - 0.959, - 0.979, - 1, - 0.994, - 0.993, - 1.003, - 1.022, - 1.016, - 1.011, - 1.016, - 1.015, - 1.041, - 1.026, - 1.028, - 1.02, - 1.021, - 1.024, - 1.021, - 1.01, - 0.993, - 0.989, - 0.979, - 1.074, - 0.971, - 0.959, - 0.967, - 0.967, - 0.951, - 1.216, - 0.938, - 0.951, - 0.965, - 0.992, - 0.992, - 1.003, - 1.013, - 1.013, - 1.025, - 1.028, - 1.033, - 1.019, - 1.018, - 1.02, - 1.018, - 1.011, - 0.999, - 1.002, - 0.985, - 1.093, - 0.981, - 0.989, - 0.987, - 0.99, - 0.995, - 0.992, - 1.001, - 0.977, - 0.958, - 0.951, - 0.964, - 0.978, - 0.984, - 1.006, - 1, - 1.009, - 1.018, - 1.013, - 1.016, - 1.012, - 1.022, - 1.016, - 1.002, - 0.985, - 0.981, - 0.981, - 1.079, - 0.974, - 0.976, - 0.986, - 0.994, - 0.999, - 0.993, - 0.987, - 0.979, - 0.976, - 0.989, - 0.982, - 0.958, - 0.936, - 0.937, - 0.962, - 0.986, - 0.998, - 0.988, - 0.99, - 0.999, - 1.005, - 1.009, - 0.988, - 0.989, - 0.981, - 0.98, - 1.077, - 0.978, - 0.975, - 0.982, - 1.004, - 1.006, - 1.011, - 1.002, - 1.007, - 1.002, - 1.011, - 1.007, - 1, - 1.007, - 0.984, - 0.979, - 0.971, - 0.964, - 0.97, - 0.988, - 1.01, - 1, - 0.996, - 0.988, - 0.991, - 0.99, - 1.085, - 0.987, - 0.982, - 0.998, - 1.001, - 1.01, - 1.007, - 1.01, - 1.009, - 1.01, - 1.023, - 1.023, - 1.025, - 1.014, - 1.012, - 1.006, - 0.996, - 1, - 0.975, - 0.96, - 1.198, - 0.946, - 0.96, - 0.964, - 0.968, - 0.961, - 0.973, - 1.076, - 0.974, - 0.985, - 0.99, - 1.014, - 1.012, - 1.014, - 1.012, - 1.012, - 1.015, - 1.017, - 1.037, - 1.012, - 1.017, - 1.011, - 1.018, - 1.025, - 1.01, - 1.006, - 1.004, - 1.01, - 0.988, - 0.967, - 0.935, - 0.926, - 0.939, - 0.954, - 1.059, - 0.968, - 0.969, - 0.991, - 1.008, - 1.01, - 1.004, - 1.014, - 1.006, - 1.006, - 1.009, - 1.003, - 1.006, - 1.009, - 1.009, - 1.012, - 1.023, - 1.008, - 1.004, - 0.997, - 0.994, - 0.987, - 0.976, - 0.972, - 0.949, - 0.927, - 1.005 - ], - "reasons": [] -} diff --git a/gallery/json-to-gif-transform/sheet.png b/gallery/json-to-gif-transform/sheet.png deleted file mode 100644 index caa1516..0000000 Binary files a/gallery/json-to-gif-transform/sheet.png and /dev/null differ diff --git a/gallery/json-to-gif-transform/showcase.gif b/gallery/json-to-gif-transform/showcase.gif deleted file mode 100644 index 21407f6..0000000 Binary files a/gallery/json-to-gif-transform/showcase.gif and /dev/null differ diff --git a/gallery/json-to-gif-transform/showcase.json b/gallery/json-to-gif-transform/showcase.json deleted file mode 100644 index a35c12c..0000000 --- a/gallery/json-to-gif-transform/showcase.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "title": "60fps Video Transformer", - "says": "The Loop Studio transformer converts brief.json into 480 audited 60fps video frames.", - "seconds": 8, - "fps": 60, - "width": 640, - "height": 270, - "palette": "abyss", - "scene": "transform", - "stage": [ - "brief.json", - "60 FPS", - "MP4 + WebP" - ], - "steps": [ - { - "from": 7, - "to": 1, - "caption": "brief.json sets 60fps target", - "source": "skills/loop-brief/SKILL.md:31" - }, - { - "from": 1, - "to": 3, - "caption": "renders 480 phase-exact frames", - "source": "rules/AGENTS.md:8" - }, - { - "from": 3, - "to": 5, - "caption": "verifies seam score & contrast", - "source": "skills/loop-audit/SKILL.md:14" - }, - { - "from": 5, - "to": 7, - "caption": "encodes 60fps MP4 & WebP", - "source": "skills/loop-render/SKILL.md:62" - } - ] -} diff --git a/gallery/json-to-gif-transform/showcase.webp b/gallery/json-to-gif-transform/showcase.webp deleted file mode 100644 index 2f99941..0000000 Binary files a/gallery/json-to-gif-transform/showcase.webp and /dev/null differ diff --git a/gallery/json-to-gif-transform/sketch.js b/gallery/json-to-gif-transform/sketch.js deleted file mode 100644 index 3be591f..0000000 --- a/gallery/json-to-gif-transform/sketch.js +++ /dev/null @@ -1,173 +0,0 @@ -// Custom 60fps Showcase: json-to-gif-transform — Multi-stage transformer converting brief.json -> 480 frames -> MP4/WebP -export const meta = { - mode: "showcase", - scene: "transform", - seconds: 8, - fps: 60, - width: 640, - height: 270, - seed: 97, - palette: "abyss" -}; - -export const showcase = { - title: "60fps Video Transformer", - says: "The Loop Studio transformer converts brief.json into 480 audited 60fps video frames.", - seconds: 8, - fps: 60, - width: 640, - height: 270, - palette: "abyss", - scene: "transform", - stage: ["brief.json", "60 FPS", "MP4 + WebP"], - steps: [ - { from: 7.0, to: 1.0, caption: "brief.json sets 60fps target", source: "skills/loop-brief/SKILL.md:31" }, - { from: 1.0, to: 3.0, caption: "renders 480 phase-exact frames", source: "rules/AGENTS.md:8" }, - { from: 3.0, to: 5.0, caption: "verifies seam score & contrast", source: "skills/loop-audit/SKILL.md:14" }, - { from: 5.0, to: 7.0, caption: "encodes 60fps MP4 & WebP", source: "skills/loop-render/SKILL.md:62" } - ] -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["abyss"]; - const S = kit.showcase || showcase; - const labels = S.stage || showcase.stage; - const steps = S.steps || showcase.steps; - const SECONDS = S.seconds || meta.seconds; - const t = phase * SECONDS; - const TAU = Math.PI * 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const cardW = Math.round(W * 0.27); - const cardH = Math.round(H * 0.50); - const cy = Math.round(H * 0.40); - const leftX = Math.round(W * 0.20); - const midX = Math.round(W * 0.50); - const rightX = Math.round(W * 0.80); - - // Beam + 60fps streaming tokens - ctx.strokeStyle = C.line; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.moveTo(leftX + cardW / 2, cy); - ctx.lineTo(rightX - cardW / 2, cy); - ctx.stroke(); - - for (let i = 0; i < 6; i++) { - const u = (phase * 3 + i / 6) % 1; - const px = (leftX + cardW / 2) + ((rightX - cardW / 2) - (leftX + cardW / 2)) * u; - const py = cy + Math.sin(TAU * (u * 2 + phase)) * 6; - ctx.fillStyle = u < 0.5 ? C.accent : C.spark; - ctx.beginPath(); - ctx.arc(px, py, 3.8, 0, TAU); - ctx.fill(); - } - - // Left Card: brief.json - kit.roundRect(ctx, leftX - cardW / 2, cy - cardH / 2, cardW, cardH, 10); - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.accent; - ctx.lineWidth = 2; - ctx.stroke(); - - ctx.font = "700 12px monospace"; - ctx.fillStyle = C.accent; - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - ctx.fillText(labels[0], leftX - cardW / 2 + 12, cy - cardH / 2 + 20); - - const specLines = ["fps: 60", "sec: 8", "480 frames", "seam <= 1.5"]; - ctx.font = "500 11px monospace"; - specLines.forEach((line, idx) => { - const pulse = 0.5 + 0.5 * Math.sin(TAU * (phase * 2 - idx * 0.2)); - ctx.globalAlpha = 0.55 + 0.45 * pulse; - ctx.fillStyle = idx === 0 ? C.spark : C.body; - ctx.fillText(line, leftX - cardW / 2 + 12, cy - 16 + idx * 18); - }); - - // Center Dual-Counter-Rotating 60fps Turbine - ctx.globalAlpha = 1; - const coreR = Math.round(H * 0.19); - ctx.fillStyle = C.surface; - ctx.beginPath(); - ctx.arc(midX, cy, coreR, 0, TAU); - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 2; - ctx.stroke(); - - const a1 = phase * TAU * 3; - const a2 = -phase * TAU * 4; - ctx.strokeStyle = C.accent; - ctx.lineWidth = 3; - ctx.beginPath(); - ctx.arc(midX, cy, coreR - 7, a1, a1 + Math.PI * 1.15); - ctx.stroke(); - - ctx.strokeStyle = C.spark; - ctx.lineWidth = 2.5; - ctx.beginPath(); - ctx.arc(midX, cy, coreR - 15, a2, a2 + Math.PI * 1.15); - ctx.stroke(); - - ctx.font = "700 11px monospace"; - ctx.fillStyle = C.body; - ctx.textAlign = "center"; - ctx.fillText("60 FPS", midX, cy); - - // Right Card: Live 60fps Output Preview - kit.roundRect(ctx, rightX - cardW / 2, cy - cardH / 2, cardW, cardH, 10); - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.spark; - ctx.lineWidth = 2; - ctx.stroke(); - - ctx.font = "700 12px monospace"; - ctx.fillStyle = C.spark; - ctx.textAlign = "left"; - ctx.fillText(labels[2], rightX - cardW / 2 + 12, cy - cardH / 2 + 20); - - // Miniature orbiting wave inside output card - const outCx = rightX; - const outCy = cy + 10; - for (let k = 0; k < 8; k++) { - const a = TAU * (phase * 2 + k / 8); - const ox = outCx + Math.cos(a) * (cardW * 0.28); - const oy = outCy + Math.sin(a * 2) * (cardH * 0.16); - ctx.fillStyle = k % 2 === 0 ? C.accent : C.spark; - ctx.beginPath(); - ctx.arc(ox, oy, 3.6, 0, TAU); - ctx.fill(); - } - - // Bottom caption pill - const capY = Math.round(H * 0.86); - const pillW = Math.round(W * 0.64); - kit.roundRect(ctx, W / 2 - pillW / 2, capY - 16, pillW, 32, 7); - ctx.globalAlpha = 0.96; - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1.2; - ctx.stroke(); - - ctx.font = "500 12.5px monospace"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - steps.forEach((c) => { - const len = ((c.to - c.from) % SECONDS + SECONDS) % SECONDS || SECONDS; - const u = ((t - c.from) % SECONDS + SECONDS) % SECONDS; - if (u >= len) return; - const fade = Math.max(0.25, Math.min(1, u / 0.3, (len - u) / 0.3)); - ctx.globalAlpha = fade; - ctx.fillStyle = C.body; - ctx.fillText(c.caption, W / 2, capY); - }); - ctx.globalAlpha = 1; -} diff --git a/gallery/json-to-gif-transform/sources.json b/gallery/json-to-gif-transform/sources.json deleted file mode 100644 index 160568c..0000000 --- a/gallery/json-to-gif-transform/sources.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "pass": true, - "repoRoot": "/Users/marcusk/.gemini/antigravity/scratch/loop-studio", - "checked": 4, - "citations": [ - { - "step": 1, - "source": "skills/loop-brief/SKILL.md:31", - "file": "skills/loop-brief/SKILL.md", - "line": 31, - "excerpt": "", - "valid": true - }, - { - "step": 2, - "source": "rules/AGENTS.md:8", - "file": "rules/AGENTS.md", - "line": 8, - "excerpt": "", - "valid": true - }, - { - "step": 3, - "source": "skills/loop-audit/SKILL.md:14", - "file": "skills/loop-audit/SKILL.md", - "line": 14, - "excerpt": "## What `loop audit` Measures", - "valid": true - }, - { - "step": 4, - "source": "skills/loop-render/SKILL.md:62", - "file": "skills/loop-render/SKILL.md", - "line": 62, - "excerpt": "- `loop.gif` (or `showcase.gif` in showcase mode) using adaptive 256-color quantization + LZW encoding (GIF89a frame del", - "valid": true - } - ], - "reasons": [] -} diff --git a/gallery/json-to-gif-transform/storyboard.png b/gallery/json-to-gif-transform/storyboard.png deleted file mode 100644 index 5e25d16..0000000 Binary files a/gallery/json-to-gif-transform/storyboard.png and /dev/null differ diff --git a/gallery/kinetic-release-banner/audit.json b/gallery/kinetic-release-banner/audit.json deleted file mode 100644 index c9ddd17..0000000 --- a/gallery/kinetic-release-banner/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "kinetic-release-banner", - "title": "Editorial Kinetic Wave (60 fps Type)", - "mode": "ambient", - "useCase": "60 fps social release announcement card, talk title slide, and launch banner", - "fps": 60, - "pass": true, - "seamScore": 0.968, - "duplicateFrames": 0, - "flickerScore": 0.456, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1408.1, - "webpKB": 1134.1, - "totalFrames": 240 -} diff --git a/gallery/kinetic-release-banner/brief.json b/gallery/kinetic-release-banner/brief.json deleted file mode 100644 index c273b06..0000000 --- a/gallery/kinetic-release-banner/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Editorial Kinetic Wave", - "prompt": "Silky 60 fps 4-second editorial kinetic typography wave repeating PHASE 0→1.", - "mode": "ambient", - "style": "kinetic-type", - "palette": "editorial", - "seconds": 4, - "fps": 60, - "width": 280, - "height": 280, - "seed": 61 -} diff --git a/gallery/kinetic-release-banner/index.html b/gallery/kinetic-release-banner/index.html deleted file mode 100644 index 6a89319..0000000 --- a/gallery/kinetic-release-banner/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Editorial Kinetic Wave (60 fps Type) · Loop Studio - - - -
-
-

Editorial Kinetic Wave (60 fps Type)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/kinetic-release-banner/legible.json b/gallery/kinetic-release-banner/legible.json deleted file mode 100644 index 1d763f0..0000000 --- a/gallery/kinetic-release-banner/legible.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 9, - "captions": [ - { - "text": "PHASE 0→1", - "contrastRatio": 5.19, - "minMarginPx": 30, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 17.65, - "minMarginPx": 56, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 5.15, - "minMarginPx": 71, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 17.34, - "minMarginPx": 76, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 16.32, - "minMarginPx": 96, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 17.34, - "minMarginPx": 96, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 5.15, - "minMarginPx": 76, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 17.65, - "minMarginPx": 55, - "passContrast": true - }, - { - "text": "PHASE 0→1", - "contrastRatio": 5.19, - "minMarginPx": 29, - "passContrast": true - } - ], - "reasons": [] -} diff --git a/gallery/kinetic-release-banner/loop.gif b/gallery/kinetic-release-banner/loop.gif deleted file mode 100644 index 89decbf..0000000 Binary files a/gallery/kinetic-release-banner/loop.gif and /dev/null differ diff --git a/gallery/kinetic-release-banner/loop.webp b/gallery/kinetic-release-banner/loop.webp deleted file mode 100644 index 0d1f1a5..0000000 Binary files a/gallery/kinetic-release-banner/loop.webp and /dev/null differ diff --git a/gallery/kinetic-release-banner/poster.png b/gallery/kinetic-release-banner/poster.png deleted file mode 100644 index a91f7d5..0000000 Binary files a/gallery/kinetic-release-banner/poster.png and /dev/null differ diff --git a/gallery/kinetic-release-banner/seam.json b/gallery/kinetic-release-banner/seam.json deleted file mode 100644 index ff2d4a0..0000000 --- a/gallery/kinetic-release-banner/seam.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "pass": true, - "totalFrames": 240, - "seamScore": 0.968, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.456, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.051173, - "seamStepDelta": 0.049535, - "normalizedSteps": [ - 0.685, - 0.899, - 1.061, - 0.97, - 0.965, - 0.907, - 1.138, - 0.867, - 0.996, - 0.864, - 0.783, - 1.211, - 0.892, - 0.999, - 0.784, - 1.214, - 1.085, - 0.891, - 1.003, - 1.109, - 0.85, - 1.134, - 1.059, - 0.911, - 1.212, - 0.823, - 1.102, - 0.913, - 1.181, - 1.018, - 1.039, - 1.097, - 0.896, - 1.126, - 0.922, - 1.105, - 1.125, - 1.026, - 0.93, - 0.885, - 1.085, - 1.03, - 1.043, - 1.104, - 1.121, - 1.12, - 1.103, - 1.054, - 1.025, - 0.931, - 0.961, - 1.256, - 1.056, - 1.002, - 0.961, - 1.191, - 1.13, - 0.83, - 1.181, - 1.149, - 0.954, - 1.129, - 0.841, - 1.279, - 1.192, - 0.882, - 1.061, - 0.932, - 1.214, - 0.879, - 0.845, - 1.222, - 0.992, - 0.911, - 1.149, - 0.979, - 0.909, - 1.283, - 0.91, - 0.875, - 0.655, - 0.905, - 1.14, - 0.989, - 0.911, - 0.965, - 1.141, - 0.813, - 0.954, - 0.971, - 0.993, - 1.057, - 0.891, - 0.954, - 0.797, - 1.378, - 0.964, - 0.78, - 1.211, - 1.038, - 0.776, - 1.171, - 0.982, - 0.964, - 1.241, - 0.646, - 1.245, - 0.901, - 1.185, - 0.623, - 1.234, - 1.083, - 0.683, - 1.106, - 1.132, - 0.936, - 1.106, - 0.948, - 1.095, - 0.854, - 1.006, - 0.89, - 1.171, - 0.907, - 1.114, - 0.973, - 1.083, - 1.086, - 1, - 0.681, - 0.832, - 1.342, - 0.885, - 0.991, - 0.829, - 1.045, - 1.129, - 0.882, - 0.988, - 1.13, - 1.17, - 1.02, - 1.05, - 0.955, - 1.044, - 0.916, - 0.94, - 0.952, - 1.227, - 1.094, - 0.836, - 0.946, - 1.138, - 1.023, - 0.948, - 1.201, - 1.027, - 1.033, - 0.947, - 1.11, - 0.908, - 1.027, - 0.988, - 1.203, - 1.036, - 1.04, - 1.201, - 0.82, - 1.157, - 1.118, - 0.787, - 1.243, - 1.022, - 1.155, - 0.788, - 1.233, - 1.028, - 0.92, - 1.228, - 0.814, - 1.101, - 1.023, - 0.933, - 1.183, - 1.235, - 0.868, - 0.99, - 0.968, - 1.043, - 0.872, - 0.93, - 1.151, - 0.912, - 0.959, - 1.032, - 0.899, - 0.963, - 1.114, - 0.964, - 0.495, - 0.922, - 0.882, - 1.323, - 0.914, - 0.969, - 1.112, - 1.085, - 0.947, - 0.962, - 0.911, - 1.048, - 1.208, - 0.902, - 0.94, - 0.867, - 1.323, - 1.118, - 0.624, - 1.284, - 0.93, - 1.028, - 1.162, - 0.863, - 1.122, - 1.185, - 0.803, - 1.15, - 0.892, - 1.241, - 0.785, - 1.074, - 0.997, - 0.904, - 0.949, - 1.253, - 0.983, - 0.948, - 1.122, - 1.058, - 0.968 - ], - "reasons": [] -} diff --git a/gallery/kinetic-release-banner/sheet.png b/gallery/kinetic-release-banner/sheet.png deleted file mode 100644 index dbd935f..0000000 Binary files a/gallery/kinetic-release-banner/sheet.png and /dev/null differ diff --git a/gallery/kinetic-release-banner/sketch.js b/gallery/kinetic-release-banner/sketch.js deleted file mode 100644 index 030671b..0000000 --- a/gallery/kinetic-release-banner/sketch.js +++ /dev/null @@ -1,53 +0,0 @@ -// Style Pack: kinetic-type — Silky 60fps harmonic wave typography poster -export const meta = { - mode: "ambient", - style: "kinetic-type", - seconds: 4, - fps: 60, - width: 280, - height: 280, - seed: 61, - palette: "editorial", - word: "PHASE 0→1" -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["editorial"]; - const TAU = Math.PI * 2; - const word = meta.word || "LOOP STUDIO"; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const rows = 9; - const rowH = (H - 44) / rows; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - - for (let r = 0; r < rows; r++) { - const isCenter = r === Math.floor(rows / 2); - const dist = Math.abs(r - Math.floor(rows / 2)); - const wave = Math.sin(TAU * (phase - r / rows)); - const x = W / 2 + wave * (isCenter ? 10 : 38); - const y = 22 + (r + 0.5) * rowH; - - const pillW = W * (0.68 + 0.14 * (0.5 + 0.5 * Math.cos(TAU * (phase + r / rows)))); - kit.roundRect(ctx, x - pillW / 2, y - rowH * 0.37, pillW, rowH * 0.74, 6); - ctx.globalAlpha = isCenter ? 0.98 : 0.3 + 0.45 * (1 - dist / rows); - ctx.fillStyle = isCenter ? C.spark : C.surface; - ctx.fill(); - ctx.strokeStyle = isCenter ? C.accent : C.line; - ctx.lineWidth = isCenter ? 2 : 1; - ctx.stroke(); - - const fontPx = Math.max(10, Math.round(W * (isCenter ? 0.044 : 0.036))); - ctx.font = (isCenter ? "700 " : "600 ") + fontPx + "px monospace"; - ctx.globalAlpha = isCenter ? 1 : 0.5 + 0.5 * (0.5 + 0.5 * wave); - ctx.fillStyle = isCenter ? C.ground : r % 2 === 0 ? C.accent : C.body; - ctx.fillText(word, x, y); - } - - ctx.globalAlpha = 1; -} diff --git a/gallery/kinetic-release-banner/sources.json b/gallery/kinetic-release-banner/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/kinetic-release-banner/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/live-audio-spectrum/audit.json b/gallery/live-audio-spectrum/audit.json deleted file mode 100644 index 3ff9382..0000000 --- a/gallery/live-audio-spectrum/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "live-audio-spectrum", - "title": "120 BPM Harmonic Spectrum (6s @ 60fps)", - "mode": "ambient", - "useCase": "Music release loop, podcast player, and WebAudio/VST visualizer synced to 120 BPM (3 bars)", - "fps": 60, - "pass": true, - "seamScore": 1.05, - "duplicateFrames": 0, - "flickerScore": 0.261, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1804, - "webpKB": 1688.8, - "totalFrames": 360 -} diff --git a/gallery/live-audio-spectrum/brief.json b/gallery/live-audio-spectrum/brief.json deleted file mode 100644 index 2b8aee6..0000000 --- a/gallery/live-audio-spectrum/brief.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "title": "120 BPM Harmonic Spectrum", - "prompt": "6-second 60fps 120 BPM harmonic spectrum visualizer with macro phrase swell and oscilloscope wave.", - "mode": "ambient", - "style": "kinetic-audio", - "palette": "ember", - "seconds": 6, - "fps": 60, - "width": 340, - "height": 240, - "bpm": 120, - "seed": 120 -} diff --git a/gallery/live-audio-spectrum/index.html b/gallery/live-audio-spectrum/index.html deleted file mode 100644 index 5d43ad6..0000000 --- a/gallery/live-audio-spectrum/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - 120 BPM Harmonic Spectrum (6s @ 60fps) · Loop Studio - - - -
-
-

120 BPM Harmonic Spectrum (6s @ 60fps)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/live-audio-spectrum/legible.json b/gallery/live-audio-spectrum/legible.json deleted file mode 100644 index bb6b469..0000000 --- a/gallery/live-audio-spectrum/legible.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 2, - "captions": [ - { - "text": "120 BPM · 60 FPS", - "contrastRatio": 5.88, - "minMarginPx": 14, - "passContrast": true - }, - { - "text": "6.0s LOOP", - "contrastRatio": 6.83, - "minMarginPx": 14, - "passContrast": true - } - ], - "reasons": [] -} diff --git a/gallery/live-audio-spectrum/loop.gif b/gallery/live-audio-spectrum/loop.gif deleted file mode 100644 index 27d9afc..0000000 Binary files a/gallery/live-audio-spectrum/loop.gif and /dev/null differ diff --git a/gallery/live-audio-spectrum/loop.webp b/gallery/live-audio-spectrum/loop.webp deleted file mode 100644 index a5c19ac..0000000 Binary files a/gallery/live-audio-spectrum/loop.webp and /dev/null differ diff --git a/gallery/live-audio-spectrum/poster.png b/gallery/live-audio-spectrum/poster.png deleted file mode 100644 index 3dd003e..0000000 Binary files a/gallery/live-audio-spectrum/poster.png and /dev/null differ diff --git a/gallery/live-audio-spectrum/seam.json b/gallery/live-audio-spectrum/seam.json deleted file mode 100644 index fc7b18d..0000000 --- a/gallery/live-audio-spectrum/seam.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "pass": true, - "totalFrames": 360, - "seamScore": 1.05, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.261, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.033034, - "seamStepDelta": 0.034702, - "normalizedSteps": [ - 1.052, - 1.113, - 1.181, - 1.246, - 1.136, - 1.117, - 1.048, - 1.037, - 1.028, - 0.998, - 1.023, - 1.109, - 1.125, - 1.006, - 0.983, - 1, - 1, - 0.948, - 1.126, - 1.028, - 1.044, - 1.096, - 1.026, - 1.122, - 1.062, - 1.023, - 1.112, - 1.139, - 1.172, - 1.274, - 1.363, - 1.387, - 1.517, - 1.654, - 1.456, - 1.72, - 1.304, - 1.632, - 1.108, - 1.169, - 1.248, - 1.303, - 1.237, - 1.434, - 1.186, - 1.207, - 1.34, - 1.128, - 1.118, - 1.097, - 1.349, - 1.137, - 1.143, - 1.38, - 1.364, - 1.125, - 1.187, - 1.417, - 1.221, - 1.293, - 1.355, - 1.608, - 1.462, - 1.506, - 1.76, - 1.786, - 1.386, - 1.328, - 1.38, - 1.423, - 1.827, - 1.889, - 1.45, - 1.46, - 1.382, - 1.521, - 1.199, - 1.225, - 1.242, - 1.411, - 1.185, - 1.214, - 1.235, - 1.474, - 1.207, - 1.233, - 1.196, - 1.466, - 1.272, - 1.259, - 1.334, - 1.595, - 1.468, - 1.518, - 1.419, - 2.172, - 1.317, - 1.545, - 1.429, - 1.481, - 1.507, - 1.923, - 1.514, - 1.839, - 1.378, - 1.345, - 1.45, - 1.221, - 1.217, - 1.184, - 1.227, - 1.174, - 1.205, - 1.227, - 1.183, - 1.177, - 1.19, - 1.168, - 1.204, - 1.14, - 1.205, - 1.441, - 1.286, - 1.333, - 1.258, - 1.629, - 1.431, - 1.411, - 1.261, - 1.493, - 1.325, - 1.409, - 1.334, - 1.308, - 1.212, - 1.148, - 1.115, - 1.123, - 1.026, - 1.106, - 1.046, - 1.038, - 1.104, - 1.068, - 1.065, - 1.081, - 1.012, - 1.105, - 1.026, - 1.15, - 1.173, - 1.238, - 1.239, - 1.298, - 1.215, - 1.104, - 1.146, - 1.059, - 1.096, - 1.149, - 1.238, - 1.373, - 1.248, - 1.219, - 1.186, - 1.157, - 1.024, - 1.016, - 1.032, - 0.995, - 0.947, - 1.032, - 0.983, - 0.943, - 0.941, - 0.96, - 0.925, - 0.919, - 0.947, - 0.893, - 0.977, - 0.974, - 0.987, - 1.067, - 0.921, - 0.893, - 1.029, - 0.982, - 1.043, - 1.119, - 1.179, - 1.281, - 1.154, - 1.115, - 1.104, - 0.997, - 1.016, - 0.872, - 0.907, - 0.805, - 0.865, - 0.882, - 0.848, - 0.829, - 0.722, - 0.86, - 0.805, - 0.794, - 0.732, - 0.724, - 0.82, - 0.771, - 0.81, - 0.877, - 0.784, - 0.818, - 0.785, - 0.797, - 0.831, - 0.934, - 0.978, - 1.069, - 0.943, - 0.926, - 0.849, - 0.812, - 0.802, - 0.802, - 0.634, - 0.745, - 0.769, - 0.637, - 0.638, - 0.685, - 0.7, - 0.703, - 0.658, - 0.625, - 0.678, - 0.529, - 0.624, - 0.608, - 0.693, - 0.687, - 0.761, - 0.591, - 0.622, - 0.622, - 0.725, - 0.626, - 0.745, - 0.838, - 0.69, - 0.732, - 0.61, - 0.661, - 0.597, - 0.508, - 0.525, - 0.493, - 0.581, - 0.516, - 0.571, - 0.576, - 0.525, - 0.598, - 0.543, - 0.53, - 0.542, - 0.639, - 0.694, - 0.755, - 0.749, - 0.859, - 0.795, - 0.623, - 0.721, - 0.51, - 0.647, - 0.648, - 0.627, - 0.761, - 0.685, - 0.613, - 0.607, - 0.569, - 0.633, - 0.573, - 0.541, - 0.579, - 0.585, - 0.644, - 0.642, - 0.469, - 0.682, - 0.543, - 0.642, - 0.605, - 0.711, - 0.651, - 0.812, - 0.859, - 0.801, - 0.934, - 0.936, - 0.794, - 0.709, - 0.732, - 0.678, - 0.688, - 0.751, - 0.869, - 0.828, - 0.759, - 0.683, - 0.693, - 0.797, - 0.633, - 0.661, - 0.791, - 0.722, - 0.759, - 0.734, - 0.663, - 0.841, - 0.699, - 0.726, - 0.85, - 0.773, - 0.906, - 0.9, - 0.997, - 1.016, - 1.133, - 0.994, - 0.96, - 0.932, - 0.781, - 0.893, - 0.837, - 0.895, - 1.03, - 0.9, - 0.903, - 0.919, - 0.798, - 0.885, - 0.878, - 0.927, - 0.898, - 0.883, - 0.868, - 0.939, - 0.919, - 0.825, - 0.924, - 0.861, - 0.963, - 0.915, - 1.05 - ], - "reasons": [] -} diff --git a/gallery/live-audio-spectrum/sheet.png b/gallery/live-audio-spectrum/sheet.png deleted file mode 100644 index ec27521..0000000 Binary files a/gallery/live-audio-spectrum/sheet.png and /dev/null differ diff --git a/gallery/live-audio-spectrum/sketch.js b/gallery/live-audio-spectrum/sketch.js deleted file mode 100644 index be5d71f..0000000 --- a/gallery/live-audio-spectrum/sketch.js +++ /dev/null @@ -1,86 +0,0 @@ -// Custom 60fps Ambient Loop: live-audio-spectrum — 6s (3 bars @ 120 BPM) 60fps harmonic equalizer & waveform -export const meta = { - mode: "ambient", - style: "kinetic-audio", - seconds: 6, - fps: 60, - width: 340, - height: 240, - seed: 120, - palette: "ember" -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["ember"]; - const TAU = Math.PI * 2; - - if (ctx.createLinearGradient) { - const bg = ctx.createLinearGradient(0, 0, 0, H); - bg.addColorStop(0, C.ground); - bg.addColorStop(1, C.surface); - ctx.fillStyle = bg; - } else { - ctx.fillStyle = C.ground; - } - ctx.fillRect(0, 0, W, H); - - // 120 BPM over 6 seconds = 12 beats (3 bars of 4/4); macro phrase swells over 1 cycle while beats pulse 12x - const beatPulse = Math.pow(0.5 + 0.5 * Math.sin(TAU * phase * 12), 2.5); - const macroEnergy = 0.65 + 0.35 * Math.sin(TAU * phase); - - // Top telemetry header - ctx.font = "600 10.5px monospace"; - ctx.fillStyle = C.muted; - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - ctx.fillText("120 BPM · 60 FPS", 18, 20); - ctx.textAlign = "right"; - ctx.fillStyle = beatPulse > 0.65 ? C.spark : C.accent; - ctx.fillText("6.0s LOOP", W - 18, 20); - - // 24 harmonic spectrum bars - const bars = 24; - const margin = 20; - const step = (W - margin * 2) / bars; - const bw = Math.max(5, step - 3); - const baseY = H * 0.72; - const maxH = H * 0.44; - - for (let i = 0; i < bars; i++) { - const norm = i / (bars - 1); - const w1 = 0.5 + 0.5 * Math.sin(TAU * (phase * 3 - norm * 1.5)); - const w2 = 0.5 + 0.5 * Math.cos(TAU * (phase * 6 + norm * 2.5)); - const amp = (0.18 + 0.52 * w1 + 0.30 * w2) * macroEnergy * (0.82 + 0.18 * beatPulse); - const bh = Math.max(6, amp * maxH); - const bx = margin + i * step; - - ctx.globalAlpha = 0.25; - ctx.fillStyle = C.accent; - ctx.fillRect(bx, baseY + 4, bw, bh * 0.22); // subtle floor reflection - - ctx.globalAlpha = 0.92; - ctx.fillStyle = amp > 0.72 ? C.spark : C.accent; - kit.roundRect(ctx, bx, baseY - bh, bw, bh, 2); - ctx.fill(); - } - - // Smooth continuous phase oscilloscope wave across bottom - ctx.globalAlpha = 0.95; - ctx.strokeStyle = C.spark; - ctx.lineWidth = 2; - ctx.beginPath(); - const samples = 60; - for (let s = 0; s <= samples; s++) { - const u = s / samples; - const wx = margin + u * (W - margin * 2); - const env = Math.sin(Math.PI * u); - const wy = H * 0.87 + Math.sin(TAU * (u * 3 - phase * 6)) * 10 * env * macroEnergy; - if (s === 0) ctx.moveTo(wx, wy); - else ctx.lineTo(wx, wy); - } - ctx.stroke(); - - ctx.globalAlpha = 1; -} diff --git a/gallery/live-audio-spectrum/sources.json b/gallery/live-audio-spectrum/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/live-audio-spectrum/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/loop-studio/audit.json b/gallery/loop-studio/audit.json deleted file mode 100644 index 8517a98..0000000 --- a/gallery/loop-studio/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "loop-studio", - "title": "Loop Studio Showcase (Flow Pipeline)", - "mode": "showcase", - "useCase": "README hero diagram explaining what a repo or workflow does end-to-end", - "fps": 60, - "pass": true, - "seamScore": 1.117, - "duplicateFrames": 0, - "flickerScore": 0.525, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 9476.8, - "webpKB": 5622.2, - "totalFrames": 480 -} diff --git a/gallery/loop-studio/index.html b/gallery/loop-studio/index.html deleted file mode 100644 index 2ba42ad..0000000 --- a/gallery/loop-studio/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Loop Studio Showcase (Flow Pipeline) · Loop Studio - - - -
-
-

Loop Studio Showcase (Flow Pipeline)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/loop-studio/legible.json b/gallery/loop-studio/legible.json deleted file mode 100644 index 755582f..0000000 --- a/gallery/loop-studio/legible.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "pass": true, - "width": 640, - "height": 288, - "phoneWidth": 400, - "frame0ShowsAllStageLabels": true, - "stageLabelsChecked": 4, - "captions": [ - { - "step": 1, - "caption": "request arrives: \"deep sea, square\"", - "words": 5, - "chars": 35, - "windowSeconds": 2, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 29, - "phoneFontPx": 7.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 2, - "caption": "sketch draws from phase", - "words": 4, - "chars": 23, - "windowSeconds": 2, - "requiredSeconds": 1.7, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 29, - "phoneFontPx": 7.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 3, - "caption": "seam and contrast measured", - "words": 4, - "chars": 26, - "windowSeconds": 2, - "requiredSeconds": 1.7, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 29, - "phoneFontPx": 7.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 4, - "caption": "verified 60fps loop drops out", - "words": 5, - "chars": 29, - "windowSeconds": 2, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.23, - "passContrast": true, - "minEdgeMarginPx": 29, - "phoneFontPx": 7.5, - "passMobileWidth": true, - "pass": true - } - ], - "reasons": [] -} diff --git a/gallery/loop-studio/loop.gif b/gallery/loop-studio/loop.gif deleted file mode 100644 index f5e2ed2..0000000 Binary files a/gallery/loop-studio/loop.gif and /dev/null differ diff --git a/gallery/loop-studio/poster.png b/gallery/loop-studio/poster.png deleted file mode 100644 index c41af90..0000000 Binary files a/gallery/loop-studio/poster.png and /dev/null differ diff --git a/gallery/loop-studio/seam.json b/gallery/loop-studio/seam.json deleted file mode 100644 index ccc4116..0000000 --- a/gallery/loop-studio/seam.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "pass": true, - "totalFrames": 480, - "seamScore": 1.117, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.525, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.013848, - "seamStepDelta": 0.015467, - "normalizedSteps": [ - 1.021, - 1.023, - 1.013, - 1.033, - 1.014, - 1.017, - 1.056, - 1.021, - 1.014, - 1.011, - 1.024, - 1.005, - 1.02, - 1.025, - 1.005, - 1.028, - 0.993, - 1.02, - 0.997, - 0.989, - 1.014, - 0.984, - 0.99, - 0.972, - 0.991, - 0.992, - 0.971, - 0.973, - 0.964, - 0.954, - 0.955, - 0.939, - 0.935, - 0.93, - 0.925, - 0.917, - 0.931, - 0.92, - 0.912, - 0.925, - 0.914, - 0.906, - 0.886, - 0.882, - 0.879, - 0.882, - 0.879, - 0.874, - 0.878, - 0.887, - 0.852, - 0.858, - 0.853, - 0.848, - 0.836, - 0.826, - 0.84, - 0.822, - 0.821, - 1.421, - 0.834, - 0.85, - 0.832, - 0.833, - 0.841, - 0.857, - 0.864, - 0.869, - 0.873, - 0.87, - 0.878, - 0.9, - 0.886, - 0.881, - 0.913, - 0.927, - 0.917, - 0.906, - 0.906, - 0.915, - 0.944, - 0.946, - 0.941, - 0.951, - 0.949, - 0.941, - 0.971, - 0.957, - 0.996, - 0.975, - 1, - 0.986, - 0.985, - 0.988, - 0.99, - 1.015, - 0.998, - 1.004, - 1.004, - 1.03, - 1.011, - 1.008, - 1.008, - 1.015, - 1.02, - 1.038, - 1.02, - 1.018, - 1.025, - 1.038, - 1.03, - 3.33, - 1.024, - 1.065, - 1.028, - 1.035, - 1.05, - 1.472, - 1.032, - 1.029, - 1.055, - 1.029, - 1.51, - 1.031, - 1.032, - 1.023, - 1.025, - 1.029, - 3.309, - 1.025, - 1.076, - 1.013, - 1.018, - 1.018, - 1.032, - 1.036, - 1.002, - 1, - 1.003, - 1.02, - 0.999, - 0.994, - 0.993, - 0.989, - 0.99, - 0.98, - 0.981, - 0.975, - 0.988, - 0.99, - 0.961, - 0.955, - 0.968, - 0.946, - 0.947, - 0.973, - 0.936, - 0.948, - 0.914, - 1.037, - 0.926, - 0.894, - 0.912, - 0.891, - 0.881, - 0.907, - 0.894, - 0.879, - 0.874, - 0.869, - 0.871, - 0.869, - 0.903, - 0.857, - 0.856, - 0.845, - 0.874, - 0.852, - 0.828, - 1.411, - 0.83, - 0.831, - 0.837, - 0.855, - 0.844, - 0.851, - 0.885, - 0.871, - 0.868, - 0.879, - 0.882, - 0.88, - 0.881, - 0.882, - 0.89, - 0.899, - 0.901, - 0.904, - 0.911, - 0.917, - 0.925, - 0.922, - 0.936, - 0.964, - 0.964, - 0.957, - 0.96, - 0.954, - 0.976, - 0.984, - 0.971, - 0.98, - 0.984, - 1.004, - 0.984, - 0.992, - 1.011, - 1.002, - 1.033, - 1.004, - 1.017, - 1, - 1.008, - 1.037, - 1.019, - 1.015, - 1.024, - 1.019, - 1.02, - 1.032, - 1.046, - 3.016, - 1.035, - 1.043, - 1.024, - 1.022, - 1.029, - 1.397, - 1.05, - 1.03, - 1.028, - 1.036, - 1.475, - 1.04, - 1.022, - 1.018, - 1.063, - 1.032, - 3.335, - 1.031, - 1.043, - 1.029, - 1.036, - 1.039, - 1.016, - 1.032, - 1.009, - 1.018, - 0.987, - 0.984, - 1.003, - 0.986, - 0.985, - 0.971, - 0.982, - 0.984, - 0.965, - 0.977, - 0.963, - 0.957, - 0.961, - 1.242, - 0.961, - 0.968, - 0.961, - 0.961, - 0.975, - 0.973, - 0.965, - 0.976, - 0.986, - 0.972, - 0.953, - 0.948, - 0.947, - 0.95, - 0.939, - 0.94, - 0.934, - 0.944, - 0.917, - 0.918, - 0.908, - 0.898, - 0.878, - 0.866, - 0.877, - 0.861, - 0.843, - 1.46, - 0.838, - 0.858, - 0.846, - 0.852, - 0.866, - 0.878, - 0.892, - 0.902, - 0.913, - 0.917, - 0.926, - 0.948, - 0.943, - 0.947, - 0.976, - 0.992, - 0.988, - 0.985, - 0.988, - 1.103, - 1.026, - 1.022, - 1.021, - 1.03, - 1.038, - 1.044, - 1.061, - 1.053, - 1.084, - 1.068, - 1.096, - 1.083, - 1.09, - 1.096, - 1.094, - 1.122, - 1.105, - 1.113, - 1.113, - 1.135, - 1.127, - 1.125, - 1.13, - 1.128, - 1.131, - 1.158, - 1.148, - 1.141, - 1.145, - 1.15, - 1.151, - 3.273, - 1.151, - 1.191, - 1.156, - 1.156, - 1.174, - 1.59, - 1.157, - 1.156, - 1.176, - 1.162, - 1.496, - 1.153, - 1.16, - 1.158, - 1.151, - 1.153, - 3.053, - 1.156, - 1.195, - 1.143, - 1.142, - 1.148, - 1.156, - 1.161, - 1.134, - 1.123, - 1.12, - 1.14, - 1.116, - 1.114, - 1.112, - 1.107, - 1.104, - 1.095, - 1.09, - 1.09, - 1.094, - 1.095, - 1.072, - 1.065, - 1.071, - 1.053, - 1.041, - 1.059, - 1.027, - 1.04, - 1.011, - 1.011, - 1.017, - 0.985, - 0.999, - 0.975, - 0.962, - 0.979, - 0.966, - 0.95, - 0.936, - 0.926, - 0.92, - 0.917, - 0.945, - 0.893, - 0.884, - 0.866, - 0.892, - 0.867, - 0.84, - 1.365, - 0.831, - 0.841, - 0.877, - 0.93, - 0.954, - 0.994, - 1.052, - 1.053, - 1.064, - 1.1, - 1.108, - 1.122, - 1.143, - 1.163, - 1.173, - 1.185, - 1.18, - 1.184, - 1.186, - 1.175, - 1.184, - 1.158, - 1.14, - 1.159, - 1.152, - 1.127, - 1.123, - 1.1, - 1.555, - 1.088, - 1.066, - 1.058, - 3.25, - 1.073, - 1.043, - 1.042, - 1.045, - 0.996, - 1.012, - 0.966, - 0.974, - 0.951, - 3.285, - 0.968, - 0.952, - 0.966, - 1, - 1.002, - 1.013, - 1.499, - 1.033, - 1.044, - 1.021, - 1.033, - 1.01, - 1.011, - 1.008, - 1.016, - 1.036, - 1.117 - ], - "reasons": [] -} diff --git a/gallery/loop-studio/sheet.png b/gallery/loop-studio/sheet.png deleted file mode 100644 index 1abef45..0000000 Binary files a/gallery/loop-studio/sheet.png and /dev/null differ diff --git a/gallery/loop-studio/showcase.gif b/gallery/loop-studio/showcase.gif deleted file mode 100644 index f5e2ed2..0000000 Binary files a/gallery/loop-studio/showcase.gif and /dev/null differ diff --git a/gallery/loop-studio/showcase.json b/gallery/loop-studio/showcase.json deleted file mode 100644 index 668fca3..0000000 --- a/gallery/loop-studio/showcase.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Loop Studio Showcase", - "says": "Loop Studio turns a one-line request into a checked, seamless loop.", - "seconds": 8, - "fps": 60, - "width": 640, - "height": 288, - "palette": "studio-dark", - "scene": "flow", - "stage": [ - "request", - "sketch", - "check", - "loop.gif" - ], - "steps": [ - { - "from": 7, - "to": 1, - "caption": "request arrives: \"deep sea, square\"", - "source": "docs/contract.md:3" - }, - { - "from": 1, - "to": 3, - "caption": "sketch draws from phase", - "source": "docs/contract.md:14" - }, - { - "from": 3, - "to": 5, - "caption": "seam and contrast measured", - "source": "docs/tool.md:14" - }, - { - "from": 5, - "to": 7, - "caption": "verified 60fps loop drops out", - "source": "docs/tool.md:24" - } - ] -} diff --git a/gallery/loop-studio/showcase.webp b/gallery/loop-studio/showcase.webp deleted file mode 100644 index 864fe8f..0000000 Binary files a/gallery/loop-studio/showcase.webp and /dev/null differ diff --git a/gallery/loop-studio/sketch.js b/gallery/loop-studio/sketch.js deleted file mode 100644 index b620fac..0000000 --- a/gallery/loop-studio/sketch.js +++ /dev/null @@ -1,416 +0,0 @@ -// Scene Pack: flow — Visual 4-Stage Studio Pipeline with Live Mini-Canvas, Seam Chart & Rail Handover -export const meta = { - mode: "showcase", - scene: "flow", - seconds: 8, - fps: 60, - width: 640, - height: 288, - seed: 11, - palette: "studio-dark" -}; - -export const showcase = { - says: "Loop Studio turns a one-line request into a checked, seamless loop.", - seconds: 8, - scene: "flow", - stage: ["request", "sketch", "check", "loop.gif"], - steps: [ - { from: 7.0, to: 1.0, caption: "request arrives: \"deep sea, square\"", source: "docs/contract.md:3" }, - { from: 1.0, to: 3.0, caption: "sketch draws from phase", source: "docs/contract.md:14" }, - { from: 3.0, to: 5.0, caption: "seam and contrast measured", source: "docs/tool.md:14" }, - { from: 5.0, to: 7.0, caption: "verified 60fps loop drops out", source: "docs/tool.md:24" } - ] -}; - -function ease(x) { - return x <= 0 ? 0 : x >= 1 ? 1 : x * x * (3 - 2 * x); -} - -function placeItem(age, xs, W) { - const left = -0.05 * W; - const right = 1.05 * W; - let x = left; - let alpha = 1; - if (age < 2.0) { - x = left + (xs[0] - left) * ease(age / 2.0); - } else if (age < 4.0) { - const u = (age - 2.0) / 2.0; - x = xs[0] + (xs[1] - xs[0]) * (0.18 * u + 0.82 * ease(u)); - } else if (age < 6.0) { - const u = (age - 4.0) / 2.0; - x = xs[1] + (xs[2] - xs[1]) * (0.18 * u + 0.82 * ease(u)); - } else if (age < 8.0) { - const u = (age - 6.0) / 2.0; - x = xs[2] + (xs[3] - xs[2]) * (0.18 * u + 0.82 * ease(u)); - } else { - const e = ease((age - 8.0) / 1.0); - x = xs[3] + (right - xs[3]) * e; - alpha = 1 - e; - } - return { - x, - alpha, - checked: ease((age - 5.2) / 0.65) - }; -} - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["studio-dark"]; - const S = kit.showcase || showcase; - const labels = S.stage || ["request", "sketch", "check", "loop.gif"]; - const steps = S.steps || showcase.steps; - const SECONDS = S.seconds || meta.seconds; - const t = phase * SECONDS; - const TAU = Math.PI * 2; - const cyan = "#00E5B0"; - - // 1. Depth Layer 1: Radial gradient ground + harmonic wave dot lattice - ctx.globalAlpha = 1; - if (ctx.createRadialGradient) { - const bgGrad = ctx.createRadialGradient(W * 0.5, H * 0.42, 20, W * 0.5, H * 0.5, W * 0.65); - bgGrad.addColorStop(0, "#131930"); - bgGrad.addColorStop(1, C.ground); - ctx.fillStyle = bgGrad; - } else { - ctx.fillStyle = C.ground; - } - ctx.fillRect(0, 0, W, H); - - const gCols = 20; - const gRows = 9; - const cellW = W / gCols; - const cellH = H / gRows; - for (let r = 0; r < gRows; r++) { - for (let c = 0; c < gCols; c++) { - const gx = (c + 0.5) * cellW; - const gy = (r + 0.5) * cellH; - const dx = (gx - W * 0.5) / (W * 0.5); - const dy = (gy - H * 0.42) / (H * 0.5); - const dist = Math.sqrt(dx * dx + dy * dy); - const wave = 0.5 + 0.5 * Math.sin(TAU * (phase - dist * 1.2)); - ctx.globalAlpha = 0.08 + 0.16 * wave; - ctx.fillStyle = wave > 0.72 ? C.spark : C.line; - ctx.beginPath(); - ctx.arc(gx, gy, 1.2 + 1.4 * wave, 0, TAU); - ctx.fill(); - } - } - - // 2. Depth Layer 2: 4 Visual Studio Stage Cards - const count = 4; - const margin = W * 0.042; - const gap = W * 0.024; - const bw = (W - 2 * margin - (count - 1) * gap) / count; - const bh = Math.round(H * 0.48); - const by = Math.round(H * 0.30); - const railY = Math.round(H * 0.68); - const capY = Math.round(H * 0.87); - - const xs = [0, 1, 2, 3].map((i) => margin + i * (bw + gap) + bw / 2); - const items = [placeItem(t + 1.0, xs, W)]; - if (t >= 7.0) items.push(placeItem(t - 7.0, xs, W)); - - // Transport rail + glowing carrier stream - ctx.globalAlpha = 1; - ctx.strokeStyle = C.line; - ctx.lineWidth = 2.5; - ctx.beginPath(); - ctx.moveTo(0, railY); - ctx.lineTo(W, railY); - ctx.stroke(); - - const streamCount = 18; - const streamSpace = W / streamCount; - const streamShift = (phase * 3 * streamSpace) % streamSpace; - for (let i = 0; i <= streamCount; i++) { - const sx = i * streamSpace + streamShift; - ctx.globalAlpha = 0.45; - ctx.fillStyle = i % 2 === 0 ? C.spark : C.accent; - ctx.beginPath(); - ctx.arc(sx, railY, 2.2, 0, TAU); - ctx.fill(); - } - - const stepHeaders = ["01", "02", "03", "04"]; - - xs.forEach((cx, i) => { - let near = 0; - items.forEach((it) => { - near = Math.max(near, it.alpha * Math.max(0, 1 - Math.abs(it.x - cx) / (bw * 0.78))); - }); - - const cardLeft = cx - bw / 2; - const cardTop = by - bh / 2; - const activeColor = i === 2 ? cyan : i === 3 ? C.spark : C.accent; - - // Vertical connector stem from card to rail - ctx.globalAlpha = 1; - ctx.strokeStyle = near > 0.25 ? activeColor : C.line; - ctx.lineWidth = near > 0.25 ? 2.5 : 1.5; - ctx.beginPath(); - ctx.moveTo(cx, cardTop + bh); - ctx.lineTo(cx, railY); - ctx.stroke(); - - // Node socket on rail - ctx.fillStyle = near > 0.25 ? activeColor : C.surface; - ctx.beginPath(); - ctx.arc(cx, railY, 4.5, 0, TAU); - ctx.fill(); - ctx.strokeStyle = activeColor; - ctx.lineWidth = 1.5; - ctx.stroke(); - - // Card surface - kit.roundRect(ctx, cardLeft, cardTop, bw, bh, 10); - ctx.globalAlpha = 0.96; - ctx.fillStyle = C.surface; - ctx.fill(); - - // Subtle active header tint - if (near > 0.02) { - ctx.globalAlpha = 0.16 * near; - ctx.fillStyle = activeColor; - ctx.fill(); - } - - ctx.globalAlpha = 1; - ctx.strokeStyle = near > 0.15 ? activeColor : C.line; - ctx.lineWidth = near > 0.15 ? 2.2 : 1.4; - ctx.stroke(); - - // Card header bar divider - const headH = Math.round(bh * 0.24); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1; - ctx.beginPath(); - ctx.moveTo(cardLeft + 1, cardTop + headH); - ctx.lineTo(cardLeft + bw - 1, cardTop + headH); - ctx.stroke(); - - // Card header step badge + primary stage label - ctx.font = "700 10.5px monospace"; - ctx.fillStyle = activeColor; - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - ctx.fillText(stepHeaders[i], cardLeft + 10, cardTop + headH * 0.5); - - ctx.font = "700 11.5px monospace"; - ctx.fillStyle = C.body; - ctx.textAlign = "right"; - ctx.fillText(labels[i], cardLeft + bw - 10, cardTop + headH * 0.5); - - // Rich visual interior per stage card! - const innerY = cardTop + headH + (bh - headH) * 0.5; - - if (i === 0) { - // Card 1: Prompt lines + live rotating Phase Ring (0 -> 1) - const ringX = cardLeft + bw * 0.25; - const ringR = Math.min(bw, bh) * 0.155; - ctx.strokeStyle = C.line; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.arc(ringX, innerY, ringR, 0, TAU); - ctx.stroke(); - - const pAng = phase * TAU - Math.PI / 2; - ctx.strokeStyle = C.accent; - ctx.lineWidth = 2.5; - ctx.beginPath(); - ctx.arc(ringX, innerY, ringR, pAng - 1.8, pAng); - ctx.stroke(); - - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(ringX + Math.cos(pAng) * ringR, innerY + Math.sin(pAng) * ringR, 3.4, 0, TAU); - ctx.fill(); - - // Prompt spec labels on right half of Card 1 - const tx0 = cardLeft + bw * 0.45; - ctx.font = "500 9.5px monospace"; - ctx.fillStyle = C.muted; - ctx.textAlign = "left"; - ctx.fillText("8s · 60fps", tx0, innerY - 14); - ctx.fillStyle = C.body; - ctx.fillText("phase 0→1", tx0, innerY + 2); - ctx.fillStyle = cyan; - ctx.fillText("seed: 7", tx0, innerY + 18); - } else if (i === 1) { - // Card 2: Live Miniature Bioluminescent Particle-Orbit Sketch Viewport! - const vpW = bw - 20; - const vpH = bh - headH - 16; - const vpX = cardLeft + 10; - const vpY = cardTop + headH + 8; - kit.roundRect(ctx, vpX, vpY, vpW, vpH, 6); - ctx.fillStyle = "#060913"; - ctx.fill(); - - // 2 nested glowing orbits inside mini canvas - for (let ring = 1; ring <= 2; ring++) { - const rx = vpW * (0.18 * ring); - const ry = vpH * (0.21 * ring); - const dots = 6 + ring * 4; - const dir = ring === 1 ? 1 : -2; - for (let d = 0; d < dots; d++) { - const a = TAU * ((phase * dir + d / dots) % 1); - const px = cx + Math.cos(a) * rx; - const py = innerY + Math.sin(a) * ry; - ctx.globalAlpha = 0.45 + 0.55 * (0.5 + 0.5 * Math.sin(a)); - ctx.fillStyle = d % 3 === 0 ? cyan : d % 2 === 0 ? C.spark : C.accent; - ctx.beginPath(); - ctx.arc(px, py, d % 3 === 0 ? 3.2 : 2.2, 0, TAU); - ctx.fill(); - } - } - ctx.globalAlpha = 1; - ctx.fillStyle = cyan; - ctx.beginPath(); - ctx.arc(cx, innerY, 4.5 + 1.5 * Math.sin(TAU * phase * 2), 0, TAU); - ctx.fill(); - } else if (i === 2) { - // Card 3: Live Seam Check Bar Chart (1.02x PASS) - const bars = [1.0, 0.94, 1.05, 0.98, 1.02, 0.96, 1.04, 0.99, 1.03]; - const chartLeft = cardLeft + 14; - const chartBase = cardTop + bh - 14; - const barStep = (bw - 28) / bars.length; - const unitH = (bh - headH - 36) * 0.55; - - bars.forEach((v, bIdx) => { - const isLast = bIdx === bars.length - 1; - const wave = 1 + 0.08 * Math.sin(TAU * (phase * 2 - bIdx / bars.length)); - const hBar = v * unitH * wave; - ctx.globalAlpha = isLast ? 1 : 0.65; - ctx.fillStyle = isLast ? cyan : C.spark; - ctx.fillRect(chartLeft + bIdx * barStep, chartBase - hBar, Math.max(4, barStep - 4), hBar); - }); - - // Median 1.0x reference line - ctx.globalAlpha = 0.9; - ctx.strokeStyle = C.accent; - ctx.lineWidth = 1.2; - ctx.beginPath(); - ctx.moveTo(chartLeft, chartBase - unitH); - ctx.lineTo(cardLeft + bw - 14, chartBase - unitH); - ctx.stroke(); - - ctx.globalAlpha = 1; - ctx.font = "600 10px monospace"; - ctx.fillStyle = cyan; - ctx.textAlign = "left"; - ctx.fillText("1.02x PASS", chartLeft, cardTop + headH + 14); - } else if (i === 3) { - // Card 4: Verified Infinite Loop Lissajous Figure + Format Badges - const lissY = innerY - 8; - const rx = bw * 0.30; - const ry = (bh - headH) * 0.24; - ctx.strokeStyle = C.spark; - ctx.lineWidth = 2.2; - ctx.beginPath(); - for (let s = 0; s <= 40; s++) { - const u = (s / 40) * TAU; - const lx = cx + Math.sin(u) * rx; - const ly = lissY + Math.sin(u * 2) * ry; - if (s === 0) ctx.moveTo(lx, ly); - else ctx.lineTo(lx, ly); - } - ctx.stroke(); - - // Travelling spark along the infinity loop - const sparkU = phase * TAU; - const sx = cx + Math.sin(sparkU) * rx; - const sy = lissY + Math.sin(sparkU * 2) * ry; - ctx.fillStyle = cyan; - ctx.beginPath(); - ctx.arc(sx, sy, 4.5, 0, TAU); - ctx.fill(); - - ctx.font = "600 10px monospace"; - ctx.fillStyle = C.body; - ctx.textAlign = "center"; - ctx.fillText("GIF · MP4 · PNG", cx, cardTop + bh - 14); - } - }); - - // 3. Depth Layer 3: Moving payload orbs along the transport rail - items.forEach((it) => { - const r = Math.max(8, Math.round(H * 0.036)); - const pulse = 1 + 0.16 * Math.sin(TAU * phase * 2); - const col = it.checked > 0.5 ? cyan : C.accent; - - // Outer glow halo - ctx.globalAlpha = it.alpha * 0.28; - ctx.fillStyle = col; - ctx.beginPath(); - ctx.arc(it.x, railY, r * 1.65 * pulse, 0, TAU); - ctx.fill(); - - // Inner orb - ctx.globalAlpha = it.alpha; - ctx.fillStyle = C.accent; - ctx.beginPath(); - ctx.arc(it.x, railY, r, 0, TAU); - ctx.fill(); - - if (it.checked > 0) { - ctx.globalAlpha = it.alpha * it.checked; - ctx.fillStyle = cyan; - ctx.beginPath(); - ctx.arc(it.x, railY, r, 0, TAU); - ctx.fill(); - - ctx.strokeStyle = C.ground; - ctx.lineWidth = 2.2; - ctx.beginPath(); - ctx.moveTo(it.x - r * 0.42, railY); - ctx.lineTo(it.x - r * 0.08, railY + r * 0.36); - ctx.lineTo(it.x + r * 0.48, railY - r * 0.36); - ctx.stroke(); - } - }); - - // 4. Bottom Caption Pill + Step Progress Dots - const pillW = Math.round(W * 0.74); - const pillH = 34; - kit.roundRect(ctx, W / 2 - pillW / 2, capY - pillH / 2, pillW, pillH, 8); - ctx.globalAlpha = 0.96; - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1.5; - ctx.stroke(); - - let activeStepIdx = 0; - steps.forEach((c, idx) => { - const len = ((c.to - c.from) % SECONDS + SECONDS) % SECONDS || SECONDS; - const u = ((t - c.from) % SECONDS + SECONDS) % SECONDS; - if (u < len) activeStepIdx = idx; - }); - - // Step indicator dots on left of pill - for (let d = 0; d < steps.length; d++) { - ctx.globalAlpha = 1; - ctx.fillStyle = d === activeStepIdx ? cyan : C.line; - ctx.beginPath(); - ctx.arc(W / 2 - pillW / 2 + 16 + d * 10, capY, d === activeStepIdx ? 3.5 : 2.5, 0, TAU); - ctx.fill(); - } - - ctx.font = "500 12px monospace"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - - steps.forEach((c) => { - const len = ((c.to - c.from) % SECONDS + SECONDS) % SECONDS || SECONDS; - const u = ((t - c.from) % SECONDS + SECONDS) % SECONDS; - if (u >= len) return; - const fade = Math.max(0.25, Math.min(1, u / 0.35, (len - u) / 0.35)); - ctx.globalAlpha = fade; - ctx.fillStyle = C.body; - ctx.fillText(c.caption, W / 2 + 22, capY); - }); - - ctx.globalAlpha = 1; -} diff --git a/gallery/loop-studio/sources.json b/gallery/loop-studio/sources.json deleted file mode 100644 index 31d9ed5..0000000 --- a/gallery/loop-studio/sources.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "pass": true, - "repoRoot": "/Users/marcusk/.gemini/antigravity/scratch/loop-studio", - "checked": 4, - "citations": [ - { - "step": 1, - "source": "docs/contract.md:3", - "file": "docs/contract.md", - "line": 3, - "excerpt": "Every sketch in Loop Studio meets a single mathematical contract: **every pixel of every frame is a pure function of `ph", - "valid": true - }, - { - "step": 2, - "source": "docs/contract.md:14", - "file": "docs/contract.md", - "line": 14, - "excerpt": "};", - "valid": true - }, - { - "step": 3, - "source": "docs/tool.md:14", - "file": "docs/tool.md", - "line": 14, - "excerpt": "Measures frame-to-frame RMS pixel changes and computes `seamScore` (last-to-first change divided by median frame-to-fram", - "valid": true - }, - { - "step": 4, - "source": "docs/tool.md:24", - "file": "docs/tool.md", - "line": 24, - "excerpt": "Opens the interactive browser workbench with phase scrubber and mobile width toggle.", - "valid": true - } - ], - "reasons": [] -} diff --git a/gallery/loop-studio/storyboard.png b/gallery/loop-studio/storyboard.png deleted file mode 100644 index 01d81af..0000000 Binary files a/gallery/loop-studio/storyboard.png and /dev/null differ diff --git a/gallery/manifest.json b/gallery/manifest.json deleted file mode 100644 index 7f79cbb..0000000 --- a/gallery/manifest.json +++ /dev/null @@ -1,254 +0,0 @@ -{ - "generatedAt": "2026-11-18T18:13:57.421Z", - "items": [ - { - "id": "loop-studio", - "title": "Loop Studio Showcase (Flow Pipeline)", - "mode": "showcase", - "useCase": "README hero diagram explaining what a repo or workflow does end-to-end", - "fps": 60, - "pass": true, - "seamScore": 1.116, - "duplicateFrames": 0, - "flickerScore": 0.582, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 10072.3, - "webpKB": 6098, - "totalFrames": 480 - }, - { - "id": "cli-audit-session", - "title": "Loop CLI Audit Showcase (Terminal)", - "mode": "showcase", - "useCase": "CLI documentation showing commands, flags, and pass/fail audit output", - "fps": 16, - "pass": true, - "seamScore": 0.989, - "duplicateFrames": 0, - "flickerScore": 0.89, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1371.6, - "totalFrames": 160 - }, - { - "id": "api-pipeline-code", - "title": "Phase Contract SDK Showcase (Code)", - "mode": "showcase", - "useCase": "SDK / library docs pairing live-stepping code with a synchronized state monitor", - "fps": 20, - "pass": true, - "seamScore": 1.006, - "duplicateFrames": 0, - "flickerScore": 0.08, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 2343.8, - "totalFrames": 200 - }, - { - "id": "mcp-mesh-topology", - "title": "Agent Orchestrator Mesh (Architecture)", - "mode": "showcase", - "useCase": "System architecture & multi-agent/MCP topology diagrams for engineering RFCs", - "fps": 20, - "pass": true, - "seamScore": 0.985, - "duplicateFrames": 0, - "flickerScore": 0.15, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1463.6, - "totalFrames": 200 - }, - { - "id": "deep-sea-orbits", - "title": "Abyssal Bioluminescence (Particle Orbit)", - "mode": "ambient", - "useCase": "Calm ambient background for dark-mode apps, streams, and loading states", - "fps": 20, - "pass": true, - "seamScore": 0.972, - "duplicateFrames": 0, - "flickerScore": 0.024, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1247.8, - "totalFrames": 80 - }, - { - "id": "aurora-flow-field", - "title": "Arctic Currents (Flow Field)", - "mode": "ambient", - "useCase": "Organic generative header for landing pages, music visualizers, and project banners", - "fps": 20, - "pass": true, - "seamScore": 1.037, - "duplicateFrames": 0, - "flickerScore": 0.028, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 3076.4, - "totalFrames": 80 - }, - { - "id": "nordic-isometric", - "title": "Harmonic Architecture (Isometric Grid)", - "mode": "ambient", - "useCase": "Infrastructure, cloud platform, and modular architecture hero tiles", - "fps": 20, - "pass": true, - "seamScore": 0.927, - "duplicateFrames": 0, - "flickerScore": 0.169, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 786.9, - "totalFrames": 80 - }, - { - "id": "cad-planetary", - "title": "Epicyclic Telemetry (Blueprint CAD)", - "mode": "ambient", - "useCase": "Robotics, hardware, CAD, and precision engineering repo badges", - "fps": 20, - "pass": true, - "seamScore": 1.023, - "duplicateFrames": 0, - "flickerScore": 0.031, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1193.9, - "totalFrames": 80 - }, - { - "id": "readme-hero-3d", - "title": "Nebula SDF Sculpture (3D Raymarch)", - "mode": "ambient", - "useCase": "Zero-dependency 3D product showcase & smooth shader sculpture for SaaS hero cards", - "fps": 30, - "pass": true, - "seamScore": 1.061, - "duplicateFrames": 0, - "flickerScore": 0.056, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 822.2, - "webpKB": 332.8, - "totalFrames": 90 - }, - { - "id": "retro-crt-loader", - "title": "Amber CRT Radar (Bayer Dither)", - "mode": "ambient", - "useCase": "Low-bandwidth terminal/game splash screen & zero-shimmer retro loading indicator", - "fps": 30, - "pass": true, - "seamScore": 1.005, - "duplicateFrames": 0, - "flickerScore": 0.114, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 339.2, - "webpKB": 2418.4, - "totalFrames": 90 - }, - { - "id": "kinetic-release-banner", - "title": "Editorial Kinetic Wave (60 fps Type)", - "mode": "ambient", - "useCase": "60 fps social release announcement card, talk title slide, and launch banner", - "fps": 60, - "pass": true, - "seamScore": 0.968, - "duplicateFrames": 0, - "flickerScore": 0.456, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1408.1, - "webpKB": 1134.1, - "totalFrames": 240 - }, - { - "id": "sonar-bathymetry", - "title": "Abyssal Bathymetry (Topographic Isolines)", - "mode": "ambient", - "useCase": "Geospatial, weather, sonar, and telemetry elevation background loops", - "fps": 30, - "pass": true, - "seamScore": 0.951, - "duplicateFrames": 0, - "flickerScore": 0.051, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 440.8, - "webpKB": 1356.2, - "totalFrames": 90 - }, - { - "id": "git-pr-guardrails", - "title": "Protected Git Workflow (8s @ 60fps)", - "mode": "showcase", - "useCase": "GitHub workflow & CI/CD guardrails explainer showing branch protection, evals, and PR merges", - "fps": 60, - "pass": true, - "seamScore": 1.148, - "duplicateFrames": 0, - "flickerScore": 0.736, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 6539.7, - "webpKB": 3114.5, - "totalFrames": 480 - }, - { - "id": "json-to-gif-transform", - "title": "60fps Video Transformer (8s @ 60fps)", - "mode": "showcase", - "useCase": "Compiler, build pipeline, or media-processing explainer showing specs transforming into 60fps video", - "fps": 60, - "pass": true, - "seamScore": 1.005, - "duplicateFrames": 0, - "flickerScore": 0.103, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 5008.7, - "webpKB": 3798.9, - "totalFrames": 480 - }, - { - "id": "live-audio-spectrum", - "title": "120 BPM Harmonic Spectrum (6s @ 60fps)", - "mode": "ambient", - "useCase": "Music release loop, podcast player, and WebAudio/VST visualizer synced to 120 BPM (3 bars)", - "fps": 60, - "pass": true, - "seamScore": 1.05, - "duplicateFrames": 0, - "flickerScore": 0.261, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1804, - "webpKB": 1688.8, - "totalFrames": 360 - }, - { - "id": "orbital-telemetry-watch", - "title": "Orbital Radar Telemetry (8s @ 60fps)", - "mode": "ambient", - "useCase": "Satellite tracker, aerospace HUD, and DevOps live observability dashboard splash", - "fps": 60, - "pass": true, - "seamScore": 1.037, - "duplicateFrames": 0, - "flickerScore": 0.045, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 5494.6, - "webpKB": 3257, - "totalFrames": 480 - } - ] -} diff --git a/gallery/mcp-mesh-topology/audit.json b/gallery/mcp-mesh-topology/audit.json deleted file mode 100644 index 3e47cd8..0000000 --- a/gallery/mcp-mesh-topology/audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "mcp-mesh-topology", - "title": "Agent Orchestrator Mesh (Architecture)", - "mode": "showcase", - "useCase": "System architecture & multi-agent/MCP topology diagrams for engineering RFCs", - "fps": 20, - "pass": true, - "seamScore": 0.985, - "duplicateFrames": 0, - "flickerScore": 0.15, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 1463.6, - "totalFrames": 200 -} diff --git a/gallery/mcp-mesh-topology/index.html b/gallery/mcp-mesh-topology/index.html deleted file mode 100644 index 354d54f..0000000 --- a/gallery/mcp-mesh-topology/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Agent Orchestrator Mesh (Architecture) · Loop Studio - - - -
-
-

Agent Orchestrator Mesh (Architecture)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/mcp-mesh-topology/legible.json b/gallery/mcp-mesh-topology/legible.json deleted file mode 100644 index d63688e..0000000 --- a/gallery/mcp-mesh-topology/legible.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "pass": true, - "width": 800, - "height": 320, - "phoneWidth": 400, - "frame0ShowsAllStageLabels": true, - "stageLabelsChecked": 4, - "captions": [ - { - "step": 1, - "caption": "agent scaffolds sketch via loop CLI", - "words": 6, - "chars": 35, - "windowSeconds": 2.5, - "requiredSeconds": 2.3, - "passReadingTime": true, - "contrastRatio": 14.86, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 2, - "caption": "CLI renders storyboard & frame deltas", - "words": 6, - "chars": 37, - "windowSeconds": 2.5, - "requiredSeconds": 2.3, - "passReadingTime": true, - "contrastRatio": 14.86, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 3, - "caption": "cold-reader inspects storyboard.png", - "words": 3, - "chars": 35, - "windowSeconds": 2.5, - "requiredSeconds": 1.4, - "passReadingTime": true, - "contrastRatio": 14.86, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - }, - { - "step": 4, - "caption": "verified loop.gif & audit return", - "words": 5, - "chars": 32, - "windowSeconds": 2.5, - "requiredSeconds": 2, - "passReadingTime": true, - "contrastRatio": 14.86, - "passContrast": true, - "minEdgeMarginPx": 37, - "phoneFontPx": 6.5, - "passMobileWidth": true, - "pass": true - } - ], - "reasons": [] -} diff --git a/gallery/mcp-mesh-topology/loop.gif b/gallery/mcp-mesh-topology/loop.gif deleted file mode 100644 index 1b29e6d..0000000 Binary files a/gallery/mcp-mesh-topology/loop.gif and /dev/null differ diff --git a/gallery/mcp-mesh-topology/poster.png b/gallery/mcp-mesh-topology/poster.png deleted file mode 100644 index 8ae6ccb..0000000 Binary files a/gallery/mcp-mesh-topology/poster.png and /dev/null differ diff --git a/gallery/mcp-mesh-topology/seam.json b/gallery/mcp-mesh-topology/seam.json deleted file mode 100644 index 5e050fa..0000000 --- a/gallery/mcp-mesh-topology/seam.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "pass": true, - "totalFrames": 200, - "seamScore": 0.985, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.15, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.012173, - "seamStepDelta": 0.011987, - "normalizedSteps": [ - 0.911, - 0.923, - 0.96, - 0.997, - 0.996, - 0.993, - 0.988, - 0.986, - 0.986, - 0.989, - 0.993, - 0.994, - 0.991, - 0.99, - 0.991, - 0.991, - 0.977, - 0.934, - 1.073, - 1.096, - 1.058, - 1.075, - 1.086, - 1.054, - 1.266, - 1.026, - 1.081, - 1.162, - 1.164, - 1.15, - 1.157, - 1.162, - 1.015, - 1.021, - 1.029, - 1.033, - 1.021, - 0.962, - 0.934, - 0.973, - 0.897, - 0.916, - 0.94, - 0.993, - 1.003, - 1, - 0.981, - 0.928, - 0.909, - 0.949, - 0.923, - 0.932, - 0.955, - 1.01, - 1.023, - 1.02, - 1.015, - 1.012, - 1.012, - 1.014, - 1.017, - 1.018, - 1.017, - 1.018, - 1.019, - 1.017, - 0.97, - 0.941, - 1.095, - 1.101, - 1.042, - 1.067, - 1.068, - 1.002, - 1.211, - 0.993, - 1.048, - 1.132, - 1.134, - 1.121, - 1.128, - 1.133, - 0.983, - 0.989, - 0.995, - 0.999, - 0.983, - 0.93, - 0.906, - 0.935, - 0.907, - 0.923, - 0.95, - 1.01, - 1.028, - 1.025, - 1.016, - 0.968, - 0.928, - 0.985, - 0.911, - 0.923, - 0.96, - 0.997, - 0.996, - 0.993, - 0.988, - 0.986, - 0.986, - 0.989, - 0.993, - 0.994, - 0.991, - 0.99, - 0.991, - 0.991, - 0.977, - 0.934, - 1.08, - 1.102, - 1.065, - 1.081, - 1.092, - 1.056, - 1.345, - 1.026, - 1.072, - 1.142, - 1.143, - 1.129, - 1.135, - 1.139, - 1.015, - 1.021, - 1.029, - 1.033, - 1.021, - 0.962, - 0.934, - 0.973, - 0.897, - 0.916, - 0.94, - 0.993, - 1.003, - 1, - 0.981, - 0.928, - 0.909, - 0.949, - 0.923, - 0.932, - 0.955, - 1.01, - 1.023, - 1.02, - 1.015, - 1.012, - 1.012, - 1.014, - 1.017, - 1.018, - 1.017, - 1.018, - 1.019, - 1.017, - 0.97, - 0.941, - 1.07, - 1.079, - 1.019, - 1.044, - 1.046, - 0.993, - 1.325, - 0.993, - 1.046, - 1.126, - 1.128, - 1.115, - 1.122, - 1.126, - 0.983, - 0.989, - 0.995, - 0.999, - 0.983, - 0.93, - 0.906, - 0.935, - 0.907, - 0.923, - 0.95, - 1.01, - 1.028, - 1.025, - 1.016, - 0.968, - 0.928, - 0.985 - ], - "reasons": [] -} diff --git a/gallery/mcp-mesh-topology/sheet.png b/gallery/mcp-mesh-topology/sheet.png deleted file mode 100644 index f9d2919..0000000 Binary files a/gallery/mcp-mesh-topology/sheet.png and /dev/null differ diff --git a/gallery/mcp-mesh-topology/showcase.gif b/gallery/mcp-mesh-topology/showcase.gif deleted file mode 100644 index 1b29e6d..0000000 Binary files a/gallery/mcp-mesh-topology/showcase.gif and /dev/null differ diff --git a/gallery/mcp-mesh-topology/showcase.json b/gallery/mcp-mesh-topology/showcase.json deleted file mode 100644 index 827b7a8..0000000 --- a/gallery/mcp-mesh-topology/showcase.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "title": "Agent Orchestrator Mesh", - "says": "The Loop Studio orchestrator coordinates the CLI renderer, seam analyzer, and cold-read subagent.", - "seconds": 10, - "fps": 20, - "width": 800, - "height": 320, - "palette": "aurora", - "scene": "architecture", - "stage": [ - "Agent", - "loop CLI", - "Seam Audit", - "Cold Reader" - ], - "steps": [ - { - "from": 8.75, - "to": 1.25, - "caption": "agent scaffolds sketch via loop CLI", - "source": "AGENTS.md:9" - }, - { - "from": 1.25, - "to": 3.75, - "caption": "CLI renders storyboard & frame deltas", - "source": "skills/loop-render/SKILL.md:24" - }, - { - "from": 3.75, - "to": 6.25, - "caption": "cold-reader inspects storyboard.png", - "source": "agents/loop-cold-reader.md:10" - }, - { - "from": 6.25, - "to": 8.75, - "caption": "verified loop.gif & audit return", - "source": "skills/loop-audit/SKILL.md:9" - } - ] -} diff --git a/gallery/mcp-mesh-topology/sketch.js b/gallery/mcp-mesh-topology/sketch.js deleted file mode 100644 index fd30d7b..0000000 --- a/gallery/mcp-mesh-topology/sketch.js +++ /dev/null @@ -1,109 +0,0 @@ -// Scene Pack: architecture — Multi-tier topology with request/response packets -export const meta = { - mode: "showcase", - scene: "architecture", - seconds: 10, - fps: 20, - width: 800, - height: 320, - seed: 41, - palette: "aurora" -}; - -export const showcase = { - says: "The Loop Studio orchestrator coordinates the CLI renderer, seam analyzer, and cold-read subagent.", - seconds: 10, - scene: "architecture", - stage: ["Agent", "loop CLI", "Seam Audit", "Cold Reader"], - steps: [ - { from: 8.75, to: 1.25, caption: "agent scaffolds sketch via loop CLI", source: "AGENTS.md:9" }, - { from: 1.25, to: 3.75, caption: "CLI renders storyboard & frame deltas", source: "skills/loop-render/SKILL.md:24" }, - { from: 3.75, to: 6.25, caption: "cold-reader inspects storyboard.png", source: "agents/loop-cold-reader.md:10" }, - { from: 6.25, to: 8.75, caption: "verified loop.gif & audit return", source: "skills/loop-audit/SKILL.md:9" } - ] -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["studio-dark"]; - const S = kit.showcase || showcase; - const labels = S.stage || showcase.stage; - const steps = S.steps || showcase.steps; - const SECONDS = S.seconds || meta.seconds; - const t = phase * SECONDS; - const TAU = Math.PI * 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const nodes = [ - { x: Math.round(W * 0.18), y: Math.round(H * 0.38), w: Math.round(W * 0.17), h: Math.round(H * 0.17), label: labels[0] || "Agent", color: C.accent }, - { x: Math.round(W * 0.48), y: Math.round(H * 0.38), w: Math.round(W * 0.18), h: Math.round(H * 0.17), label: labels[1] || "loop CLI", color: C.body }, - { x: Math.round(W * 0.80), y: Math.round(H * 0.24), w: Math.round(W * 0.21), h: Math.round(H * 0.15), label: labels[2] || "Seam Audit", color: C.spark }, - { x: Math.round(W * 0.80), y: Math.round(H * 0.52), w: Math.round(W * 0.21), h: Math.round(H * 0.15), label: labels[3] || "Cold Reader", color: C.spark } - ]; - - const links = [ - [0, 1], - [1, 2], - [1, 3] - ]; - - links.forEach(([aIdx, bIdx], i) => { - const a = nodes[aIdx]; - const b = nodes[bIdx]; - ctx.strokeStyle = C.line; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.moveTo(a.x + a.w / 2, a.y); - ctx.lineTo(b.x - b.w / 2, b.y); - ctx.stroke(); - - const u = (phase * 2 + i * 0.3) % 1; - const ping = u < 0.5 ? u * 2 : (1 - u) * 2; - const px = (a.x + a.w / 2) + ((b.x - b.w / 2) - (a.x + a.w / 2)) * ping; - const py = a.y + (b.y - a.y) * ping; - ctx.fillStyle = u < 0.5 ? C.accent : C.spark; - ctx.beginPath(); - ctx.arc(px, py, 5, 0, TAU); - ctx.fill(); - }); - - ctx.font = "600 13px monospace"; - ctx.textAlign = "center"; - ctx.textBaseline = "middle"; - nodes.forEach((n) => { - kit.roundRect(ctx, n.x - n.w / 2, n.y - n.h / 2, n.w, n.h, 8); - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = n.color; - ctx.lineWidth = 2; - ctx.stroke(); - - ctx.fillStyle = C.body; - ctx.fillText(n.label, n.x, n.y); - }); - - const capY = Math.round(H * 0.86); - const pillW = Math.round(W * 0.62); - kit.roundRect(ctx, W / 2 - pillW / 2, capY - 16, pillW, 32, 6); - ctx.globalAlpha = 0.95; - ctx.fillStyle = C.surface; - ctx.fill(); - ctx.strokeStyle = C.line; - ctx.lineWidth = 1; - ctx.stroke(); - - ctx.font = "500 13px monospace"; - steps.forEach((c) => { - const len = ((c.to - c.from) % SECONDS + SECONDS) % SECONDS || SECONDS; - const u = ((t - c.from) % SECONDS + SECONDS) % SECONDS; - if (u >= len) return; - const fade = Math.max(0.2, Math.min(1, u / 0.35, (len - u) / 0.35)); - ctx.globalAlpha = fade; - ctx.fillStyle = C.body; - ctx.fillText(c.caption, W / 2, capY); - }); - ctx.globalAlpha = 1; -} diff --git a/gallery/mcp-mesh-topology/sources.json b/gallery/mcp-mesh-topology/sources.json deleted file mode 100644 index 345f562..0000000 --- a/gallery/mcp-mesh-topology/sources.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "pass": true, - "repoRoot": "/Users/marcusk/.gemini/antigravity/scratch/loop-studio", - "checked": 4, - "citations": [ - { - "step": 1, - "source": "AGENTS.md:9", - "file": "AGENTS.md", - "line": 9, - "excerpt": "| Command | Purpose | Output |", - "valid": true - }, - { - "step": 2, - "source": "skills/loop-render/SKILL.md:24", - "file": "skills/loop-render/SKILL.md", - "line": 24, - "excerpt": "### 3. Showcase Storyboard (`loop story`)", - "valid": true - }, - { - "step": 3, - "source": "agents/loop-cold-reader.md:10", - "file": "agents/loop-cold-reader.md", - "line": 10, - "excerpt": "## Strict Isolation Rules", - "valid": true - }, - { - "step": 4, - "source": "skills/loop-audit/SKILL.md:9", - "file": "skills/loop-audit/SKILL.md", - "line": 9, - "excerpt": "", - "valid": true - } - ], - "reasons": [] -} diff --git a/gallery/mcp-mesh-topology/storyboard.png b/gallery/mcp-mesh-topology/storyboard.png deleted file mode 100644 index f0fe104..0000000 Binary files a/gallery/mcp-mesh-topology/storyboard.png and /dev/null differ diff --git a/gallery/nordic-isometric/audit.json b/gallery/nordic-isometric/audit.json deleted file mode 100644 index 79f975e..0000000 --- a/gallery/nordic-isometric/audit.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "id": "nordic-isometric", - "title": "Harmonic Architecture (Isometric Grid)", - "mode": "ambient", - "useCase": "Infrastructure, cloud platform, and modular architecture hero tiles", - "fps": 20, - "pass": true, - "seamScore": 0.927, - "duplicateFrames": 0, - "flickerScore": 0.169, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 786.9, - "totalFrames": 80 -} diff --git a/gallery/nordic-isometric/brief.json b/gallery/nordic-isometric/brief.json deleted file mode 100644 index f4a4906..0000000 --- a/gallery/nordic-isometric/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Harmonic Architecture", - "prompt": "Clean architectural blocks on an isometric grid rising and falling in waves.", - "mode": "ambient", - "style": "isometric-grid", - "palette": "nordic", - "seconds": 4, - "fps": 20, - "width": 320, - "height": 320, - "seed": 73 -} diff --git a/gallery/nordic-isometric/index.html b/gallery/nordic-isometric/index.html deleted file mode 100644 index b8c3e4c..0000000 --- a/gallery/nordic-isometric/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Harmonic Architecture (Isometric Grid) · Loop Studio - - - -
-
-

Harmonic Architecture (Isometric Grid)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/nordic-isometric/legible.json b/gallery/nordic-isometric/legible.json deleted file mode 100644 index 58322b2..0000000 --- a/gallery/nordic-isometric/legible.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 0, - "captions": [], - "reasons": [] -} diff --git a/gallery/nordic-isometric/loop.gif b/gallery/nordic-isometric/loop.gif deleted file mode 100644 index 2823495..0000000 Binary files a/gallery/nordic-isometric/loop.gif and /dev/null differ diff --git a/gallery/nordic-isometric/poster.png b/gallery/nordic-isometric/poster.png deleted file mode 100644 index 39cd807..0000000 Binary files a/gallery/nordic-isometric/poster.png and /dev/null differ diff --git a/gallery/nordic-isometric/seam.json b/gallery/nordic-isometric/seam.json deleted file mode 100644 index e477267..0000000 --- a/gallery/nordic-isometric/seam.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "pass": true, - "totalFrames": 80, - "seamScore": 0.927, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.169, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.06643, - "seamStepDelta": 0.061572, - "normalizedSteps": [ - 0.898, - 0.886, - 0.891, - 1.06, - 0.905, - 0.919, - 0.945, - 0.927, - 0.933, - 0.948, - 0.981, - 0.921, - 0.93, - 1, - 1.13, - 0.955, - 0.968, - 0.964, - 0.995, - 1.084, - 1.067, - 1.029, - 1.037, - 1.03, - 1.175, - 1.157, - 1.09, - 1.088, - 1.157, - 1.157, - 1.107, - 1.102, - 1.089, - 1.094, - 1.09, - 1.197, - 1.086, - 1.169, - 1.13, - 1.16, - 1.092, - 1.076, - 1.087, - 0.995, - 1.062, - 0.983, - 0.963, - 0.945, - 0.947, - 1.045, - 0.958, - 0.983, - 1.083, - 1.001, - 1.024, - 1.028, - 1.034, - 1.021, - 1.101, - 1.036, - 1.132, - 0.939, - 0.931, - 0.937, - 0.963, - 0.877, - 0.883, - 0.885, - 0.89, - 1.12, - 0.956, - 0.95, - 0.946, - 0.981, - 0.998, - 0.928, - 0.932, - 1.002, - 0.899, - 0.927 - ], - "reasons": [] -} diff --git a/gallery/nordic-isometric/sheet.png b/gallery/nordic-isometric/sheet.png deleted file mode 100644 index 2b2d1b8..0000000 Binary files a/gallery/nordic-isometric/sheet.png and /dev/null differ diff --git a/gallery/nordic-isometric/sketch.js b/gallery/nordic-isometric/sketch.js deleted file mode 100644 index b240ea5..0000000 --- a/gallery/nordic-isometric/sketch.js +++ /dev/null @@ -1,87 +0,0 @@ -// Style Pack: isometric-grid — Orthographic 3D blocks rising in harmonic waves -export const meta = { - mode: "ambient", - style: "isometric-grid", - seconds: 4, - fps: 20, - width: 320, - height: 320, - seed: 73, - palette: "nordic" -}; - -function drawIsoPrism(ctx, x, y, tw, th, bh, topCol, leftCol, rightCol, strokeCol) { - const hw = tw / 2; - const hh = th / 2; - - // Top face - ctx.fillStyle = topCol; - ctx.beginPath(); - ctx.moveTo(x, y - hh); - ctx.lineTo(x + hw, y); - ctx.lineTo(x, y + hh); - ctx.lineTo(x - hw, y); - ctx.closePath(); - ctx.fill(); - ctx.strokeStyle = strokeCol; - ctx.lineWidth = 1; - ctx.stroke(); - - // Left face - ctx.fillStyle = leftCol; - ctx.beginPath(); - ctx.moveTo(x - hw, y); - ctx.lineTo(x, y + hh); - ctx.lineTo(x, y + hh + bh); - ctx.lineTo(x - hw, y + bh); - ctx.closePath(); - ctx.fill(); - ctx.stroke(); - - // Right face - ctx.fillStyle = rightCol; - ctx.beginPath(); - ctx.moveTo(x + hw, y); - ctx.lineTo(x, y + hh); - ctx.lineTo(x, y + hh + bh); - ctx.lineTo(x + hw, y + bh); - ctx.closePath(); - ctx.fill(); - ctx.stroke(); -} - -export function render(ctx, phase, kit) { - const W = meta.width; - const H = meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["nordic"]; - const TAU = Math.PI * 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const N = 8; - const tw = W * 0.095; - const th = tw * 0.56; - const baseH = W * 0.09; - const cx = W / 2; - const cy = H * 0.28; - - for (let sum = 0; sum <= (N - 1) * 2; sum++) { - for (let i = 0; i < N; i++) { - const j = sum - i; - if (j < 0 || j >= N) continue; - - const dx = i - (N - 1) / 2; - const dy = j - (N - 1) / 2; - const dist = Math.sqrt(dx * dx + dy * dy); - const wave = 0.5 + 0.5 * Math.sin(TAU * (phase - dist * 0.22)); - const elev = wave * (W * 0.085); - - const sx = cx + (i - j) * (tw / 2); - const sy = cy + (i + j) * (th / 2) - elev; - const topCol = wave > 0.78 ? C.spark : wave > 0.42 ? C.accent : C.body; - - drawIsoPrism(ctx, sx, sy, tw * 0.92, th * 0.92, baseH + elev * 0.5, topCol, C.surface, C.line, C.ground); - } - } -} diff --git a/gallery/nordic-isometric/sources.json b/gallery/nordic-isometric/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/nordic-isometric/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/orbital-telemetry-watch/audit.json b/gallery/orbital-telemetry-watch/audit.json deleted file mode 100644 index 3c3f517..0000000 --- a/gallery/orbital-telemetry-watch/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "orbital-telemetry-watch", - "title": "Orbital Radar Telemetry (8s @ 60fps)", - "mode": "ambient", - "useCase": "Satellite tracker, aerospace HUD, and DevOps live observability dashboard splash", - "fps": 60, - "pass": true, - "seamScore": 1.037, - "duplicateFrames": 0, - "flickerScore": 0.045, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 5494.6, - "webpKB": 3257, - "totalFrames": 480 -} diff --git a/gallery/orbital-telemetry-watch/brief.json b/gallery/orbital-telemetry-watch/brief.json deleted file mode 100644 index e766fe7..0000000 --- a/gallery/orbital-telemetry-watch/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Orbital Radar Telemetry", - "prompt": "8-second 60fps blueprint radar HUD tracking 3 satellites on tilted elliptical orbits.", - "mode": "ambient", - "style": "blueprint-hud", - "palette": "blueprint", - "seconds": 8, - "fps": 60, - "width": 300, - "height": 300, - "seed": 204 -} diff --git a/gallery/orbital-telemetry-watch/index.html b/gallery/orbital-telemetry-watch/index.html deleted file mode 100644 index f646c04..0000000 --- a/gallery/orbital-telemetry-watch/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Orbital Radar Telemetry (8s @ 60fps) · Loop Studio - - - -
-
-

Orbital Radar Telemetry (8s @ 60fps)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/orbital-telemetry-watch/legible.json b/gallery/orbital-telemetry-watch/legible.json deleted file mode 100644 index bf71bb8..0000000 --- a/gallery/orbital-telemetry-watch/legible.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 2, - "captions": [ - { - "text": "ORBIT-HUD // 60FPS", - "contrastRatio": 14.93, - "minMarginPx": 12, - "passContrast": true - }, - { - "text": "T+0.0S", - "contrastRatio": 10.36, - "minMarginPx": 10, - "passContrast": true - } - ], - "reasons": [] -} diff --git a/gallery/orbital-telemetry-watch/loop.gif b/gallery/orbital-telemetry-watch/loop.gif deleted file mode 100644 index 5a4ee87..0000000 Binary files a/gallery/orbital-telemetry-watch/loop.gif and /dev/null differ diff --git a/gallery/orbital-telemetry-watch/loop.webp b/gallery/orbital-telemetry-watch/loop.webp deleted file mode 100644 index 85e9400..0000000 Binary files a/gallery/orbital-telemetry-watch/loop.webp and /dev/null differ diff --git a/gallery/orbital-telemetry-watch/poster.png b/gallery/orbital-telemetry-watch/poster.png deleted file mode 100644 index a9d087b..0000000 Binary files a/gallery/orbital-telemetry-watch/poster.png and /dev/null differ diff --git a/gallery/orbital-telemetry-watch/seam.json b/gallery/orbital-telemetry-watch/seam.json deleted file mode 100644 index 6a6817b..0000000 --- a/gallery/orbital-telemetry-watch/seam.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "pass": true, - "totalFrames": 480, - "seamScore": 1.037, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.045, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.044209, - "seamStepDelta": 0.045863, - "normalizedSteps": [ - 1.028, - 1.047, - 1.084, - 1.055, - 1.052, - 1.044, - 1.036, - 1.017, - 0.993, - 1.067, - 0.983, - 0.994, - 1.011, - 1.014, - 1.036, - 1.016, - 1.012, - 1.011, - 1.009, - 1.006, - 1.002, - 1.031, - 0.996, - 0.986, - 0.981, - 0.973, - 1.003, - 0.962, - 0.954, - 0.944, - 0.942, - 0.943, - 0.948, - 0.933, - 0.923, - 0.906, - 0.9, - 0.93, - 0.971, - 0.921, - 0.92, - 0.919, - 0.916, - 0.909, - 0.949, - 0.911, - 0.899, - 0.89, - 0.862, - 0.872, - 0.889, - 0.917, - 0.901, - 0.907, - 0.91, - 0.911, - 0.917, - 0.969, - 0.918, - 0.916, - 0.924, - 0.933, - 0.979, - 0.944, - 0.95, - 0.952, - 0.961, - 0.97, - 0.976, - 1.002, - 0.988, - 0.992, - 0.998, - 1, - 1.031, - 1.021, - 1.022, - 1.026, - 1.027, - 1.029, - 1.063, - 1.037, - 1.044, - 1.047, - 1.047, - 1.052, - 1.051, - 1.084, - 1.051, - 1.047, - 1.043, - 1.039, - 1.038, - 1.045, - 1.035, - 1.039, - 1.056, - 1.065, - 1.065, - 1.104, - 1.067, - 1.067, - 1.066, - 1.071, - 1.108, - 1.07, - 1.065, - 1.063, - 1.063, - 1.06, - 1.07, - 1.054, - 1.05, - 1.046, - 1.041, - 1.037, - 1.034, - 1.064, - 1.019, - 1.015, - 1.008, - 1.01, - 1.008, - 1.016, - 0.969, - 0.974, - 0.976, - 0.973, - 0.971, - 0.987, - 0.963, - 0.962, - 0.96, - 0.956, - 0.976, - 0.96, - 0.957, - 0.958, - 0.957, - 0.958, - 0.993, - 0.962, - 0.962, - 0.962, - 0.964, - 0.951, - 0.933, - 0.963, - 0.976, - 0.986, - 0.988, - 1.001, - 1.004, - 1.015, - 1.01, - 1.015, - 1.019, - 1.021, - 1.02, - 1.068, - 1.031, - 1.038, - 1.043, - 1.047, - 1.085, - 1.052, - 1.049, - 1.05, - 1.055, - 1.057, - 1.075, - 1.068, - 1.072, - 1.082, - 1.087, - 1.092, - 1.132, - 1.105, - 1.108, - 1.108, - 1.106, - 1.113, - 1.116, - 1.147, - 1.114, - 1.108, - 1.11, - 1.11, - 1.104, - 1.124, - 1.101, - 1.096, - 1.09, - 1.089, - 1.103, - 1.086, - 1.077, - 1.069, - 1.057, - 1.048, - 1.085, - 1.059, - 1.055, - 1.045, - 1.034, - 1.019, - 1.037, - 0.995, - 0.982, - 0.957, - 0.94, - 0.926, - 0.917, - 0.926, - 0.923, - 0.914, - 0.893, - 0.875, - 0.863, - 0.902, - 0.847, - 0.85, - 0.849, - 0.837, - 0.883, - 0.838, - 0.826, - 0.827, - 0.822, - 0.819, - 0.837, - 0.818, - 0.82, - 0.821, - 0.823, - 0.825, - 0.886, - 0.833, - 0.83, - 0.829, - 0.826, - 0.829, - 0.828, - 0.872, - 0.831, - 0.831, - 0.827, - 0.832, - 0.864, - 0.845, - 0.838, - 0.842, - 0.851, - 0.85, - 0.877, - 0.874, - 0.88, - 0.894, - 0.904, - 0.91, - 0.917, - 0.962, - 0.935, - 0.94, - 0.95, - 0.96, - 0.993, - 0.968, - 0.975, - 0.979, - 0.99, - 1, - 1.006, - 1.005, - 0.993, - 0.984, - 1.012, - 1.021, - 1.065, - 1.032, - 1.038, - 1.049, - 1.075, - 1.064, - 1.093, - 1.071, - 1.067, - 1.071, - 1.073, - 1.075, - 1.076, - 1.09, - 1.08, - 1.083, - 1.082, - 1.08, - 1.125, - 1.084, - 1.083, - 1.076, - 1.077, - 1.082, - 1.08, - 1.106, - 1.069, - 1.058, - 1.05, - 1.043, - 1.059, - 1.032, - 1.028, - 1.024, - 1.023, - 1.019, - 1.033, - 1.006, - 1, - 0.994, - 0.986, - 0.983, - 0.979, - 1.005, - 0.967, - 0.964, - 0.963, - 0.96, - 0.994, - 0.957, - 0.958, - 0.949, - 0.952, - 0.952, - 0.956, - 0.966, - 0.954, - 0.953, - 0.954, - 0.901, - 0.957, - 0.959, - 0.955, - 0.952, - 0.95, - 0.948, - 0.987, - 0.946, - 0.948, - 0.948, - 0.948, - 0.953, - 0.954, - 0.967, - 0.958, - 0.961, - 0.966, - 0.972, - 1.002, - 0.982, - 0.987, - 0.979, - 0.98, - 0.988, - 1.01, - 1.047, - 1.019, - 1.028, - 1.028, - 1.031, - 1.055, - 1.036, - 1.039, - 1.043, - 1.045, - 1.05, - 1.07, - 1.053, - 1.051, - 1.051, - 1.055, - 1.054, - 1.055, - 1.087, - 1.052, - 1.05, - 1.049, - 1.03, - 1.068, - 1.052, - 1.037, - 1.045, - 1.049, - 1.057, - 1.06, - 1.069, - 1.061, - 1.057, - 1.055, - 1.052, - 1.087, - 1.048, - 1.045, - 1.044, - 1.041, - 1.035, - 1.067, - 1.029, - 1.02, - 1.011, - 1.007, - 1, - 0.992, - 0.998, - 0.978, - 0.968, - 0.961, - 0.956, - 1.006, - 0.943, - 0.935, - 0.927, - 0.92, - 0.922, - 0.919, - 0.955, - 0.908, - 0.863, - 0.804, - 0.835, - 0.908, - 0.899, - 0.902, - 0.899, - 0.898, - 0.898, - 0.922, - 0.907, - 0.889, - 0.868, - 0.876, - 0.88, - 0.883, - 0.919, - 0.886, - 0.888, - 0.895, - 0.903, - 0.941, - 0.911, - 0.917, - 0.921, - 0.928, - 0.943, - 0.95, - 0.966, - 0.948, - 0.96, - 0.966, - 0.972, - 1.023, - 0.969, - 1.002, - 1.01, - 1.015, - 1.022, - 1.063, - 1.031, - 1.031, - 1.036, - 1.039, - 1.046, - 1.047, - 1.062, - 1.05, - 1.051, - 1.052, - 1.05, - 1.094, - 1.043, - 1.036, - 1.037 - ], - "reasons": [] -} diff --git a/gallery/orbital-telemetry-watch/sheet.png b/gallery/orbital-telemetry-watch/sheet.png deleted file mode 100644 index 2947ff7..0000000 Binary files a/gallery/orbital-telemetry-watch/sheet.png and /dev/null differ diff --git a/gallery/orbital-telemetry-watch/sketch.js b/gallery/orbital-telemetry-watch/sketch.js deleted file mode 100644 index 734a93a..0000000 --- a/gallery/orbital-telemetry-watch/sketch.js +++ /dev/null @@ -1,116 +0,0 @@ -// Custom 60fps Ambient Loop: orbital-telemetry-watch — 8s (480 frames) 60fps multi-stage orbital radar HUD -export const meta = { - mode: "ambient", - style: "blueprint-hud", - seconds: 8, - fps: 60, - width: 300, - height: 300, - seed: 204, - palette: "blueprint" -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["blueprint"]; - const TAU = Math.PI * 2; - const cx = W / 2; - const cy = H / 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - // Drafting coordinate grid - const step = 25; - for (let x = step; x < W; x += step) { - ctx.strokeStyle = C.line; - ctx.lineWidth = x % 100 === 0 ? 1.2 : 0.6; - ctx.globalAlpha = x % 100 === 0 ? 0.5 : 0.25; - ctx.beginPath(); - ctx.moveTo(x, 0); - ctx.lineTo(x, H); - ctx.stroke(); - } - for (let y = step; y < H; y += step) { - ctx.strokeStyle = C.line; - ctx.lineWidth = y % 100 === 0 ? 1.2 : 0.6; - ctx.globalAlpha = y % 100 === 0 ? 0.5 : 0.25; - ctx.beginPath(); - ctx.moveTo(0, y); - ctx.lineTo(W, y); - ctx.stroke(); - } - - // Outer compass ring & rotating 60fps sweep arm (4 full rotations in 8s) - const outerR = W * 0.38; - ctx.globalAlpha = 0.85; - ctx.strokeStyle = C.muted; - ctx.lineWidth = 1.5; - ctx.beginPath(); - ctx.arc(cx, cy, outerR, 0, TAU); - ctx.stroke(); - - const sweepAng = phase * TAU * 4; - ctx.strokeStyle = C.accent; - ctx.lineWidth = 2; - ctx.beginPath(); - ctx.moveTo(cx, cy); - ctx.lineTo(cx + Math.cos(sweepAng) * outerR, cy + Math.sin(sweepAng) * outerR); - ctx.stroke(); - - // 3 nested elliptical satellite tracks with glowing phase trails - const sats = []; - for (let i = 0; i < 3; i++) { - const rx = W * (0.16 + i * 0.085); - const ry = rx * 0.54; - const tilt = i * 0.95 + Math.sin(TAU * phase) * 0.15; - const speed = i === 1 ? -2 : i + 1; - const a = TAU * (phase * speed + i / 3); - const ox = Math.cos(a) * rx; - const oy = Math.sin(a) * ry; - const sx = cx + ox * Math.cos(tilt) - oy * Math.sin(tilt); - const sy = cy + ox * Math.sin(tilt) + oy * Math.cos(tilt); - sats.push({ x: sx, y: sy }); - - ctx.globalAlpha = 0.26; - ctx.strokeStyle = C.accent; - ctx.lineWidth = 1; - ctx.beginPath(); - for (let s = 0; s <= 40; s++) { - const u = (s / 40) * TAU; - const lx = cx + Math.cos(u) * rx * Math.cos(tilt) - Math.sin(u) * ry * Math.sin(tilt); - const ly = cy + Math.cos(u) * rx * Math.sin(tilt) + Math.sin(u) * ry * Math.cos(tilt); - if (s === 0) ctx.moveTo(lx, ly); - else ctx.lineTo(lx, ly); - } - ctx.stroke(); - - ctx.globalAlpha = 1; - ctx.fillStyle = i === 0 ? C.spark : C.body; - ctx.beginPath(); - ctx.arc(sx, sy, 4.5, 0, TAU); - ctx.fill(); - } - - // Telemetry constellation triangle connecting all 3 satellites - ctx.globalAlpha = 0.65; - ctx.strokeStyle = C.spark; - ctx.lineWidth = 1.4; - ctx.beginPath(); - ctx.moveTo(sats[0].x, sats[0].y); - ctx.lineTo(sats[1].x, sats[1].y); - ctx.lineTo(sats[2].x, sats[2].y); - ctx.closePath(); - ctx.stroke(); - - // HUD readouts - ctx.globalAlpha = 1; - ctx.font = "600 10.5px monospace"; - ctx.fillStyle = C.body; - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - ctx.fillText("ORBIT-HUD // 60FPS", 14, 18); - ctx.fillStyle = C.spark; - ctx.fillText("T+" + (phase * 8).toFixed(1) + "S", 14, H - 16); -} diff --git a/gallery/orbital-telemetry-watch/sources.json b/gallery/orbital-telemetry-watch/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/orbital-telemetry-watch/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/readme-hero-3d/audit.json b/gallery/readme-hero-3d/audit.json deleted file mode 100644 index 15700ba..0000000 --- a/gallery/readme-hero-3d/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "readme-hero-3d", - "title": "Nebula SDF Sculpture (3D Raymarch)", - "mode": "ambient", - "useCase": "Zero-dependency 3D product showcase & smooth shader sculpture for SaaS hero cards", - "fps": 30, - "pass": true, - "seamScore": 1.061, - "duplicateFrames": 0, - "flickerScore": 0.056, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 822.2, - "webpKB": 332.8, - "totalFrames": 90 -} diff --git a/gallery/readme-hero-3d/brief.json b/gallery/readme-hero-3d/brief.json deleted file mode 100644 index 9a776ad..0000000 --- a/gallery/readme-hero-3d/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Nebula SDF Sculpture", - "prompt": "30 fps 3D raymarched smooth-union torus and orbiting spheres in neon nebula lighting.", - "mode": "ambient", - "style": "sdf-raymarch", - "palette": "nebula", - "seconds": 3, - "fps": 30, - "width": 280, - "height": 280, - "seed": 53 -} diff --git a/gallery/readme-hero-3d/index.html b/gallery/readme-hero-3d/index.html deleted file mode 100644 index f8f7815..0000000 --- a/gallery/readme-hero-3d/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Nebula SDF Sculpture (3D Raymarch) · Loop Studio - - - -
-
-

Nebula SDF Sculpture (3D Raymarch)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/readme-hero-3d/legible.json b/gallery/readme-hero-3d/legible.json deleted file mode 100644 index 58322b2..0000000 --- a/gallery/readme-hero-3d/legible.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 0, - "captions": [], - "reasons": [] -} diff --git a/gallery/readme-hero-3d/loop.gif b/gallery/readme-hero-3d/loop.gif deleted file mode 100644 index 453b09d..0000000 Binary files a/gallery/readme-hero-3d/loop.gif and /dev/null differ diff --git a/gallery/readme-hero-3d/loop.webp b/gallery/readme-hero-3d/loop.webp deleted file mode 100644 index 5ab05a8..0000000 Binary files a/gallery/readme-hero-3d/loop.webp and /dev/null differ diff --git a/gallery/readme-hero-3d/poster.png b/gallery/readme-hero-3d/poster.png deleted file mode 100644 index 01cf90a..0000000 Binary files a/gallery/readme-hero-3d/poster.png and /dev/null differ diff --git a/gallery/readme-hero-3d/seam.json b/gallery/readme-hero-3d/seam.json deleted file mode 100644 index f03d96b..0000000 --- a/gallery/readme-hero-3d/seam.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "pass": true, - "totalFrames": 90, - "seamScore": 1.061, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.056, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.129204, - "seamStepDelta": 0.137061, - "normalizedSteps": [ - 1.107, - 1.121, - 1.09, - 1.075, - 1.066, - 1.015, - 0.995, - 0.951, - 0.927, - 0.893, - 0.902, - 0.898, - 0.928, - 0.941, - 0.966, - 0.97, - 1, - 1.037, - 1.048, - 1.034, - 1.034, - 1.024, - 1.037, - 1.029, - 1.037, - 1.047, - 1.055, - 1.047, - 0.992, - 0.981, - 0.941, - 0.933, - 0.919, - 0.915, - 0.938, - 0.94, - 0.973, - 0.964, - 0.964, - 0.953, - 0.987, - 0.976, - 1.002, - 1.029, - 1.051, - 1.037, - 1.072, - 1.081, - 1.093, - 1.083, - 1.045, - 1.037, - 0.953, - 0.903, - 0.924, - 0.993, - 1.064, - 1.077, - 1.029, - 1.014, - 0.994, - 0.998, - 1.01, - 1.022, - 1, - 1.056, - 1.097, - 1.074, - 1.074, - 1.115, - 1.097, - 1.065, - 1.056, - 1.087, - 1.062, - 1.008, - 0.98, - 0.978, - 0.963, - 0.971, - 0.984, - 0.963, - 0.934, - 0.946, - 0.922, - 0.929, - 0.944, - 0.964, - 0.957, - 1.061 - ], - "reasons": [] -} diff --git a/gallery/readme-hero-3d/sheet.png b/gallery/readme-hero-3d/sheet.png deleted file mode 100644 index 463b745..0000000 Binary files a/gallery/readme-hero-3d/sheet.png and /dev/null differ diff --git a/gallery/readme-hero-3d/sketch.js b/gallery/readme-hero-3d/sketch.js deleted file mode 100644 index 60684da..0000000 --- a/gallery/readme-hero-3d/sketch.js +++ /dev/null @@ -1,111 +0,0 @@ -// Style Pack: sdf-raymarch — Software-safe 3D Signed Distance Field smooth union with specular & rim glow -export const meta = { - mode: "ambient", - style: "sdf-raymarch", - seconds: 3, - fps: 30, - width: 280, - height: 280, - seed: 53, - palette: "nebula" -}; - -function smin(a, b, k) { - const h = Math.max(k - Math.abs(a - b), 0) / k; - return Math.min(a, b) - h * h * k * 0.25; -} - -function sceneSDF(px, py, pz, phase) { - const TAU = Math.PI * 2; - const a1 = phase * TAU; - const c = Math.cos(a1); - const s = Math.sin(a1); - // Rotate torus across two axes - const rx = px * c - pz * s; - const rz = px * s + pz * c; - const ry = py * Math.cos(a1) - rz * Math.sin(a1); - const rz2 = py * Math.sin(a1) + rz * Math.cos(a1); - - const qx = Math.sqrt(rx * rx + rz2 * rz2) - 0.68; - const torus = Math.sqrt(qx * qx + ry * ry) - 0.22; - - // 3 orbiting satellite spheres smoothly blending into the torus - let d = torus; - for (let i = 0; i < 3; i++) { - const ang = a1 * 2 + (i * TAU) / 3; - const sx = Math.cos(ang) * 0.86; - const sy = Math.sin(ang) * 0.86; - const sz = Math.sin(a1 + i * 2.094) * 0.36; - const dx = px - sx; - const dy = py - sy; - const dz = pz - sz; - const sph = Math.sqrt(dx * dx + dy * dy + dz * dz) - 0.24; - d = smin(d, sph, 0.38); - } - return d; -} - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["nebula"]; - - if (ctx.createRadialGradient) { - const bg = ctx.createRadialGradient(W * 0.5, H * 0.5, 10, W * 0.5, H * 0.5, W * 0.65); - bg.addColorStop(0, C.surface); - bg.addColorStop(1, C.ground); - ctx.fillStyle = bg; - } else { - ctx.fillStyle = C.ground; - } - ctx.fillRect(0, 0, W, H); - - const cell = W >= 300 ? 3 : 2; - const eps = 0.02; - - for (let y = 0; y < H; y += cell) { - const uvY = -((y + cell * 0.5) / H - 0.5) * 2.25; - for (let x = 0; x < W; x += cell) { - const uvX = ((x + cell * 0.5) / W - 0.5) * 2.25; - const roZ = 2.75; - const len = Math.sqrt(uvX * uvX + uvY * uvY + 1.85 * 1.85); - const rdX = uvX / len; - const rdY = uvY / len; - const rdZ = -1.85 / len; - - let t = 0; - let hit = false; - for (let step = 0; step < 24; step++) { - const px = rdX * t; - const py = rdY * t; - const pz = roZ + rdZ * t; - const d = sceneSDF(px, py, pz, phase); - if (d < 0.018) { - hit = true; - break; - } - t += d; - if (t > 4.6) break; - } - - if (hit) { - const px = rdX * t; - const py = rdY * t; - const pz = roZ + rdZ * t; - const d0 = sceneSDF(px, py, pz, phase); - const nx = sceneSDF(px + eps, py, pz, phase) - d0; - const ny = sceneSDF(px, py + eps, pz, phase) - d0; - const nz = sceneSDF(px, py, pz + eps, phase) - d0; - const nLen = Math.sqrt(nx * nx + ny * ny + nz * nz) || 1; - const lDot = Math.max(0, (nx * 0.55 + ny * 0.62 + nz * 0.56) / nLen); - const rim = Math.pow(1 - Math.max(0, nz / nLen), 2.2); - const spec = Math.pow(lDot, 8); - - ctx.fillStyle = spec > 0.45 ? C.body : rim > 0.48 ? C.spark : lDot > 0.36 ? C.accent : C.surface; - ctx.globalAlpha = Math.min(1, 0.42 + lDot * 0.58 + rim * 0.32); - ctx.fillRect(x, y, cell, cell); - } - } - } - ctx.globalAlpha = 1; -} diff --git a/gallery/readme-hero-3d/sources.json b/gallery/readme-hero-3d/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/readme-hero-3d/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/retro-crt-loader/audit.json b/gallery/retro-crt-loader/audit.json deleted file mode 100644 index cb54aef..0000000 --- a/gallery/retro-crt-loader/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "retro-crt-loader", - "title": "Amber CRT Radar (Bayer Dither)", - "mode": "ambient", - "useCase": "Low-bandwidth terminal/game splash screen & zero-shimmer retro loading indicator", - "fps": 30, - "pass": true, - "seamScore": 1.005, - "duplicateFrames": 0, - "flickerScore": 0.114, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 339.2, - "webpKB": 2418.4, - "totalFrames": 90 -} diff --git a/gallery/retro-crt-loader/brief.json b/gallery/retro-crt-loader/brief.json deleted file mode 100644 index 6123d14..0000000 --- a/gallery/retro-crt-loader/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Amber CRT Radar", - "prompt": "30 fps retro amber CRT sphere and radar sweep using ordered 4x4 Bayer dithering.", - "mode": "ambient", - "style": "dither-mono", - "palette": "amber-crt", - "seconds": 3, - "fps": 30, - "width": 280, - "height": 280, - "seed": 67 -} diff --git a/gallery/retro-crt-loader/index.html b/gallery/retro-crt-loader/index.html deleted file mode 100644 index 2b18fce..0000000 --- a/gallery/retro-crt-loader/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Amber CRT Radar (Bayer Dither) · Loop Studio - - - -
-
-

Amber CRT Radar (Bayer Dither)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/retro-crt-loader/legible.json b/gallery/retro-crt-loader/legible.json deleted file mode 100644 index d1ac4b0..0000000 --- a/gallery/retro-crt-loader/legible.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 2, - "captions": [ - { - "text": "BAYER-4X4 // SYNC", - "contrastRatio": 15.31, - "minMarginPx": 13, - "passContrast": true - }, - { - "text": "p:0.00", - "contrastRatio": 5.37, - "minMarginPx": 10, - "passContrast": true - } - ], - "reasons": [] -} diff --git a/gallery/retro-crt-loader/loop.gif b/gallery/retro-crt-loader/loop.gif deleted file mode 100644 index 8a9644f..0000000 Binary files a/gallery/retro-crt-loader/loop.gif and /dev/null differ diff --git a/gallery/retro-crt-loader/loop.webp b/gallery/retro-crt-loader/loop.webp deleted file mode 100644 index f905c19..0000000 Binary files a/gallery/retro-crt-loader/loop.webp and /dev/null differ diff --git a/gallery/retro-crt-loader/poster.png b/gallery/retro-crt-loader/poster.png deleted file mode 100644 index 7c982e2..0000000 Binary files a/gallery/retro-crt-loader/poster.png and /dev/null differ diff --git a/gallery/retro-crt-loader/seam.json b/gallery/retro-crt-loader/seam.json deleted file mode 100644 index ec68cc6..0000000 --- a/gallery/retro-crt-loader/seam.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "pass": true, - "totalFrames": 90, - "seamScore": 1.005, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.114, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.056274, - "seamStepDelta": 0.056544, - "normalizedSteps": [ - 1.026, - 0.928, - 1.034, - 0.958, - 0.933, - 0.988, - 1.045, - 0.984, - 1.101, - 0.988, - 0.999, - 0.944, - 0.983, - 1.061, - 1.034, - 0.983, - 0.985, - 1.051, - 1.037, - 0.994, - 0.991, - 1.024, - 0.925, - 1.053, - 1.012, - 0.907, - 0.994, - 0.991, - 0.966, - 1.024, - 1.023, - 0.945, - 1.028, - 0.986, - 1.022, - 0.976, - 0.978, - 1.05, - 0.988, - 1.015, - 1.024, - 0.978, - 0.982, - 1.034, - 0.998, - 1.009, - 1, - 1.002, - 0.966, - 0.917, - 1.058, - 0.996, - 1.002, - 1.022, - 1.045, - 1.016, - 0.973, - 0.998, - 0.946, - 1.076, - 0.97, - 1.005, - 1.071, - 0.978, - 1.004, - 1.008, - 1.026, - 0.952, - 1.013, - 1.046, - 0.944, - 0.998, - 0.994, - 0.988, - 0.948, - 1.01, - 0.965, - 1.039, - 1.02, - 0.986, - 1.013, - 1.011, - 1.004, - 0.999, - 1.018, - 1.003, - 0.938, - 1.035, - 1.025, - 1.005 - ], - "reasons": [] -} diff --git a/gallery/retro-crt-loader/sheet.png b/gallery/retro-crt-loader/sheet.png deleted file mode 100644 index 3efdc1a..0000000 Binary files a/gallery/retro-crt-loader/sheet.png and /dev/null differ diff --git a/gallery/retro-crt-loader/sketch.js b/gallery/retro-crt-loader/sketch.js deleted file mode 100644 index 98b0961..0000000 --- a/gallery/retro-crt-loader/sketch.js +++ /dev/null @@ -1,70 +0,0 @@ -// Style Pack: dither-mono — Ordered Bayer 4x4 dithering on a rotating sphere & CRT radar sweep -export const meta = { - mode: "ambient", - style: "dither-mono", - seconds: 3, - fps: 30, - width: 280, - height: 280, - seed: 67, - palette: "amber-crt" -}; - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["amber-crt"]; - const TAU = Math.PI * 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const pixel = W >= 300 ? 4 : 3; - const cols = Math.floor(W / pixel); - const rows = Math.floor(H / pixel); - const lx = Math.cos(TAU * phase); - const ly = Math.sin(TAU * phase); - const lz = 0.65; - const lLen = Math.sqrt(lx * lx + ly * ly + lz * lz); - - for (let gy = 0; gy < rows; gy++) { - const ny = (gy / rows - 0.5) * 2.25; - for (let gx = 0; gx < cols; gx++) { - const nx = (gx / cols - 0.5) * 2.25; - const r2 = nx * nx + ny * ny; - - let lum = 0; - if (r2 < 0.64) { - const nz = Math.sqrt(Math.max(0, 0.64 - r2)); - const dot = Math.max(0, (nx * lx + ny * ly + nz * lz) / (0.8 * lLen)); - const ring = 0.5 + 0.5 * Math.sin(TAU * (phase * 2 - Math.sqrt(r2) * 2.4)); - lum = dot * 0.78 + ring * 0.28; - } else { - const dist = Math.sqrt(r2); - const angle = Math.atan2(ny, nx); - const sweep = 0.5 + 0.5 * Math.sin(angle * 3 - TAU * phase * 2); - const band = Math.max(0, 1 - Math.abs(dist - 0.94) * 6.5); - lum = band * sweep * 0.9; - } - - const threshold = kit.dither.bayer4(gx, gy); - if (lum > threshold + 0.34) { - ctx.fillStyle = C.spark; - ctx.fillRect(gx * pixel, gy * pixel, pixel - 1, pixel - 1); - } else if (lum > threshold) { - ctx.fillStyle = C.accent; - ctx.fillRect(gx * pixel, gy * pixel, pixel - 1, pixel - 1); - } - } - } - - // Subtle CRT corner telemetry stamp - ctx.font = "600 10px monospace"; - ctx.fillStyle = C.spark; - ctx.textAlign = "left"; - ctx.textBaseline = "middle"; - ctx.fillText("BAYER-4X4 // SYNC", 14, 18); - ctx.textAlign = "right"; - ctx.fillStyle = C.muted; - ctx.fillText("p:" + phase.toFixed(2), W - 14, H - 16); -} diff --git a/gallery/retro-crt-loader/sources.json b/gallery/retro-crt-loader/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/retro-crt-loader/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gallery/sonar-bathymetry/audit.json b/gallery/sonar-bathymetry/audit.json deleted file mode 100644 index 5f4ac88..0000000 --- a/gallery/sonar-bathymetry/audit.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "id": "sonar-bathymetry", - "title": "Abyssal Bathymetry (Topographic Isolines)", - "mode": "ambient", - "useCase": "Geospatial, weather, sonar, and telemetry elevation background loops", - "fps": 30, - "pass": true, - "seamScore": 0.951, - "duplicateFrames": 0, - "flickerScore": 0.051, - "legiblePass": true, - "sourcesPass": true, - "gifKB": 440.8, - "webpKB": 1356.2, - "totalFrames": 90 -} diff --git a/gallery/sonar-bathymetry/brief.json b/gallery/sonar-bathymetry/brief.json deleted file mode 100644 index d61e35e..0000000 --- a/gallery/sonar-bathymetry/brief.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "title": "Abyssal Bathymetry", - "prompt": "30 fps animated bathymetric contour isolines over a cyclic scalar noise field.", - "mode": "ambient", - "style": "topographic-contour", - "palette": "abyss", - "seconds": 3, - "fps": 30, - "width": 280, - "height": 280, - "seed": 83 -} diff --git a/gallery/sonar-bathymetry/index.html b/gallery/sonar-bathymetry/index.html deleted file mode 100644 index 0ffc9bf..0000000 --- a/gallery/sonar-bathymetry/index.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Abyssal Bathymetry (Topographic Isolines) · Loop Studio - - - -
-
-

Abyssal Bathymetry (Topographic Isolines)

- loading sketch.js... -
-
-
- -
-
- - - frame 000 / 120 · phase 0.00 - -
-
-
- - - \ No newline at end of file diff --git a/gallery/sonar-bathymetry/legible.json b/gallery/sonar-bathymetry/legible.json deleted file mode 100644 index 58322b2..0000000 --- a/gallery/sonar-bathymetry/legible.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "pass": true, - "mode": "ambient", - "textElementsChecked": 0, - "captions": [], - "reasons": [] -} diff --git a/gallery/sonar-bathymetry/loop.gif b/gallery/sonar-bathymetry/loop.gif deleted file mode 100644 index 192a496..0000000 Binary files a/gallery/sonar-bathymetry/loop.gif and /dev/null differ diff --git a/gallery/sonar-bathymetry/loop.webp b/gallery/sonar-bathymetry/loop.webp deleted file mode 100644 index 74d78d5..0000000 Binary files a/gallery/sonar-bathymetry/loop.webp and /dev/null differ diff --git a/gallery/sonar-bathymetry/poster.png b/gallery/sonar-bathymetry/poster.png deleted file mode 100644 index 53b0638..0000000 Binary files a/gallery/sonar-bathymetry/poster.png and /dev/null differ diff --git a/gallery/sonar-bathymetry/seam.json b/gallery/sonar-bathymetry/seam.json deleted file mode 100644 index 1431a79..0000000 --- a/gallery/sonar-bathymetry/seam.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "pass": true, - "totalFrames": 90, - "seamScore": 0.951, - "maxSeamScore": 1.5, - "duplicateFrames": 0, - "duplicatePairs": [], - "flickerScore": 0.051, - "maxFlickerScore": 2.5, - "medianStepDelta": 0.177524, - "seamStepDelta": 0.168777, - "normalizedSteps": [ - 0.944, - 0.944, - 0.935, - 0.982, - 1.002, - 1.012, - 1.032, - 1.067, - 1.086, - 1.099, - 1.101, - 1.083, - 1.077, - 1.06, - 1.057, - 1.062, - 1.045, - 1.06, - 1.052, - 1.009, - 0.999, - 0.938, - 0.909, - 0.882, - 0.867, - 0.901, - 0.88, - 0.9, - 0.884, - 0.91, - 0.902, - 0.907, - 0.913, - 0.964, - 0.977, - 1.004, - 1.004, - 1.01, - 1.001, - 1.024, - 1.061, - 1.051, - 1.023, - 0.969, - 0.962, - 0.976, - 1.011, - 1.016, - 1, - 1.009, - 0.974, - 0.942, - 0.963, - 0.964, - 0.95, - 0.965, - 0.957, - 0.942, - 0.944, - 0.928, - 0.954, - 0.973, - 0.982, - 0.968, - 0.957, - 0.959, - 0.913, - 0.939, - 0.927, - 0.958, - 0.964, - 1.045, - 1.089, - 1.08, - 1.122, - 1.118, - 1.078, - 1.107, - 1.104, - 1.103, - 1.073, - 1.09, - 1.071, - 1.046, - 1.037, - 1.079, - 1.02, - 1.013, - 0.973, - 0.951 - ], - "reasons": [] -} diff --git a/gallery/sonar-bathymetry/sheet.png b/gallery/sonar-bathymetry/sheet.png deleted file mode 100644 index ee37b3c..0000000 Binary files a/gallery/sonar-bathymetry/sheet.png and /dev/null differ diff --git a/gallery/sonar-bathymetry/sketch.js b/gallery/sonar-bathymetry/sketch.js deleted file mode 100644 index da930e3..0000000 --- a/gallery/sonar-bathymetry/sketch.js +++ /dev/null @@ -1,75 +0,0 @@ -// Style Pack: topographic-contour — Cyclic elevation isolines with sonar sweep ticks -export const meta = { - mode: "ambient", - style: "topographic-contour", - seconds: 3, - fps: 30, - width: 280, - height: 280, - seed: 83, - palette: "abyss" -}; - -function field(nx, ny, cx, cy, kit, seed) { - const n1 = kit.noise2D(nx * 2.2 + cx, ny * 2.2 + cy, seed); - const n2 = 0.5 * kit.noise2D(nx * 4.4 - cy, ny * 4.4 + cx, seed + 13); - const r = Math.sqrt((nx - 0.5) * (nx - 0.5) + (ny - 0.5) * (ny - 0.5)); - return (n1 + n2) * 0.5 + (0.5 - r); -} - -export function render(ctx, phase, kit) { - const W = ctx.width || meta.width; - const H = ctx.height || meta.height; - const C = kit.palettes[meta.palette] || kit.palettes["abyss"]; - const TAU = Math.PI * 2; - - ctx.fillStyle = C.ground; - ctx.fillRect(0, 0, W, H); - - const cx = Math.cos(TAU * phase) * 0.72; - const cy = Math.sin(TAU * phase) * 0.72; - const step = W >= 300 ? 4 : 3; - const cols = Math.floor(W / step); - const rows = Math.floor(H / step); - const bands = 9; - - const grid = new Int16Array(cols * rows); - for (let j = 0; j < rows; j++) { - for (let i = 0; i < cols; i++) { - const val = field(i / cols, j / rows, cx, cy, kit, meta.seed); - grid[j * cols + i] = Math.floor((val + 1) * bands); - } - } - - for (let j = 0; j < rows - 1; j++) { - for (let i = 0; i < cols - 1; i++) { - const b = grid[j * cols + i]; - const bR = grid[j * cols + i + 1]; - const bD = grid[(j + 1) * cols + i]; - if (b !== bR || b !== bD) { - const isMajor = ((b % 3) + 3) % 3 === 0; - ctx.fillStyle = isMajor ? C.spark : C.accent; - ctx.globalAlpha = isMajor ? 0.95 : 0.45; - ctx.fillRect(i * step, j * step, isMajor ? step : step - 1, isMajor ? step : step - 1); - } - } - } - - // Subtle rotating bathymetry target ring - const ringR = W * 0.38; - ctx.globalAlpha = 0.25; - ctx.strokeStyle = C.line; - ctx.lineWidth = 1.5; - ctx.beginPath(); - ctx.arc(W / 2, H / 2, ringR, 0, TAU); - ctx.stroke(); - - const ang = phase * TAU; - ctx.globalAlpha = 0.9; - ctx.fillStyle = C.spark; - ctx.beginPath(); - ctx.arc(W / 2 + Math.cos(ang) * ringR, H / 2 + Math.sin(ang) * ringR, 4, 0, TAU); - ctx.fill(); - - ctx.globalAlpha = 1; -} diff --git a/gallery/sonar-bathymetry/sources.json b/gallery/sonar-bathymetry/sources.json deleted file mode 100644 index 3fe0e95..0000000 --- a/gallery/sonar-bathymetry/sources.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pass": true, - "checked": 0, - "citations": [], - "reasons": [] -} diff --git a/gemini-extension.json b/gemini-extension.json index 39feba2..0cc0b60 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,6 +1,6 @@ { "name": "loop-studio", - "version": "1.0.0", - "description": "Produce verified, seamless animations and repo showcase loops (GIF, MP4, WebM, PNG) driven by deterministic phase math, seam analysis, legibility checks, and cold-read evaluation.", + "version": "2.0.0", + "description": "Deterministic HTML/WebGL2 browser capture, dual-theme dark/light README bundles, and universal loop/source-drift auditing.", "contextFileName": "AGENTS.md" } diff --git a/package.json b/package.json index eccce34..25c0b7a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "loop-studio", - "version": "1.0.0", - "description": "Deterministic phase-driven seamless animation studio & verification CLI for coding agents (Showcase & Ambient loops to GIF, MP4, WebM, and PNG).", + "version": "2.0.0", + "description": "Deterministic browser capture and verification CLI for source-grounded, dual-theme README/PR animations and external loop auditing.", "type": "module", "bin": { "loop": "./tool/bin/loop.js" @@ -14,7 +14,6 @@ "scripts": { "loop": "node ./tool/bin/loop.js", "test": "node ./tool/test/run-evals.js", - "build:gallery": "node ./tool/scripts/build-gallery.js", "doctor": "node ./tool/bin/loop.js doctor" }, "keywords": [ @@ -22,20 +21,20 @@ "antigravity-plugin", "claude-code-plugin", "gemini-extension", + "readme-demo", "seamless-loop", - "animation", + "wcag-contrast", + "doc-sync", "gif", - "showcase", - "generative-art", - "canvas" + "webp" ], "author": "Marcusk00", "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/Marcusk00/loop-studio.git" + "url": "https://github.com/MarcusK00/loop-studio.git" }, - "homepage": "https://github.com/Marcusk00/loop-studio#readme", + "homepage": "https://github.com/MarcusK00/loop-studio#readme", "engines": { "node": ">=18.0.0" } diff --git a/plugin.json b/plugin.json index a07ac11..e0645d1 100644 --- a/plugin.json +++ b/plugin.json @@ -1,21 +1,21 @@ { "name": "loop-studio", "displayName": "Loop Studio", - "version": "1.0.0", - "description": "Produce verified, seamless animations and repo showcase loops (GIF, MP4, WebM, PNG) driven by deterministic phase math, seam analysis, legibility checks, and cold-read evaluation.", + "version": "2.0.0", + "description": "Deterministic HTML/WebGL2 browser capture, dual-theme dark/light README bundles, and universal loop/source-drift auditing.", "author": { "name": "Marcusk00", "url": "https://github.com/Marcusk00" }, - "homepage": "https://github.com/Marcusk00/loop-studio", + "homepage": "https://github.com/MarcusK00/loop-studio", "repository": { "type": "git", - "url": "https://github.com/Marcusk00/loop-studio.git" + "url": "https://github.com/MarcusK00/loop-studio.git" }, "logo": "assets/logo.svg", "suggestedPrompts": [ - "Make a 10-second seamless showcase loop explaining what this repository does for the README", - "Create a 4-second square ambient loop: deep sea, slow, bioluminescent particle orbits", - "Audit our current showcase sketch for seam jumps, WCAG text legibility, and source accuracy" + "Create a dark and light README animated showcase grounded in this repository's real source files", + "Turn this PR diff into a crisp 24fps code-diff loop for the changelog", + "Audit our README animation video and showcase.json for loop seams, contrast, and doc drift" ] } diff --git a/rules/AGENTS.md b/rules/AGENTS.md index 4d9df40..d3ae208 100644 --- a/rules/AGENTS.md +++ b/rules/AGENTS.md @@ -1,72 +1,10 @@ -# Loop Studio — Agent Rules & Invariants +# Loop Studio — Core Rules -When creating, editing, critiquing, or rendering animations and repository showcase loops with **Loop Studio**, enforce these five non-negotiable invariants. +Enforce these invariants when authoring or auditing animations in **Loop Studio**: -## 1. The Phase Contract (`phase ∈ [0, 1)`) - -Every sketch module (`sketch.js`) must export `meta` and a pure `render(ctx, phase, kit)` function: - -```js -export const meta = { - mode: "ambient", // or "showcase" - seconds: 4, - fps: 30, - width: 1080, - height: 1080, - seed: 7, - palette: "abyss" -}; - -export function render(ctx, phase, kit) { - // phase runs in [0, 1) where phase = frame / (meta.seconds * meta.fps) - // phase = 1.0 must mathematically equal phase = 0.0 -} -``` - -- **Never render frame `N` (`phase = 1.0`)**: A loop of `seconds * fps = N` frames renders frames `0, 1, ..., N - 1` at `phase = f / N`. Rendering frame `N` duplicates frame `0` and causes a visible wrap-point stutter. -- **Pure function of `phase`**: Seeking directly to frame `47` must produce the exact same pixels as rendering frames `0..47` sequentially. - -## 2. Strict Determinism - -- **Forbidden APIs inside sketches**: `Math.random()`, `Date.now()`, `performance.now()`, `requestAnimationFrame` state accumulation (`x += vx` across frames), or network requests at render time. -- **Approved deterministic primitives**: - - Seeded PRNG: `kit.rng(meta.seed + index)` - - Seamless circular noise: `kit.loopNoise(phase, radius, seedOffset, cycles)` (samples 2D/3D noise along a closed circle of radius `radius` so `phase = 1` returns smoothly to `phase = 0`) - - Whole-cycle harmonics: `Math.sin(phase * Math.PI * 2 * k)` where `k` is a non-zero integer (`1, 2, 3...`), never a fraction like `1.5`. - - Overlapping generations: `kit.generations(phase, count, callback)` with sinusoidal cross-fading (`sin(π * localAge)`) for particles or items that are born and fade out. - -## 3. Showcase Honesty & Stage Architecture - -When building a **showcase loop** ("make a looping animation of what this repo does"): - -1. **One Pass of One Thing**: Pick the single most telling input-to-output transformation the project performs. No marketing slogans, no calls to action, no invented features. -2. **Sourced Steps (`file:line`)**: Every step in `showcase.json` must include `"source": "relative/path:line"` pointing to a real file and line number in the repository (README, tests, examples, or entry point). -3. **A Stage That Stays Put**: All primary stage containers and labels remain visible across all frames (including Frame `0`, which serves as the static thumbnail). Only the payload/item, active indicators, and step captions change. -4. **Wrap-Point Handover**: The final step must hand over continuously across the `1.0 -> 0.0` seam (e.g., `"from": 8.5, "to": 1.5` in a 10-second loop) so the next item entering at the end of the loop is at the exact position of the item at Frame `0`. - -## 4. Typography & Readability Thresholds - - whenever a loop renders text (`showcase.json` or `kinetic-type`): - -- **Reading time**: Each caption must remain fully opaque for at least `0.5 + 0.3 * wordCount` seconds. -- **Word budget**: Stage labels `<= 3` words (`<= 18` chars); step captions `<= 10` words (`<= 64` chars). -- **Contrast**: Text must maintain a WCAG AA contrast ratio of at least `4.5:1` against the background region behind it. -- **Dual-scale legibility**: Labels and captions must remain readable at both standard README width (`800px`) and mobile half-width (`400px`), with a minimum `24px` safe margin from canvas edges. - -## 5. Mandatory Verification Gate & 3-Round Cap - -Never run a final `loop render` or hand deliverables to the user before running the verification CLI checks: - -- **All loops**: - - `loop sheet ` -> inspect `sheet.png` for focal hierarchy, speed contrast, and palette discipline (`loop-critique` skill). - - `loop seam ` -> verify `seamScore <= 1.5`, `duplicateFrames === 0`, and `flickerScore <= 2.5`. -- **Showcase loops (additional)**: - - `loop story ` -> generate `storyboard.png` (Frame `0` + midpoint of every step). - - `loop legible ` -> verify reading duration, `>= 4.5:1` contrast, edge margins, and mobile legibility in `legible.json`. - - `loop source-check ` -> verify every `"source"` in `showcase.json` resolves to an existing file and valid line range. - - **Cold Read**: Invoke the `loop-cold-reader` subagent (or `loop-cold-read` skill) with *only* `storyboard.png` to confirm an unprimed reader can state what the project does in one sentence matching `showcase.json#says`. -- **3-Round Revision Cap**: Repeat the inspect -> revise -> re-check cycle at most **3 rounds**. If any check still fails after Round 3, stop and report the exact failing metric and trade-off to the user. - -## 6. Concise Output - -- Keep user-facing updates and final replies brief (2–5 short lines): state the generated files, `seamScore`, and any key change or blocker. Never print long recaps, repeated status walls, or raw frame-delta arrays. +1. **Pure Phase (`phase ∈ [0, 1)`)**: Drive every animation frame from `phase = frame / (seconds * fps)` over frames `0..N-1`. Never render Frame `N` (`phase = 1.0`), and never rely on wall-clock time (`Date.now()`, `performance.now()`), unseeded `Math.random()`, `requestAnimationFrame` state drift, or CSS `transition`/`animation`. +2. **Real Web Tech Only**: Author `scene.html` (HTML5/CSS3/SVG with `--loop-*` theme tokens) or `shader.frag` (WebGL2 GLSL). +3. **Source Grounding (`file:line` + `match`)**: Every showcase step in `showcase.json` must cite a real repo-relative `"source": "path/to/file:line"` (and optionally `"match"` symbol/token) verified by `loop source-check`. +4. **Dual-Theme Readability**: Mark stage labels with `data-loop-stage` and step captions with `data-loop-caption`. Captions must stay visible `>= 0.5 + 0.3 * words` seconds, maintain WCAG `>= 4.5:1` contrast, and avoid overflow at both `800px` and `400px` mobile width across `--themes dark,light`. +5. **Verification Gate**: Run `loop audit --repo . --themes dark,light` and cold-read `storyboard.png` via `loop-cold-reader` before final `loop render`. Cap revisions at **3 rounds**. +6. **Concise Output**: Keep user-facing updates brief (2–5 short lines): state generated files, `seamScore`, and any key fix or blocker without dumping raw frame-delta arrays. diff --git a/skills/loop-audit/SKILL.md b/skills/loop-audit/SKILL.md index f46c08a..ba2f1a4 100644 --- a/skills/loop-audit/SKILL.md +++ b/skills/loop-audit/SKILL.md @@ -1,30 +1,42 @@ --- name: loop-audit -description: Unified automated quality gate for Loop Studio. Combines seam measurement (loop seam), typography & WCAG contrast verification (loop legible), repository file:line citation checks (loop source-check), and file-size budget validation into audit.json. +description: Audit any Loop Studio project OR any external video/GIF/WebP (from Remotion, Playwright, After Effects, or AI video models) for wrap-seam continuity, duplicate wrap frames, caption reading time, WCAG contrast, and source-citation drift. --- -# Loop Audit — Unified Quality Gate +# Loop Audit — Universal Seam, Legibility & Source-Drift Gate -Before running a final production render or committing a loop to a repository README, run the unified audit command: +Use `loop audit` to verify either: +1. A Loop project directory (`scene.html`, `shader.frag`, `sketch.js`), **or** +2. Any pre-rendered external animation file (`.gif`, `.mp4`, `.webp`, `.webm`, `.mov`) created by Remotion, Playwright, After Effects, or generative video tools (requires `ffmpeg` for external video decoding). + +--- + +## Auditing a Loop Project (HTML / WebGL2) ```bash -node tool/bin/loop.js audit [--repo ] +npx loop audit --repo --themes dark,light ``` -## What `loop audit` Measures +Checks performed: +- **Wrap Seam (`seam.json`)**: Measures pixel RMS delta for every transition including `N-1 -> 0`. Fails if `seamScore > 1.5`, `duplicateFrames > 0`, or `flickerScore > 2.5`. +- **Dual-Theme DOM Legibility (`legible.json`)**: Inspects Frame `0` and every step midpoint across dark & light themes for missing stage labels, reading time (`>= 0.5 + 0.3 * words`), DOM overflow (`scrollWidth > clientWidth`), `400px` phone scaling, and worst-case 8-point pixel halo WCAG `>= 4.5:1` contrast. +- **Source & Drift Check (`sources.json`)**: Verifies every `"source": "file:line"` (or `"file:start-end"`) is repo-relative, within `--repo`, in range, and contains every `"match"` symbol/token within ±3 lines. + +--- + +## Auditing an External Video (`MP4` / `GIF` / `WebP` / `WebM`) -`loop audit` executes up to four automated verifiers and writes `/audit.json`: +```bash +npx loop seam path/to/hero.webp +npx loop audit path/to/hero.mp4 --showcase path/to/showcase.json --repo . --max-kb 2048 +``` -| Check | Scope | Pass Threshold | Failure Meaning & Remediation | -| :--- | :--- | :--- | :--- | -| **1. Seam Continuity (`seam.json`)** | All loops | `seamScore <= 1.5` | Wrap step $\Delta(N-1, 0)$ is larger than normal step $\text{median}(\Delta)$. Fix fractional cycle multipliers or unclosed noise paths in `sketch.js`. | -| **2. Stutter / Duplicates (`seam.json`)** | All loops | `duplicateFrames === 0` | Two adjacent frames are pixel-identical (often because Frame $N$ was rendered or a timeline window has a dead gap). | -| **3. Flicker Stability (`seam.json`)** | All loops | `flickerScore <= 2.5` | Frame-to-frame step sizes swing erratically. Smooth transitions with `kit.ease.inOutCubic` or reduce strobe frequency. | -| **4. Reading Time (`legible.json`)** | Showcase / Text | `duration >= 0.5 + 0.3 * words` | A step caption disappears before a viewer can finish reading it. Shorten caption word count or widen step `(from, to)` window. | -| **5. WCAG AA Contrast (`legible.json`)** | Showcase / Text | `contrastRatio >= 4.5` | Caption or stage label blends into the background. Switch text to `palette.body` on `palette.surface`/`palette.ground` pill. | -| **6. Mobile & Margin Safety (`legible.json`)** | Showcase / Text | `margin >= 24px` at `800px` & readable at `400px` | Caption overflows canvas width on mobile phones. Keep captions `<= 58` characters and font size `>= 12.5px`. | -| **7. Source Honesty (`sources.json`)** | Showcase | `100%` of `steps[].source` exist | A step cites a nonexistent file or out-of-range line number. Re-verify `file:line` in the target repository. | +- Automatically enables lossy-codec duplicate-frame tolerance (`0.002` RMS delta for `.mp4`/`.webm`/`.webp`, `0.0001` for lossless `.gif`). +- When `--showcase` (or a sibling `showcase.json`) is present, audits caption reading durations, `file:line` + `match` doc-drift citations, and optional `step.box` (`{ x, y, width, height }`) pixel contrast. +- Exit codes: `0` pass, `1` audit failure, `2` missing `ffmpeg` or invalid input. + +--- -## Interpreting `audit.json` +## Zero-Context Cold Read -Only proceed to `loop render` when `audit.json` reports `"pass": true`. If `"pass": false`, address the specific failing entry in `audit.json#failures` (within the 3-round revision cap). +For any showcase animation, generate `/storyboard.png` (`npx loop story `) and invoke `loop-cold-reader` with **only** `storyboard.png` to verify a first-time viewer understands the visual without reading docs. diff --git a/skills/loop-brief/SKILL.md b/skills/loop-brief/SKILL.md deleted file mode 100644 index f6407a8..0000000 --- a/skills/loop-brief/SKILL.md +++ /dev/null @@ -1,69 +0,0 @@ ---- -name: loop-brief -description: Translates a loose user request into a structured brief.json specification for Loop Studio. Fills smart defaults for duration, frame rate, dimensions, aspect ratio, BPM tempo sync, palette, and style pack while asking at most one clarifying question if the destination format is ambiguous. ---- - -# Loop Brief — Specification Generator - -Turn a short mood or use-case prompt (e.g., *"deep sea, slow, square"* or *"cyberpunk terminal banner for my GitHub profile"*) into a complete, deterministic `brief.json`. - -## Default Destination Presets - -When the user does not specify dimensions or duration, match their stated destination: - -| Destination | Width × Height | Seconds | FPS | Total Frames | Max GIF Size Budget | -| :--- | :--- | :--- | :--- | :--- | :--- | -| **Ambient Square** (`default`) | `640 × 640` (preview) / `1080 × 1080` (HD) | `4` | `30` | `120` | `4.0 MB` | -| **GitHub README Showcase / Banner** | `800 × 450` (16:9) or `800 × 320` (wide) | `10` (showcase) / `4` (banner) | `24` or `30` | `240` / `120` | `5.0 MB` (GitHub limit 10 MB) | -| **Social Vertical (Reels / Shorts)** | `1080 × 1920` | `6` | `30` | `180` | Prefer `MP4` (`< 8 MB`) | -| **Stream / Presentation Background** | `1280 × 720` or `1920 × 1080` | `6` | `30` | `180` | Prefer `MP4` / `WebM` | -| **Retro Badge / Icon** | `320 × 320` | `3` | `20` | `60` | `500 KB` | - -## Tempo & BPM Locking (Music Visuals) - -When a prompt specifies a tempo (e.g., `120 BPM`), lock duration to an integer number of bars (`4` or `8` beats) so the visual phase hits downbeats on exact integer cycles: - -$$\text{seconds} = \frac{60}{\text{BPM}} \times \text{beats}$$ - -- Example: `120 BPM`, `8 beats` (2 bars of 4/4) -> `seconds = (60 / 120) * 8 = 4.0s`. - -## `brief.json` Schema - -Write `brief.json` in the target project directory: - -```json -{ - "title": "Abyssal Bioluminescence", - "prompt": "Deep sea, slow, square, bioluminescent orbits", - "mode": "ambient", - "style": "particle-orbit", - "palette": "abyss", - "seconds": 4, - "fps": 30, - "width": 640, - "height": 640, - "seed": 42, - "bpm": null, - "destination": "square", - "formats": ["gif", "png", "mp4"], - "budgetKB": 4096, - "layers": { - "background": "slow radial abyssal gradient with subtle 1-cycle caustic wave", - "midground": "3 nested elliptical particle rings orbiting at 1x and 2x phase speed", - "foreground": "8 bright bioluminescent sparks pulsing with phase offsets" - } -} -``` - -## Mood-to-Style & Palette Mapping - -| Mood / Keywords | Recommended Style Pack | Recommended Palette | -| :--- | :--- | :--- | -| Deep sea, cosmos, constellation, fireflies, data points | `particle-orbit` | `abyss` or `nebula` | -| Wind, currents, silk, smoke, calm, organic drift | `flow-field` | `aurora`, `tide`, or `ember` | -| 3D sculpture, chrome, liquid morph, monolithic | `sdf-raymarch` | `obsidian` or `solar` | -| Poster, manifesto, kinetic headline, lyrics | `kinetic-type` | `editorial` or `acid` | -| Retro OS, GameBoy, 1-bit, terminal matrix, low-fi | `dither-mono` | `phosphor` or `amber-crt` | -| Architecture, city blocks, hardware, modular waves | `isometric-grid` | `bauhaus` or `nordic` | -| Engineering schematic, radar, CAD, telemetry | `blueprint-cad` | `blueprint` | -| Terrain, elevation map, weather isobars, sonar | `topographic-contour` | `terra` or `abyss` | diff --git a/skills/loop-cold-read/SKILL.md b/skills/loop-cold-read/SKILL.md deleted file mode 100644 index 98dc549..0000000 --- a/skills/loop-cold-read/SKILL.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -name: loop-cold-read -description: Zero-context storyboard verification protocol for Loop Studio showcase animations. Hands storyboard.png to a fresh agent (loop-cold-reader) with zero repo context and judges whether its one-sentence guess matches what the project actually does. ---- - -# Loop Cold Read — Zero-Context Comprehension Gate - -The most common failure of an explanation diagram is **curse of knowledge**: the author already knows what the repo does, so an abstract moving dot looks obvious to them while a newcomer has no idea what is happening. - -The **Cold Read** turns comprehension into an objective test. - -## Step 1: Render the Storyboard (`storyboard.png`) - -Run: -```bash -node tool/bin/loop.js story -``` -This renders a single composite image containing: -- **Panel 0**: Frame `0` (`t = 0.0s`, the static thumbnail) -- **Panels 1..K**: One frame from the exact midpoint of each step in `showcase.json` - -## Step 2: Invoke a Fresh Zero-Context Subagent - -Launch a fresh subagent (`loop-cold-reader` or `research` subagent) and give it **only** the path to `/storyboard.png` with this exact prompt: - -> *"View ONLY the image at ``. Do NOT read any other files, READMEs, or JSON in the workspace. Based solely on the visual diagram and captions in this storyboard image: (1) State in one plain sentence what this project/tool takes as input, what it does to it, and what it produces as output. (2) Note any label or caption that is unclear, truncated, or hard to read."* - -## Step 3: Judge the Cold-Read Response - -Compare the subagent's `guessedPurpose` against `showcase.json#says` across three components: - -| Component | Target (`showcase.json#says`) | Cold Reader Guess Must Capture | -| :--- | :--- | :--- | -| **1. Input** | What enters the system (e.g., "a one-line text prompt / request") | Recognizes the input artifact type | -| **2. Action / Process** | What happens inside (e.g., "writes a phase sketch and checks the seam") | Recognizes the core transformation or verification | -| **3. Output** | What comes out (e.g., "a seamless looping GIF / animation") | Recognizes the resulting artifact | - -- **PASS**: All 3 components (Input, Process, Output) are recognizable in the subagent's one-sentence answer (`clarityScore >= 4`). -- **FAIL / REVISE**: If the cold reader guesses the wrong domain, misses what goes in or comes out, or flags an unclear panel, revise `showcase.json` labels/captions or `sketch.js` stage visuals and re-run `loop story` (up to the 3-round session limit). diff --git a/skills/loop-compose/SKILL.md b/skills/loop-compose/SKILL.md deleted file mode 100644 index 7cc85b1..0000000 --- a/skills/loop-compose/SKILL.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: loop-compose -description: Motion design and visual composition principles for short 2-to-15 second seamless loops. Covers focal hierarchy, three-depth parallax layering, harmonic speed contrast, asymmetric easing, and negative space. ---- - -# Loop Compose — Motion Design for Short Loops - -An agent-written sketch often fails visually not because the math is wrong, but because **everything moves at the same speed, at the same scale, across the entire canvas**. Apply these five rules before writing `sketch.js`. - -## 1. One Focal Anchor - -Every frame (especially Frame `0`) needs a primary focal region occupying roughly `20%–35%` of the canvas area: -- **Radial / Orbital**: Anchor slightly off-center (`(0.5, 0.48)`) or dead-center with clear concentric falloff. -- **Directional / Flow**: Anchor along a primary diagonal or golden-ratio horizon (`y = 0.62 * height`), leaving quiet breathing room above or below. -- **Showcase Diagram**: The fixed stage occupies the central horizontal band (`y = 0.25H..0.68H`), with the bottom band (`y = 0.80H..0.90H`) reserved exclusively for captions. - -## 2. Three Depth Layers at Harmonic Speeds - -Never draw a single flat layer. Compose every ambient loop from three depth planes running at integer harmonic ratios: - -| Plane | Canvas Share | Speed (`cycles/loop`) | Alpha / Contrast | Role | -| :--- | :--- | :--- | :--- | :--- | -| **1. Ground / Atmosphere** | `60%–75%` | `1x` (slowest) | `0.12 – 0.30` | Slow gradient tide, subtle grid, or deep field | -| **2. Body / Structure** | `20%–30%` | `1x` or `2x` | `0.60 – 0.90` | Primary ribbons, orbits, isometric blocks, or stage nodes | -| **3. Spark / Accent** | `5%–10%` | `2x` or `3x` | `0.90 – 1.00` | High-contrast highlights, pulses, data packets, or glints | - -## 3. Easing Over Linear Motion - -Linear interpolation (`x = a + (b - a) * u`) feels robotic. Use shaped easing curves from `kit.ease`: - -- **Smooth departure & arrival**: `kit.ease.inOutCubic(u)` or `kit.ease.smoothstep(u)` -- **Snappy UI/terminal action**: `kit.ease.outExpo(u)` (fast attack, gentle settle) -- **Breathing pulse**: `Math.pow(0.5 + 0.5 * Math.sin(TAU * phase), 2.2)` (spends more time resting in the trough, then crests sharply) - -## 4. Rest Beats & Negative Space - -- **Keep at least 25% of the canvas quiet (`ground` color)** so the eye can rest and compression formats (GIF / MP4) stay crisp and small. -- **In showcase loops**, hold the item still inside each stage box for at least `0.6s–1.2s` after it arrives so the viewer can read the stage label and caption without chasing a constantly moving target. diff --git a/skills/loop-critique/SKILL.md b/skills/loop-critique/SKILL.md deleted file mode 100644 index 0408fac..0000000 --- a/skills/loop-critique/SKILL.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -name: loop-critique -description: Visual critique workflow for Loop Studio contact sheets (sheet.png). Teaches the agent how to inspect tiled preview frames for focal point, speed contrast, empty/dead frames, palette balance, and how to obey the strict 3-round revision limit. ---- - -# Loop Critique — Contact Sheet Inspection Protocol - -After generating a preview contact sheet (`npx loop sheet `), open and inspect `/sheet.png` using your multimodal file-reading tool before proceeding to final render. - -## Reading `sheet.png` - -`sheet.png` displays 12 to 16 evenly spaced frames across the `[0, 1)` phase cycle (typically every 8th frame of a 120-frame loop), stamped with `f:000 p:0.00` through `f:112 p:0.93`. - -## The 6-Point Visual Checklist - -Check every sheet against these six criteria: - -1. **Focal Point**: - - *Question*: Does every frame have a clear visual center of gravity? - - *Fail symptom*: Uniform wallpaper where no area commands attention, or elements clipped awkward at canvas borders. - - *Fix*: Add a central anchor or scale gradient (`1.4x` scale near focal center, `0.6x` toward edges). -2. **Speed & Depth Contrast**: - - *Question*: Can you distinguish a slow background layer (`1x` cycle) from a faster foreground accent (`2x` or `3x` cycle)? - - *Fail symptom*: Every element moves at the exact same speed and amplitude. - - *Fix*: Split elements into `ground` (`1x`), `body` (`1x-2x`), and `spark` (`2x-3x`) layers. -3. **Spatial Coverage & Negative Space**: - - *Question*: Are all four quadrants intentional, with `25%–70%` quiet ground space? - - *Fail symptom*: An entire third of the canvas is accidentally blank, or `>90%` of the frame is cluttered with overlapping strokes. - - *Fix*: Adjust layout bounds or add a subtle secondary layer in the empty region. -4. **Frame-to-Frame Progression**: - - *Question*: Do adjacent tiles in `sheet.png` show smooth, perceptible progression? - - *Fail symptom*: Two or more tiles look identical (dead window), or tiles look completely uncorrelated (excessive frequency / chaos). - - *Fix*: Ensure cycle multipliers are small integers (`1, 2, 3`) and active windows cover the full `[0, 1)` interval. -5. **Wrap Continuity (Last Tile -> First Tile)**: - - *Question*: Does the bottom-right tile (`p:0.93`) naturally lead back into the top-left tile (`p:0.00`)? - - *Fail symptom*: Color, scale, or position in the final tile is far from Frame `0`. - - *Fix*: Check for non-integer frequency multipliers or unclosed trajectories; run `npx loop seam `. -6. **Palette & Contrast Discipline**: - - *Question*: Does the `spark` color pop clearly against `ground` and `surface`? - - *Fail symptom*: Muddy midtones caused by mixing incompatible colors at `0.5` alpha. - - *Fix*: Use exact palette tokens from `kit.palettes`. - -## The 3-Round Revision Cap - -- **Round 1**: Initial sketch -> `loop sheet` + `loop seam` -> critique & identify top 1–2 defects. -- **Round 2**: Revise `sketch.js` -> re-run `loop sheet` + `loop seam` -> verify fix. -- **Round 3 (Final allowed revision)**: Polish remaining seam or legibility issue. -- **Hard Stop**: If any check still fails after Round 3, **do not loop further**. Present the best render along with a transparent diagnostic of what metric remains out of spec and why. diff --git a/skills/loop-embed/SKILL.md b/skills/loop-embed/SKILL.md deleted file mode 100644 index cdd6a0d..0000000 --- a/skills/loop-embed/SKILL.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -name: loop-embed -description: Generates drop-in GitHub README Markdown, responsive dark/light theme embeds, accessibility prefers-reduced-motion fallbacks, and interactive HTML phase-scrubber snippets for rendered Loop Studio animations. ---- - -# Loop Embed — README & Web Integration Patterns - -Once `loop render` finishes producing `showcase.gif` (or `loop.gif`), `poster.png`, and `loop.mp4`, use these snippets to embed the animation cleanly in a GitHub `README.md`, documentation site, or landing page. - -## 1. Standard GitHub README Header (Centered with Poster Link) - -```markdown -

- Animated diagram: Loop Studio turns a one-line request into a checked, seamless loop. -

-``` - -## 2. Dark / Light Theme Adaptive GitHub Embed (``) - -When you render both a dark-palette (`studio-dark`) and light-palette (`studio-light`) variant, GitHub's Markdown renderer automatically switches between them based on the viewer's OS/GitHub theme: - -```html -

- - - - Loop Studio showcase animation - -

-``` - -## 3. Accessible Web Video with Reduced-Motion Fallback - -For documentation sites and landing pages where `