- This repo is a static WebGL gradient demo with four standalone HTML entry points.
- All four pages now share the same top navigation and debug/admin controls.
- There is no build process; files are edited and served directly.
index.html: demo variant 1index-2.html: demo variant 2index-3.html: demo variant 3index-4.html: demo variant 4Gradient.js: renderer, animation loop, uniforms, and runtime control APIcontrols.js: shared navigation and debug/admin control panelcontrols.css: overlay stylesREADME.md: usage and feature overviewAGENTS.md: maintenance instructionsHANDOVER.md: current-state handoff
- Added a shared on-page debug/admin overlay to all four demo pages.
- Added top navigation between
index.html,index-2.html,index-3.html, andindex-4.html. - Added live controls for:
- amplitude
- wireframe
- global noise frequency X/Y
- global noise speed
- vertex noise frequency X/Y
- vertex noise speed
- vertex noise flow
- shadow power
- darken-top toggle
- all four colors
- Added play/pause, reset, and panel collapse controls.
- Extended
Gradient.jswith explicit runtime setters plusgetState()andapplyState(). - Fixed runtime mesh wireframe syncing so the overlay can toggle it directly.
- Added repo-local documentation:
README.mdAGENTS.mdHANDOVER.md
- HTML entry pages define the page shell and page-specific CSS color presets.
Gradient.jsis the source of truth for renderer behavior and uniform updates.controls.jsis the source of truth for the admin overlay and cross-page navigation.controls.cssis the source of truth for overlay presentation.
controls.jswaits until the gradient instance has initialized its mesh and uniforms before mounting controls.- Reset restores the initial runtime state captured after the page is ready.
- The overlay does not persist state between reloads.
?debug=webglstill enables console-only debug logging in addition to the on-page controls.
node --check Gradient.jsnode --check controls.js
- I did not run an interactive browser pass from this environment.
- The page
<title>values do not currently align cleanly with the file names:index-2.htmltitle isStripe Gradient 3index-3.htmltitle isStripe Gradient 2
- There is no persistence or export/import for control panel state.
- Open all three HTML pages in a browser and confirm overlay layout, mobile behavior, and control responsiveness.
- Verify the new
index-4.htmlcolor preset alongside the existing demos. - Normalize page titles if the file-name mismatch matters for presentation.
- Add state persistence only if the user wants presets or sharable configurations.