- Static demo repo for a Stripe-style WebGL gradient animation.
- The project consists of three standalone HTML demo pages plus shared JavaScript and CSS.
- There is no framework, bundler, or build pipeline in this directory.
index.htmlindex-2.htmlindex-3.htmlGradient.jscontrols.jscontrols.cssREADME.mdHANDOVER.mdAGENTS.md
- Edit the HTML files directly for page bootstrapping, demo wiring, and page-specific color presets.
- Edit
Gradient.jsdirectly for renderer behavior and runtime control methods. - Edit
controls.jsdirectly for the shared debug/admin UI and page navigation. - Edit
controls.cssdirectly for overlay layout and styling.
- Treat this as a static multi-page demo, not a SPA.
- Keep the three demo pages self-contained and directly openable in a browser.
- Reuse the shared
controls.jsandcontrols.cssfiles instead of duplicating UI markup per page. - When adding new runtime controls, expose them through stable methods on
Gradientrather than mutating deep uniforms from page scripts. - Preserve the existing full-screen canvas behavior unless the task explicitly changes layout.
- Keep control panel changes responsive; the demos should remain usable on desktop and mobile widths.
- Do not introduce a build step or package-management dependency unless the user explicitly asks for one.
- Update
README.mdwhen the public usage or controls change. - Update
HANDOVER.mdwhen renderer behavior, shared controls, file structure, or operational assumptions change. - Keep
AGENTS.mdfocused on maintenance rules, not a duplicate of the full handover.
- Run
node --check Gradient.jsafter editing JavaScript in that file. - Run
node --check controls.jsafter editing JavaScript in that file. - Manually verify the affected HTML pages in a browser when UI behavior changes.
?debug=webglenables console-side debug logging fromGradient.js.- The on-page debug/admin panel is mounted by
controls.json all three demo pages. - The HTML page titles are currently inconsistent with the file names:
index-2.htmlusesStripe Gradient 3index-3.htmlusesStripe Gradient 2