diff --git a/README.md b/README.md index 5d4b2c0..ca9edb6 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ Every animation below is pure deterministic code (`sketch.js`), measured by `loo | Loop CLI Terminal Showcase | **Loop CLI Audit Session** (`scenes/terminal` · `phosphor`)
**Use case**: CLI documentation showing real flags, terminal telemetry, and pass/fail checks.
"The loop CLI audits any sketch for seam jumps, caption legibility, and source citations." | `10s · 16fps`
`seamScore: 0.989` (`PASS`) | [showcase.json](./gallery/cli-audit-session/showcase.json) · [sketch.js](./gallery/cli-audit-session/sketch.js) · [storyboard.png](./gallery/cli-audit-session/storyboard.png) · [audit.json](./gallery/cli-audit-session/audit.json) | | Phase Contract SDK Code Showcase | **Phase Contract SDK** (`scenes/code` · `studio-dark`)
**Use case**: Library & SDK docs pairing live-stepping code lines with a synchronized state monitor.
"Every Loop Studio sketch exports meta and a pure render(ctx, phase) function." | `10s · 20fps`
`seamScore: 1.006` (`PASS`) | [showcase.json](./gallery/api-pipeline-code/showcase.json) · [sketch.js](./gallery/api-pipeline-code/sketch.js) · [storyboard.png](./gallery/api-pipeline-code/storyboard.png) · [audit.json](./gallery/api-pipeline-code/audit.json) | | Agent Orchestrator Architecture Showcase | **Agent Orchestrator Mesh** (`scenes/architecture` · `aurora`)
**Use case**: System architecture & multi-agent / MCP service topology diagrams for RFCs & READMEs.
"The Loop Studio orchestrator coordinates the CLI renderer, seam analyzer, and cold-read subagent." | `10s · 20fps`
`seamScore: 0.985` (`PASS`) | [showcase.json](./gallery/mcp-mesh-topology/showcase.json) · [sketch.js](./gallery/mcp-mesh-topology/sketch.js) · [storyboard.png](./gallery/mcp-mesh-topology/storyboard.png) · [audit.json](./gallery/mcp-mesh-topology/audit.json) | +| Protected Git Workflow 60fps Showcase | **Protected Git Workflow** (`60 fps` WebP · `studio-dark`)
**Use case**: CI/CD & branch-protection explainer animating `feat/*` -> `PR + CI` -> `dev` -> `main`.
"Branch guardrails block direct pushes and require passing CI evals before merging." | `8s · 60fps · 480f`
`seamScore: 1.148` (`PASS`) | [showcase.webp](./gallery/git-pr-guardrails/showcase.webp) · [sketch.js](./gallery/git-pr-guardrails/sketch.js) · [storyboard.png](./gallery/git-pr-guardrails/storyboard.png) · [audit.json](./gallery/git-pr-guardrails/audit.json) | +| 60fps Video Transformer Showcase | **60 fps Video Transformer** (`60 fps` WebP · `abyss`)
**Use case**: Compiler, build pipeline, or media-processing diagram converting specs into `480` frames.
"Converts brief.json into 480 phase-exact frames and encodes MP4 & WebP." | `8s · 60fps · 480f`
`seamScore: 1.005` (`PASS`) | [showcase.webp](./gallery/json-to-gif-transform/showcase.webp) · [sketch.js](./gallery/json-to-gif-transform/sketch.js) · [storyboard.png](./gallery/json-to-gif-transform/storyboard.png) · [audit.json](./gallery/json-to-gif-transform/audit.json) | ### Ambient Loops (Mood, Backgrounds, 30–60 fps UI & Social Motion) @@ -41,8 +43,10 @@ Every animation below is pure deterministic code (`sketch.js`), measured by `loo | Epicyclic Telemetry Blueprint CAD | **`styles/blueprint-cad`** (`blueprint`)
**Use case**: Robotics, hardware, CAD, and precision engineering project badges.
"Planetary gear linkages rotating at 1x and -2x harmonic speeds." | `4s · 20fps · 320×320`
`seamScore: 1.023` (`PASS`) | [brief.json](./gallery/cad-planetary/brief.json) · [sketch.js](./gallery/cad-planetary/sketch.js) · [sheet.png](./gallery/cad-planetary/sheet.png) · [seam.json](./gallery/cad-planetary/seam.json) | | Nebula 3D Raymarched Sculpture | **`styles/sdf-raymarch`** (`nebula`)
**Use case**: Zero-dependency 3D product hero & smooth WebP/MP4 shader sculpture.
"30 fps 3D raymarched smooth-union torus and orbiting spheres." | `3s · 30fps · 280×280` (WebP)
`seamScore: 1.061` (`PASS`) | [loop.webp](./gallery/readme-hero-3d/loop.webp) · [loop.gif](./gallery/readme-hero-3d/loop.gif) · [sketch.js](./gallery/readme-hero-3d/sketch.js) · [sheet.png](./gallery/readme-hero-3d/sheet.png) | | Amber CRT Bayer Dither Radar | **`styles/dither-mono`** (`amber-crt`)
**Use case**: Low-bandwidth CLI/game splash screen & zero-shimmer retro loader.
"30 fps amber CRT sphere and radar sweep via ordered 4×4 Bayer dithering." | `3s · 30fps · 280×280`
`seamScore: 1.005` (`PASS`) | [loop.gif](./gallery/retro-crt-loader/loop.gif) · [loop.webp](./gallery/retro-crt-loader/loop.webp) · [sketch.js](./gallery/retro-crt-loader/sketch.js) · [sheet.png](./gallery/retro-crt-loader/sheet.png) | -| 60 fps Editorial Kinetic Wave | **`styles/kinetic-type`** (`editorial`)
**Use case**: Silky **60 fps** social release announcement card & talk title slide.
"60 fps editorial kinetic typography wave with WCAG-verified focal pill." | `2s · 60fps · 280×280` (WebP)
`seamScore: 0.987` (`PASS`) | [loop.webp](./gallery/kinetic-release-banner/loop.webp) · [loop.gif](./gallery/kinetic-release-banner/loop.gif) · [sketch.js](./gallery/kinetic-release-banner/sketch.js) · [sheet.png](./gallery/kinetic-release-banner/sheet.png) | +| 60 fps Editorial Kinetic Wave | **`styles/kinetic-type`** (`editorial`)
**Use case**: Silky **60 fps** social release announcement card & talk title slide.
"60 fps 4-second editorial kinetic typography wave with WCAG-verified focal pill." | `4s · 60fps · 240f` (WebP)
`seamScore: 0.968` (`PASS`) | [loop.webp](./gallery/kinetic-release-banner/loop.webp) · [loop.gif](./gallery/kinetic-release-banner/loop.gif) · [sketch.js](./gallery/kinetic-release-banner/sketch.js) · [sheet.png](./gallery/kinetic-release-banner/sheet.png) | | Abyssal Bathymetry Topographic Isolines | **`styles/topographic-contour`** (`abyss`)
**Use case**: Geospatial, weather, sonar, and telemetry elevation backgrounds.
"30 fps bathymetric contour isolines over a cyclic scalar noise field." | `3s · 30fps · 280×280`
`seamScore: 0.951` (`PASS`) | [loop.gif](./gallery/sonar-bathymetry/loop.gif) · [loop.webp](./gallery/sonar-bathymetry/loop.webp) · [sketch.js](./gallery/sonar-bathymetry/sketch.js) · [sheet.png](./gallery/sonar-bathymetry/sheet.png) | +| 120 BPM 60fps Audio Spectrum | **`120 BPM Harmonic Spectrum`** (`ember`)
**Use case**: Music release visual, podcast player, & WebAudio/VST visualizer (3 bars of 4/4).
"6-second 60 fps 120 BPM harmonic equalizer with macro swell and oscilloscope." | `6s · 60fps · 360f` (WebP)
`seamScore: 1.05` (`PASS`) | [loop.webp](./gallery/live-audio-spectrum/loop.webp) · [loop.gif](./gallery/live-audio-spectrum/loop.gif) · [sketch.js](./gallery/live-audio-spectrum/sketch.js) · [sheet.png](./gallery/live-audio-spectrum/sheet.png) | +| 8s 60fps Orbital Radar Telemetry | **`Orbital Radar Telemetry`** (`blueprint`)
**Use case**: Aerospace HUD, satellite tracker, & DevOps live observability splash.
"8-second 60 fps radar sweep tracking 3 satellites on tilted elliptical orbits." | `8s · 60fps · 480f` (WebP)
`seamScore: 1.037` (`PASS`) | [loop.webp](./gallery/orbital-telemetry-watch/loop.webp) · [loop.gif](./gallery/orbital-telemetry-watch/loop.gif) · [sketch.js](./gallery/orbital-telemetry-watch/sketch.js) · [sheet.png](./gallery/orbital-telemetry-watch/sheet.png) | --- @@ -194,7 +198,7 @@ loop-studio/ │ ├─ lib/ # loop-kit, soft-canvas, encoders, analyzers, compositor, server │ ├─ scripts/build-gallery.js │ └─ test/run-evals.js -├─ gallery/ # 6 reproducible showcase & ambient loops with full artifacts +├─ gallery/ # 16 reproducible showcase & ambient loops (up to 60 fps) with full artifacts ├─ evals/ # Automated positive & negative verification gates └─ docs/ # Phase contract, CLI manual, and renderer ADR ``` diff --git a/gallery/git-pr-guardrails/audit.json b/gallery/git-pr-guardrails/audit.json new file mode 100644 index 0000000..053c703 --- /dev/null +++ b/gallery/git-pr-guardrails/audit.json @@ -0,0 +1,16 @@ +{ + "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": 3906.6, + "totalFrames": 480 +} diff --git a/gallery/git-pr-guardrails/index.html b/gallery/git-pr-guardrails/index.html new file mode 100644 index 0000000..d1d42b5 --- /dev/null +++ b/gallery/git-pr-guardrails/index.html @@ -0,0 +1,120 @@ + + + + + + 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 new file mode 100644 index 0000000..63ee006 --- /dev/null +++ b/gallery/git-pr-guardrails/legible.json @@ -0,0 +1,71 @@ +{ + "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 new file mode 100644 index 0000000..ba4180d Binary files /dev/null and b/gallery/git-pr-guardrails/loop.gif differ diff --git a/gallery/git-pr-guardrails/poster.png b/gallery/git-pr-guardrails/poster.png new file mode 100644 index 0000000..be84ca8 Binary files /dev/null and b/gallery/git-pr-guardrails/poster.png differ diff --git a/gallery/git-pr-guardrails/seam.json b/gallery/git-pr-guardrails/seam.json new file mode 100644 index 0000000..2b621c9 --- /dev/null +++ b/gallery/git-pr-guardrails/seam.json @@ -0,0 +1,495 @@ +{ + "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 new file mode 100644 index 0000000..9c5e767 Binary files /dev/null and b/gallery/git-pr-guardrails/sheet.png differ diff --git a/gallery/git-pr-guardrails/showcase.gif b/gallery/git-pr-guardrails/showcase.gif new file mode 100644 index 0000000..ba4180d Binary files /dev/null and b/gallery/git-pr-guardrails/showcase.gif differ diff --git a/gallery/git-pr-guardrails/showcase.json b/gallery/git-pr-guardrails/showcase.json new file mode 100644 index 0000000..682932f --- /dev/null +++ b/gallery/git-pr-guardrails/showcase.json @@ -0,0 +1,42 @@ +{ + "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 new file mode 100644 index 0000000..4d763a8 Binary files /dev/null and b/gallery/git-pr-guardrails/showcase.webp differ diff --git a/gallery/git-pr-guardrails/sketch.js b/gallery/git-pr-guardrails/sketch.js new file mode 100644 index 0000000..910cf72 --- /dev/null +++ b/gallery/git-pr-guardrails/sketch.js @@ -0,0 +1,252 @@ +// 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 new file mode 100644 index 0000000..8c1e0ed --- /dev/null +++ b/gallery/git-pr-guardrails/sources.json @@ -0,0 +1,40 @@ +{ + "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 new file mode 100644 index 0000000..bdea0c2 Binary files /dev/null and b/gallery/git-pr-guardrails/storyboard.png differ diff --git a/gallery/json-to-gif-transform/audit.json b/gallery/json-to-gif-transform/audit.json new file mode 100644 index 0000000..4c3a933 --- /dev/null +++ b/gallery/json-to-gif-transform/audit.json @@ -0,0 +1,16 @@ +{ + "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": 4697.5, + "totalFrames": 480 +} diff --git a/gallery/json-to-gif-transform/index.html b/gallery/json-to-gif-transform/index.html new file mode 100644 index 0000000..a212a09 --- /dev/null +++ b/gallery/json-to-gif-transform/index.html @@ -0,0 +1,120 @@ + + + + + + 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 new file mode 100644 index 0000000..7c098c5 --- /dev/null +++ b/gallery/json-to-gif-transform/legible.json @@ -0,0 +1,71 @@ +{ + "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 new file mode 100644 index 0000000..21407f6 Binary files /dev/null and b/gallery/json-to-gif-transform/loop.gif differ diff --git a/gallery/json-to-gif-transform/poster.png b/gallery/json-to-gif-transform/poster.png new file mode 100644 index 0000000..ef98600 Binary files /dev/null and b/gallery/json-to-gif-transform/poster.png differ diff --git a/gallery/json-to-gif-transform/seam.json b/gallery/json-to-gif-transform/seam.json new file mode 100644 index 0000000..d1a666e --- /dev/null +++ b/gallery/json-to-gif-transform/seam.json @@ -0,0 +1,495 @@ +{ + "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 new file mode 100644 index 0000000..caa1516 Binary files /dev/null and b/gallery/json-to-gif-transform/sheet.png differ diff --git a/gallery/json-to-gif-transform/showcase.gif b/gallery/json-to-gif-transform/showcase.gif new file mode 100644 index 0000000..21407f6 Binary files /dev/null and b/gallery/json-to-gif-transform/showcase.gif differ diff --git a/gallery/json-to-gif-transform/showcase.json b/gallery/json-to-gif-transform/showcase.json new file mode 100644 index 0000000..a35c12c --- /dev/null +++ b/gallery/json-to-gif-transform/showcase.json @@ -0,0 +1,41 @@ +{ + "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 new file mode 100644 index 0000000..e814b52 Binary files /dev/null and b/gallery/json-to-gif-transform/showcase.webp differ diff --git a/gallery/json-to-gif-transform/sketch.js b/gallery/json-to-gif-transform/sketch.js new file mode 100644 index 0000000..3be591f --- /dev/null +++ b/gallery/json-to-gif-transform/sketch.js @@ -0,0 +1,173 @@ +// 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 new file mode 100644 index 0000000..160568c --- /dev/null +++ b/gallery/json-to-gif-transform/sources.json @@ -0,0 +1,40 @@ +{ + "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 new file mode 100644 index 0000000..5e25d16 Binary files /dev/null and b/gallery/json-to-gif-transform/storyboard.png differ diff --git a/gallery/kinetic-release-banner/audit.json b/gallery/kinetic-release-banner/audit.json index d93dcce..6f49af3 100644 --- a/gallery/kinetic-release-banner/audit.json +++ b/gallery/kinetic-release-banner/audit.json @@ -2,15 +2,15 @@ "id": "kinetic-release-banner", "title": "Editorial Kinetic Wave (60 fps Type)", "mode": "ambient", - "useCase": "60 fps social announcement card, talk title slide, and release launch banner", + "useCase": "60 fps social release announcement card, talk title slide, and launch banner", "fps": 60, "pass": true, - "seamScore": 0.987, + "seamScore": 0.968, "duplicateFrames": 0, - "flickerScore": 0.238, + "flickerScore": 0.456, "legiblePass": true, "sourcesPass": true, - "gifKB": 704.1, - "webpKB": 691.5, - "totalFrames": 120 + "gifKB": 1408.1, + "webpKB": 1383.2, + "totalFrames": 240 } diff --git a/gallery/kinetic-release-banner/brief.json b/gallery/kinetic-release-banner/brief.json index 2e3ef24..c273b06 100644 --- a/gallery/kinetic-release-banner/brief.json +++ b/gallery/kinetic-release-banner/brief.json @@ -1,10 +1,10 @@ { "title": "Editorial Kinetic Wave", - "prompt": "Silky 60 fps editorial kinetic typography wave repeating PHASE 0→1.", + "prompt": "Silky 60 fps 4-second editorial kinetic typography wave repeating PHASE 0→1.", "mode": "ambient", "style": "kinetic-type", "palette": "editorial", - "seconds": 2, + "seconds": 4, "fps": 60, "width": 280, "height": 280, diff --git a/gallery/kinetic-release-banner/loop.gif b/gallery/kinetic-release-banner/loop.gif index 3be310d..89decbf 100644 Binary files a/gallery/kinetic-release-banner/loop.gif and b/gallery/kinetic-release-banner/loop.gif differ diff --git a/gallery/kinetic-release-banner/loop.webp b/gallery/kinetic-release-banner/loop.webp index 33b41a2..e2a92e7 100644 Binary files a/gallery/kinetic-release-banner/loop.webp and b/gallery/kinetic-release-banner/loop.webp differ diff --git a/gallery/kinetic-release-banner/seam.json b/gallery/kinetic-release-banner/seam.json index d959da1..ff2d4a0 100644 --- a/gallery/kinetic-release-banner/seam.json +++ b/gallery/kinetic-release-banner/seam.json @@ -1,135 +1,255 @@ { "pass": true, - "totalFrames": 120, - "seamScore": 0.987, + "totalFrames": 240, + "seamScore": 0.968, "maxSeamScore": 1.5, "duplicateFrames": 0, "duplicatePairs": [], - "flickerScore": 0.238, + "flickerScore": 0.456, "maxFlickerScore": 2.5, - "medianStepDelta": 0.070287, - "seamStepDelta": 0.069343, + "medianStepDelta": 0.051173, + "seamStepDelta": 0.049535, "normalizedSteps": [ - 0.803, - 0.991, - 0.901, - 0.982, - 0.881, + 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.893, - 0.994, - 0.945, - 1.016, + 0.911, + 1.149, 0.979, - 0.939, - 1.002, + 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, - 1.074, - 1.006, - 0.981, + 0.78, + 1.211, + 1.038, + 0.776, + 1.171, 0.982, - 1.022, - 0.91, - 1.009, - 1.042, - 1.071, - 1.024, - 0.957, - 1.071, - 0.992, - 1.03, - 0.953, - 1.105, - 1.021, - 1.051, - 1.007, - 0.963, - 1.021, - 1.03, - 0.897, - 1.026, - 1.093, - 0.858, - 0.791, - 1.029, - 0.903, - 0.961, - 0.912, - 0.997, - 0.884, + 0.964, + 1.241, + 0.646, + 1.245, + 0.901, + 1.185, + 0.623, + 1.234, + 1.083, + 0.683, 1.106, - 0.832, + 1.132, + 0.936, 1.106, - 0.984, - 0.942, - 0.984, - 1.063, - 0.938, - 1.112, - 0.905, - 1.036, - 0.992, - 0.985, - 0.928, - 1.046, - 1.01, - 1.053, - 0.828, - 1.09, - 0.885, - 0.9, - 0.97, - 1.029, - 1.052, - 0.96, - 0.925, - 0.894, - 1.124, - 0.857, - 1.036, - 1.036, - 1.001, - 1.001, - 0.961, - 1.058, - 1.012, + 0.948, + 1.095, + 0.854, + 1.006, + 0.89, + 1.171, + 0.907, + 1.114, + 0.973, + 1.083, + 1.086, 1, - 1.078, - 1.014, + 0.681, + 0.832, + 1.342, + 0.885, + 0.991, + 0.829, 1.045, - 1.006, - 0.918, - 1.011, - 1.024, - 1.019, + 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.919, - 0.913, - 1.008, - 0.884, - 0.921, - 1.007, - 0.769, - 0.859, - 1.105, - 1.007, - 0.98, - 0.919, - 1.105, + 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.09, - 0.893, - 1.108, - 1.059, - 0.992, - 0.982, - 1.024, - 1.014, - 1.031, - 0.891, - 1.106, - 1.013, - 0.987 + 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 index 4502ba4..dbd935f 100644 Binary files a/gallery/kinetic-release-banner/sheet.png and b/gallery/kinetic-release-banner/sheet.png differ diff --git a/gallery/kinetic-release-banner/sketch.js b/gallery/kinetic-release-banner/sketch.js index 3dfc206..030671b 100644 --- a/gallery/kinetic-release-banner/sketch.js +++ b/gallery/kinetic-release-banner/sketch.js @@ -2,7 +2,7 @@ export const meta = { mode: "ambient", style: "kinetic-type", - seconds: 2, + seconds: 4, fps: 60, width: 280, height: 280, diff --git a/gallery/live-audio-spectrum/audit.json b/gallery/live-audio-spectrum/audit.json new file mode 100644 index 0000000..0a35eab --- /dev/null +++ b/gallery/live-audio-spectrum/audit.json @@ -0,0 +1,16 @@ +{ + "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": 2134.8, + "totalFrames": 360 +} diff --git a/gallery/live-audio-spectrum/brief.json b/gallery/live-audio-spectrum/brief.json new file mode 100644 index 0000000..2b8aee6 --- /dev/null +++ b/gallery/live-audio-spectrum/brief.json @@ -0,0 +1,13 @@ +{ + "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 new file mode 100644 index 0000000..5d43ad6 --- /dev/null +++ b/gallery/live-audio-spectrum/index.html @@ -0,0 +1,120 @@ + + + + + + 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 new file mode 100644 index 0000000..bb6b469 --- /dev/null +++ b/gallery/live-audio-spectrum/legible.json @@ -0,0 +1,20 @@ +{ + "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 new file mode 100644 index 0000000..27d9afc Binary files /dev/null and b/gallery/live-audio-spectrum/loop.gif differ diff --git a/gallery/live-audio-spectrum/loop.webp b/gallery/live-audio-spectrum/loop.webp new file mode 100644 index 0000000..c19cc48 Binary files /dev/null and b/gallery/live-audio-spectrum/loop.webp differ diff --git a/gallery/live-audio-spectrum/poster.png b/gallery/live-audio-spectrum/poster.png new file mode 100644 index 0000000..3dd003e Binary files /dev/null and b/gallery/live-audio-spectrum/poster.png differ diff --git a/gallery/live-audio-spectrum/seam.json b/gallery/live-audio-spectrum/seam.json new file mode 100644 index 0000000..fc7b18d --- /dev/null +++ b/gallery/live-audio-spectrum/seam.json @@ -0,0 +1,375 @@ +{ + "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 new file mode 100644 index 0000000..ec27521 Binary files /dev/null and b/gallery/live-audio-spectrum/sheet.png differ diff --git a/gallery/live-audio-spectrum/sketch.js b/gallery/live-audio-spectrum/sketch.js new file mode 100644 index 0000000..be5d71f --- /dev/null +++ b/gallery/live-audio-spectrum/sketch.js @@ -0,0 +1,86 @@ +// 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 new file mode 100644 index 0000000..3fe0e95 --- /dev/null +++ b/gallery/live-audio-spectrum/sources.json @@ -0,0 +1,6 @@ +{ + "pass": true, + "checked": 0, + "citations": [], + "reasons": [] +} diff --git a/gallery/manifest.json b/gallery/manifest.json index 167ced4..701be5e 100644 --- a/gallery/manifest.json +++ b/gallery/manifest.json @@ -1,5 +1,5 @@ { - "generatedAt": "2026-11-18T17:55:40.944Z", + "generatedAt": "2026-11-18T18:06:59.266Z", "items": [ { "id": "loop-studio", @@ -157,17 +157,17 @@ "id": "kinetic-release-banner", "title": "Editorial Kinetic Wave (60 fps Type)", "mode": "ambient", - "useCase": "60 fps social announcement card, talk title slide, and release launch banner", + "useCase": "60 fps social release announcement card, talk title slide, and launch banner", "fps": 60, "pass": true, - "seamScore": 0.987, + "seamScore": 0.968, "duplicateFrames": 0, - "flickerScore": 0.238, + "flickerScore": 0.456, "legiblePass": true, "sourcesPass": true, - "gifKB": 704.1, - "webpKB": 691.5, - "totalFrames": 120 + "gifKB": 1408.1, + "webpKB": 1383.2, + "totalFrames": 240 }, { "id": "sonar-bathymetry", @@ -184,6 +184,70 @@ "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": 3906.6, + "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": 4697.5, + "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": 2134.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": 4307.1, + "totalFrames": 480 } ] } diff --git a/gallery/orbital-telemetry-watch/audit.json b/gallery/orbital-telemetry-watch/audit.json new file mode 100644 index 0000000..99a189e --- /dev/null +++ b/gallery/orbital-telemetry-watch/audit.json @@ -0,0 +1,16 @@ +{ + "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": 4307.1, + "totalFrames": 480 +} diff --git a/gallery/orbital-telemetry-watch/brief.json b/gallery/orbital-telemetry-watch/brief.json new file mode 100644 index 0000000..e766fe7 --- /dev/null +++ b/gallery/orbital-telemetry-watch/brief.json @@ -0,0 +1,12 @@ +{ + "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 new file mode 100644 index 0000000..f646c04 --- /dev/null +++ b/gallery/orbital-telemetry-watch/index.html @@ -0,0 +1,120 @@ + + + + + + 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 new file mode 100644 index 0000000..bf71bb8 --- /dev/null +++ b/gallery/orbital-telemetry-watch/legible.json @@ -0,0 +1,20 @@ +{ + "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 new file mode 100644 index 0000000..5a4ee87 Binary files /dev/null and b/gallery/orbital-telemetry-watch/loop.gif differ diff --git a/gallery/orbital-telemetry-watch/loop.webp b/gallery/orbital-telemetry-watch/loop.webp new file mode 100644 index 0000000..890cd26 Binary files /dev/null and b/gallery/orbital-telemetry-watch/loop.webp differ diff --git a/gallery/orbital-telemetry-watch/poster.png b/gallery/orbital-telemetry-watch/poster.png new file mode 100644 index 0000000..a9d087b Binary files /dev/null and b/gallery/orbital-telemetry-watch/poster.png differ diff --git a/gallery/orbital-telemetry-watch/seam.json b/gallery/orbital-telemetry-watch/seam.json new file mode 100644 index 0000000..6a6817b --- /dev/null +++ b/gallery/orbital-telemetry-watch/seam.json @@ -0,0 +1,495 @@ +{ + "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 new file mode 100644 index 0000000..2947ff7 Binary files /dev/null and b/gallery/orbital-telemetry-watch/sheet.png differ diff --git a/gallery/orbital-telemetry-watch/sketch.js b/gallery/orbital-telemetry-watch/sketch.js new file mode 100644 index 0000000..734a93a --- /dev/null +++ b/gallery/orbital-telemetry-watch/sketch.js @@ -0,0 +1,116 @@ +// 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 new file mode 100644 index 0000000..3fe0e95 --- /dev/null +++ b/gallery/orbital-telemetry-watch/sources.json @@ -0,0 +1,6 @@ +{ + "pass": true, + "checked": 0, + "citations": [], + "reasons": [] +} diff --git a/tool/scripts/build-gallery.js b/tool/scripts/build-gallery.js index a40d3fb..b9c65bc 100644 --- a/tool/scripts/build-gallery.js +++ b/tool/scripts/build-gallery.js @@ -259,15 +259,15 @@ const GALLERY_ITEMS = [ mode: "ambient", style: "kinetic-type", palette: "editorial", - useCase: "60 fps social announcement card, talk title slide, and release launch banner", - prompt: "Silky 60 fps editorial kinetic typography wave repeating PHASE 0→1.", + useCase: "60 fps social release announcement card, talk title slide, and launch banner", + prompt: "Silky 60 fps 4-second editorial kinetic typography wave repeating PHASE 0→1.", brief: { title: "Editorial Kinetic Wave", - prompt: "Silky 60 fps editorial kinetic typography wave repeating PHASE 0→1.", + prompt: "Silky 60 fps 4-second editorial kinetic typography wave repeating PHASE 0→1.", mode: "ambient", style: "kinetic-type", palette: "editorial", - seconds: 2, + seconds: 4, fps: 60, width: 280, height: 280, @@ -294,6 +294,107 @@ const GALLERY_ITEMS = [ height: 280, seed: 83 } + }, + + // === Longer 60 fps Multi-Act Storytelling & Audio/Telemetry Loops === + { + id: "git-pr-guardrails", + title: "Protected Git Workflow (8s @ 60fps)", + mode: "showcase", + scene: "flow", + palette: "studio-dark", + customSketch: true, + useCase: "GitHub workflow & CI/CD guardrails explainer showing branch protection, evals, and PR merges", + prompt: "8-second 60fps showcase animating feat/* -> PR + CI evals -> protected dev & main.", + 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" } + ] + } + }, + { + id: "json-to-gif-transform", + title: "60fps Video Transformer (8s @ 60fps)", + mode: "showcase", + scene: "transform", + palette: "abyss", + customSketch: true, + useCase: "Compiler, build pipeline, or media-processing explainer showing specs transforming into 60fps video", + prompt: "8-second 60fps transform showcase turning brief.json into 480 audited frames and MP4/WebP.", + 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" } + ] + } + }, + { + id: "live-audio-spectrum", + title: "120 BPM Harmonic Spectrum (6s @ 60fps)", + mode: "ambient", + style: "kinetic-audio", + palette: "ember", + customSketch: true, + useCase: "Music release loop, podcast player, and WebAudio/VST visualizer synced to 120 BPM (3 bars)", + prompt: "6-second 60fps 120 BPM harmonic spectrum visualizer with macro phrase swell and oscilloscope wave.", + brief: { + 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 + } + }, + { + id: "orbital-telemetry-watch", + title: "Orbital Radar Telemetry (8s @ 60fps)", + mode: "ambient", + style: "blueprint-hud", + palette: "blueprint", + customSketch: true, + useCase: "Satellite tracker, aerospace HUD, and DevOps live observability dashboard splash", + prompt: "8-second 60fps blueprint radar HUD tracking 3 satellites on tilted elliptical orbits.", + brief: { + 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 + } } ]; @@ -301,22 +402,23 @@ async function buildItem(item, caps) { const dir = path.join(REPO_ROOT, "gallery", item.id); fs.mkdirSync(dir, { recursive: true }); - const templatePath = - item.mode === "showcase" - ? path.join(REPO_ROOT, "skills", "scenes", item.scene, "template.js") - : path.join(REPO_ROOT, "skills", "styles", item.style, "template.js"); - - let sketchCode = fs.readFileSync(templatePath, "utf8"); + const sketchPath = path.join(dir, "sketch.js"); const spec = item.mode === "showcase" ? item.showcase : item.brief; - sketchCode = sketchCode - .replace(/seconds:\s*\d+/, `seconds: ${spec.seconds}`) - .replace(/fps:\s*\d+/, `fps: ${spec.fps}`) - .replace(/width:\s*\d+/, `width: ${spec.width}`) - .replace(/height:\s*\d+/, `height: ${spec.height}`) - .replace(/palette:\s*"[^"]+"/, `palette: "${item.palette}"`); + if (!item.customSketch) { + const templatePath = + item.mode === "showcase" + ? path.join(REPO_ROOT, "skills", "scenes", item.scene, "template.js") + : path.join(REPO_ROOT, "skills", "styles", item.style, "template.js"); - const sketchPath = path.join(dir, "sketch.js"); - fs.writeFileSync(sketchPath, sketchCode, "utf8"); + let sketchCode = fs.readFileSync(templatePath, "utf8"); + sketchCode = sketchCode + .replace(/seconds:\s*\d+/, `seconds: ${spec.seconds}`) + .replace(/fps:\s*\d+/, `fps: ${spec.fps}`) + .replace(/width:\s*\d+/, `width: ${spec.width}`) + .replace(/height:\s*\d+/, `height: ${spec.height}`) + .replace(/palette:\s*"[^"]+"/, `palette: "${item.palette}"`); + fs.writeFileSync(sketchPath, sketchCode, "utf8"); + } if (item.mode === "showcase") { fs.writeFileSync(path.join(dir, "showcase.json"), JSON.stringify(item.showcase, null, 2) + "\n", "utf8");