@autoaiai/aicut 0.1.7 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MANUAL.md +94 -84
- package/package.json +1 -1
- package/product.json +2 -1
- package/skills/aicut/SKILL.md +4 -4
- package/skills/aicut/references/commands.md +15 -15
- package/skills/aicut/references/film-format.md +1 -1
- package/skills/aicut/references/recipes.md +4 -4
- package/skills/aicut/references/troubleshooting.md +2 -2
- package/skills/aicut-motion/SKILL.md +75 -9
- package/skills/aicut-motion/THIRD_PARTY_NOTICES.md +14 -0
- package/skills/aicut-motion/assets/atlas/lib/harness.js +116 -0
- package/skills/aicut-motion/assets/atlas/lib/sound.js +274 -0
- package/skills/aicut-motion/assets/atlas/styles/001-flat-vector-science/code.js +937 -0
- package/skills/aicut-motion/assets/atlas/styles/001-flat-vector-science/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/001-flat-vector-science/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/002-watercolor-wash/code.js +909 -0
- package/skills/aicut-motion/assets/atlas/styles/002-watercolor-wash/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/002-watercolor-wash/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/003-shadow-puppet-theatre/code.js +881 -0
- package/skills/aicut-motion/assets/atlas/styles/003-shadow-puppet-theatre/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/003-shadow-puppet-theatre/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/004-whiteboard-explainer/code.js +897 -0
- package/skills/aicut-motion/assets/atlas/styles/004-whiteboard-explainer/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/004-whiteboard-explainer/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/005-psychedelic-poster/code.js +814 -0
- package/skills/aicut-motion/assets/atlas/styles/005-psychedelic-poster/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/005-psychedelic-poster/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/006-tech-glow-explainer/code.js +990 -0
- package/skills/aicut-motion/assets/atlas/styles/006-tech-glow-explainer/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/006-tech-glow-explainer/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/007-papercraft-models/code.js +994 -0
- package/skills/aicut-motion/assets/atlas/styles/007-papercraft-models/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/007-papercraft-models/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/008-1940s-film-noir/code.js +792 -0
- package/skills/aicut-motion/assets/atlas/styles/008-1940s-film-noir/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/008-1940s-film-noir/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/009-manim-style-math/code.js +840 -0
- package/skills/aicut-motion/assets/atlas/styles/009-manim-style-math/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/009-manim-style-math/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/010-illuminated-manuscript/code.js +1126 -0
- package/skills/aicut-motion/assets/atlas/styles/010-illuminated-manuscript/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/010-illuminated-manuscript/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/011-editorial-essay-collage/code.js +854 -0
- package/skills/aicut-motion/assets/atlas/styles/011-editorial-essay-collage/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/011-editorial-essay-collage/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/012-bioluminescent-deep-sea/code.js +1124 -0
- package/skills/aicut-motion/assets/atlas/styles/012-bioluminescent-deep-sea/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/012-bioluminescent-deep-sea/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/013-product-launch-reveal/code.js +728 -0
- package/skills/aicut-motion/assets/atlas/styles/013-product-launch-reveal/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/013-product-launch-reveal/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/014-halftone-pop-panel/code.js +664 -0
- package/skills/aicut-motion/assets/atlas/styles/014-halftone-pop-panel/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/014-halftone-pop-panel/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/015-isometric-pastel/code.js +991 -0
- package/skills/aicut-motion/assets/atlas/styles/015-isometric-pastel/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/015-isometric-pastel/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/016-oscilloscope-vector-art/code.js +801 -0
- package/skills/aicut-motion/assets/atlas/styles/016-oscilloscope-vector-art/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/016-oscilloscope-vector-art/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/017-risograph-zine/code.js +692 -0
- package/skills/aicut-motion/assets/atlas/styles/017-risograph-zine/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/017-risograph-zine/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/018-claymation-set/code.js +756 -0
- package/skills/aicut-motion/assets/atlas/styles/018-claymation-set/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/018-claymation-set/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/019-neon-sign-at-night/code.js +922 -0
- package/skills/aicut-motion/assets/atlas/styles/019-neon-sign-at-night/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/019-neon-sign-at-night/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/020-kawaii-anime/code.js +852 -0
- package/skills/aicut-motion/assets/atlas/styles/020-kawaii-anime/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/020-kawaii-anime/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/021-ukiyo-e-woodblock/code.js +724 -0
- package/skills/aicut-motion/assets/atlas/styles/021-ukiyo-e-woodblock/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/021-ukiyo-e-woodblock/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/022-16-bit-pixel-odyssey/code.js +793 -0
- package/skills/aicut-motion/assets/atlas/styles/022-16-bit-pixel-odyssey/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/022-16-bit-pixel-odyssey/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/023-chalkboard-lesson/code.js +846 -0
- package/skills/aicut-motion/assets/atlas/styles/023-chalkboard-lesson/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/023-chalkboard-lesson/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/024-cut-paper-diorama/code.js +1008 -0
- package/skills/aicut-motion/assets/atlas/styles/024-cut-paper-diorama/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/024-cut-paper-diorama/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/025-cathedral-glass/code.js +680 -0
- package/skills/aicut-motion/assets/atlas/styles/025-cathedral-glass/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/025-cathedral-glass/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/026-editorial-chart/code.js +633 -0
- package/skills/aicut-motion/assets/atlas/styles/026-editorial-chart/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/026-editorial-chart/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/027-synthwave-outrun/code.js +757 -0
- package/skills/aicut-motion/assets/atlas/styles/027-synthwave-outrun/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/027-synthwave-outrun/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/028-origami-studio/code.js +828 -0
- package/skills/aicut-motion/assets/atlas/styles/028-origami-studio/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/028-origami-studio/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/029-linocut-relief-print/code.js +697 -0
- package/skills/aicut-motion/assets/atlas/styles/029-linocut-relief-print/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/029-linocut-relief-print/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/030-holographic-foil-card/code.js +687 -0
- package/skills/aicut-motion/assets/atlas/styles/030-holographic-foil-card/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/030-holographic-foil-card/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/031-voxel-diorama/code.js +727 -0
- package/skills/aicut-motion/assets/atlas/styles/031-voxel-diorama/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/031-voxel-diorama/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/032-sumi-e-ink-wash/code.js +903 -0
- package/skills/aicut-motion/assets/atlas/styles/032-sumi-e-ink-wash/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/032-sumi-e-ink-wash/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/033-etch-a-sketch-toy/code.js +662 -0
- package/skills/aicut-motion/assets/atlas/styles/033-etch-a-sketch-toy/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/033-etch-a-sketch-toy/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/034-cosmic-star-chart/code.js +951 -0
- package/skills/aicut-motion/assets/atlas/styles/034-cosmic-star-chart/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/034-cosmic-star-chart/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/035-punk-zine-collage/code.js +759 -0
- package/skills/aicut-motion/assets/atlas/styles/035-punk-zine-collage/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/035-punk-zine-collage/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/036-thermal-camera/code.js +738 -0
- package/skills/aicut-motion/assets/atlas/styles/036-thermal-camera/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/036-thermal-camera/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/037-engineering-blueprint/code.js +793 -0
- package/skills/aicut-motion/assets/atlas/styles/037-engineering-blueprint/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/037-engineering-blueprint/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/038-impasto-night/code.js +673 -0
- package/skills/aicut-motion/assets/atlas/styles/038-impasto-night/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/038-impasto-night/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/039-win95-desktop/code.js +907 -0
- package/skills/aicut-motion/assets/atlas/styles/039-win95-desktop/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/039-win95-desktop/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/040-low-poly-faceted/code.js +833 -0
- package/skills/aicut-motion/assets/atlas/styles/040-low-poly-faceted/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/040-low-poly-faceted/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/041-manga-page/code.js +845 -0
- package/skills/aicut-motion/assets/atlas/styles/041-manga-page/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/041-manga-page/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/042-wood-type-letterpress/code.js +496 -0
- package/skills/aicut-motion/assets/atlas/styles/042-wood-type-letterpress/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/042-wood-type-letterpress/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/043-light-painting/code.js +635 -0
- package/skills/aicut-motion/assets/atlas/styles/043-light-painting/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/043-light-painting/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/044-felt-patchwork/code.js +799 -0
- package/skills/aicut-motion/assets/atlas/styles/044-felt-patchwork/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/044-felt-patchwork/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/045-phosphor-terminal/code.js +547 -0
- package/skills/aicut-motion/assets/atlas/styles/045-phosphor-terminal/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/045-phosphor-terminal/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/046-glassmorphism-ui/code.js +592 -0
- package/skills/aicut-motion/assets/atlas/styles/046-glassmorphism-ui/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/046-glassmorphism-ui/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/047-tarot-card/code.js +768 -0
- package/skills/aicut-motion/assets/atlas/styles/047-tarot-card/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/047-tarot-card/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/048-transit-map/code.js +666 -0
- package/skills/aicut-motion/assets/atlas/styles/048-transit-map/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/048-transit-map/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/049-gouache-travel-poster/code.js +559 -0
- package/skills/aicut-motion/assets/atlas/styles/049-gouache-travel-poster/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/049-gouache-travel-poster/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/050-napkin-sketch/code.js +943 -0
- package/skills/aicut-motion/assets/atlas/styles/050-napkin-sketch/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/050-napkin-sketch/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/051-art-deco-foil/code.js +606 -0
- package/skills/aicut-motion/assets/atlas/styles/051-art-deco-foil/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/051-art-deco-foil/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/052-radiograph-on-lightbox/code.js +730 -0
- package/skills/aicut-motion/assets/atlas/styles/052-radiograph-on-lightbox/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/052-radiograph-on-lightbox/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/053-vaporwave/code.js +782 -0
- package/skills/aicut-motion/assets/atlas/styles/053-vaporwave/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/053-vaporwave/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/054-ebru-paper-marbling/code.js +504 -0
- package/skills/aicut-motion/assets/atlas/styles/054-ebru-paper-marbling/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/054-ebru-paper-marbling/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/055-isotype-pictograms/code.js +517 -0
- package/skills/aicut-motion/assets/atlas/styles/055-isotype-pictograms/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/055-isotype-pictograms/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/056-soft-3d-clay/code.js +713 -0
- package/skills/aicut-motion/assets/atlas/styles/056-soft-3d-clay/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/056-soft-3d-clay/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/057-cross-stitch-sampler/code.js +717 -0
- package/skills/aicut-motion/assets/atlas/styles/057-cross-stitch-sampler/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/057-cross-stitch-sampler/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/058-constructivist-propaganda/code.js +540 -0
- package/skills/aicut-motion/assets/atlas/styles/058-constructivist-propaganda/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/058-constructivist-propaganda/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/059-pocket-monochrome/code.js +524 -0
- package/skills/aicut-motion/assets/atlas/styles/059-pocket-monochrome/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/059-pocket-monochrome/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/060-botanical-plate/code.js +934 -0
- package/skills/aicut-motion/assets/atlas/styles/060-botanical-plate/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/060-botanical-plate/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/061-kinetic-type/code.js +690 -0
- package/skills/aicut-motion/assets/atlas/styles/061-kinetic-type/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/061-kinetic-type/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/062-byzantine-mosaic/code.js +612 -0
- package/skills/aicut-motion/assets/atlas/styles/062-byzantine-mosaic/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/062-byzantine-mosaic/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/063-y2k-liquid-chrome/code.js +666 -0
- package/skills/aicut-motion/assets/atlas/styles/063-y2k-liquid-chrome/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/063-y2k-liquid-chrome/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/064-sticky-note-wall/code.js +651 -0
- package/skills/aicut-motion/assets/atlas/styles/064-sticky-note-wall/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/064-sticky-note-wall/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/065-vintage-newsprint/code.js +656 -0
- package/skills/aicut-motion/assets/atlas/styles/065-vintage-newsprint/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/065-vintage-newsprint/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/066-hidden-line-wireframe/code.js +672 -0
- package/skills/aicut-motion/assets/atlas/styles/066-hidden-line-wireframe/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/066-hidden-line-wireframe/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/067-memphis-group/code.js +548 -0
- package/skills/aicut-motion/assets/atlas/styles/067-memphis-group/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/067-memphis-group/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/068-ballpoint-notebook/code.js +989 -0
- package/skills/aicut-motion/assets/atlas/styles/068-ballpoint-notebook/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/068-ballpoint-notebook/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/069-op-art-sphere/code.js +440 -0
- package/skills/aicut-motion/assets/atlas/styles/069-op-art-sphere/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/069-op-art-sphere/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/070-topographic-survey/code.js +895 -0
- package/skills/aicut-motion/assets/atlas/styles/070-topographic-survey/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/070-topographic-survey/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/071-pointillist-afternoon/code.js +563 -0
- package/skills/aicut-motion/assets/atlas/styles/071-pointillist-afternoon/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/071-pointillist-afternoon/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/072-vector-arcade-1980/code.js +627 -0
- package/skills/aicut-motion/assets/atlas/styles/072-vector-arcade-1980/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/072-vector-arcade-1980/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/073-patent-drawing/code.js +1096 -0
- package/skills/aicut-motion/assets/atlas/styles/073-patent-drawing/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/073-patent-drawing/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/074-bauhaus-poster/code.js +595 -0
- package/skills/aicut-motion/assets/atlas/styles/074-bauhaus-poster/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/074-bauhaus-poster/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/075-bitmap-paint-doodle/code.js +665 -0
- package/skills/aicut-motion/assets/atlas/styles/075-bitmap-paint-doodle/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/075-bitmap-paint-doodle/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/076-nail-thread-string-art/code.js +645 -0
- package/skills/aicut-motion/assets/atlas/styles/076-nail-thread-string-art/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/076-nail-thread-string-art/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/077-ridgeline/code.js +436 -0
- package/skills/aicut-motion/assets/atlas/styles/077-ridgeline/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/077-ridgeline/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/078-sketchbook-graphite/code.js +1237 -0
- package/skills/aicut-motion/assets/atlas/styles/078-sketchbook-graphite/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/078-sketchbook-graphite/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/079-teletext-page/code.js +622 -0
- package/skills/aicut-motion/assets/atlas/styles/079-teletext-page/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/079-teletext-page/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/080-silkscreen-grid/code.js +524 -0
- package/skills/aicut-motion/assets/atlas/styles/080-silkscreen-grid/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/080-silkscreen-grid/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/081-guilloch-security-print/code.js +689 -0
- package/skills/aicut-motion/assets/atlas/styles/081-guilloch-security-print/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/081-guilloch-security-print/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/082-ascii-demoscene/code.js +574 -0
- package/skills/aicut-motion/assets/atlas/styles/082-ascii-demoscene/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/082-ascii-demoscene/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/083-international-typographic-style/code.js +469 -0
- package/skills/aicut-motion/assets/atlas/styles/083-international-typographic-style/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/083-international-typographic-style/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/084-flow-field/code.js +531 -0
- package/skills/aicut-motion/assets/atlas/styles/084-flow-field/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/084-flow-field/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/085-macpaint-1984/code.js +675 -0
- package/skills/aicut-motion/assets/atlas/styles/085-macpaint-1984/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/085-macpaint-1984/style.json +13 -0
- package/skills/aicut-motion/assets/atlas/styles/086-multi-scale-truchet/code.js +609 -0
- package/skills/aicut-motion/assets/atlas/styles/086-multi-scale-truchet/poster.jpg +0 -0
- package/skills/aicut-motion/assets/atlas/styles/086-multi-scale-truchet/style.json +13 -0
- package/skills/aicut-motion/references/design-systems/README.md +1 -1
- package/skills/aicut-motion/references/motion-delivery.md +55 -0
- package/skills/aicut-motion/references/pages.md +1 -1
- package/skills/aicut-motion/references/style-index.json +690 -0
- package/skills/aicut-motion/references/style-research.md +73 -0
- package/skills/aicut-motion/references/style-selection.md +71 -0
- package/skills/aicut-motion/scripts/atlas-viewer.html +195 -0
- package/skills/aicut-motion/scripts/atlas.mjs +109 -0
- package/studio/client.mjs +3 -3
- package/studio/server/fetch-github.mjs +14 -3
- package/studio/server/server.mjs +71 -6
- package/studio/server/skill-summaries.mjs +60 -0
- package/studio/server/skills.mjs +121 -7
- package/studio/server/styles-store.mjs +235 -0
- package/studio/server/template-posters.mjs +2 -2
- package/studio/server/templates-page.mjs +93 -93
- package/studio/server/templates.mjs +32 -7
- package/studio/ui/dist/assets/ExportCenter-DasulhAv.js +1 -0
- package/studio/ui/dist/assets/SettingsModal-BZw0Hz2_.js +2 -0
- package/studio/ui/dist/assets/apple-touch-icon-ClxQ7j-O.png +0 -0
- package/studio/ui/dist/assets/es-C8XPZARI.js +1 -0
- package/studio/ui/dist/assets/favicon-Blwx8Trs.png +0 -0
- package/studio/ui/dist/assets/index-BjJVmBzB.js +1623 -0
- package/studio/ui/dist/assets/index-C3BfKZFO.css +1 -0
- package/studio/ui/dist/assets/ja-BeNkdaEj.js +1 -0
- package/studio/ui/dist/assets/ko-DcTVhdzK.js +1 -0
- package/studio/ui/dist/assets/zh-CN-Cg51ctbL.js +1 -0
- package/studio/ui/dist/index.html +4 -3
- package/studio/ui/dist/assets/ExportCenter-F-2vF-lQ.js +0 -1
- package/studio/ui/dist/assets/SettingsModal-BgVYguNu.js +0 -2
- package/studio/ui/dist/assets/es-BRUzvuoM.js +0 -1
- package/studio/ui/dist/assets/index-Bhg-9dA3.css +0 -1
- package/studio/ui/dist/assets/index-CWur1Iw9.js +0 -1625
- package/studio/ui/dist/assets/ja-Cth-uDcW.js +0 -1
- package/studio/ui/dist/assets/ko-upvw591D.js +0 -1
- package/studio/ui/dist/assets/zh-CN-BCfJFazB.js +0 -1
|
@@ -0,0 +1,990 @@
|
|
|
1
|
+
// Tech Glow Explainer: the polished AI / tech YouTube motion-graphics look. Deep navy-to-indigo space, drifting
|
|
2
|
+
// electric glows, a perspective floor grid, gradient-stroked icon tiles, node diagrams with light pulses running
|
|
3
|
+
// along the connectors, dark cards with thin neon borders, gradient headline type and a bloom pass on everything bright.
|
|
4
|
+
{
|
|
5
|
+
const E = H.ease, cl = H.clamp, lerp = H.lerp;
|
|
6
|
+
const seg = (a, b, t) => cl((t - a) / (b - a));
|
|
7
|
+
const eo = (a, b, t) => E.out(seg(a, b, t));
|
|
8
|
+
const eio = (a, b, t) => E.inOut(seg(a, b, t));
|
|
9
|
+
const ebk = (a, b, t) => (t <= a ? 0 : t >= b ? 1 : E.back(seg(a, b, t)));
|
|
10
|
+
const fract = (x) => x - Math.floor(x);
|
|
11
|
+
const rgb = (c, a) => H.rgba(c, a);
|
|
12
|
+
const HEAD = '"Space Grotesk"', UI = '"Inter"';
|
|
13
|
+
const F = (w, s, fam) => `${w} ${s}px ${fam || HEAD}`;
|
|
14
|
+
const C = {
|
|
15
|
+
cyan: '#3fe3ff', blue: '#3d7bff', violet: '#8f5bff', magenta: '#e04dff', indigo: '#4b3bff',
|
|
16
|
+
red: '#ff4f7a', green: '#3cf0b4', white: '#eef2ff', muted: '#9aa3d8',
|
|
17
|
+
};
|
|
18
|
+
const GRAD_HEAD = ['#ffffff', '#c8f4ff', '#7fdcff', '#9a78ff'];
|
|
19
|
+
const GRAD_NUM = ['#7ff0ff', '#5d9bff', '#a77bff'];
|
|
20
|
+
const rr = (c, x, y, w, h, r) => { c.beginPath(); c.roundRect(x, y, w, h, r); };
|
|
21
|
+
const bump = (t, t0, k = 6) => (t < t0 ? 0 : Math.exp(-(t - t0) * k)); // decaying flash after t0
|
|
22
|
+
|
|
23
|
+
// ---------------------------------------------------------------- icons (line art in a -1..1 box scaled by u)
|
|
24
|
+
const dot = (c, x, y, r) => { c.moveTo(x + r, y); c.arc(x, y, r, 0, Math.PI * 2); };
|
|
25
|
+
const ICONS = {
|
|
26
|
+
brain(c, u) {
|
|
27
|
+
for (const sx of [-1, 1]) {
|
|
28
|
+
const X = (v) => v * u * sx, Y = (v) => v * u;
|
|
29
|
+
c.moveTo(X(0.04), Y(-0.78));
|
|
30
|
+
c.bezierCurveTo(X(0.3), Y(-0.98), X(0.64), Y(-0.84), X(0.64), Y(-0.52));
|
|
31
|
+
c.bezierCurveTo(X(0.95), Y(-0.42), X(0.98), Y(-0.02), X(0.74), Y(0.08));
|
|
32
|
+
c.bezierCurveTo(X(0.95), Y(0.32), X(0.82), Y(0.7), X(0.5), Y(0.68));
|
|
33
|
+
c.bezierCurveTo(X(0.4), Y(0.92), X(0.12), Y(0.92), X(0.04), Y(0.74));
|
|
34
|
+
c.lineTo(X(0.04), Y(-0.78));
|
|
35
|
+
c.moveTo(X(0.64), Y(-0.52)); c.quadraticCurveTo(X(0.46), Y(-0.5), X(0.36), Y(-0.34));
|
|
36
|
+
c.moveTo(X(0.74), Y(0.08)); c.quadraticCurveTo(X(0.52), Y(0.1), X(0.42), Y(-0.08));
|
|
37
|
+
c.moveTo(X(0.5), Y(0.68)); c.quadraticCurveTo(X(0.5), Y(0.42), X(0.3), Y(0.34));
|
|
38
|
+
c.moveTo(X(0.04), Y(-0.16)); c.quadraticCurveTo(X(0.22), Y(-0.18), X(0.26), Y(0.02));
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
chip(c, u) {
|
|
42
|
+
c.roundRect(-0.58 * u, -0.58 * u, 1.16 * u, 1.16 * u, 0.16 * u);
|
|
43
|
+
c.roundRect(-0.26 * u, -0.26 * u, 0.52 * u, 0.52 * u, 0.06 * u);
|
|
44
|
+
for (const k of [-0.3, 0, 0.3]) {
|
|
45
|
+
c.moveTo(k * u, -0.58 * u); c.lineTo(k * u, -0.86 * u); c.moveTo(k * u, 0.58 * u); c.lineTo(k * u, 0.86 * u);
|
|
46
|
+
c.moveTo(-0.58 * u, k * u); c.lineTo(-0.86 * u, k * u); c.moveTo(0.58 * u, k * u); c.lineTo(0.86 * u, k * u);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
database(c, u) {
|
|
50
|
+
c.moveTo(0.64 * u, -0.56 * u); c.ellipse(0, -0.56 * u, 0.64 * u, 0.2 * u, 0, 0, Math.PI * 2);
|
|
51
|
+
c.moveTo(-0.64 * u, -0.56 * u); c.lineTo(-0.64 * u, 0.56 * u); c.moveTo(0.64 * u, -0.56 * u); c.lineTo(0.64 * u, 0.56 * u);
|
|
52
|
+
c.moveTo(0.64 * u, 0.56 * u); c.ellipse(0, 0.56 * u, 0.64 * u, 0.2 * u, 0, 0, Math.PI);
|
|
53
|
+
c.moveTo(0.64 * u, 0); c.ellipse(0, 0, 0.64 * u, 0.2 * u, 0, 0, Math.PI);
|
|
54
|
+
},
|
|
55
|
+
chat(c, u) {
|
|
56
|
+
c.moveTo(-0.5 * u, -0.66 * u); c.lineTo(0.5 * u, -0.66 * u); c.quadraticCurveTo(0.82 * u, -0.66 * u, 0.82 * u, -0.34 * u);
|
|
57
|
+
c.lineTo(0.82 * u, 0.12 * u); c.quadraticCurveTo(0.82 * u, 0.44 * u, 0.5 * u, 0.44 * u); c.lineTo(-0.1 * u, 0.44 * u);
|
|
58
|
+
c.lineTo(-0.48 * u, 0.8 * u); c.lineTo(-0.44 * u, 0.44 * u); c.quadraticCurveTo(-0.82 * u, 0.44 * u, -0.82 * u, 0.12 * u);
|
|
59
|
+
c.lineTo(-0.82 * u, -0.34 * u); c.quadraticCurveTo(-0.82 * u, -0.66 * u, -0.5 * u, -0.66 * u);
|
|
60
|
+
for (const x of [-0.36, 0, 0.36]) dot(c, x * u, -0.11 * u, 0.05 * u);
|
|
61
|
+
},
|
|
62
|
+
sparkle(c, u) {
|
|
63
|
+
const star = (x, y, r) => { c.moveTo(x, y - r); c.quadraticCurveTo(x, y, x + r, y); c.quadraticCurveTo(x, y, x, y + r); c.quadraticCurveTo(x, y, x - r, y); c.quadraticCurveTo(x, y, x, y - r); };
|
|
64
|
+
star(-0.14 * u, 0.12 * u, 0.72 * u); star(0.56 * u, -0.56 * u, 0.26 * u);
|
|
65
|
+
},
|
|
66
|
+
eye(c, u) {
|
|
67
|
+
c.moveTo(-0.88 * u, 0); c.quadraticCurveTo(0, -0.84 * u, 0.88 * u, 0); c.quadraticCurveTo(0, 0.84 * u, -0.88 * u, 0);
|
|
68
|
+
dot(c, 0, 0, 0.3 * u); dot(c, 0, 0, 0.07 * u);
|
|
69
|
+
},
|
|
70
|
+
check(c, u) { c.moveTo(-0.58 * u, 0.02 * u); c.lineTo(-0.16 * u, 0.44 * u); c.lineTo(0.62 * u, -0.42 * u); },
|
|
71
|
+
cross(c, u) { c.moveTo(-0.45 * u, -0.45 * u); c.lineTo(0.45 * u, 0.45 * u); c.moveTo(0.45 * u, -0.45 * u); c.lineTo(-0.45 * u, 0.45 * u); },
|
|
72
|
+
cat(c, u) {
|
|
73
|
+
c.moveTo(-0.6 * u, -0.08 * u); c.lineTo(-0.62 * u, -0.78 * u); c.lineTo(-0.24 * u, -0.48 * u);
|
|
74
|
+
c.quadraticCurveTo(0, -0.56 * u, 0.24 * u, -0.48 * u); c.lineTo(0.62 * u, -0.78 * u); c.lineTo(0.6 * u, -0.08 * u);
|
|
75
|
+
c.bezierCurveTo(0.62 * u, 0.52 * u, 0.3 * u, 0.72 * u, 0, 0.72 * u); c.bezierCurveTo(-0.3 * u, 0.72 * u, -0.62 * u, 0.52 * u, -0.6 * u, -0.08 * u);
|
|
76
|
+
dot(c, -0.25 * u, 0.02 * u, 0.06 * u); dot(c, 0.25 * u, 0.02 * u, 0.06 * u);
|
|
77
|
+
c.moveTo(-0.08 * u, 0.22 * u); c.lineTo(0.08 * u, 0.22 * u); c.lineTo(0, 0.32 * u); c.closePath();
|
|
78
|
+
for (const s of [-1, 1]) { c.moveTo(s * 0.36 * u, 0.28 * u); c.lineTo(s * 0.86 * u, 0.2 * u); c.moveTo(s * 0.36 * u, 0.38 * u); c.lineTo(s * 0.84 * u, 0.46 * u); }
|
|
79
|
+
},
|
|
80
|
+
dog(c, u) {
|
|
81
|
+
c.moveTo(0, -0.6 * u); c.bezierCurveTo(0.46 * u, -0.6 * u, 0.54 * u, -0.2 * u, 0.5 * u, 0.2 * u);
|
|
82
|
+
c.bezierCurveTo(0.46 * u, 0.6 * u, 0.2 * u, 0.76 * u, 0, 0.76 * u); c.bezierCurveTo(-0.2 * u, 0.76 * u, -0.46 * u, 0.6 * u, -0.5 * u, 0.2 * u);
|
|
83
|
+
c.bezierCurveTo(-0.54 * u, -0.2 * u, -0.46 * u, -0.6 * u, 0, -0.6 * u);
|
|
84
|
+
for (const s of [-1, 1]) { c.moveTo(s * 0.38 * u, -0.5 * u); c.bezierCurveTo(s * 0.86 * u, -0.56 * u, s * 0.98 * u, 0, s * 0.76 * u, 0.32 * u); c.bezierCurveTo(s * 0.6 * u, 0.36 * u, s * 0.52 * u, 0.1 * u, s * 0.5 * u, -0.1 * u); }
|
|
85
|
+
dot(c, -0.2 * u, -0.06 * u, 0.06 * u); dot(c, 0.2 * u, -0.06 * u, 0.06 * u);
|
|
86
|
+
c.moveTo(0.12 * u, 0.3 * u); c.ellipse(0, 0.3 * u, 0.12 * u, 0.08 * u, 0, 0, Math.PI * 2);
|
|
87
|
+
c.moveTo(0, 0.38 * u); c.quadraticCurveTo(-0.04 * u, 0.52 * u, -0.16 * u, 0.5 * u); c.moveTo(0, 0.38 * u); c.quadraticCurveTo(0.04 * u, 0.52 * u, 0.16 * u, 0.5 * u);
|
|
88
|
+
},
|
|
89
|
+
chart(c, u) {
|
|
90
|
+
c.moveTo(-0.76 * u, -0.72 * u); c.lineTo(-0.76 * u, 0.7 * u); c.lineTo(0.8 * u, 0.7 * u);
|
|
91
|
+
c.moveTo(-0.52 * u, 0.36 * u); c.lineTo(-0.18 * u, 0.02 * u); c.lineTo(0.1 * u, 0.2 * u); c.lineTo(0.58 * u, -0.42 * u);
|
|
92
|
+
c.moveTo(0.3 * u, -0.44 * u); c.lineTo(0.6 * u, -0.44 * u); c.lineTo(0.6 * u, -0.14 * u);
|
|
93
|
+
},
|
|
94
|
+
loop(c, u) {
|
|
95
|
+
c.moveTo(0.62 * u, -0.1 * u); c.arc(0, 0, 0.62 * u, -0.16, -2.6, true);
|
|
96
|
+
c.moveTo(-0.62 * u, 0.1 * u); c.arc(0, 0, 0.62 * u, Math.PI - 0.16, Math.PI - 2.6, true);
|
|
97
|
+
c.moveTo(0.36 * u, -0.22 * u); c.lineTo(0.62 * u, -0.08 * u); c.lineTo(0.76 * u, -0.36 * u);
|
|
98
|
+
c.moveTo(-0.36 * u, 0.22 * u); c.lineTo(-0.62 * u, 0.08 * u); c.lineTo(-0.76 * u, 0.36 * u);
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// ---------------------------------------------------------------- background: gradient space, drifting glows, perspective grid, particles
|
|
103
|
+
const GLOWS = [
|
|
104
|
+
{ c: C.blue, x: 0.16, y: 0.24, r: 520, a: 0.24 },
|
|
105
|
+
{ c: C.violet, x: 0.82, y: 0.18, r: 560, a: 0.3 },
|
|
106
|
+
{ c: C.cyan, x: 0.6, y: 0.95, r: 440, a: 0.17 },
|
|
107
|
+
{ c: C.magenta, x: 1.0, y: 0.72, r: 380, a: 0.17 },
|
|
108
|
+
{ c: C.indigo, x: 0.42, y: 0.62, r: 560, a: 0.12 },
|
|
109
|
+
];
|
|
110
|
+
const PARTS = (() => { const r = H.rng(77); return Array.from({ length: 90 }, () => ({ x: r(), y: r(), s: r.range(0.6, 2.1), sp: r.range(0.004, 0.018), ph: r() * 6.28, c: r.pick([C.cyan, C.violet, '#ffffff', C.blue]), z: r.range(0.3, 1) })); })();
|
|
111
|
+
|
|
112
|
+
function background(ctx, W, Hh, t, camX = 0, lvl = 1) {
|
|
113
|
+
const g = ctx.createLinearGradient(0, 0, W * 0.5, Hh);
|
|
114
|
+
g.addColorStop(0, '#03041a'); g.addColorStop(0.55, '#080a2d'); g.addColorStop(1, '#120b3c');
|
|
115
|
+
ctx.fillStyle = g; ctx.fillRect(0, 0, W, Hh);
|
|
116
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter';
|
|
117
|
+
GLOWS.forEach((b, i) => {
|
|
118
|
+
const x = (b.x + 0.05 * Math.sin(t * 0.21 + i * 1.9)) * W - camX * 0.1, y = (b.y + 0.06 * Math.cos(t * 0.17 + i * 2.7)) * Hh;
|
|
119
|
+
const r = b.r * (1 + 0.07 * Math.sin(t * 0.3 + i)), rg = ctx.createRadialGradient(x, y, 0, x, y, r);
|
|
120
|
+
rg.addColorStop(0, rgb(b.c, b.a * lvl)); rg.addColorStop(0.4, rgb(b.c, b.a * 0.38 * lvl)); rg.addColorStop(1, rgb(b.c, 0));
|
|
121
|
+
ctx.fillStyle = rg; ctx.fillRect(x - r, y - r, 2 * r, 2 * r);
|
|
122
|
+
});
|
|
123
|
+
ctx.restore();
|
|
124
|
+
// faint dot field up top (fades upward)
|
|
125
|
+
ctx.save();
|
|
126
|
+
const ox = ((-camX * 0.3) % 40 + 40) % 40;
|
|
127
|
+
for (let y = 20; y < Hh * 0.56; y += 40) {
|
|
128
|
+
const a = 0.09 * lvl * (y / (Hh * 0.56));
|
|
129
|
+
ctx.fillStyle = `rgba(150,170,255,${a})`;
|
|
130
|
+
for (let x = ox; x < W; x += 40) ctx.fillRect(x - 1, y - 1, 2, 2);
|
|
131
|
+
}
|
|
132
|
+
ctx.restore();
|
|
133
|
+
// perspective floor grid, lines rolling toward the camera
|
|
134
|
+
const hy = Hh * 0.6, vx = W / 2 - camX * 0.25;
|
|
135
|
+
ctx.save(); ctx.lineWidth = 1;
|
|
136
|
+
const sg = ctx.createLinearGradient(0, hy, 0, Hh);
|
|
137
|
+
sg.addColorStop(0, 'rgba(110,140,255,0)'); sg.addColorStop(0.3, `rgba(110,140,255,${0.07 * lvl})`); sg.addColorStop(1, `rgba(140,170,255,${0.22 * lvl})`);
|
|
138
|
+
ctx.strokeStyle = sg; ctx.beginPath();
|
|
139
|
+
const sh = fract(camX / 900) * 1;
|
|
140
|
+
for (let i = -34; i <= 34; i++) { const k = i - sh; ctx.moveTo(vx + k * 12, hy); ctx.lineTo(vx + k * 190, Hh + 260); }
|
|
141
|
+
const roll = fract(t * 0.35);
|
|
142
|
+
for (let k = 0; k < 26; k++) { const d = k + 1 - roll, y = hy + 230 / d; if (y > Hh + 2) continue; ctx.moveTo(0, y); ctx.lineTo(W, y); }
|
|
143
|
+
ctx.stroke();
|
|
144
|
+
// horizon haze line
|
|
145
|
+
const hz = ctx.createLinearGradient(0, 0, W, 0);
|
|
146
|
+
hz.addColorStop(0, 'rgba(90,140,255,0)'); hz.addColorStop(0.5, `rgba(120,180,255,${0.18 * lvl})`); hz.addColorStop(1, 'rgba(90,140,255,0)');
|
|
147
|
+
ctx.fillStyle = hz; ctx.fillRect(0, hy - 1, W, 2);
|
|
148
|
+
ctx.restore();
|
|
149
|
+
// particles
|
|
150
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter';
|
|
151
|
+
for (const p of PARTS) {
|
|
152
|
+
const x = fract(p.x + 0.006 * Math.sin(t * 0.5 + p.ph) - camX * 0.0003 * p.z) * W, y = fract(p.y - t * p.sp) * Hh;
|
|
153
|
+
const a = (0.2 + 0.55 * (0.5 + 0.5 * Math.sin(t * 1.7 + p.ph * 3))) * lvl * p.z;
|
|
154
|
+
if (p.s > 1.7) { const rg = ctx.createRadialGradient(x, y, 0, x, y, p.s * 6); rg.addColorStop(0, rgb(p.c, a * 0.35)); rg.addColorStop(1, rgb(p.c, 0)); ctx.fillStyle = rg; ctx.fillRect(x - p.s * 6, y - p.s * 6, p.s * 12, p.s * 12); }
|
|
155
|
+
ctx.fillStyle = rgb(p.c, a); ctx.beginPath(); ctx.arc(x, y, p.s * 0.7, 0, 6.283); ctx.fill();
|
|
156
|
+
}
|
|
157
|
+
ctx.restore();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// ---------------------------------------------------------------- bloom: threshold-ish downsample, two blur radii, added back
|
|
161
|
+
let BL = null;
|
|
162
|
+
function bloom(ctx, amt = 1) {
|
|
163
|
+
const cv = ctx.canvas;
|
|
164
|
+
if (!BL) BL = { a: H.layer(320, 180), b: H.layer(320, 180), c: H.layer(160, 90) };
|
|
165
|
+
const a = BL.a.getContext('2d'), b = BL.b.getContext('2d'), c = BL.c.getContext('2d');
|
|
166
|
+
a.globalCompositeOperation = 'copy'; a.filter = 'brightness(0.9) contrast(2.6) saturate(1.4)'; a.drawImage(cv, 0, 0, 320, 180); a.filter = 'none';
|
|
167
|
+
b.globalCompositeOperation = 'copy'; b.filter = 'blur(2.5px)'; b.drawImage(BL.a, 0, 0); b.filter = 'none';
|
|
168
|
+
c.globalCompositeOperation = 'copy'; c.filter = 'blur(4px)'; c.drawImage(BL.a, 0, 0, 160, 90); c.filter = 'none';
|
|
169
|
+
ctx.save(); ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.globalCompositeOperation = 'lighter';
|
|
170
|
+
ctx.globalAlpha = 0.45 * amt; ctx.drawImage(BL.b, 0, 0, cv.width, cv.height);
|
|
171
|
+
ctx.globalAlpha = 0.5 * amt; ctx.drawImage(BL.c, 0, 0, cv.width, cv.height);
|
|
172
|
+
ctx.restore();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// ---------------------------------------------------------------- building blocks
|
|
176
|
+
function glowDot(ctx, x, y, col, r, a = 1) {
|
|
177
|
+
const g = ctx.createRadialGradient(x, y, 0, x, y, r);
|
|
178
|
+
g.addColorStop(0, rgb('#ffffff', a)); g.addColorStop(0.16, rgb(col, 0.9 * a)); g.addColorStop(0.45, rgb(col, 0.22 * a)); g.addColorStop(1, rgb(col, 0));
|
|
179
|
+
ctx.fillStyle = g; ctx.fillRect(x - r, y - r, 2 * r, 2 * r);
|
|
180
|
+
}
|
|
181
|
+
function ring(ctx, x, y, r, col, a, lw = 2) {
|
|
182
|
+
if (a <= 0.001) return;
|
|
183
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter'; ctx.strokeStyle = rgb(col, a); ctx.lineWidth = lw;
|
|
184
|
+
ctx.beginPath(); ctx.arc(x, y, r, 0, 6.283); ctx.stroke(); ctx.restore();
|
|
185
|
+
}
|
|
186
|
+
// dark translucent card, inner glow, thin gradient border
|
|
187
|
+
function card(ctx, x, y, w, h, o = {}) {
|
|
188
|
+
const r = o.r ?? 22, acc = o.acc || [C.cyan, C.violet];
|
|
189
|
+
ctx.save(); ctx.globalAlpha *= o.a ?? 1;
|
|
190
|
+
ctx.shadowColor = 'rgba(0,0,12,0.6)'; ctx.shadowBlur = 44; ctx.shadowOffsetY = 18;
|
|
191
|
+
const fg = ctx.createLinearGradient(x, y, x, y + h);
|
|
192
|
+
fg.addColorStop(0, 'rgba(22,26,72,0.8)'); fg.addColorStop(1, 'rgba(8,9,32,0.86)');
|
|
193
|
+
ctx.fillStyle = fg; rr(ctx, x, y, w, h, r); ctx.fill();
|
|
194
|
+
ctx.shadowColor = 'transparent';
|
|
195
|
+
ctx.save(); rr(ctx, x, y, w, h, r); ctx.clip();
|
|
196
|
+
const ig = ctx.createRadialGradient(x + w * 0.25, y, 0, x + w * 0.25, y, Math.max(w, h) * 0.8);
|
|
197
|
+
ig.addColorStop(0, rgb(acc[0], 0.17)); ig.addColorStop(1, rgb(acc[0], 0)); ctx.fillStyle = ig; ctx.fillRect(x, y, w, h);
|
|
198
|
+
const ig2 = ctx.createRadialGradient(x + w, y + h, 0, x + w, y + h, Math.max(w, h) * 0.7);
|
|
199
|
+
ig2.addColorStop(0, rgb(acc[1], 0.14)); ig2.addColorStop(1, rgb(acc[1], 0)); ctx.fillStyle = ig2; ctx.fillRect(x, y, w, h);
|
|
200
|
+
ctx.restore();
|
|
201
|
+
const bg = ctx.createLinearGradient(x, y, x + w, y + h);
|
|
202
|
+
bg.addColorStop(0, rgb(acc[0], 0.95)); bg.addColorStop(0.4, rgb(acc[1], 0.4)); bg.addColorStop(0.72, 'rgba(255,255,255,0.07)'); bg.addColorStop(1, rgb(acc[1], 0.6));
|
|
203
|
+
ctx.strokeStyle = bg; ctx.lineWidth = 1.5; rr(ctx, x + 0.75, y + 0.75, w - 1.5, h - 1.5, r); ctx.stroke();
|
|
204
|
+
// top edge highlight
|
|
205
|
+
const hl = ctx.createLinearGradient(x, 0, x + w, 0);
|
|
206
|
+
hl.addColorStop(0, 'rgba(255,255,255,0)'); hl.addColorStop(0.3, 'rgba(200,240,255,0.5)'); hl.addColorStop(0.65, 'rgba(255,255,255,0)');
|
|
207
|
+
ctx.strokeStyle = hl; ctx.lineWidth = 1; ctx.beginPath(); ctx.moveTo(x + r, y + 1.5); ctx.lineTo(x + w - r, y + 1.5); ctx.stroke();
|
|
208
|
+
if (o.flash > 0.01) {
|
|
209
|
+
ctx.globalCompositeOperation = 'lighter'; ctx.strokeStyle = rgb(o.flashCol || C.cyan, o.flash); ctx.lineWidth = 3;
|
|
210
|
+
rr(ctx, x + 1, y + 1, w - 2, h - 2, r); ctx.stroke();
|
|
211
|
+
ctx.save(); rr(ctx, x, y, w, h, r); ctx.clip(); ctx.fillStyle = rgb(o.flashCol || C.cyan, o.flash * 0.08); ctx.fillRect(x, y, w, h); ctx.restore();
|
|
212
|
+
}
|
|
213
|
+
ctx.restore();
|
|
214
|
+
}
|
|
215
|
+
// rounded icon tile with gradient stroke + glowing line icon
|
|
216
|
+
function tile(ctx, cx, cy, s, icon, o = {}) {
|
|
217
|
+
const a = o.a ?? 1, sc = o.sc ?? 1, col = o.col || [C.cyan, C.violet], glow = o.glow ?? 1, draw = o.draw ?? 1;
|
|
218
|
+
if (a <= 0.003 || sc <= 0.003) return;
|
|
219
|
+
ctx.save(); ctx.translate(cx, cy); ctx.scale(sc, sc); ctx.globalAlpha *= a;
|
|
220
|
+
const r = s * 0.26, h = s / 2;
|
|
221
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter';
|
|
222
|
+
const hg = ctx.createRadialGradient(0, 0, s * 0.25, 0, 0, s * 1.15);
|
|
223
|
+
hg.addColorStop(0, rgb(col[0], Math.min(0.5, 0.2 * glow))); hg.addColorStop(0.5, rgb(col[1], Math.min(0.25, 0.07 * glow))); hg.addColorStop(1, rgb(col[1], 0));
|
|
224
|
+
ctx.fillStyle = hg; ctx.fillRect(-s * 1.15, -s * 1.15, s * 2.3, s * 2.3);
|
|
225
|
+
ctx.restore();
|
|
226
|
+
ctx.save(); ctx.shadowColor = 'rgba(0,0,10,0.55)'; ctx.shadowBlur = s * 0.3; ctx.shadowOffsetY = s * 0.1;
|
|
227
|
+
const bg = ctx.createLinearGradient(0, -h, 0, h); bg.addColorStop(0, '#171b4d'); bg.addColorStop(1, '#090a28');
|
|
228
|
+
ctx.fillStyle = bg; rr(ctx, -h, -h, s, s, r); ctx.fill(); ctx.restore();
|
|
229
|
+
ctx.save(); rr(ctx, -h, -h, s, s, r); ctx.clip();
|
|
230
|
+
const ig = ctx.createRadialGradient(-h * 0.5, -h * 0.7, 0, -h * 0.5, -h * 0.7, s);
|
|
231
|
+
ig.addColorStop(0, rgb(col[0], 0.3)); ig.addColorStop(1, rgb(col[0], 0)); ctx.fillStyle = ig; ctx.fillRect(-h, -h, s, s);
|
|
232
|
+
const ig2 = ctx.createRadialGradient(h * 0.6, h * 0.8, 0, h * 0.6, h * 0.8, s * 0.8);
|
|
233
|
+
ig2.addColorStop(0, rgb(col[1], 0.26)); ig2.addColorStop(1, rgb(col[1], 0)); ctx.fillStyle = ig2; ctx.fillRect(-h, -h, s, s);
|
|
234
|
+
if (glow > 1.05) { ctx.fillStyle = rgb(col[0], Math.min(0.25, (glow - 1) * 0.12)); ctx.fillRect(-h, -h, s, s); }
|
|
235
|
+
ctx.restore();
|
|
236
|
+
const sg = ctx.createLinearGradient(-h, -h, h, h); sg.addColorStop(0, H.rgba(H.mix(col[0], '#ffffff', 0.2), 1)); sg.addColorStop(1, col[1]);
|
|
237
|
+
ctx.strokeStyle = sg; ctx.lineWidth = Math.max(1.6, s * 0.022); rr(ctx, -h + 1, -h + 1, s - 2, s - 2, r); ctx.stroke();
|
|
238
|
+
ctx.strokeStyle = 'rgba(255,255,255,0.09)'; ctx.lineWidth = 1; rr(ctx, -h + 6, -h + 6, s - 12, s - 12, r * 0.75); ctx.stroke();
|
|
239
|
+
if (draw > 0) {
|
|
240
|
+
const icg = ctx.createLinearGradient(-h * 0.5, -h * 0.5, h * 0.5, h * 0.5);
|
|
241
|
+
icg.addColorStop(0, H.rgba(H.mix(col[0], '#ffffff', 0.45), 1)); icg.addColorStop(1, H.rgba(H.mix(col[1], '#ffffff', 0.15), 1));
|
|
242
|
+
ctx.strokeStyle = icg; ctx.lineWidth = Math.max(1.8, s * 0.042); ctx.lineCap = 'round'; ctx.lineJoin = 'round';
|
|
243
|
+
if (draw < 1) ctx.setLineDash([draw * s * 2.4, 1e4]);
|
|
244
|
+
ctx.beginPath(); ICONS[icon](ctx, s * 0.3); ctx.stroke(); ctx.setLineDash([]);
|
|
245
|
+
}
|
|
246
|
+
ctx.restore();
|
|
247
|
+
}
|
|
248
|
+
// pill label centred at (x, y)
|
|
249
|
+
function pill(ctx, x, y, text, o = {}) {
|
|
250
|
+
const a = o.a ?? 1; if (a <= 0.003) return;
|
|
251
|
+
const size = o.size || 24, col = o.col || [C.cyan, C.violet];
|
|
252
|
+
ctx.save(); ctx.globalAlpha *= a; ctx.translate(x, y); ctx.scale(o.sc ?? 1, o.sc ?? 1);
|
|
253
|
+
ctx.font = F(600, size, UI); const tw = ctx.measureText(text).width, dotW = o.dot ? size * 0.75 : 0;
|
|
254
|
+
const w = tw + size * 1.3 + dotW, h = size * 1.62;
|
|
255
|
+
ctx.fillStyle = o.fill || 'rgba(10,12,42,0.88)'; rr(ctx, -w / 2, -h / 2, w, h, h / 2); ctx.fill();
|
|
256
|
+
const g = ctx.createLinearGradient(-w / 2, 0, w / 2, 0); g.addColorStop(0, rgb(col[0], 0.9)); g.addColorStop(1, rgb(col[1], 0.7));
|
|
257
|
+
ctx.strokeStyle = g; ctx.lineWidth = 1.4; rr(ctx, -w / 2 + 0.7, -h / 2 + 0.7, w - 1.4, h - 1.4, h / 2); ctx.stroke();
|
|
258
|
+
if (o.dot) { ctx.fillStyle = col[0]; ctx.beginPath(); ctx.arc(-w / 2 + size * 0.75, 0, size * 0.17, 0, 6.283); ctx.fill(); }
|
|
259
|
+
ctx.fillStyle = o.textCol || C.white; ctx.textBaseline = 'middle'; ctx.textAlign = 'left';
|
|
260
|
+
ctx.fillText(text, -w / 2 + size * 0.65 + dotW, size * 0.04);
|
|
261
|
+
ctx.restore();
|
|
262
|
+
}
|
|
263
|
+
// gradient-filled text; returns width
|
|
264
|
+
function gtext(ctx, s, x, y, size, o = {}) {
|
|
265
|
+
ctx.font = F(o.w || 700, size, o.fam); ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic';
|
|
266
|
+
ctx.letterSpacing = o.ls || '0px';
|
|
267
|
+
const w = ctx.measureText(s).width, x0 = o.align === 'center' ? x - w / 2 : o.align === 'right' ? x - w : x;
|
|
268
|
+
const cols = o.cols || GRAD_HEAD, g = ctx.createLinearGradient(x0, y - size, x0 + w, y);
|
|
269
|
+
cols.forEach((c, i) => g.addColorStop(i / (cols.length - 1), c));
|
|
270
|
+
ctx.fillStyle = g; ctx.fillText(s, x0, y); ctx.letterSpacing = '0px';
|
|
271
|
+
return w;
|
|
272
|
+
}
|
|
273
|
+
// words revealed one by one (rise + fade), one gradient across the whole line
|
|
274
|
+
function revealLine(ctx, s, x, y, size, prog, o = {}) {
|
|
275
|
+
ctx.font = F(o.w || 700, size, o.fam); ctx.letterSpacing = o.ls || '0px';
|
|
276
|
+
const words = s.split(' '), full = ctx.measureText(s).width, x0 = o.align === 'center' ? x - full / 2 : x;
|
|
277
|
+
const cols = o.cols || GRAD_HEAD, g = ctx.createLinearGradient(x0, y - size, x0 + full, y);
|
|
278
|
+
cols.forEach((c, i) => g.addColorStop(i / (cols.length - 1), c));
|
|
279
|
+
ctx.save(); ctx.fillStyle = g; ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic';
|
|
280
|
+
let cx = x0; const n = words.length;
|
|
281
|
+
words.forEach((wd, i) => {
|
|
282
|
+
const p = E.out(cl(prog * (n + 1.5) - i * 1.0, 0, 1)), ww = ctx.measureText(wd + (i < n - 1 ? ' ' : '')).width;
|
|
283
|
+
if (p > 0) { ctx.globalAlpha = p * (o.a ?? 1); ctx.fillText(wd, cx, y + (1 - p) * size * 0.45); }
|
|
284
|
+
cx += ww;
|
|
285
|
+
});
|
|
286
|
+
ctx.restore(); ctx.letterSpacing = '0px';
|
|
287
|
+
return { x0, w: full };
|
|
288
|
+
}
|
|
289
|
+
function eyebrow(ctx, s, x, y, o = {}) {
|
|
290
|
+
const a = o.a ?? 1; if (a <= 0.003) return;
|
|
291
|
+
const size = o.size || 18, col = o.col || C.cyan;
|
|
292
|
+
ctx.save(); ctx.globalAlpha *= a; ctx.font = F(600, size, UI); ctx.letterSpacing = '3px';
|
|
293
|
+
const w = ctx.measureText(s).width + 22, x0 = o.align === 'center' ? x - w / 2 : x;
|
|
294
|
+
ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, x0 + 5, y - size * 0.36, col, 12); ctx.globalCompositeOperation = 'source-over';
|
|
295
|
+
ctx.fillStyle = col; ctx.beginPath(); ctx.arc(x0 + 5, y - size * 0.36, 3.2, 0, 6.283); ctx.fill();
|
|
296
|
+
ctx.fillStyle = rgb(H.mix(col, '#ffffff', 0.25), 1); ctx.textAlign = 'left'; ctx.fillText(s, x0 + 22, y);
|
|
297
|
+
ctx.letterSpacing = '0px'; ctx.restore();
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// ---------------------------------------------------------------- connectors (sampled curves) + light pulses
|
|
301
|
+
function bez(x0, y0, x1, y1, x2, y2, x3, y3, n = 48) {
|
|
302
|
+
const P = []; let L = 0, px = x0, py = y0;
|
|
303
|
+
for (let i = 0; i <= n; i++) {
|
|
304
|
+
const u = i / n, m = 1 - u;
|
|
305
|
+
const x = m * m * m * x0 + 3 * m * m * u * x1 + 3 * m * u * u * x2 + u * u * u * x3;
|
|
306
|
+
const y = m * m * m * y0 + 3 * m * m * u * y1 + 3 * m * u * u * y2 + u * u * u * y3;
|
|
307
|
+
if (i) L += Math.hypot(x - px, y - py);
|
|
308
|
+
P.push({ x, y, l: L }); px = x; py = y;
|
|
309
|
+
}
|
|
310
|
+
P.L = L; return P;
|
|
311
|
+
}
|
|
312
|
+
const seg2 = (x0, y0, x1, y1) => bez(x0, y0, lerp(x0, x1, 0.33), lerp(y0, y1, 0.33), lerp(x0, x1, 0.66), lerp(y0, y1, 0.66), x1, y1, 8);
|
|
313
|
+
function ptAt(P, f) {
|
|
314
|
+
const tl = cl(f) * P.L;
|
|
315
|
+
for (let i = 1; i < P.length; i++) if (P[i].l >= tl) { const a = P[i - 1], b = P[i], k = (tl - a.l) / Math.max(1e-6, b.l - a.l); return { x: lerp(a.x, b.x, k), y: lerp(a.y, b.y, k) }; }
|
|
316
|
+
return P[P.length - 1];
|
|
317
|
+
}
|
|
318
|
+
function sub(ctx, P, a, b) {
|
|
319
|
+
a = cl(a); b = cl(b); ctx.beginPath(); if (b <= a) return;
|
|
320
|
+
const s = ptAt(P, a); ctx.moveTo(s.x, s.y);
|
|
321
|
+
const la = a * P.L, lb = b * P.L;
|
|
322
|
+
for (const p of P) if (p.l > la && p.l < lb) ctx.lineTo(p.x, p.y);
|
|
323
|
+
const e = ptAt(P, b); ctx.lineTo(e.x, e.y);
|
|
324
|
+
}
|
|
325
|
+
function pulseOn(ctx, P, p, col, len = 0.16, a = 1) {
|
|
326
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter'; ctx.lineCap = 'round';
|
|
327
|
+
const n = 8;
|
|
328
|
+
for (let i = 0; i < n; i++) {
|
|
329
|
+
const a0 = p - len * (i + 1) / n, a1 = p - len * i / n;
|
|
330
|
+
if (a1 <= 0 || a0 >= 1) continue;
|
|
331
|
+
ctx.strokeStyle = rgb(col, 0.85 * a * (1 - i / n)); ctx.lineWidth = 3.4 - i * 0.3; sub(ctx, P, a0, a1); ctx.stroke();
|
|
332
|
+
}
|
|
333
|
+
if (p >= 0 && p <= 1) { const h = ptAt(P, p); glowDot(ctx, h.x, h.y, col, 18, a); }
|
|
334
|
+
ctx.restore();
|
|
335
|
+
}
|
|
336
|
+
function connector(ctx, P, o = {}) {
|
|
337
|
+
const d = o.draw ?? 1, a = o.a ?? 1; if (d <= 0 || a <= 0.003) return;
|
|
338
|
+
const c0 = (o.col || [])[0] || C.cyan, c1 = (o.col || [])[1] || C.violet;
|
|
339
|
+
ctx.save(); ctx.globalAlpha *= a; ctx.lineCap = 'round';
|
|
340
|
+
const s = P[0], e = P[P.length - 1], g = ctx.createLinearGradient(s.x, s.y, e.x, e.y);
|
|
341
|
+
g.addColorStop(0, rgb(c0, 0.75)); g.addColorStop(1, rgb(c1, 0.75));
|
|
342
|
+
ctx.globalCompositeOperation = 'lighter'; ctx.strokeStyle = rgb(c0, 0.08); ctx.lineWidth = 9; sub(ctx, P, 0, d); ctx.stroke();
|
|
343
|
+
ctx.globalCompositeOperation = 'source-over'; ctx.strokeStyle = g; ctx.lineWidth = o.lw || 1.8; sub(ctx, P, 0, d); ctx.stroke();
|
|
344
|
+
if (!o.noEnds) {
|
|
345
|
+
ctx.fillStyle = '#0b0d30'; ctx.strokeStyle = c0; ctx.lineWidth = 1.6;
|
|
346
|
+
ctx.beginPath(); ctx.arc(s.x, s.y, 4, 0, 6.283); ctx.fill(); ctx.stroke();
|
|
347
|
+
if (d >= 1) { ctx.strokeStyle = c1; ctx.beginPath(); ctx.arc(e.x, e.y, 4, 0, 6.283); ctx.fill(); ctx.stroke(); }
|
|
348
|
+
}
|
|
349
|
+
if (d < 1) { const hpt = ptAt(P, d); ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, hpt.x, hpt.y, c0, 16); }
|
|
350
|
+
ctx.restore();
|
|
351
|
+
for (const p of o.pulses || []) if (p > 0 && p - 0.16 < d) pulseOn(ctx, P, Math.min(p, d), o.pc || '#9ff0ff', o.pl || 0.16, a);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// =====================================================================================================
|
|
355
|
+
// STILL + CLIP: "From data to answers": headline at left, node diagram (inputs -> brain hub -> outputs) at right
|
|
356
|
+
// =====================================================================================================
|
|
357
|
+
const HUB0 = { x: 912, y: 360, s: 156 };
|
|
358
|
+
const INS = [
|
|
359
|
+
{ x: 668, y: 196, icon: 'database', label: 'Data', col: [C.cyan, C.blue] },
|
|
360
|
+
{ x: 668, y: 360, icon: 'eye', label: 'Vision', col: [C.cyan, C.violet] },
|
|
361
|
+
{ x: 668, y: 524, icon: 'chat', label: 'Text', col: [C.blue, C.violet] },
|
|
362
|
+
];
|
|
363
|
+
const OUTS = [
|
|
364
|
+
{ x: 1150, y: 262, icon: 'sparkle', label: 'Ideas', col: [C.violet, C.magenta] },
|
|
365
|
+
{ x: 1150, y: 458, icon: 'check', label: 'Answers', col: [C.cyan, C.green] },
|
|
366
|
+
];
|
|
367
|
+
const IN_P = INS.map((n) => bez(n.x + 48, n.y, n.x + 120, n.y, HUB0.x - 150, HUB0.y + (n.y - HUB0.y) * 0.25, HUB0.x - 82, HUB0.y + (n.y - HUB0.y) * 0.18));
|
|
368
|
+
const OUT_P = OUTS.map((n) => bez(HUB0.x + 82, HUB0.y + (n.y - HUB0.y) * 0.2, HUB0.x + 140, HUB0.y + (n.y - HUB0.y) * 0.3, n.x - 120, n.y, n.x - 48, n.y));
|
|
369
|
+
|
|
370
|
+
function drawStill(ctx, W, Hh, t) {
|
|
371
|
+
const lvl = 0.35 + 0.65 * eo(0, 1.0, t);
|
|
372
|
+
const camX = -30 * eo(0, 5, t);
|
|
373
|
+
background(ctx, W, Hh, t, camX, lvl);
|
|
374
|
+
// slow camera push
|
|
375
|
+
const z = 1.06 - 0.06 * eo(0, 4.4, t);
|
|
376
|
+
ctx.save(); ctx.translate(W / 2, Hh / 2); ctx.scale(z, z); ctx.translate(-W / 2 + 3 * Math.sin(t * 0.6), -Hh / 2 + 2 * Math.cos(t * 0.5));
|
|
377
|
+
|
|
378
|
+
// ---- diagram
|
|
379
|
+
const hubIn = ebk(0.3, 0.95, t);
|
|
380
|
+
// floor glow + orbit ring behind hub
|
|
381
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter';
|
|
382
|
+
const fg = ctx.createRadialGradient(HUB0.x, HUB0.y, 0, HUB0.x, HUB0.y, 260);
|
|
383
|
+
fg.addColorStop(0, rgb(C.violet, 0.24 * hubIn)); fg.addColorStop(0.5, rgb(C.blue, 0.09 * hubIn)); fg.addColorStop(1, rgb(C.violet, 0));
|
|
384
|
+
ctx.fillStyle = fg; ctx.fillRect(HUB0.x - 260, HUB0.y - 260, 520, 520);
|
|
385
|
+
ctx.restore();
|
|
386
|
+
const ringA = eo(0.7, 1.4, t), rot = -0.22;
|
|
387
|
+
const orbit = (from, to) => {
|
|
388
|
+
ctx.save(); ctx.globalAlpha = ringA; ctx.lineWidth = 1.4;
|
|
389
|
+
const g = ctx.createLinearGradient(HUB0.x - 130, 0, HUB0.x + 130, 0); g.addColorStop(0, rgb(C.cyan, 0.7)); g.addColorStop(1, rgb(C.violet, 0.7));
|
|
390
|
+
ctx.strokeStyle = g; ctx.beginPath(); ctx.ellipse(HUB0.x, HUB0.y, 132, 40, rot, from, to); ctx.stroke();
|
|
391
|
+
ctx.strokeStyle = rgb(C.blue, 0.25); ctx.beginPath(); ctx.ellipse(HUB0.x, HUB0.y, 150, 48, rot, from, to); ctx.stroke();
|
|
392
|
+
for (let i = 0; i < 3; i++) {
|
|
393
|
+
const th = t * 0.9 + i * 2.094; const n = ((th % 6.283) + 6.283) % 6.283;
|
|
394
|
+
if ((from === Math.PI && n >= Math.PI) || (from === 0 && n < Math.PI)) {
|
|
395
|
+
const ex = 132 * Math.cos(n), ey = 40 * Math.sin(n);
|
|
396
|
+
const x = HUB0.x + ex * Math.cos(rot) - ey * Math.sin(rot), y = HUB0.y + ex * Math.sin(rot) + ey * Math.cos(rot);
|
|
397
|
+
ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, x, y, i === 1 ? C.magenta : C.cyan, 14); ctx.globalCompositeOperation = 'source-over';
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
ctx.restore();
|
|
401
|
+
};
|
|
402
|
+
orbit(Math.PI, Math.PI * 2);
|
|
403
|
+
|
|
404
|
+
// connectors + pulses
|
|
405
|
+
IN_P.forEach((P, i) => {
|
|
406
|
+
const d = eio(0.95 + i * 0.12, 1.5 + i * 0.12, t);
|
|
407
|
+
const pulses = t > 1.6 ? [0, 1].map((k) => fract((t - 1.6) * 0.55 + i * 0.31 + k * 0.5)) : [];
|
|
408
|
+
connector(ctx, P, { draw: d, col: INS[i].col, pulses });
|
|
409
|
+
});
|
|
410
|
+
OUT_P.forEach((P, i) => {
|
|
411
|
+
const d = eio(1.25 + i * 0.12, 1.8 + i * 0.12, t);
|
|
412
|
+
const pulses = t > 1.9 ? [fract((t - 1.9) * 0.6 + i * 0.45)] : [];
|
|
413
|
+
connector(ctx, P, { draw: d, col: [C.violet, OUTS[i].col[1]], pulses, pc: i ? '#a6ffe0' : '#f0b8ff' });
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
// hub: absorbs pulses -> breathing glow
|
|
417
|
+
const hubGlow = 1.3 + 0.5 * Math.sin(t * 2.4) + 1.6 * bump(t, 0.75, 5);
|
|
418
|
+
tile(ctx, HUB0.x, HUB0.y, HUB0.s, 'brain', { sc: hubIn, a: cl(hubIn * 2), glow: hubGlow, col: [C.cyan, C.violet], draw: eo(0.45, 1.3, t) });
|
|
419
|
+
orbit(0, Math.PI);
|
|
420
|
+
pill(ctx, HUB0.x, HUB0.y + 122, 'AI model', { a: eo(1.1, 1.5, t), size: 18, dot: true });
|
|
421
|
+
|
|
422
|
+
INS.forEach((n, i) => {
|
|
423
|
+
const t0 = 0.55 + i * 0.13, p = ebk(t0, t0 + 0.5, t);
|
|
424
|
+
tile(ctx, n.x, n.y, 92, n.icon, { sc: p, a: cl(p * 2), col: n.col, glow: 1 + 1.4 * bump(t, t0 + 0.3, 5), draw: eo(t0 + 0.1, t0 + 0.7, t) });
|
|
425
|
+
ctx.save(); ctx.globalAlpha = eo(t0 + 0.5, t0 + 0.9, t); ctx.font = F(600, 16, UI); ctx.fillStyle = C.muted; ctx.textAlign = 'center';
|
|
426
|
+
ctx.fillText(n.label, n.x, n.y + 74); ctx.restore();
|
|
427
|
+
});
|
|
428
|
+
OUTS.forEach((n, i) => {
|
|
429
|
+
const t0 = 1.75 + i * 0.15, p = ebk(t0, t0 + 0.5, t);
|
|
430
|
+
tile(ctx, n.x, n.y, 92, n.icon, { sc: p, a: cl(p * 2), col: n.col, glow: 1 + 1.4 * bump(t, t0 + 0.3, 5) + 0.3 * Math.sin(t * 3 + i), draw: eo(t0 + 0.1, t0 + 0.7, t) });
|
|
431
|
+
ctx.save(); ctx.globalAlpha = eo(t0 + 0.5, t0 + 0.9, t); ctx.font = F(600, 16, UI); ctx.fillStyle = C.muted; ctx.textAlign = 'center';
|
|
432
|
+
ctx.fillText(n.label, n.x, n.y + 74); ctx.restore();
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
// ---- headline block
|
|
436
|
+
const ex = eo(1.15, 1.6, t);
|
|
437
|
+
eyebrow(ctx, 'AI EXPLAINED', 84 - (1 - ex) * 24, 198, { a: ex, size: 17 });
|
|
438
|
+
revealLine(ctx, 'From data', 80, 284, 78, seg(1.3, 2.1, t));
|
|
439
|
+
revealLine(ctx, 'to answers.', 80, 366, 78, seg(1.55, 2.35, t));
|
|
440
|
+
ctx.save(); ctx.globalAlpha = eo(2.1, 2.6, t); ctx.font = F(400, 22, UI); ctx.fillStyle = '#b3bbec';
|
|
441
|
+
ctx.fillText('How a model turns patterns into replies', 82, 420 + (1 - eo(2.1, 2.6, t)) * 10); ctx.restore();
|
|
442
|
+
|
|
443
|
+
// ---- stat card with counting number
|
|
444
|
+
const cp = eo(2.35, 2.9, t);
|
|
445
|
+
if (cp > 0) {
|
|
446
|
+
ctx.save(); ctx.translate(0, (1 - cp) * 24); ctx.globalAlpha = cp;
|
|
447
|
+
card(ctx, 80, 470, 330, 140, { r: 20, flash: 0.9 * bump(t, 3.85, 4) });
|
|
448
|
+
eyebrow(ctx, 'ACCURACY', 104, 508, { size: 14 });
|
|
449
|
+
const v = 97.4 * E.out(seg(2.5, 3.85, t));
|
|
450
|
+
gtext(ctx, v.toFixed(1) + '%', 102, 576, 54, { cols: GRAD_NUM });
|
|
451
|
+
// sparkline
|
|
452
|
+
const sp = eo(2.6, 3.85, t), xs = 268, ys = 585;
|
|
453
|
+
ctx.save(); ctx.beginPath();
|
|
454
|
+
for (let i = 0; i <= 20 * sp; i++) { const u = i / 20, y = ys - 54 * (1 - Math.exp(-3 * u)) / (1 - Math.exp(-3)) - 4 * Math.sin(u * 17) * (1 - u); i ? ctx.lineTo(xs + u * 118, y) : ctx.moveTo(xs, y); }
|
|
455
|
+
const lg = ctx.createLinearGradient(xs, 0, xs + 118, 0); lg.addColorStop(0, C.blue); lg.addColorStop(1, C.cyan);
|
|
456
|
+
ctx.strokeStyle = lg; ctx.lineWidth = 2.4; ctx.lineCap = 'round'; ctx.lineJoin = 'round'; ctx.stroke(); ctx.restore();
|
|
457
|
+
if (sp > 0.02) { const u = cl(Math.floor(20 * sp) / 20); ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, xs + u * 118, ys - 54 * (1 - Math.exp(-3 * u)) / (1 - Math.exp(-3)) - 4 * Math.sin(u * 17) * (1 - u), C.cyan, 14); }
|
|
458
|
+
ctx.restore();
|
|
459
|
+
}
|
|
460
|
+
ctx.restore();
|
|
461
|
+
bloom(ctx, 1);
|
|
462
|
+
H.vignette(ctx, W, Hh, 0.45, '2,3,16');
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// =====================================================================================================
|
|
466
|
+
// EXPLAINER: "How does AI learn?" (15 s)
|
|
467
|
+
// =====================================================================================================
|
|
468
|
+
const X = {
|
|
469
|
+
D: 15,
|
|
470
|
+
shrink: [1.85, 2.55], // title -> corner header
|
|
471
|
+
hubFly: [1.95, 2.7], // brain tile flies to the model spot
|
|
472
|
+
dbIn: 2.3, lanes: [2.55, 3.1],
|
|
473
|
+
countA: 2.85, countB: 5.4, // examples counter
|
|
474
|
+
spawn0: 2.95, spawnGap: 0.21, spawnN: 12, travel: 1.7,
|
|
475
|
+
zoom: [5.9, 6.55], // push through the brain into the network
|
|
476
|
+
netIn: [6.25, 6.85],
|
|
477
|
+
chips: 6.55, inputIn: [6.5, 6.85], inLines: [6.75, 7.0],
|
|
478
|
+
fwd1: [7.0, 7.5], outLines: [7.42, 7.62], ansIn: [7.35, 7.65], ans1: 7.68,
|
|
479
|
+
check: 8.05, truth: 8.18,
|
|
480
|
+
errBack: [8.45, 8.75], backWave: [8.72, 9.2], morph: [8.85, 9.45], updated: 9.05,
|
|
481
|
+
loopBack: [9.28, 9.5], fwd2: [9.5, 9.92], ans2: 10.0,
|
|
482
|
+
pan: [10.45, 11.0],
|
|
483
|
+
acc: [11.0, 12.4], hit: 12.45,
|
|
484
|
+
pull: [13.0, 13.5], tkTiles: [13.2, 13.35], tkText: [13.35, 13.8], underline: [13.85, 14.25],
|
|
485
|
+
};
|
|
486
|
+
const HUB = { x: 1010, y: 420, s: 170 }, DB = { x: 170, y: 420, s: 110 };
|
|
487
|
+
const LANES = [-160, 0, 160].map((dy) => bez(DB.x + 62, 420, 310, 420 + dy * 1.2, 650, 420 + dy, HUB.x - 92, 420));
|
|
488
|
+
const EXAMPLES = (() => {
|
|
489
|
+
const kinds = ['cat', 'dog', 'dog', 'cat', 'cat', 'dog', 'cat', 'dog', 'cat', 'dog', 'dog', 'cat'];
|
|
490
|
+
return Array.from({ length: X.spawnN }, (_, i) => ({ s: X.spawn0 + i * X.spawnGap, lane: [1, 0, 2][i % 3], kind: kinds[i] }));
|
|
491
|
+
})();
|
|
492
|
+
// network inside the model card
|
|
493
|
+
const NET = { x: 250, y: 225, w: 480, h: 390 };
|
|
494
|
+
const LAYERS = (() => {
|
|
495
|
+
const xs = [325, 450, 575, 680], ns = [3, 4, 4, 2], cy = 435, sp = 78;
|
|
496
|
+
return xs.map((x, li) => Array.from({ length: ns[li] }, (_, k) => ({ x, y: cy + (k - (ns[li] - 1) / 2) * sp })));
|
|
497
|
+
})();
|
|
498
|
+
const EDGES = (() => {
|
|
499
|
+
const r = H.rng(31), out = [];
|
|
500
|
+
for (let l = 0; l < 3; l++) for (const a of LAYERS[l]) for (const b of LAYERS[l + 1]) {
|
|
501
|
+
const w1 = r.range(-1, 1), w2 = cl(w1 + r.range(-0.9, 0.9) + (Math.abs(w1) < 0.3 ? 0.5 : 0), -1, 1);
|
|
502
|
+
out.push({ a, b, l, w1, w2 });
|
|
503
|
+
}
|
|
504
|
+
return out;
|
|
505
|
+
})();
|
|
506
|
+
const INPUT = { x: 132, y: 430, s: 116 };
|
|
507
|
+
const ANS = { x: 830, y: 285, w: 360, h: 290 };
|
|
508
|
+
const IN_LINES = LAYERS[0].map((n) => bez(INPUT.x + 60, INPUT.y, INPUT.x + 120, INPUT.y, n.x - 70, n.y, n.x - 13, n.y, 24));
|
|
509
|
+
const OUT_LINES = LAYERS[3].map((n) => bez(n.x + 13, n.y, n.x + 70, n.y, ANS.x - 70, 430, ANS.x, 430, 24));
|
|
510
|
+
const CHIPS = [{ x: 400, label: 'Guess', n: '1' }, { x: 640, label: 'Check', n: '2' }, { x: 880, label: 'Adjust', n: '3' }];
|
|
511
|
+
const CHIP_Y = 140;
|
|
512
|
+
const CHIP_LINES = [seg2(400 + 104, CHIP_Y, 640 - 104, CHIP_Y), seg2(640 + 104, CHIP_Y, 880 - 104, CHIP_Y)];
|
|
513
|
+
const LOOP_LINE = bez(880, CHIP_Y - 29, 830, 66, 450, 66, 400, CHIP_Y - 29, 40);
|
|
514
|
+
// accuracy curve
|
|
515
|
+
const accAt = (f) => 61 + 36 * (1 - Math.exp(-3.2 * f)) / (1 - Math.exp(-3.2));
|
|
516
|
+
const CH = { x: 560, y: 205, w: 560, h: 360 };
|
|
517
|
+
|
|
518
|
+
function chip(ctx, c, active, a) {
|
|
519
|
+
if (a <= 0.003) return;
|
|
520
|
+
const w = 204, h = 58, x = c.x - w / 2, y = CHIP_Y - h / 2;
|
|
521
|
+
ctx.save(); ctx.globalAlpha *= a;
|
|
522
|
+
if (active > 0.01) {
|
|
523
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter';
|
|
524
|
+
const g = ctx.createRadialGradient(c.x, CHIP_Y, 0, c.x, CHIP_Y, 130); g.addColorStop(0, rgb(C.cyan, 0.3 * active)); g.addColorStop(1, rgb(C.cyan, 0));
|
|
525
|
+
ctx.fillStyle = g; ctx.fillRect(c.x - 130, CHIP_Y - 130, 260, 260); ctx.restore();
|
|
526
|
+
}
|
|
527
|
+
const fg = ctx.createLinearGradient(x, 0, x + w, 0);
|
|
528
|
+
fg.addColorStop(0, H.rgba(H.mix('#0c0e34', '#1d4fd8', active), 0.92)); fg.addColorStop(1, H.rgba(H.mix('#0c0e34', '#6a2fe0', active), 0.92));
|
|
529
|
+
ctx.fillStyle = fg; rr(ctx, x, y, w, h, h / 2); ctx.fill();
|
|
530
|
+
const bg = ctx.createLinearGradient(x, 0, x + w, 0); bg.addColorStop(0, rgb(C.cyan, 0.5 + 0.5 * active)); bg.addColorStop(1, rgb(C.violet, 0.5 + 0.5 * active));
|
|
531
|
+
ctx.strokeStyle = bg; ctx.lineWidth = 1.5 + active; rr(ctx, x + 0.75, y + 0.75, w - 1.5, h - 1.5, h / 2); ctx.stroke();
|
|
532
|
+
// number disc
|
|
533
|
+
ctx.fillStyle = H.rgba(H.mix('#1a1f5c', '#ffffff', active * 0.9), 1); ctx.beginPath(); ctx.arc(x + 31, CHIP_Y, 17, 0, 6.283); ctx.fill();
|
|
534
|
+
ctx.fillStyle = active > 0.5 ? '#1b2a8a' : C.white; ctx.font = F(700, 20, HEAD); ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText(c.n, x + 31, CHIP_Y + 1);
|
|
535
|
+
ctx.fillStyle = H.rgba(H.mix('#aab2e6', '#ffffff', active), 1); ctx.font = F(600, 30, UI); ctx.textAlign = 'left'; ctx.fillText(c.label, x + 60, CHIP_Y + 1);
|
|
536
|
+
ctx.restore();
|
|
537
|
+
}
|
|
538
|
+
const winAct = (t, wins) => Math.max(0, ...wins.map(([a, b]) => Math.min(eo(a - 0.05, a + 0.15, t), 1 - eo(b - 0.1, b + 0.1, t))));
|
|
539
|
+
// a node-lighting wave front: dir +1 forward (left->right), -1 backward
|
|
540
|
+
function waveDots(ctx, X0, col, dir) {
|
|
541
|
+
for (const e of EDGES) {
|
|
542
|
+
const xa = e.a.x, xb = e.b.x, u = (X0 - xa) / (xb - xa);
|
|
543
|
+
if (u <= 0 || u >= 1) continue;
|
|
544
|
+
const w = Math.abs(dir > 0 ? e.w1 : e.w2);
|
|
545
|
+
if (w < 0.28) continue;
|
|
546
|
+
glowDot(ctx, lerp(e.a.x, e.b.x, u), lerp(e.a.y, e.b.y, u), col, 8 + 7 * w, 0.8);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
function network(ctx, t) {
|
|
550
|
+
const m = eio(X.morph[0], X.morph[1], t);
|
|
551
|
+
const f1 = seg(X.fwd1[0], X.fwd1[1], t), f2 = seg(X.fwd2[0], X.fwd2[1], t), bw = seg(X.backWave[0], X.backWave[1], t);
|
|
552
|
+
const x0 = LAYERS[0][0].x, x3 = LAYERS[3][0].x;
|
|
553
|
+
const fwdX = t < X.fwd2[0] ? lerp(x0 - 20, x3 + 20, f1) : lerp(x0 - 20, x3 + 20, f2);
|
|
554
|
+
const fwdOn = (t > X.fwd1[0] && t < X.fwd1[1] + 0.05) || (t > X.fwd2[0] && t < X.fwd2[1] + 0.05);
|
|
555
|
+
const backX = lerp(x3 + 20, x0 - 20, bw), backOn = t > X.backWave[0] && t < X.backWave[1] + 0.05;
|
|
556
|
+
const adjGlow = Math.sin(Math.PI * seg(X.morph[0], X.morph[1], t));
|
|
557
|
+
// edges
|
|
558
|
+
ctx.save(); ctx.lineCap = 'round';
|
|
559
|
+
for (const e of EDGES) {
|
|
560
|
+
const w = lerp(e.w1, e.w2, m), aw = Math.abs(w);
|
|
561
|
+
const col = w >= 0 ? H.mix(C.cyan, C.blue, 0.3) : H.mix(C.violet, C.magenta, 0.35);
|
|
562
|
+
const hot = backOn ? Math.exp(-Math.pow((backX - (e.a.x + e.b.x) / 2) / 70, 2)) : 0;
|
|
563
|
+
ctx.strokeStyle = H.rgba(H.mix(col, C.red, hot * 0.8), 0.18 + 0.55 * aw + 0.3 * adjGlow * aw);
|
|
564
|
+
ctx.lineWidth = 0.6 + 2.6 * aw + adjGlow * 0.8;
|
|
565
|
+
ctx.beginPath(); ctx.moveTo(e.a.x, e.a.y); ctx.lineTo(e.b.x, e.b.y); ctx.stroke();
|
|
566
|
+
}
|
|
567
|
+
ctx.restore();
|
|
568
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter';
|
|
569
|
+
if (fwdOn) waveDots(ctx, fwdX, C.cyan, 1);
|
|
570
|
+
if (backOn) waveDots(ctx, backX, C.red, -1);
|
|
571
|
+
ctx.restore();
|
|
572
|
+
// nodes
|
|
573
|
+
LAYERS.forEach((L, li) => L.forEach((n, k) => {
|
|
574
|
+
const lf = fwdOn ? Math.exp(-Math.pow((fwdX - n.x) / 45, 2)) : 0, lb = backOn ? Math.exp(-Math.pow((backX - n.x) / 45, 2)) : 0;
|
|
575
|
+
const pop = ebk(X.netIn[0] + 0.15 + li * 0.08 + k * 0.03, X.netIn[0] + 0.55 + li * 0.08 + k * 0.03, t);
|
|
576
|
+
if (pop <= 0) return;
|
|
577
|
+
ctx.save(); ctx.translate(n.x, n.y); ctx.scale(pop, pop);
|
|
578
|
+
ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, 0, 0, lb > lf ? C.red : C.cyan, 30, 0.25 + 0.75 * Math.max(lf, lb)); ctx.globalCompositeOperation = 'source-over';
|
|
579
|
+
ctx.fillStyle = '#0d1040'; ctx.beginPath(); ctx.arc(0, 0, 13, 0, 6.283); ctx.fill();
|
|
580
|
+
const g = ctx.createLinearGradient(-13, -13, 13, 13); g.addColorStop(0, C.cyan); g.addColorStop(1, C.violet);
|
|
581
|
+
ctx.strokeStyle = g; ctx.lineWidth = 2.4; ctx.stroke();
|
|
582
|
+
ctx.fillStyle = H.rgba(H.mix(lb > lf ? C.red : C.cyan, '#ffffff', 0.4), 0.35 + 0.65 * Math.max(lf, lb)); ctx.beginPath(); ctx.arc(0, 0, 5.5, 0, 6.283); ctx.fill();
|
|
583
|
+
ctx.restore();
|
|
584
|
+
}));
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
function explainer(ctx, W, Hh, t) {
|
|
588
|
+
// camera x for background parallax (pans with the beat-4 move)
|
|
589
|
+
const panE = eio(X.pan[0], X.pan[1], t);
|
|
590
|
+
const camX = 60 * eo(2, 6, t) + 900 * panE + 40 * eo(11, 15, t);
|
|
591
|
+
const lvl = 0.45 + 0.55 * eo(0, 0.8, t);
|
|
592
|
+
background(ctx, W, Hh, t, camX, lvl);
|
|
593
|
+
const sway = (k) => { ctx.translate(W / 2, Hh / 2); ctx.scale(k, k); ctx.translate(-W / 2 + 4 * Math.sin(t * 0.55), -Hh / 2 + 3 * Math.cos(t * 0.47)); };
|
|
594
|
+
|
|
595
|
+
// ------------------------------------------------ beat 1: hook (title in the middle, brain tile above)
|
|
596
|
+
const shr = eio(X.shrink[0], X.shrink[1], t);
|
|
597
|
+
const fly = eio(X.hubFly[0], X.hubFly[1], t);
|
|
598
|
+
if (t < X.hubFly[1]) {
|
|
599
|
+
ctx.save(); sway(1.04 - 0.04 * eo(0, 2.5, t));
|
|
600
|
+
const pop = ebk(0.15, 0.7, t);
|
|
601
|
+
const hx = lerp(640, HUB.x, fly), hy = lerp(250, HUB.y, fly), hs = lerp(150, HUB.s, fly);
|
|
602
|
+
// ring pulses around the tile while it waits
|
|
603
|
+
for (let i = 0; i < 2; i++) { const q = fract((t - 0.5) * 0.8 + i * 0.5); if (t > 0.5) ring(ctx, hx, hy, hs * 0.6 + q * 120, i ? C.violet : C.cyan, 0.35 * (1 - q) * (1 - fly)); }
|
|
604
|
+
tile(ctx, hx, hy, hs, 'brain', { sc: pop, a: cl(pop * 2), glow: 1.5 + 1.8 * bump(t, 0.5, 4) + 0.4 * Math.sin(t * 3), draw: eo(0.3, 1.1, t) });
|
|
605
|
+
eyebrow(ctx, 'AI EXPLAINED', 640, 380, { a: eo(0.45, 0.8, t) * (1 - eo(1.7, 2.0, t)), align: 'center', size: 20 });
|
|
606
|
+
ctx.restore();
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
// ------------------------------------------------ beat 2: data streams into the model
|
|
610
|
+
const zoomP = E.in(seg(X.zoom[0], X.zoom[1], t)), zA = 1 - seg(X.zoom[0] + 0.32, X.zoom[1] - 0.02, t);
|
|
611
|
+
if (t >= X.dbIn - 0.05 && t < X.zoom[1]) {
|
|
612
|
+
ctx.save(); sway(1.03 + 0.03 * eo(2.5, 5.9, t));
|
|
613
|
+
ctx.translate(HUB.x, HUB.y); ctx.scale(1 + 9 * zoomP, 1 + 9 * zoomP); ctx.translate(-HUB.x, -HUB.y);
|
|
614
|
+
ctx.globalAlpha = zA;
|
|
615
|
+
// lanes + pulses
|
|
616
|
+
LANES.forEach((P, i) => {
|
|
617
|
+
const d = eio(X.lanes[0] + i * 0.08, X.lanes[1] + i * 0.08, t);
|
|
618
|
+
const pulses = t > 3.0 ? [0, 1, 2].map((k) => fract((t - 3.0) * 0.7 + i * 0.21 + k / 3)) : [];
|
|
619
|
+
connector(ctx, P, { draw: d, col: [C.cyan, C.violet], pulses, lw: 2 });
|
|
620
|
+
});
|
|
621
|
+
// database source
|
|
622
|
+
const dbp = ebk(X.dbIn, X.dbIn + 0.45, t);
|
|
623
|
+
tile(ctx, DB.x, DB.y, DB.s, 'database', { sc: dbp, a: cl(dbp * 2), col: [C.cyan, C.blue], glow: 1.3 + 1.5 * bump(t, X.dbIn + 0.25, 5), draw: eo(X.dbIn + 0.1, X.dbIn + 0.7, t) });
|
|
624
|
+
pill(ctx, DB.x, DB.y + 100, 'Data', { size: 30, a: eo(2.8, 3.1, t), sc: 0.9 + 0.1 * eo(2.8, 3.1, t), dot: true });
|
|
625
|
+
// examples flowing along the lanes (drawn before the hub so they slide into it)
|
|
626
|
+
for (const ex of EXAMPLES) {
|
|
627
|
+
const f = (t - ex.s) / X.travel; if (f <= 0 || f >= 1) continue;
|
|
628
|
+
const u = lerp(0.14, 1, E.inOut(f) * 0.4 + f * 0.6), pt = ptAt(LANES[ex.lane], u);
|
|
629
|
+
const sc = (0.45 + 0.55 * E.out(cl((u - 0.14) / 0.16))) * (1 - 0.65 * E.in(cl((f - 0.78) / 0.22)));
|
|
630
|
+
const a = cl(f / 0.08) * (1 - cl((f - 0.9) / 0.1)) * (1 - seg(X.zoom[0], X.zoom[0] + 0.2, t));
|
|
631
|
+
const col = ex.kind === 'cat' ? [C.cyan, C.blue] : [C.violet, C.magenta];
|
|
632
|
+
tile(ctx, pt.x, pt.y, 84, ex.kind, { sc, a, col, glow: 1.2 });
|
|
633
|
+
pill(ctx, pt.x, pt.y + 64 * sc, ex.kind, { a: a * cl((u - 0.27) / 0.08), sc: sc, col, size: 28 });
|
|
634
|
+
}
|
|
635
|
+
// model hub (absorb flashes)
|
|
636
|
+
let flash = 0; for (const ex of EXAMPLES) flash += bump(t, ex.s + X.travel * 0.95, 7);
|
|
637
|
+
const hubGlow = 1.4 + Math.min(1.6, flash * 1.2) + 0.3 * Math.sin(t * 2.6);
|
|
638
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter';
|
|
639
|
+
const fg = ctx.createRadialGradient(HUB.x, HUB.y, 0, HUB.x, HUB.y, 260); fg.addColorStop(0, rgb(C.blue, 0.3 * fly)); fg.addColorStop(1, rgb(C.violet, 0));
|
|
640
|
+
ctx.fillStyle = fg; ctx.fillRect(HUB.x - 260, HUB.y - 260, 520, 520); ctx.restore();
|
|
641
|
+
for (let i = 0; i < 2; i++) { const q = fract((t - 2.7) * 0.6 + i * 0.5); ring(ctx, HUB.x, HUB.y, 96 + q * 90, i ? C.violet : C.cyan, 0.3 * (1 - q) * seg(2.7, 3.0, t)); }
|
|
642
|
+
if (t >= X.hubFly[1]) tile(ctx, HUB.x, HUB.y, HUB.s, 'brain', { glow: hubGlow });
|
|
643
|
+
pill(ctx, HUB.x, HUB.y + 138, 'Model', { size: 30, a: eo(2.85, 3.15, t), dot: true, col: [C.violet, C.magenta] });
|
|
644
|
+
// counter
|
|
645
|
+
const ca = eo(2.6, 2.95, t);
|
|
646
|
+
if (ca > 0) {
|
|
647
|
+
ctx.save(); ctx.globalAlpha *= ca; ctx.translate(0, (1 - ca) * 18);
|
|
648
|
+
eyebrow(ctx, 'TRAINING DATA', 640, 112, { align: 'center', size: 28 });
|
|
649
|
+
const p = seg(X.countA, X.countB, t), val = Math.round(1e6 * Math.pow(p, 2.2));
|
|
650
|
+
const done = bump(t, X.countB, 4);
|
|
651
|
+
ctx.font = F(700, 80, HEAD); const wN = ctx.measureText('1,000,000').width;
|
|
652
|
+
ctx.font = F(600, 30, UI); const wE = ctx.measureText('examples').width;
|
|
653
|
+
const x0 = 640 - (wN + 16 + wE) / 2;
|
|
654
|
+
ctx.save(); ctx.translate(x0 + wN, 196); ctx.scale(1 + 0.06 * done, 1 + 0.06 * done);
|
|
655
|
+
if (done > 0.02) { ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, -wN / 2, -28, C.cyan, 240, 0.25 * done); ctx.globalCompositeOperation = 'source-over'; }
|
|
656
|
+
gtext(ctx, val.toLocaleString('en-US'), 0, 0, 80, { align: 'right', cols: done > 0.05 ? ['#ffffff', '#b6f6ff', '#c3b2ff'] : GRAD_NUM });
|
|
657
|
+
ctx.restore();
|
|
658
|
+
ctx.fillStyle = '#b8c0f0'; ctx.font = F(600, 30, UI); ctx.textAlign = 'left'; ctx.fillText('examples', x0 + wN + 16, 196);
|
|
659
|
+
ctx.restore();
|
|
660
|
+
}
|
|
661
|
+
ctx.restore();
|
|
662
|
+
// speed streaks + flash while pushing through the brain
|
|
663
|
+
const st = Math.sin(Math.PI * seg(X.zoom[0] + 0.05, X.zoom[1] + 0.1, t));
|
|
664
|
+
if (st > 0.01) {
|
|
665
|
+
ctx.save(); ctx.globalCompositeOperation = 'lighter'; const r = H.rng(5);
|
|
666
|
+
for (let i = 0; i < 46; i++) {
|
|
667
|
+
const ang = r() * 6.283, r0 = 60 + r() * 200 + zoomP * 400, len = 80 + r() * 260 * (0.3 + zoomP);
|
|
668
|
+
const c = r.pick([C.cyan, C.violet, C.blue]);
|
|
669
|
+
const g = ctx.createLinearGradient(HUB.x + Math.cos(ang) * r0, HUB.y + Math.sin(ang) * r0, HUB.x + Math.cos(ang) * (r0 + len), HUB.y + Math.sin(ang) * (r0 + len));
|
|
670
|
+
g.addColorStop(0, rgb(c, 0)); g.addColorStop(1, rgb(c, 0.5 * st));
|
|
671
|
+
ctx.strokeStyle = g; ctx.lineWidth = 1 + r() * 2; ctx.beginPath();
|
|
672
|
+
ctx.moveTo(HUB.x + Math.cos(ang) * r0, HUB.y + Math.sin(ang) * r0); ctx.lineTo(HUB.x + Math.cos(ang) * (r0 + len), HUB.y + Math.sin(ang) * (r0 + len)); ctx.stroke();
|
|
673
|
+
}
|
|
674
|
+
const fl = Math.exp(-Math.pow((t - 6.38) / 0.12, 2));
|
|
675
|
+
glowDot(ctx, HUB.x, HUB.y, C.cyan, 700, 0.5 * fl);
|
|
676
|
+
ctx.restore();
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
// ------------------------------------------------ beat 3: guess -> check -> adjust
|
|
681
|
+
const b3x = -1350 * panE;
|
|
682
|
+
if (t >= X.netIn[0] && t < X.pan[1]) {
|
|
683
|
+
ctx.save(); sway(1 + 0.02 * eo(6.5, 10.4, t)); ctx.translate(b3x, 0);
|
|
684
|
+
const nin = eo(X.netIn[0], X.netIn[1], t);
|
|
685
|
+
const ncx = NET.x + NET.w / 2, ncy = NET.y + NET.h / 2;
|
|
686
|
+
ctx.save();
|
|
687
|
+
ctx.translate(lerp(HUB.x, ncx, nin), lerp(HUB.y, ncy, nin)); ctx.scale(lerp(0.2, 1, nin), lerp(0.2, 1, nin)); ctx.translate(-ncx, -ncy);
|
|
688
|
+
ctx.globalAlpha = seg(X.netIn[0], X.netIn[0] + 0.25, t);
|
|
689
|
+
const adjFlash = Math.sin(Math.PI * seg(X.morph[0], X.morph[1], t));
|
|
690
|
+
card(ctx, NET.x, NET.y, NET.w, NET.h, { acc: [C.cyan, C.violet], flash: 0.5 * adjFlash, flashCol: C.magenta });
|
|
691
|
+
eyebrow(ctx, 'MODEL', NET.x + 26, NET.y + 48, { size: 28, col: C.violet });
|
|
692
|
+
ctx.restore();
|
|
693
|
+
if (t > X.netIn[0] + 0.15) network(ctx, t);
|
|
694
|
+
// weights pill lands on the network card
|
|
695
|
+
const up = ebk(X.updated, X.updated + 0.35, t);
|
|
696
|
+
pill(ctx, NET.x + NET.w / 2, NET.y + NET.h + 2, 'weights adjusted', { a: cl(up * 2), sc: up, col: [C.magenta, C.violet], dot: true, size: 28 });
|
|
697
|
+
// input tile + its fan of connectors
|
|
698
|
+
const ip = eo(X.inputIn[0], X.inputIn[1], t);
|
|
699
|
+
tile(ctx, lerp(-120, INPUT.x, ip), INPUT.y, INPUT.s, 'cat', { a: ip, col: [C.cyan, C.blue], glow: 1.3 + 1.2 * bump(t, X.inputIn[1], 5) });
|
|
700
|
+
eyebrow(ctx, 'NEW PHOTO', lerp(-120, INPUT.x, ip), INPUT.y - 86, { a: ip, size: 28, align: 'center' });
|
|
701
|
+
IN_LINES.forEach((P, i) => {
|
|
702
|
+
const pul = [];
|
|
703
|
+
if (t > X.inLines[1] - 0.1 && t < X.fwd1[0] + 0.15) pul.push(seg(X.inLines[1] - 0.1, X.fwd1[0] + 0.15, t) * 1.15);
|
|
704
|
+
if (t > X.fwd2[0] - 0.25 && t < X.fwd2[0] + 0.05) pul.push(seg(X.fwd2[0] - 0.25, X.fwd2[0] + 0.05, t) * 1.15);
|
|
705
|
+
connector(ctx, P, { draw: eio(X.inLines[0] + i * 0.03, X.inLines[1] + i * 0.03, t), col: [C.cyan, C.blue], pulses: pul, noEnds: true });
|
|
706
|
+
});
|
|
707
|
+
// output fan into the answer card (forward pulses, then the error pulse running back in red)
|
|
708
|
+
OUT_LINES.forEach((P, i) => {
|
|
709
|
+
const pul = [];
|
|
710
|
+
if (t > X.fwd1[1] - 0.12 && t < X.ans1 + 0.1) pul.push(seg(X.fwd1[1] - 0.12, X.ans1 + 0.05, t) * 1.15);
|
|
711
|
+
if (t > X.fwd2[1] - 0.12 && t < X.ans2 + 0.1) pul.push(seg(X.fwd2[1] - 0.12, X.ans2 + 0.05, t) * 1.15);
|
|
712
|
+
connector(ctx, P, { draw: eio(X.outLines[0], X.outLines[1], t), col: [C.violet, C.cyan], pulses: pul, noEnds: true });
|
|
713
|
+
if (t > X.errBack[0] && t < X.errBack[1] + 0.12) pulseOn(ctx, P, 1 - seg(X.errBack[0], X.errBack[1], t) * 1.1, C.red, 0.3);
|
|
714
|
+
});
|
|
715
|
+
// answer card
|
|
716
|
+
const ap = eo(X.ansIn[0], X.ansIn[1], t);
|
|
717
|
+
if (ap > 0) {
|
|
718
|
+
const wrong = t >= X.check && t < X.ans2, right = t >= X.ans2;
|
|
719
|
+
const shake = t > X.check ? 9 * Math.sin((t - X.check) * 55) * Math.exp(-(t - X.check) * 9) : 0;
|
|
720
|
+
ctx.save(); ctx.globalAlpha = ap; ctx.translate(shake + (1 - ap) * 40, 0);
|
|
721
|
+
const fl = wrong ? 0.9 * bump(t, X.check, 3) + 0.25 : right ? 0.9 * bump(t, X.ans2, 3) + 0.2 : 0;
|
|
722
|
+
card(ctx, ANS.x, ANS.y, ANS.w, ANS.h, { acc: right ? [C.green, C.cyan] : [C.violet, C.cyan], flash: fl, flashCol: right ? C.green : C.red });
|
|
723
|
+
eyebrow(ctx, 'OUTPUT', ANS.x + 26, ANS.y + 50, { size: 28, col: right ? C.green : C.cyan });
|
|
724
|
+
// the guess
|
|
725
|
+
const g1 = ebk(X.ans1, X.ans1 + 0.3, t), g2 = ebk(X.ans2, X.ans2 + 0.3, t);
|
|
726
|
+
const word = right ? 'cat' : 'dog?', gp = right ? g2 : g1;
|
|
727
|
+
if (gp > 0) {
|
|
728
|
+
ctx.save(); ctx.translate(ANS.x + 40, ANS.y + 150); ctx.scale(0.7 + 0.3 * gp, 0.7 + 0.3 * gp); ctx.globalAlpha *= cl(gp * 2);
|
|
729
|
+
gtext(ctx, word, 0, 0, 70, { cols: right ? ['#ffffff', '#9ffbe0', C.green] : wrong ? ['#ffffff', '#ffc2d2', C.red] : GRAD_HEAD });
|
|
730
|
+
ctx.restore();
|
|
731
|
+
}
|
|
732
|
+
// verdict badge
|
|
733
|
+
const bx = ANS.x + ANS.w - 70, by = ANS.y + 128;
|
|
734
|
+
const bp = right ? ebk(X.ans2 + 0.05, X.ans2 + 0.4, t) : ebk(X.check, X.check + 0.3, t);
|
|
735
|
+
if ((wrong || right) && bp > 0) {
|
|
736
|
+
const col = right ? C.green : C.red;
|
|
737
|
+
ctx.save(); rr(ctx, ANS.x + 1, ANS.y + 1, ANS.w - 2, ANS.h - 2, 21); ctx.clip(); // keep the shock ring inside the card
|
|
738
|
+
ring(ctx, bx, by, 34 + (1 - bump(t, right ? X.ans2 : X.check, 3)) * 62, col, 0.8 * bump(t, right ? X.ans2 : X.check, 3), 3);
|
|
739
|
+
ctx.restore();
|
|
740
|
+
ctx.save(); ctx.translate(bx, by); ctx.scale(bp, bp);
|
|
741
|
+
ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, 0, 0, col, 70, 0.5); ctx.globalCompositeOperation = 'source-over';
|
|
742
|
+
ctx.fillStyle = H.rgba(H.mix(col, '#0a0b2a', 0.55), 1); ctx.beginPath(); ctx.arc(0, 0, 32, 0, 6.283); ctx.fill();
|
|
743
|
+
ctx.strokeStyle = col; ctx.lineWidth = 2.5; ctx.stroke();
|
|
744
|
+
ctx.strokeStyle = '#ffffff'; ctx.lineWidth = 5; ctx.lineCap = 'round'; ctx.lineJoin = 'round'; ctx.beginPath(); ICONS[right ? 'check' : 'cross'](ctx, 26); ctx.stroke();
|
|
745
|
+
ctx.restore();
|
|
746
|
+
}
|
|
747
|
+
// the true label lands under the guess
|
|
748
|
+
const tp = eo(X.truth, X.truth + 0.35, t);
|
|
749
|
+
if (tp > 0) {
|
|
750
|
+
ctx.save(); ctx.globalAlpha *= tp; ctx.translate(0, (1 - tp) * -24);
|
|
751
|
+
ctx.font = F(600, 30, UI); ctx.fillStyle = '#e3e7ff'; ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic';
|
|
752
|
+
ctx.fillText(right ? 'Correct:' : 'Answer:', ANS.x + 34, ANS.y + 236);
|
|
753
|
+
const lw = ctx.measureText(right ? 'Correct:' : 'Answer:').width;
|
|
754
|
+
ctx.restore();
|
|
755
|
+
pill(ctx, ANS.x + 34 + lw + 64, ANS.y + 226 + (1 - tp) * -24, 'cat', { a: tp, col: [C.green, C.cyan], dot: true, size: 30 });
|
|
756
|
+
}
|
|
757
|
+
ctx.restore();
|
|
758
|
+
}
|
|
759
|
+
// loop chips (top), connectors between them, return arc Adjust -> Guess
|
|
760
|
+
const chipA = (i) => eo(X.chips + i * 0.1, X.chips + 0.35 + i * 0.1, t);
|
|
761
|
+
CHIP_LINES.forEach((P, i) => {
|
|
762
|
+
const pul = [];
|
|
763
|
+
if (t > X.check - 0.25 && t < X.check + 0.05 && i === 0) pul.push(seg(X.check - 0.25, X.check, t));
|
|
764
|
+
if (t > X.errBack[0] - 0.05 && t < X.errBack[0] + 0.25 && i === 1) pul.push(seg(X.errBack[0] - 0.05, X.errBack[0] + 0.2, t));
|
|
765
|
+
if (t > X.ans2 - 0.2 && t < X.ans2 + 0.1 && i === 0) pul.push(seg(X.ans2 - 0.2, X.ans2 + 0.05, t));
|
|
766
|
+
connector(ctx, P, { draw: eio(X.chips + 0.2 + i * 0.1, X.chips + 0.5 + i * 0.1, t), pulses: pul, noEnds: true });
|
|
767
|
+
});
|
|
768
|
+
connector(ctx, LOOP_LINE, { draw: eio(X.chips + 0.4, X.chips + 0.9, t), a: 0.75, col: [C.violet, C.cyan], noEnds: true,
|
|
769
|
+
pulses: t > X.loopBack[0] && t < X.loopBack[1] + 0.12 ? [seg(X.loopBack[0], X.loopBack[1], t) * 1.15] : [], pc: '#d9b8ff' });
|
|
770
|
+
// arrowhead on the return arc
|
|
771
|
+
if (eio(X.chips + 0.4, X.chips + 0.9, t) >= 1) { ctx.save(); ctx.globalAlpha = 0.85; ctx.strokeStyle = C.cyan; ctx.lineWidth = 2; ctx.lineCap = 'round'; ctx.beginPath(); ctx.moveTo(390, CHIP_Y - 41); ctx.lineTo(400, CHIP_Y - 29); ctx.lineTo(413, CHIP_Y - 39); ctx.stroke(); ctx.restore(); }
|
|
772
|
+
const actG = winAct(t, [[X.fwd1[0] - 0.1, X.check], [X.loopBack[1], X.ans2]]);
|
|
773
|
+
const actC = winAct(t, [[X.check, X.errBack[0]], [X.ans2, X.pan[1] + 1]]);
|
|
774
|
+
const actA = winAct(t, [[X.errBack[0], X.loopBack[1]]]);
|
|
775
|
+
[actG, actC, actA].forEach((ac, i) => chip(ctx, CHIPS[i], ac, chipA(i)));
|
|
776
|
+
ctx.restore();
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// ------------------------------------------------ beat 4: accuracy climbs (pans in from the right), then 5: pull back + takeaway
|
|
780
|
+
if (t >= X.pan[0]) {
|
|
781
|
+
const pull = eio(X.pull[0], X.pull[1], t);
|
|
782
|
+
ctx.save(); sway(1 + 0.02 * eo(11, 13, t) - 0.02 * pull);
|
|
783
|
+
ctx.translate(1350 * (1 - panE), 0);
|
|
784
|
+
// pull-back: shrink the chart card to the top
|
|
785
|
+
const cs = lerp(1, 0.62, pull), ccx = 640, ccy = lerp(380, 244, pull);
|
|
786
|
+
ctx.save(); ctx.translate(ccx, ccy); ctx.scale(cs, cs); ctx.translate(-640, -380); ctx.globalAlpha = 1 - 0.06 * pull;
|
|
787
|
+
const up = (a, b) => lerp(a, b, pull); // counter-scale type as the card shrinks so it stays legible on screen
|
|
788
|
+
const hitB = bump(t, X.hit, 3.2);
|
|
789
|
+
card(ctx, 110, 140, 1060, 480, { r: 26, flash: 0.9 * hitB, flashCol: C.cyan });
|
|
790
|
+
eyebrow(ctx, 'ACCURACY', 160, up(214, 222), { size: up(28, 45) });
|
|
791
|
+
const f = E.out(seg(X.acc[0], X.acc[1], t)), val = Math.round(accAt(f));
|
|
792
|
+
// big number
|
|
793
|
+
ctx.save(); ctx.translate(156, 345); const sc = 1 + 0.1 * hitB; ctx.scale(sc, sc);
|
|
794
|
+
if (hitB > 0.02) { ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, 120, -40, C.cyan, 260, 0.35 * hitB); ctx.globalCompositeOperation = 'source-over'; }
|
|
795
|
+
gtext(ctx, val + '%', 0, 0, 132, { cols: hitB > 0.05 ? ['#ffffff', '#c4f8ff', '#a8ffe4'] : GRAD_NUM });
|
|
796
|
+
ctx.restore();
|
|
797
|
+
if (t > X.hit) for (let i = 0; i < 2; i++) { const q = 1 - bump(t, X.hit + i * 0.12, 2.5); ring(ctx, 300, 300, 80 + q * 260, i ? C.violet : C.cyan, 0.7 * (1 - q), 3); }
|
|
798
|
+
// round counter pill + loop tile
|
|
799
|
+
const rounds = Math.round(Math.pow(f, 1.4) * 10000);
|
|
800
|
+
const gx = up(0, -24); // the round-counter group slides left a touch to make room for the larger type
|
|
801
|
+
tile(ctx, 190 + gx, 440, 70, 'loop', { col: [C.cyan, C.violet], glow: 1.2 + 0.4 * Math.sin(t * 6) });
|
|
802
|
+
ctx.font = F(600, up(30, 45), UI); ctx.fillStyle = rgb(H.mix('#c2c9f5', '#e3e7ff', pull), 1); ctx.textAlign = 'left'; ctx.textBaseline = 'alphabetic';
|
|
803
|
+
ctx.fillText('training round', 244 + gx, up(430, 422));
|
|
804
|
+
gtext(ctx, rounds.toLocaleString('en-US'), 244 + gx, up(476, 494), up(42, 64), { cols: GRAD_NUM });
|
|
805
|
+
ctx.font = F(400, up(24, 32), UI); ctx.fillStyle = rgb(H.mix('#8890c4', '#b9c0ec', pull), 1); ctx.fillText('guess → check → adjust', 160, up(566, 606));
|
|
806
|
+
// chart (slides right a touch during the pull-back so the larger counter-scaled labels clear the tick column)
|
|
807
|
+
const CHp = { x: CH.x + 48 * pull, y: CH.y, w: CH.w - 48 * pull, h: CH.h };
|
|
808
|
+
ctx.save();
|
|
809
|
+
ctx.strokeStyle = 'rgba(150,170,255,0.12)'; ctx.lineWidth = 1; ctx.font = F(500, up(22, 28), UI); ctx.fillStyle = rgb(H.mix('#7c84b8', '#a7aedd', pull), 1); ctx.textAlign = 'right'; ctx.textBaseline = 'middle';
|
|
810
|
+
for (let v = 50; v <= 100; v += 10) { const y = CHp.y + CHp.h - (v - 50) / 50 * CHp.h; ctx.beginPath(); ctx.moveTo(CHp.x, y); ctx.lineTo(CHp.x + CHp.w, y); ctx.stroke(); ctx.fillText(v + '%', CHp.x - up(12, 8), y); }
|
|
811
|
+
ctx.textAlign = 'right'; ctx.textBaseline = 'alphabetic'; ctx.font = F(600, up(28, 44), UI); ctx.fillStyle = rgb(H.mix('#9aa3d8', '#c7cdf2', pull), 1); ctx.fillText('training rounds →', CHp.x + CHp.w, CHp.y + CHp.h + up(40, 50));
|
|
812
|
+
const N = 60, pts = [];
|
|
813
|
+
for (let i = 0; i <= N; i++) { const u = i / N; const wig = 2.2 * Math.sin(u * 37) * (1 - u) * (u > 0 ? 1 : 0); pts.push({ x: CHp.x + u * CHp.w, y: CHp.y + CHp.h - (accAt(u) + wig - 50) / 50 * CHp.h }); }
|
|
814
|
+
const nShow = f * N;
|
|
815
|
+
if (nShow > 0) {
|
|
816
|
+
const last = Math.floor(nShow), fr = nShow - last, end = last < N ? { x: lerp(pts[last].x, pts[last + 1].x, fr), y: lerp(pts[last].y, pts[last + 1].y, fr) } : pts[N];
|
|
817
|
+
// area
|
|
818
|
+
const ag = ctx.createLinearGradient(0, CHp.y, 0, CHp.y + CHp.h); ag.addColorStop(0, rgb(C.cyan, 0.28)); ag.addColorStop(1, rgb(C.violet, 0));
|
|
819
|
+
ctx.beginPath(); ctx.moveTo(pts[0].x, CHp.y + CHp.h); for (let i = 0; i <= last; i++) ctx.lineTo(pts[i].x, pts[i].y); ctx.lineTo(end.x, end.y); ctx.lineTo(end.x, CHp.y + CHp.h); ctx.closePath(); ctx.fillStyle = ag; ctx.fill();
|
|
820
|
+
const lg = ctx.createLinearGradient(CHp.x, 0, CHp.x + CHp.w, 0); lg.addColorStop(0, C.violet); lg.addColorStop(0.5, C.blue); lg.addColorStop(1, C.cyan);
|
|
821
|
+
ctx.beginPath(); for (let i = 0; i <= last; i++) i ? ctx.lineTo(pts[i].x, pts[i].y) : ctx.moveTo(pts[i].x, pts[i].y); ctx.lineTo(end.x, end.y);
|
|
822
|
+
ctx.strokeStyle = lg; ctx.lineWidth = 4; ctx.lineCap = 'round'; ctx.lineJoin = 'round'; ctx.stroke();
|
|
823
|
+
ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, end.x, end.y, C.cyan, 26 + 40 * hitB, 1);
|
|
824
|
+
ctx.globalCompositeOperation = 'source-over';
|
|
825
|
+
ctx.fillStyle = '#ffffff'; ctx.beginPath(); ctx.arc(end.x, end.y, 5, 0, 6.283); ctx.fill();
|
|
826
|
+
// start marker label
|
|
827
|
+
ctx.font = F(600, up(28, 44), UI); ctx.fillStyle = rgb(H.mix('#c2c9f5', '#e3e7ff', pull), 1); ctx.textAlign = 'left'; ctx.fillText('61%', pts[0].x + 16, pts[0].y + up(42, 52));
|
|
828
|
+
}
|
|
829
|
+
ctx.restore();
|
|
830
|
+
ctx.restore();
|
|
831
|
+
|
|
832
|
+
// takeaway
|
|
833
|
+
if (t > X.pull[0]) {
|
|
834
|
+
ctx.font = F(700, 64, HEAD);
|
|
835
|
+
const sL = 'More examples', sA = ' → ', sR = 'better guesses';
|
|
836
|
+
const wL = ctx.measureText(sL).width, wA = ctx.measureText(sA).width, wR = ctx.measureText(sR).width;
|
|
837
|
+
const x0 = 640 - (wL + wA + wR) / 2, ty = 646;
|
|
838
|
+
const lx = x0 + wL / 2, rx = x0 + wL + wA + wR / 2;
|
|
839
|
+
const p1 = ebk(X.tkTiles[0], X.tkTiles[0] + 0.45, t), p2 = ebk(X.tkTiles[1], X.tkTiles[1] + 0.45, t);
|
|
840
|
+
const TP = seg2(lx + 72, 494, rx - 72, 494);
|
|
841
|
+
connector(ctx, TP, { draw: eio(X.tkTiles[0] + 0.2, X.tkTiles[1] + 0.35, t), col: [C.cyan, C.green], lw: 2.4,
|
|
842
|
+
pulses: t > 13.75 ? [0, 1].map((k) => fract((t - 13.75) * 0.8 + k * 0.5)) : [], pc: '#b8fff0' });
|
|
843
|
+
tile(ctx, lx, 494, 130, 'database', { sc: p1, a: cl(p1 * 2), col: [C.cyan, C.blue], glow: 1.4 + 1.2 * bump(t, X.tkTiles[0] + 0.25, 4) });
|
|
844
|
+
tile(ctx, rx, 494, 130, 'check', { sc: p2, a: cl(p2 * 2), col: [C.cyan, C.green], glow: 1.5 + 1.6 * bump(t, 13.9, 3) + 0.3 * Math.sin(t * 3) });
|
|
845
|
+
const pa = seg(X.tkText[0], X.tkText[1], t);
|
|
846
|
+
const wp = (k) => E.out(cl(pa * 3 - k));
|
|
847
|
+
ctx.save(); ctx.font = F(700, 64, HEAD); ctx.textBaseline = 'alphabetic'; ctx.textAlign = 'left';
|
|
848
|
+
const g = ctx.createLinearGradient(x0, ty - 64, x0 + wL + wA + wR, ty); g.addColorStop(0, '#ffffff'); g.addColorStop(0.2, '#e4f8ff'); g.addColorStop(0.55, '#9fe6ff'); g.addColorStop(1, '#8ff5d0');
|
|
849
|
+
ctx.fillStyle = g;
|
|
850
|
+
[[sL, x0, 0], [sA, x0 + wL, 1], [sR, x0 + wL + wA, 2]].forEach(([s, x, k]) => { const p = wp(k); if (p > 0) { ctx.globalAlpha = p; ctx.fillText(s, x, ty + (1 - p) * 26); } });
|
|
851
|
+
ctx.restore();
|
|
852
|
+
// underline sweep
|
|
853
|
+
const ul = eio(X.underline[0], X.underline[1], t);
|
|
854
|
+
if (ul > 0) {
|
|
855
|
+
ctx.save(); const ug = ctx.createLinearGradient(x0, 0, x0 + wL + wA + wR, 0); ug.addColorStop(0, rgb(C.cyan, 0)); ug.addColorStop(0.3, C.cyan); ug.addColorStop(0.7, C.violet); ug.addColorStop(1, rgb(C.violet, 0));
|
|
856
|
+
ctx.strokeStyle = ug; ctx.lineWidth = 3; ctx.lineCap = 'round'; ctx.beginPath(); const cx = 640, hw = (wL + wA + wR) / 2 * ul; ctx.moveTo(cx - hw, ty + 22); ctx.lineTo(cx + hw, ty + 22); ctx.stroke();
|
|
857
|
+
ctx.globalCompositeOperation = 'lighter'; glowDot(ctx, cx + hw, ty + 22, C.cyan, 20, 1 - ul * 0.6); glowDot(ctx, cx - hw, ty + 22, C.violet, 20, 1 - ul * 0.6);
|
|
858
|
+
ctx.restore();
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
ctx.restore();
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
// ------------------------------------------------ title -> header (always on top, outside the camera)
|
|
865
|
+
{
|
|
866
|
+
const words = 'How does AI learn?';
|
|
867
|
+
ctx.font = F(700, 80, HEAD); const w = ctx.measureText(words).width;
|
|
868
|
+
const sx0 = 640 - w / 2, sy0 = 470;
|
|
869
|
+
const k = lerp(1, 0.45, shr), x = lerp(sx0, 56, shr), y = lerp(sy0, 70, shr);
|
|
870
|
+
ctx.save(); ctx.translate(x, y); ctx.scale(k, k);
|
|
871
|
+
revealLine(ctx, words, 0, 0, 80, seg(0.4, 1.25, t));
|
|
872
|
+
ctx.restore();
|
|
873
|
+
if (shr > 0.5) {
|
|
874
|
+
ctx.save(); ctx.globalAlpha = eo(X.shrink[1] - 0.2, X.shrink[1] + 0.2, t);
|
|
875
|
+
const hg = ctx.createLinearGradient(56, 0, 56 + w * 0.45, 0); hg.addColorStop(0, C.cyan); hg.addColorStop(1, rgb(C.violet, 0));
|
|
876
|
+
ctx.fillStyle = hg; ctx.fillRect(56, 86, w * 0.45 * eo(X.shrink[1] - 0.1, X.shrink[1] + 0.4, t), 2);
|
|
877
|
+
ctx.restore();
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
bloom(ctx, 1);
|
|
881
|
+
H.vignette(ctx, W, Hh, 0.45, '2,3,16');
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
// =====================================================================================================
|
|
886
|
+
// SOUND: clean motion-graphics design. Timings come straight from X (the explainer's own constants).
|
|
887
|
+
// =====================================================================================================
|
|
888
|
+
function explainerSound(k) {
|
|
889
|
+
const D = X.D;
|
|
890
|
+
// soft clean whoosh (filtered pink noise, low top so it stays gentle)
|
|
891
|
+
const whoosh = (t, dur, g = 1, top = 1500, o = {}) => k.noise(t, { dur, color: 'pink', filter: 'bandpass', f: [[0, 260], [dur * 0.55, top], [dur, 420]], q: 0.8, gain: 0.16 * g, a: dur * 0.5, verb: 0.2, pan: o.pan || 0, minor: o.minor });
|
|
892
|
+
// glassy low blip for an icon landing: sine + soft octave + a short triangle body, all under 2 kHz
|
|
893
|
+
const glass = (t, f, g = 1, o = {}) => {
|
|
894
|
+
k.tone(t, { f, dur: 0.5, gain: 0.13 * g, a: 0.003, verb: 0.35, pan: o.pan || 0, minor: o.minor });
|
|
895
|
+
k.tone(t, { f: f * 2, dur: 0.18, gain: 0.035 * g, a: 0.002, verb: 0.3, pan: o.pan || 0, minor: o.minor });
|
|
896
|
+
k.tone(t, { f: f / 2, type: 'triangle', dur: 0.12, gain: 0.08 * g, a: 0.002, pan: o.pan || 0, minor: o.minor });
|
|
897
|
+
};
|
|
898
|
+
// gentle digital tick for counters
|
|
899
|
+
const tick = (t, g = 1, f = 1700) => {
|
|
900
|
+
k.noise(t, { dur: 0.016, filter: 'bandpass', f, q: 3, gain: 0.36 * g, a: 0.001, pan: 0.15, minor: true });
|
|
901
|
+
k.tone(t, { f: f * 0.55, dur: 0.035, gain: 0.065 * g, a: 0.001, pan: 0.15, minor: true });
|
|
902
|
+
};
|
|
903
|
+
// a signal travelling through the network: a soft sine glide
|
|
904
|
+
const glide = (t, dur, f0, f1, g = 1, type = 'sine') => k.tone(t, { f: [[0, f0], [dur, f1]], type, dur: dur + 0.08, gain: 0.05 * g, a: dur * 0.4, hold: dur * 0.3, filter: 'lowpass', f2: 1400, verb: 0.25, minor: true });
|
|
905
|
+
// throttled ticks on every value change of val(t), never closer than gap
|
|
906
|
+
const counter = (val, a, b, gap, g, f) => { let last = -1, prev = val(a); for (let t = a; t <= b; t += 0.002) { const v = val(t); if (v !== prev && t - last >= gap) { tick(t, g, f); last = t; } prev = v; } };
|
|
907
|
+
|
|
908
|
+
// ---- quiet ambient synth pad bed (minor-key loop, resolves to A major under the takeaway)
|
|
909
|
+
k.music('pad', 0, 13.6, { bpm: 64, gain: 0.5, chords: [['A2', 'E3', 'B3', 'C4'], ['F2', 'C3', 'E3', 'A3'], ['D3', 'A3', 'C4', 'E4'], ['E2', 'B2', 'E3', 'G#3']] });
|
|
910
|
+
k.music('pad', 13.6, D, { bpm: 64, gain: 0.5, chords: [['A2', 'E3', 'A3', 'C#4']] });
|
|
911
|
+
|
|
912
|
+
// ---- beat 1: brain tile pops (back-ease 0.15-0.7), title rises word by word (0.4-1.25)
|
|
913
|
+
whoosh(0.08, 0.4, 0.6);
|
|
914
|
+
glass(0.36, 'A4', 1.1);
|
|
915
|
+
whoosh(0.42, 0.75, 0.8, 1300);
|
|
916
|
+
// title shrinks to the corner while the brain flies to the model spot
|
|
917
|
+
k.noise(X.shrink[0], { dur: 0.7, color: 'pink', filter: 'lowpass', f: [[0, 300], [0.4, 900], [0.7, 300]], gain: 0.16, a: 0.3 });
|
|
918
|
+
|
|
919
|
+
// ---- beat 2: data source + lanes + counter
|
|
920
|
+
glass(X.dbIn + 0.2, 'E4', 1, { pan: -0.6 });
|
|
921
|
+
whoosh(X.lanes[0], 0.6, 0.5, 1100, { minor: true });
|
|
922
|
+
glass(2.92, 'C5', 0.6, { pan: 0.5, minor: true }); // "Model" pill
|
|
923
|
+
counter((t) => Math.round(1e6 * Math.pow(seg(X.countA, X.countB, t), 2.2) / 2500), X.countA + 0.05, X.countB - 0.02, 0.09, 0.8, 1700);
|
|
924
|
+
glass(X.countB, 'E5', 1.0); tick(X.countB, 1.2, 1500); // locks on 1,000,000
|
|
925
|
+
// examples sliding into the model (only those absorbed before the push-in)
|
|
926
|
+
EXAMPLES.forEach((ex, i) => { const ta = ex.s + X.travel * 0.95; if (ta < X.zoom[0]) k.tone(ta, { f: i % 2 ? 'A3' : 'E3', dur: 0.22, gain: 0.07, a: 0.004, verb: 0.3, pan: 0.6, minor: true }); });
|
|
927
|
+
|
|
928
|
+
// ---- push through the brain (5.9-6.55): long whoosh, soft low thump at the flash
|
|
929
|
+
whoosh(X.zoom[0] - 0.05, 0.75, 1.3, 1700);
|
|
930
|
+
k.play('thud', 6.36, { f: 85, gain: 0.45 });
|
|
931
|
+
|
|
932
|
+
// ---- beat 3: network assembles, input slides in
|
|
933
|
+
k.withMinor(() => { [0, 1, 2, 3].forEach((i) => glass(X.netIn[0] + 0.3 + i * 0.08, ['E4', 'A4', 'B4', 'E5'][i], 0.35, { pan: -0.3 + i * 0.1 })); });
|
|
934
|
+
whoosh(X.inputIn[0], 0.35, 0.6, 1200, { pan: -0.6, minor: true });
|
|
935
|
+
glide(X.fwd1[0], X.fwd1[1] - X.fwd1[0], 260, 620); // forward pass
|
|
936
|
+
glass(X.ans1 + 0.06, 'C5', 0.9, { pan: 0.5 }); // "dog?"
|
|
937
|
+
// wrong: a soft low two-note drop + body thud
|
|
938
|
+
k.tone(X.check, { f: 'G4', type: 'triangle', dur: 0.2, gain: 0.12, a: 0.003, hold: 0.06, filter: 'lowpass', f2: 1200, pan: 0.5, verb: 0.2 });
|
|
939
|
+
k.tone(X.check + 0.13, { f: 'D#4', type: 'triangle', dur: 0.36, gain: 0.12, a: 0.003, hold: 0.1, filter: 'lowpass', f2: 1000, pan: 0.5, verb: 0.25 });
|
|
940
|
+
k.play('thud', X.check, { f: 110, gain: 0.5, pan: 0.4 });
|
|
941
|
+
glass(X.truth + 0.12, 'A4', 0.5, { pan: 0.5, minor: true }); // "Answer: cat" lands
|
|
942
|
+
// error signal runs back: falling filtered saw
|
|
943
|
+
k.tone(X.errBack[0], { f: [[0, 640], [X.backWave[1] - X.errBack[0], 180]], type: 'sawtooth', dur: X.backWave[1] - X.errBack[0], gain: 0.034, a: 0.05, hold: 0.4, filter: 'lowpass', f2: 900, verb: 0.2 });
|
|
944
|
+
// weights re-dial: a little run of ticks while the edges morph
|
|
945
|
+
for (let i = 0; i < 7; i++) tick(X.morph[0] + i * 0.085, 1.0, 1100 + i * 60);
|
|
946
|
+
glass(X.updated + 0.15, 'B4', 0.5, { pan: -0.2, minor: true }); // "weights adjusted"
|
|
947
|
+
whoosh(X.loopBack[0], 0.3, 0.4, 1000, { minor: true }); // pulse runs the loop arc
|
|
948
|
+
glide(X.fwd2[0], X.fwd2[1] - X.fwd2[0], 300, 720); // second forward pass
|
|
949
|
+
// correct: rising glass pair
|
|
950
|
+
glass(X.ans2 + 0.04, 'C5', 1.0, { pan: 0.5 }); glass(X.ans2 + 0.12, 'G5', 0.9, { pan: 0.5 }); glass(X.ans2 + 0.2, 'C6', 0.5, { pan: 0.5 });
|
|
951
|
+
|
|
952
|
+
// ---- beat 4: pan to the chart, accuracy counts up (E.out, so the ticks slow as it settles)
|
|
953
|
+
whoosh(X.pan[0], 0.6, 1.1, 1500);
|
|
954
|
+
counter((t) => Math.round(accAt(E.out(seg(X.acc[0], X.acc[1], t)))), X.acc[0] + 0.02, X.acc[1], 0.085, 0.8, 1600);
|
|
955
|
+
// soft low riser into the key moment
|
|
956
|
+
k.noise(X.hit - 0.85, { dur: 0.85, color: 'pink', filter: 'bandpass', f: [[0, 180], [0.85, 1300]], q: 1, gain: 0.2, a: 0.8, verb: 0.2 });
|
|
957
|
+
k.tone(X.hit - 0.85, { f: [[0, 110], [0.85, 220]], type: 'triangle', dur: 0.85, gain: 0.05, a: 0.8, filter: 'lowpass', f2: 900 });
|
|
958
|
+
// 97%: deep sub hit + shimmer
|
|
959
|
+
k.tone(X.hit, { f: [[0, 72], [0.6, 38]], dur: 1.3, gain: 0.7, a: 0.004 });
|
|
960
|
+
k.play('thud', X.hit, { f: 105, gain: 0.8 });
|
|
961
|
+
k.noise(X.hit, { dur: 0.5, color: 'brown', filter: 'lowpass', f: 320, gain: 0.3 });
|
|
962
|
+
['E5', 'B5', 'E6', 'G#6'].forEach((n, i) => k.tone(X.hit + 0.03 + i * 0.045, { f: n, dur: 1.6, gain: 0.032, a: 0.02, verb: 0.55, pan: (i - 1.5) * 0.35 }));
|
|
963
|
+
k.noise(X.hit + 0.02, { dur: 1.1, color: 'pink', filter: 'highpass', f: [[0, 3000], [1.1, 6000]], gain: 0.035, a: 0.06, verb: 0.4 });
|
|
964
|
+
|
|
965
|
+
// ---- beat 5: pull back, tiles land, takeaway resolves
|
|
966
|
+
whoosh(X.pull[0], 0.5, 0.8, 1200);
|
|
967
|
+
glass(X.tkTiles[0] + 0.2, 'E4', 0.8, { pan: -0.4 });
|
|
968
|
+
glass(X.tkTiles[1] + 0.2, 'A4', 0.8, { pan: 0.4 });
|
|
969
|
+
whoosh(X.tkText[0], 0.45, 0.6, 1300, { minor: true });
|
|
970
|
+
['A3', 'E4', 'A4', 'C#5'].forEach((n, i) => k.tone(X.tkText[0] + 0.32 + i * 0.03, { f: n, type: i ? 'sine' : 'triangle', dur: 1.7, gain: 0.085, a: 0.015, verb: 0.45, pan: (i - 1.5) * 0.25 }));
|
|
971
|
+
k.noise(X.underline[0], { dur: 0.45, filter: 'bandpass', f: [[0, 900], [0.45, 1800]], q: 1.2, gain: 0.05, a: 0.2, minor: true });
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
registerStyle({
|
|
975
|
+
id: 'tech-glow',
|
|
976
|
+
name: 'Tech Glow Explainer',
|
|
977
|
+
category: 'Popular Explainer Looks',
|
|
978
|
+
description: 'The polished AI / tech YouTube motion-graphics look: deep navy-to-indigo space with drifting electric glows and a perspective grid, gradient-stroked icon tiles wired into node diagrams with light pulses racing along the connectors, dark cards with thin neon borders, gradient headline type and bloom on everything bright.',
|
|
979
|
+
motion: 'Smooth eased build: glows bloom up, icon tiles pop in with an overshoot and their line icons draw on, connectors trace out and start carrying light pulses, the headline rises word by word and the stat counts up, all under a slow camera push and drifting particles.',
|
|
980
|
+
duration: 5,
|
|
981
|
+
frameT: 4.6,
|
|
982
|
+
fonts: ['700 80px "Space Grotesk"', '500 18px "Space Grotesk"', '600 26px "Inter"', '500 18px "Inter"', '400 22px "Inter"'],
|
|
983
|
+
readsPixels: false,
|
|
984
|
+
draw: drawStill,
|
|
985
|
+
explainerDuration: X.D,
|
|
986
|
+
explainerNote: 'One continuous camera: the title shrinks to a header while the brain tile flies into place, labelled examples ride glowing lanes into the model, the camera pushes through the brain into its network (light-speed streaks), Guess/Check/Adjust chips light up as light pulses run forward and a red error pulse runs back, then the camera pans to a glowing accuracy chart and pulls back for the takeaway; numbers count up in gradient Space Grotesk with bloom.',
|
|
987
|
+
explainer,
|
|
988
|
+
explainerSound,
|
|
989
|
+
});
|
|
990
|
+
}
|