@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,592 @@
|
|
|
1
|
+
{
|
|
2
|
+
const rr = (c, x, y, w, h, r) => { c.beginPath(); c.roundRect(x, y, w, h, r); };
|
|
3
|
+
let NOISE = null;
|
|
4
|
+
function noisePattern(ctx) {
|
|
5
|
+
if (!NOISE) {
|
|
6
|
+
NOISE = H.layer(160, 160);
|
|
7
|
+
const nc = NOISE.getContext('2d'), id = nc.createImageData(160, 160), r = H.rng(99);
|
|
8
|
+
for (let i = 0; i < id.data.length; i += 4) { const v = r() < 0.5 ? 0 : 255; id.data[i] = id.data[i + 1] = id.data[i + 2] = v; id.data[i + 3] = r() * 60; }
|
|
9
|
+
nc.putImageData(id, 0, 0);
|
|
10
|
+
}
|
|
11
|
+
return ctx.createPattern(NOISE, 'repeat');
|
|
12
|
+
}
|
|
13
|
+
// Frosted glass panel: shadow -> blurred backdrop (clipped) -> tint -> grain -> sheen -> 1px gradient border
|
|
14
|
+
function glass(ctx, src, x, y, w, h, r, o = {}) {
|
|
15
|
+
const tint = o.tint ?? 0.1;
|
|
16
|
+
ctx.save();
|
|
17
|
+
ctx.shadowColor = 'rgba(8,4,30,0.45)'; ctx.shadowBlur = o.shadow ?? 50; ctx.shadowOffsetY = (o.shadow ?? 50) * 0.4;
|
|
18
|
+
ctx.fillStyle = 'rgba(20,10,50,1)'; rr(ctx, x, y, w, h, r); ctx.fill();
|
|
19
|
+
ctx.restore();
|
|
20
|
+
ctx.save(); rr(ctx, x, y, w, h, r); ctx.clip();
|
|
21
|
+
{ const M = ctx.getTransform(); ctx.setTransform(1, 0, 0, 1, 0, 0); ctx.drawImage(src, 0, 0, ctx.canvas.width, ctx.canvas.height); ctx.setTransform(M); }
|
|
22
|
+
const tg = ctx.createLinearGradient(x, y, x + w * 0.6, y + h);
|
|
23
|
+
tg.addColorStop(0, `rgba(255,255,255,${tint + 0.08})`); tg.addColorStop(1, `rgba(255,255,255,${tint * 0.5})`);
|
|
24
|
+
ctx.fillStyle = tg; ctx.fillRect(x, y, w, h);
|
|
25
|
+
{ const A = ctx.globalAlpha; ctx.globalAlpha = A * 0.22; ctx.fillStyle = noisePattern(ctx); ctx.fillRect(x, y, w, h); ctx.globalAlpha = A; }
|
|
26
|
+
// diagonal specular sheen
|
|
27
|
+
const sg = ctx.createLinearGradient(x, y, x + w * 0.55, y + h * 0.55);
|
|
28
|
+
sg.addColorStop(0, 'rgba(255,255,255,0.16)'); sg.addColorStop(0.45, 'rgba(255,255,255,0.04)'); sg.addColorStop(0.46, 'rgba(255,255,255,0.0)');
|
|
29
|
+
ctx.fillStyle = sg; ctx.fillRect(x, y, w, h);
|
|
30
|
+
ctx.restore();
|
|
31
|
+
// 1px light border, brighter top-left
|
|
32
|
+
ctx.save();
|
|
33
|
+
const bg = ctx.createLinearGradient(x, y, x + w, y + h);
|
|
34
|
+
bg.addColorStop(0, 'rgba(255,255,255,0.65)'); bg.addColorStop(0.35, 'rgba(255,255,255,0.18)'); bg.addColorStop(0.7, 'rgba(255,255,255,0.08)'); bg.addColorStop(1, 'rgba(255,255,255,0.32)');
|
|
35
|
+
ctx.strokeStyle = bg; ctx.lineWidth = 1; rr(ctx, x + 0.5, y + 0.5, w - 1, h - 1, r); ctx.stroke();
|
|
36
|
+
// inner top highlight
|
|
37
|
+
const hg = ctx.createLinearGradient(x, 0, x + w, 0);
|
|
38
|
+
hg.addColorStop(0, 'rgba(255,255,255,0)'); hg.addColorStop(0.3, 'rgba(255,255,255,0.55)'); hg.addColorStop(0.7, 'rgba(255,255,255,0.15)'); hg.addColorStop(1, 'rgba(255,255,255,0)');
|
|
39
|
+
ctx.strokeStyle = hg; ctx.beginPath(); ctx.moveTo(x + r, y + 1.5); ctx.lineTo(x + w - r, y + 1.5); ctx.stroke();
|
|
40
|
+
ctx.restore();
|
|
41
|
+
}
|
|
42
|
+
function blurOf(srcCanvas, W, Hh, px) {
|
|
43
|
+
const L = H.layer(W, Hh), c = L.getContext('2d');
|
|
44
|
+
c.filter = `blur(${px}px) saturate(150%)`;
|
|
45
|
+
c.drawImage(srcCanvas, 0, 0, W, Hh);
|
|
46
|
+
return L;
|
|
47
|
+
}
|
|
48
|
+
function orb(ctx, x, y, r, c1, c2, c3) {
|
|
49
|
+
const g = ctx.createRadialGradient(x - r * 0.4, y - r * 0.45, r * 0.05, x, y, r);
|
|
50
|
+
g.addColorStop(0, c1); g.addColorStop(0.55, c2); g.addColorStop(1, c3);
|
|
51
|
+
ctx.fillStyle = g; ctx.beginPath(); ctx.arc(x, y, r, 0, 7); ctx.fill();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// ================= EXPLAINER: the camera glides across one big frosted-glass dashboard; panels blur the live blobs behind them =================
|
|
55
|
+
function petIcon(ctx, kind, x, y, r, col = '#ffffff', lw = 2) {
|
|
56
|
+
ctx.save(); ctx.translate(x, y); ctx.strokeStyle = col; ctx.lineWidth = lw; ctx.lineCap = 'round'; ctx.lineJoin = 'round';
|
|
57
|
+
ctx.beginPath();
|
|
58
|
+
if (kind === 'cat') { ctx.moveTo(-0.8 * r, -0.1 * r); ctx.lineTo(-0.7 * r, -1.0 * r); ctx.lineTo(-0.25 * r, -0.72 * r); ctx.moveTo(0.8 * r, -0.1 * r); ctx.lineTo(0.7 * r, -1.0 * r); ctx.lineTo(0.25 * r, -0.72 * r); }
|
|
59
|
+
else { ctx.moveTo(-0.62 * r, -0.62 * r); ctx.quadraticCurveTo(-1.25 * r, -0.4 * r, -0.95 * r, 0.35 * r); ctx.moveTo(0.62 * r, -0.62 * r); ctx.quadraticCurveTo(1.25 * r, -0.4 * r, 0.95 * r, 0.35 * r); }
|
|
60
|
+
ctx.stroke();
|
|
61
|
+
ctx.beginPath(); ctx.arc(0, 0, 0.8 * r, 0, 7); ctx.stroke();
|
|
62
|
+
ctx.fillStyle = col;
|
|
63
|
+
for (const sx of [-1, 1]) { ctx.beginPath(); ctx.arc(sx * 0.3 * r, -0.08 * r, 0.09 * r, 0, 7); ctx.fill(); }
|
|
64
|
+
ctx.beginPath(); ctx.ellipse(0, 0.25 * r, 0.12 * r, 0.08 * r, 0, 0, 7); ctx.fill();
|
|
65
|
+
ctx.restore();
|
|
66
|
+
}
|
|
67
|
+
function chipPill(ctx, x, y, text, o = {}) {
|
|
68
|
+
ctx.save(); ctx.font = o.font || '600 13px "Inter"';
|
|
69
|
+
const w = ctx.measureText(text).width + (o.dot ? 40 : 26), h = o.h || 26, k = o.k ?? 1;
|
|
70
|
+
ctx.globalAlpha *= Math.min(1, k * 1.5); ctx.translate(x, y); ctx.scale(0.85 + 0.15 * k, 0.85 + 0.15 * k);
|
|
71
|
+
if (o.grad) { const g = ctx.createLinearGradient(-w / 2, 0, w / 2, 0); g.addColorStop(0, o.grad[0]); g.addColorStop(1, o.grad[1]); ctx.fillStyle = g; ctx.shadowColor = o.glow || 'rgba(255,60,200,0.4)'; ctx.shadowBlur = 16; }
|
|
72
|
+
else ctx.fillStyle = o.bg || 'rgba(255,255,255,0.16)';
|
|
73
|
+
ctx.beginPath(); ctx.roundRect(-w / 2, -h / 2, w, h, h / 2); ctx.fill(); ctx.shadowColor = 'transparent';
|
|
74
|
+
ctx.strokeStyle = 'rgba(255,255,255,0.35)'; ctx.lineWidth = 1; ctx.beginPath(); ctx.roundRect(-w / 2 + 0.5, -h / 2 + 0.5, w - 1, h - 1, h / 2); ctx.stroke();
|
|
75
|
+
if (o.dot) { ctx.fillStyle = o.dot; ctx.beginPath(); ctx.arc(-w / 2 + 14, 0, 4, 0, 7); ctx.fill(); }
|
|
76
|
+
ctx.fillStyle = o.col || '#ffffff'; ctx.textAlign = 'center'; ctx.textBaseline = 'middle'; ctx.fillText(text, o.dot ? 8 : 0, 1);
|
|
77
|
+
ctx.restore();
|
|
78
|
+
}
|
|
79
|
+
function glowLine(ctx, a, c, b, prog, col1, col2, w = 3, dots = 0, t = 0) {
|
|
80
|
+
if (prog <= 0) return null;
|
|
81
|
+
const q = (u) => [(1 - u) * (1 - u) * a[0] + 2 * u * (1 - u) * c[0] + u * u * b[0], (1 - u) * (1 - u) * a[1] + 2 * u * (1 - u) * c[1] + u * u * b[1]];
|
|
82
|
+
const g = ctx.createLinearGradient(a[0], a[1], b[0], b[1]); g.addColorStop(0, col1); g.addColorStop(1, col2);
|
|
83
|
+
ctx.save(); ctx.strokeStyle = g; ctx.lineWidth = w; ctx.lineCap = 'round'; ctx.shadowColor = col2; ctx.shadowBlur = 14;
|
|
84
|
+
ctx.beginPath(); ctx.moveTo(a[0], a[1]); for (let i = 1; i <= 40; i++) { const p = q(prog * i / 40); ctx.lineTo(p[0], p[1]); } ctx.stroke();
|
|
85
|
+
const e = q(prog), e0 = q(Math.max(0, prog - 0.03)), ang = Math.atan2(e[1] - e0[1], e[0] - e0[0]);
|
|
86
|
+
ctx.translate(e[0], e[1]); ctx.rotate(ang); ctx.fillStyle = col2; ctx.beginPath(); ctx.moveTo(6, 0); ctx.lineTo(-8, -7); ctx.lineTo(-5, 0); ctx.lineTo(-8, 7); ctx.closePath(); ctx.fill();
|
|
87
|
+
ctx.restore();
|
|
88
|
+
for (let i = 0; i < dots; i++) { const uu = ((t * 0.7 + i / dots) % 1) * prog; const p = q(uu); ctx.fillStyle = '#ffffff'; ctx.shadowColor = col2; ctx.shadowBlur = 10; ctx.beginPath(); ctx.arc(p[0], p[1], 3.2, 0, 7); ctx.fill(); ctx.shadowBlur = 0; }
|
|
89
|
+
return q;
|
|
90
|
+
}
|
|
91
|
+
function glassExplainer(ctx, W, H_, t) {
|
|
92
|
+
const ph = (a, b) => H.clamp((t - a) / (b - a));
|
|
93
|
+
const E = (a, b) => H.ease.inOut(ph(a, b));
|
|
94
|
+
const EO = (a, b) => H.ease.out(ph(a, b));
|
|
95
|
+
const typed = (str, a, b) => str.slice(0, Math.round(str.length * ph(a, b)));
|
|
96
|
+
// camera over the dashboard: [t, centreX, centreY, zoom]
|
|
97
|
+
const KF = [[0, 640, 360, 1], [1.7, 640, 360, 1], [2.8, 1300, 345, 1.35], [5.8, 1302, 345, 1.37], [6.8, 2238, 330, 1.3], [10.2, 2242, 330, 1.31], [11.1, 3060, 345, 1.35], [12.8, 3062, 345, 1.37], [13.8, 1800, 330, 0.37], [20, 1800, 330, 0.37]];
|
|
98
|
+
let k = 0; while (k < KF.length - 2 && t > KF[k + 1][0]) k++;
|
|
99
|
+
const A = KF[k], B = KF[k + 1], u = H.ease.inOut(H.clamp((t - A[0]) / (B[0] - A[0])));
|
|
100
|
+
const camX = H.lerp(A[1], B[1], u), camY = H.lerp(A[2], B[2], u), z = H.lerp(A[3], B[3], u);
|
|
101
|
+
const d = (p, a) => Math.sin(t * 0.5 + p) * a;
|
|
102
|
+
|
|
103
|
+
// ---------- background: blobs live in screen space but drift with a slow parallax of the camera ----------
|
|
104
|
+
const BG = H.layer(W, H_), b = BG.getContext('2d');
|
|
105
|
+
const base = b.createLinearGradient(0, 0, W, H_); base.addColorStop(0, '#0c0a24'); base.addColorStop(1, '#170f3a');
|
|
106
|
+
b.fillStyle = base; b.fillRect(0, 0, W, H_);
|
|
107
|
+
// blobs add light ('screen'), so overlaps go luminous instead of muddy; orange gets a hot coral mid-stop
|
|
108
|
+
const blob = (x, y, r, col, a = 1) => { const hot = col === '#ff7a1a', mid = hot ? '#ff5a4a' : col, tail = hot ? '#ff2b8a' : col; const g = b.createRadialGradient(x, y, 0, x, y, r); g.addColorStop(0, H.rgba(col, a)); g.addColorStop(0.5, H.rgba(mid, a * 0.55)); g.addColorStop(1, H.rgba(tail, 0)); b.fillStyle = g; b.fillRect(x - r, y - r, r * 2, r * 2); };
|
|
109
|
+
const par = (wx) => 640 + (wx - camX) * 0.35 * Math.max(z, 0.6);
|
|
110
|
+
const BL = [[300, 170, '#7a2bff'], [900, 600, '#2b6bff'], [1400, 220, '#ff2bd6'], [1900, 620, '#00d1ff'], [2300, 200, '#ff7a1a'], [2800, 560, '#ff2bd6'], [3300, 220, '#7a2bff'], [3700, 600, '#ff7a1a'], [-200, 600, '#00d1ff']];
|
|
111
|
+
BL.forEach(([x, y, c], i) => blob(par(x) + d(i, 30), y + d(i + 2, 20), c === '#ff7a1a' ? 300 : i % 2 ? 330 : 380, c, 0.85));
|
|
112
|
+
// pools of dark negative space, like the hero (base colour re-asserted in the corners)
|
|
113
|
+
const pool = (x, y, r, a) => { const g = b.createRadialGradient(x, y, 0, x, y, r); g.addColorStop(0, `rgba(12,10,36,${a})`); g.addColorStop(0.55, `rgba(12,10,36,${a * 0.6})`); g.addColorStop(1, 'rgba(12,10,36,0)'); b.fillStyle = g; b.fillRect(x - r, y - r, r * 2, r * 2); };
|
|
114
|
+
pool(0, H_, 520, 0.6); pool(W, 0, 420, 0.4);
|
|
115
|
+
const orb = (x, y, r, c1, c2, c3) => { const g = b.createRadialGradient(x - r * 0.4, y - r * 0.45, r * 0.05, x, y, r); g.addColorStop(0, c1); g.addColorStop(0.55, c2); g.addColorStop(1, c3); b.fillStyle = g; b.beginPath(); b.arc(x, y, r, 0, 7); b.fill(); };
|
|
116
|
+
orb(par(1650) + d(5, 10), 150, 90, '#ffd2f4', '#ff4fc1', '#6a1497');
|
|
117
|
+
orb(par(2700) + d(6, 10), 600, 70, '#c7f2ff', '#3aa0ff', '#1a2a8a');
|
|
118
|
+
orb(par(600), 560, 60, '#ffe3b8', '#ff8a2a', '#9a2f12');
|
|
119
|
+
b.strokeStyle = 'rgba(255,255,255,0.035)'; b.lineWidth = 1; b.beginPath();
|
|
120
|
+
const gx = (-(camX * z) % 48 + 48) % 48;
|
|
121
|
+
for (let x = gx; x <= W; x += 48 * z) { b.moveTo(x + 0.5, 0); b.lineTo(x + 0.5, H_); }
|
|
122
|
+
for (let y = 0; y <= H_; y += 48 * z) { b.moveTo(0, y + 0.5); b.lineTo(W, y + 0.5); }
|
|
123
|
+
b.stroke();
|
|
124
|
+
// dither the smooth gradients before the blur + saturate, which otherwise bands
|
|
125
|
+
b.globalAlpha = 0.05; b.fillStyle = noisePattern(b); b.fillRect(0, 0, W, H_); b.globalAlpha = 1;
|
|
126
|
+
ctx.drawImage(BG, 0, 0);
|
|
127
|
+
let SRC = blurOf(BG, W, H_, 26);
|
|
128
|
+
|
|
129
|
+
ctx.save();
|
|
130
|
+
ctx.translate(640, 360); ctx.scale(z, z); ctx.translate(-camX, -camY);
|
|
131
|
+
const panelIn = (t0) => EO(t0, t0 + 0.6);
|
|
132
|
+
const panel = (x, y, w, h, t0, title) => {
|
|
133
|
+
const e = panelIn(t0); if (e <= 0) return false;
|
|
134
|
+
ctx.save(); ctx.globalAlpha = e; glass(ctx, SRC, x, y + (1 - e) * 40, w, h, 28, { tint: 0.09 }); ctx.restore();
|
|
135
|
+
if (title) { ctx.save(); ctx.globalAlpha = EO(t0 + 0.2, t0 + 0.6); ctx.font = '600 21px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.78)'; ctx.fillText(title, x + 28, y + 44 + (1 - e) * 40); ctx.restore(); }
|
|
136
|
+
return true;
|
|
137
|
+
};
|
|
138
|
+
// ===== B: training data =====
|
|
139
|
+
const BX = 980, BY = 150, BW = 640, BH = 430;
|
|
140
|
+
if (panel(BX, BY, BW, BH, 2.2, 'TRAINING DATA')) {
|
|
141
|
+
const cnt = Math.floor(1e6 * Math.pow(EO(2.9, 5.7), 1.6));
|
|
142
|
+
ctx.font = '800 50px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText(cnt.toLocaleString('en-US'), BX + 26, BY + 104);
|
|
143
|
+
const nw = ctx.measureText(cnt.toLocaleString('en-US')).width;
|
|
144
|
+
ctx.font = '600 22px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.8)'; ctx.fillText('examples', BX + 36 + nw, BY + 102);
|
|
145
|
+
const pr = ph(2.9, 5.7);
|
|
146
|
+
ctx.fillStyle = 'rgba(255,255,255,0.12)'; ctx.beginPath(); ctx.roundRect(BX + 28, BY + 116, BW - 56, 6, 3); ctx.fill();
|
|
147
|
+
const pg = ctx.createLinearGradient(BX + 28, 0, BX + BW - 28, 0); pg.addColorStop(0, '#7a2bff'); pg.addColorStop(1, '#ff4fc1');
|
|
148
|
+
ctx.fillStyle = pg; ctx.beginPath(); ctx.roundRect(BX + 28, BY + 116, (BW - 56) * Math.pow(pr, 1.6), 6, 3); ctx.fill();
|
|
149
|
+
// grid of labelled example tiles that keeps refilling (scrolls upward like a live feed)
|
|
150
|
+
const scroll = Math.max(0, t - 2.6) * 60;
|
|
151
|
+
ctx.save(); ctx.beginPath(); ctx.roundRect(BX + 20, BY + 140, BW - 40, BH - 160, 16); ctx.clip();
|
|
152
|
+
for (let i = 0; i < 16; i++) {
|
|
153
|
+
const col = i % 4, row = Math.floor(i / 4);
|
|
154
|
+
const tx = BX + 30 + col * 146, ty = BY + 150 + row * 128 - (scroll % 128);
|
|
155
|
+
const idx = i + Math.floor(scroll / 128) * 4;
|
|
156
|
+
const appear = 2.5 + (idx % 15) * 0.05 + Math.floor(idx / 15) * 0;
|
|
157
|
+
const e = EO(appear, appear + 0.3); if (e <= 0) continue;
|
|
158
|
+
const kind = (idx * 7 + 3) % 5 < 2 ? 'dog' : 'cat';
|
|
159
|
+
ctx.save(); ctx.globalAlpha = e;
|
|
160
|
+
ctx.fillStyle = 'rgba(255,255,255,0.10)'; ctx.beginPath(); ctx.roundRect(tx, ty, 134, 116, 18); ctx.fill();
|
|
161
|
+
ctx.strokeStyle = 'rgba(255,255,255,0.2)'; ctx.lineWidth = 1; ctx.beginPath(); ctx.roundRect(tx + 0.5, ty + 0.5, 133, 115, 18); ctx.stroke();
|
|
162
|
+
petIcon(ctx, kind, tx + 67, ty + 44, 22, '#ffffff', 2.5);
|
|
163
|
+
chipPill(ctx, tx + 67, ty + 92, kind, { font: '600 21px "Inter"', h: 32, bg: 'rgba(255,255,255,0.26)', dot: kind === 'cat' ? '#7ad7ff' : '#ffb35c' });
|
|
164
|
+
ctx.restore();
|
|
165
|
+
}
|
|
166
|
+
ctx.restore();
|
|
167
|
+
}
|
|
168
|
+
// ===== C: model (network card) =====
|
|
169
|
+
const CX = 1800, CY = 160, CW = 420, CH = 400;
|
|
170
|
+
const adj = E(8.6, 9.3);
|
|
171
|
+
const showC = panel(CX, CY, CW, CH, 4.2, 'MODEL');
|
|
172
|
+
const NODES = [];
|
|
173
|
+
for (let c = 0; c < 3; c++) for (let r = 0; r < (c === 1 ? 4 : 3); r++) NODES.push([CX + 80 + c * 130, CY + (c === 1 ? 110 : 140) + r * (c === 1 ? 70 : 85), c]);
|
|
174
|
+
const wgt = (i, j) => { const a = Math.abs(Math.sin(i * 3.1 + j * 1.7)), b2 = Math.abs(Math.cos(i * 2.3 + j * 0.9)); return H.lerp(a, b2, adj); };
|
|
175
|
+
const err = ph(8.0, 8.4) * (1 - ph(9.2, 9.6));
|
|
176
|
+
if (showC) {
|
|
177
|
+
const pulse = (c) => Math.max(0, Math.sin((t * 6) - c * 1.4)) * ((t > 6.8 && t < 7.2) || (t > 9.3 && t < 9.7) ? 1 : 0);
|
|
178
|
+
for (let i = 0; i < NODES.length; i++) for (let j = 0; j < NODES.length; j++) {
|
|
179
|
+
if (NODES[j][2] !== NODES[i][2] + 1) continue;
|
|
180
|
+
const w = wgt(i, j);
|
|
181
|
+
const col = H.mix(H.mix([122, 215, 255], [255, 79, 193], w), [255, 90, 90], err);
|
|
182
|
+
ctx.strokeStyle = H.rgba(col, 0.25 + 0.65 * w); ctx.lineWidth = 0.8 + 3.2 * w;
|
|
183
|
+
ctx.beginPath(); ctx.moveTo(NODES[i][0], NODES[i][1]); ctx.lineTo(NODES[j][0], NODES[j][1]); ctx.stroke();
|
|
184
|
+
}
|
|
185
|
+
for (const [x, y, c] of NODES) {
|
|
186
|
+
const g = ctx.createRadialGradient(x - 4, y - 5, 1, x, y, 15); g.addColorStop(0, '#ffffff'); g.addColorStop(0.5, H.rgba(H.mix([255, 120, 220], [255, 230, 140], pulse(c)))); g.addColorStop(1, '#7a2bff');
|
|
187
|
+
ctx.save(); ctx.shadowColor = '#ff4fc1'; ctx.shadowBlur = 12 + 14 * pulse(c); ctx.fillStyle = g; ctx.beginPath(); ctx.arc(x, y, 13, 0, 7); ctx.fill(); ctx.restore();
|
|
188
|
+
}
|
|
189
|
+
ctx.font = '600 21px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.78)'; ctx.fillText('weights', CX + CW - 112, CY + 44);
|
|
190
|
+
}
|
|
191
|
+
// ===== D: output chat card =====
|
|
192
|
+
const DX = 2290, DY = 190, DW = 380, DH = 320;
|
|
193
|
+
const wrong = t > 7.05 && t < 9.4, right = t >= 9.4;
|
|
194
|
+
const shake = t > 7.4 && t < 7.8 ? Math.sin(t * 80) * 6 : 0;
|
|
195
|
+
if (panel(DX + shake, DY, DW, DH, 6.5, 'OUTPUT')) {
|
|
196
|
+
// test picture
|
|
197
|
+
ctx.fillStyle = 'rgba(255,255,255,0.10)'; ctx.beginPath(); ctx.roundRect(DX + 28 + shake, DY + 64, 120, 110, 18); ctx.fill();
|
|
198
|
+
petIcon(ctx, 'cat', DX + 88 + shake, DY + 124, 28, '#ffffff', 2.5);
|
|
199
|
+
if (t > 6.9 && t < 7.05) chipPill(ctx, DX + 270, DY + 110, '• • •', { bg: 'rgba(255,255,255,0.12)', font: '800 20px "Inter"', h: 34 });
|
|
200
|
+
if (wrong || right) {
|
|
201
|
+
const k2 = EO(right ? 9.4 : 7.05, (right ? 9.4 : 7.05) + 0.3);
|
|
202
|
+
ctx.save(); ctx.globalAlpha = k2;
|
|
203
|
+
const gx2 = DX + 170 + shake, gy2 = DY + 82;
|
|
204
|
+
const ug = ctx.createLinearGradient(gx2, gy2, gx2 + 180, gy2 + 56);
|
|
205
|
+
if (right) { ug.addColorStop(0, '#1fbf8f'); ug.addColorStop(1, '#4dffa6'); } else { ug.addColorStop(0, '#8a5bff'); ug.addColorStop(1, '#ff4fc1'); }
|
|
206
|
+
ctx.fillStyle = ug; ctx.beginPath(); ctx.roundRect(gx2, gy2, 180, 60, [20, 20, 20, 4]); ctx.fill();
|
|
207
|
+
ctx.font = '800 36px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText(right ? 'cat' : 'dog?', gx2 + 18, gy2 + 43);
|
|
208
|
+
ctx.restore();
|
|
209
|
+
// verdict badge
|
|
210
|
+
const vk = H.ease.back(ph(right ? 9.45 : 7.4, (right ? 9.45 : 7.4) + 0.3));
|
|
211
|
+
if (vk > 0) {
|
|
212
|
+
ctx.save(); ctx.translate(gx2 + 150, gy2 + 30); ctx.scale(vk, vk);
|
|
213
|
+
ctx.shadowColor = right ? '#4dffa6' : '#ff3b5c'; ctx.shadowBlur = 18; ctx.fillStyle = right ? '#4dffa6' : '#ff3b5c'; ctx.beginPath(); ctx.arc(0, 0, 17, 0, 7); ctx.fill(); ctx.shadowBlur = 0;
|
|
214
|
+
ctx.strokeStyle = '#fff'; ctx.lineWidth = 3.5; ctx.lineCap = 'round'; ctx.beginPath();
|
|
215
|
+
if (right) { ctx.moveTo(-7, 0); ctx.lineTo(-2, 6); ctx.lineTo(8, -6); } else { ctx.moveTo(-6, -6); ctx.lineTo(6, 6); ctx.moveTo(6, -6); ctx.lineTo(-6, 6); }
|
|
216
|
+
ctx.stroke(); ctx.restore();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (t > 7.6 && t < 9.5) { ctx.save(); ctx.globalAlpha = EO(7.6, 7.9) * (1 - ph(9.3, 9.5)); ctx.font = '600 22px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.85)'; ctx.fillText('Answer:', DX + 30, DY + 226); chipPill(ctx, DX + 176, DY + 219, 'cat', { dot: '#7ad7ff', font: '700 22px "Inter"', h: 36, bg: 'rgba(255,255,255,0.24)' }); ctx.restore(); }
|
|
220
|
+
ctx.font = '400 16px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.55)';
|
|
221
|
+
ctx.fillText(typed(right ? 'Weights updated · try #2' : wrong ? 'Prediction 1 of many' : '', right ? 9.5 : 7.1, right ? 9.9 : 7.5), DX + 30, DY + 280);
|
|
222
|
+
// emphasis on the wrong guess: red glow ring
|
|
223
|
+
if (wrong && t > 7.4) { ctx.save(); ctx.strokeStyle = '#ff3b5c'; ctx.shadowColor = '#ff3b5c'; ctx.shadowBlur = 20; ctx.lineWidth = 3; ctx.globalAlpha = 0.55 + 0.45 * Math.sin(t * 10); const pr = EO(7.4, 7.8); ctx.beginPath(); ctx.roundRect(DX + 160 - 10 * (1 - pr), DY + 72 - 10 * (1 - pr), 200 + 20 * (1 - pr), 80 + 20 * (1 - pr), 26); ctx.stroke(); ctx.restore(); }
|
|
224
|
+
}
|
|
225
|
+
// ===== E: accuracy chart =====
|
|
226
|
+
const EX = 2780, EY = 150, EW = 560, EH = 430;
|
|
227
|
+
const ACCS = [61, 72, 80, 86, 90, 93, 95, 97];
|
|
228
|
+
if (panel(EX, EY, EW, EH, 10.4, 'ACCURACY')) {
|
|
229
|
+
const cp = H.ease.inOut(ph(10.9, 12.6));
|
|
230
|
+
const cur = Math.round(H.lerp(61, 97, cp));
|
|
231
|
+
const big = t > 12.6 ? 1 + 0.12 * Math.sin(Math.min(1, (t - 12.6) / 0.35) * Math.PI) : 1;
|
|
232
|
+
ctx.save(); ctx.translate(EX + 28, EY + 110); ctx.scale(big, big);
|
|
233
|
+
const ng = ctx.createLinearGradient(0, -60, 220, 0); ng.addColorStop(0, '#ffffff'); ng.addColorStop(1, cur >= 97 ? '#4dffa6' : '#ffc6f0');
|
|
234
|
+
ctx.font = '800 72px "Inter"'; ctx.fillStyle = ng; if (cur >= 97) { ctx.shadowColor = '#4dffa6'; ctx.shadowBlur = 24 * (1 - ph(13.2, 14)); } ctx.fillText(cur + '%', 0, 0); ctx.restore();
|
|
235
|
+
ctx.font = '600 21px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.78)'; ctx.fillText('round 1: 61%', EX + 300, EY + 104);
|
|
236
|
+
// axes + line chart
|
|
237
|
+
const gx0 = EX + 40, gx1 = EX + EW - 40, gy0 = EY + EH - 50, gy1 = EY + 150;
|
|
238
|
+
ctx.strokeStyle = 'rgba(255,255,255,0.12)'; ctx.lineWidth = 1;
|
|
239
|
+
for (let i = 0; i <= 4; i++) { const y = H.lerp(gy0, gy1, i / 4); ctx.beginPath(); ctx.moveTo(gx0, y); ctx.lineTo(gx1, y); ctx.stroke(); }
|
|
240
|
+
const pts = ACCS.map((a, i) => [H.lerp(gx0, gx1, i / 7), H.lerp(gy0, gy1, (a - 50) / 50)]);
|
|
241
|
+
const n = cp * 7, m = Math.floor(n), f = n - m;
|
|
242
|
+
const vis = pts.slice(0, m + 1); if (m < 7) vis.push([H.lerp(pts[m][0], pts[m + 1][0], f), H.lerp(pts[m][1], pts[m + 1][1], f)]);
|
|
243
|
+
if (t > 10.9) {
|
|
244
|
+
const ag = ctx.createLinearGradient(0, gy1, 0, gy0); ag.addColorStop(0, 'rgba(77,255,166,0.35)'); ag.addColorStop(1, 'rgba(77,255,166,0)');
|
|
245
|
+
ctx.fillStyle = ag; ctx.beginPath(); ctx.moveTo(vis[0][0], gy0); vis.forEach(p => ctx.lineTo(p[0], p[1])); ctx.lineTo(vis[vis.length - 1][0], gy0); ctx.closePath(); ctx.fill();
|
|
246
|
+
ctx.save(); ctx.strokeStyle = '#4dffa6'; ctx.shadowColor = '#4dffa6'; ctx.shadowBlur = 12; ctx.lineWidth = 3; ctx.lineJoin = 'round'; ctx.beginPath(); vis.forEach((p, i) => i ? ctx.lineTo(p[0], p[1]) : ctx.moveTo(p[0], p[1])); ctx.stroke(); ctx.restore();
|
|
247
|
+
vis.forEach((p, i) => { if (i <= m) { ctx.fillStyle = '#fff'; ctx.beginPath(); ctx.arc(p[0], p[1], 4, 0, 7); ctx.fill(); } });
|
|
248
|
+
const lp = vis[vis.length - 1]; ctx.save(); ctx.shadowColor = '#4dffa6'; ctx.shadowBlur = 16; ctx.fillStyle = '#fff'; ctx.beginPath(); ctx.arc(lp[0], lp[1], 7, 0, 7); ctx.fill(); ctx.restore();
|
|
249
|
+
if (t > 12.6) { ctx.save(); ctx.strokeStyle = '#4dffa6'; ctx.globalAlpha = 1 - ph(12.6, 13.4); ctx.lineWidth = 2; ctx.beginPath(); ctx.arc(lp[0], lp[1], 10 + 40 * EO(12.6, 13.4), 0, 7); ctx.stroke(); ctx.restore(); }
|
|
250
|
+
ctx.font = '600 18px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.7)'; ctx.fillText('training rounds →', gx1 - 168, gy0 + 32);
|
|
251
|
+
ctx.fillText('61%', gx0 - 6, pts[0][1] + 26);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
// ---------- connectors that draw on ----------
|
|
255
|
+
if (t > 4.4) glowLine(ctx, [BX + BW - 10, BY + 230], [1720, 140], [CX + 30, CY + 150], E(4.4, 5.2), '#7a2bff', '#ff4fc1', 3, t < 7 ? 4 : 0, t);
|
|
256
|
+
if (t > 4.9 && t < 7.0) chipPill(ctx, 1685, 175, 'into the model', { k: EO(4.9, 5.2) * (1 - ph(6.7, 7.0)), grad: ['#8a5bff', '#ff4fc1'], font: '700 19px "Inter"', h: 36 });
|
|
257
|
+
if (t > 6.8) {
|
|
258
|
+
const fade = 1 - ph(10.3, 10.7);
|
|
259
|
+
ctx.save(); ctx.globalAlpha = Math.max(0.0, fade);
|
|
260
|
+
glowLine(ctx, [CX + CW - 30, CY + 90], [2250, 70], [DX + 24, DY + 26], E(6.85, 7.2), '#7ad7ff', '#ffffff', 3);
|
|
261
|
+
chipPill(ctx, 2250, 112, '1 Guess', { k: EO(6.95, 7.25), font: '800 22px "Inter"', h: 40, bg: 'rgba(255,255,255,0.22)' });
|
|
262
|
+
if (t > 7.45) chipPill(ctx, DX + DW - 60, DY - 22, '2 Check', { k: EO(7.45, 7.75), font: '800 22px "Inter"', h: 40, bg: 'rgba(255,255,255,0.22)' });
|
|
263
|
+
if (t > 8.0) {
|
|
264
|
+
const q = glowLine(ctx, [DX + 120, DY + DH - 10], [2250, 590], [CX + CW - 60, CY + CH - 30], E(8.0, 8.6), '#ff7a1a', '#ff3b5c', 3.5);
|
|
265
|
+
if (q && t < 8.8) { const p = q(E(8.0, 8.6)); ctx.save(); ctx.fillStyle = '#fff'; ctx.shadowColor = '#ff3b5c'; ctx.shadowBlur = 24; ctx.beginPath(); ctx.arc(p[0], p[1], 7, 0, 7); ctx.fill(); ctx.restore(); }
|
|
266
|
+
chipPill(ctx, 2240, 562, '3 Adjust', { k: EO(8.5, 8.8), grad: ['#ff7a1a', '#ff3b5c'], glow: 'rgba(255,60,90,0.5)', font: '800 22px "Inter"', h: 40 });
|
|
267
|
+
if (t < 9.4) chipPill(ctx, 2250, 510, 'error signal', { k: EO(8.1, 8.35) * (1 - ph(9.1, 9.4)), bg: 'rgba(255,59,92,0.38)', font: '700 21px "Inter"', h: 34 });
|
|
268
|
+
}
|
|
269
|
+
if (right) chipPill(ctx, DX + DW - 70, DY - 22, 'Guess again ✓', { k: EO(9.5, 9.8), grad: ['#1fbf8f', '#4dffa6'], glow: 'rgba(77,255,166,0.5)', font: '800 22px "Inter"', h: 40 });
|
|
270
|
+
ctx.restore();
|
|
271
|
+
}
|
|
272
|
+
ctx.restore(); // world
|
|
273
|
+
|
|
274
|
+
// ---------- glass over glass: hook card → header pill, takeaway (re-blur the frame) ----------
|
|
275
|
+
SRC = blurOf(ctx.canvas, W, H_, 20);
|
|
276
|
+
{
|
|
277
|
+
const sh = E(1.5, 2.4), a = EO(0.1, 0.6);
|
|
278
|
+
const w = H.lerp(760, 310, sh), h = H.lerp(190, 58, sh), x = H.lerp(640 - 380, 40, sh), y = H.lerp(250, 32, sh) + (1 - a) * 30;
|
|
279
|
+
ctx.save(); ctx.globalAlpha = a; glass(ctx, SRC, x, y, w, h, H.lerp(36, 25, sh), { shadow: H.lerp(50, 20, sh), tint: 0.1 });
|
|
280
|
+
const fs = H.lerp(60, 28, sh);
|
|
281
|
+
ctx.font = `800 ${fs}px "Inter"`; ctx.textBaseline = 'middle';
|
|
282
|
+
const tw = ctx.measureText('How does AI learn?').width;
|
|
283
|
+
const hg = ctx.createLinearGradient(x, 0, x + w, 0); hg.addColorStop(0, '#ffffff'); hg.addColorStop(1, '#ffc6f0');
|
|
284
|
+
ctx.fillStyle = hg; ctx.fillText('How does AI learn?', x + (w - tw) / 2, y + h / 2 + 2);
|
|
285
|
+
if (sh < 0.5) { ctx.globalAlpha = a * (1 - sh * 2) * EO(0.5, 0.9); chipPill(ctx, 640, y - 24, 'NEW SERIES · AI BASICS', { font: '600 12px "Inter"', dot: '#b7f5ff' }); }
|
|
286
|
+
ctx.restore();
|
|
287
|
+
}
|
|
288
|
+
if (t > 13.0) {
|
|
289
|
+
const e = EO(13.0, 13.5);
|
|
290
|
+
const w = 900, h = 100, x = 640 - w / 2, y = 572 + (1 - e) * 30;
|
|
291
|
+
ctx.save(); ctx.globalAlpha = e; glass(ctx, SRC, x, y, w, h, 42, { shadow: 40, tint: 0.12 });
|
|
292
|
+
ctx.font = '800 46px "Inter"'; ctx.textBaseline = 'middle'; ctx.textAlign = 'center';
|
|
293
|
+
const hg = ctx.createLinearGradient(x, 0, x + w, 0); hg.addColorStop(0, '#ffffff'); hg.addColorStop(1, '#ffc6f0');
|
|
294
|
+
ctx.fillStyle = hg; ctx.fillText('More examples → better guesses', 640, y + h / 2 + 2);
|
|
295
|
+
ctx.restore();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// ---------- sound: frosted-glass dashboard (soft glass taps, airy panel slides, gentle chimes, a calm pad) ----------
|
|
300
|
+
function glassSound(k) {
|
|
301
|
+
const D = 14.5;
|
|
302
|
+
const ph = (t, a, b) => H.clamp((t - a) / (b - a));
|
|
303
|
+
const inv = (u) => (u < 0.5 ? Math.cbrt(u / 4) : 1 - Math.cbrt((1 - u) * 2) / 2); // inverse of H.ease.inOut
|
|
304
|
+
// camera keyframes copied from glassExplainer (KF): pan a sound to where its panel sits on screen
|
|
305
|
+
const KF = [[0, 640, 360, 1], [1.7, 640, 360, 1], [2.8, 1300, 345, 1.35], [5.8, 1302, 345, 1.37], [6.8, 2238, 330, 1.3], [10.2, 2242, 330, 1.31], [11.1, 3060, 345, 1.35], [12.8, 3062, 345, 1.37], [13.8, 1800, 330, 0.37], [20, 1800, 330, 0.37]];
|
|
306
|
+
const pan = (wx, t) => { let i = 0; while (i < KF.length - 2 && t > KF[i + 1][0]) i++; const A = KF[i], B = KF[i + 1], u = H.ease.inOut(H.clamp((t - A[0]) / (B[0] - A[0]))); return H.clamp(((wx - H.lerp(A[1], B[1], u)) * H.lerp(A[3], B[3], u)) / 640, -1, 1) * 0.6; };
|
|
307
|
+
const busy = [];
|
|
308
|
+
// glass tap: a light fingertip click on a glass pane (tiny click + a short, soft glassy ring, kept under ~2 kHz)
|
|
309
|
+
const tap = (t, f, g, p = 0, minor = true) => { busy.push(t); k.play('click', t, { f: f * 1.3, gain: 0.45 * g, pan: p, minor }); k.tone(t, { f, dur: 0.16, gain: 0.07 * g, a: 0.002, pan: p, verb: 0.25, minor }); k.tone(t, { f: f * 1.5, dur: 0.08, gain: 0.025 * g, a: 0.002, pan: p, minor }); };
|
|
310
|
+
// soft chime: rounded sine with an octave shimmer and room
|
|
311
|
+
const chime = (t, n, g, p = 0, dur = 1.2, minor) => { const f = k.hz(n); busy.push(t); k.tone(t, { f, dur, gain: 0.1 * g, a: 0.004, pan: p, verb: 0.4, minor }); k.tone(t, { f: f * 2, dur: dur * 0.45, gain: 0.025 * g, a: 0.003, pan: p, verb: 0.4, minor }); };
|
|
312
|
+
// a frosted panel glides up into place (EO over 0.6 s): an airy breath that settles with a tap
|
|
313
|
+
const frost = (t0, p, g = 1) => { k.noise(t0, { dur: 0.6, color: 'pink', filter: 'bandpass', f: [[0, 700], [0.35, 1500], [0.6, 1100]], q: 0.8, gain: 0.06 * g, a: 0.12, pan: p, verb: 0.2 }); tap(t0 + 0.28, 880, 0.7 * g, p); };
|
|
314
|
+
// glowing connector draws on: a soft, rising shimmer that follows the eased line
|
|
315
|
+
const glow = (t0, t1, f0, f1, g, p) => { const d = t1 - t0; k.noise(t0, { dur: d + 0.1, color: 'pink', filter: 'bandpass', f: [[0, f0], [d, f1]], q: 4, gain: 0.05 * g, a: d * 0.5, pan: p, verb: 0.3, minor: true }); k.tone(t0, { f: [[0, f0 / 2], [d, f1 / 2]], type: 'sine', dur: d + 0.1, gain: 0.025 * g, a: d * 0.5, pan: p, minor: true }); };
|
|
316
|
+
const glide = (t0, t1, g = 1) => { const d = t1 - t0; k.noise(t0, { dur: d + 0.15, color: 'pink', filter: 'bandpass', f: [[0, 240], [d * 0.5, 560], [d, 260]], q: 0.7, gain: 0.04 * g, a: d * 0.5, verb: 0.15 }); };
|
|
317
|
+
const counter = (a, b, val, f, g, p, minGap) => {
|
|
318
|
+
let last = -1, lastV = val(a); const top = Math.abs(val(b) - val(a)) / (b - a) * 0.22;
|
|
319
|
+
for (let t = a; t <= b + 1e-6; t += 1 / 120) {
|
|
320
|
+
const v = val(t); if (v === lastV) continue; lastV = v;
|
|
321
|
+
const speed = Math.abs(val(Math.min(b, t + 0.05)) - val(Math.max(a, t - 0.05)));
|
|
322
|
+
const gap = H.clamp(minGap / Math.max(0.2, Math.min(1, speed / top)), minGap, 0.4);
|
|
323
|
+
if (t - last >= gap && !busy.some((x) => t > x - 0.03 && t < x + 0.09)) { k.play('tick', t, { f, gain: g, pan: p, minor: true }); last = t; }
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
k.bed('room', 0, D, { gain: 0.18 });
|
|
328
|
+
k.music('pad', 0, D, { bpm: 92, gain: 0.34, chords: [['A3', 'C4', 'E4', 'G4'], ['F3', 'A3', 'C4', 'E4'], ['C4', 'E4', 'G4', 'B4'], ['G3', 'B3', 'D4', 'F#4'], ['F3', 'A3', 'C4', 'E4'], ['C4', 'E4', 'G4', 'C5']] });
|
|
329
|
+
|
|
330
|
+
// ---- hook: the glass title card fades up (EO 0.1-0.6), its series pill (0.5-0.9), then slides to the header
|
|
331
|
+
k.noise(0.05, { dur: 0.7, color: 'pink', filter: 'bandpass', f: [[0, 600], [0.5, 1400]], q: 0.8, gain: 0.05, a: 0.3, verb: 0.3 });
|
|
332
|
+
chime(0.18, 'E5', 1, 0, 1.6); chime(0.18, 'A4', 0.7, 0, 1.6);
|
|
333
|
+
tap(0.6, 1100, 0.5, 0);
|
|
334
|
+
k.noise(1.5, { dur: 0.9, color: 'pink', filter: 'lowpass', f: [[0, 800], [0.9, 350]], gain: 0.045, a: 0.35, minor: true }); // card glides to the corner
|
|
335
|
+
glide(1.7, 2.8);
|
|
336
|
+
|
|
337
|
+
// ---- beat 2: TRAINING DATA panel, tiles fade in, counter + progress bar
|
|
338
|
+
frost(2.2, pan(1300, 2.4));
|
|
339
|
+
for (let i = 0; i < 15; i += 2) tap(2.5 + i * 0.05 + 0.04, 980 + (i % 4) * 70, 0.35, pan(1010 + (i % 4) * 146, 2.6)); // tiles appear in a ripple
|
|
340
|
+
counter(2.95, 5.66, (t) => Math.floor(1e6 * Math.pow(H.ease.out(ph(t, 2.9, 5.7)), 1.6)), 3000, 1.0, pan(1100, 4), 1 / 9);
|
|
341
|
+
frost(4.2, pan(2010, 4.4)); // MODEL card
|
|
342
|
+
glow(4.4, 5.2, 600, 1500, 1, pan(1720, 4.8)); // data -> model connector
|
|
343
|
+
tap(4.95, 1050, 0.8, pan(1715, 5.0), false); // "into the model"
|
|
344
|
+
chime(5.7, 'E5', 0.8, pan(1100, 5.7)); tap(5.7, 1300, 0.6, pan(1100, 5.7)); // 1,000,000 + progress bar full
|
|
345
|
+
|
|
346
|
+
// ---- beat 3: guess, check, adjust
|
|
347
|
+
glide(5.8, 6.8);
|
|
348
|
+
frost(6.5, pan(2480, 6.7)); // OUTPUT card
|
|
349
|
+
k.tone(6.8, { f: [[0, 330], [0.4, 660]], type: 'sine', dur: 0.42, gain: 0.04, a: 0.15, pan: pan(2010, 6.9), minor: true }); // network lights up
|
|
350
|
+
glow(6.85, 7.2, 900, 1700, 0.8, pan(2250, 7.0)); // Guess line
|
|
351
|
+
tap(6.92, 820, 0.4, pan(2560, 6.92)); // typing dots
|
|
352
|
+
tap(7.0, 1200, 0.8, pan(2250, 7.0)); // "1 Guess"
|
|
353
|
+
chime(7.06, 'G4', 0.7, pan(2550, 7.1), 0.35); // "dog?" message lands (short, so the typing reads)
|
|
354
|
+
for (let i = 0; i < 6; i++) k.play('key', 7.14 + i * 0.065, { gain: 0.4, pan: pan(2400, 7.3), minor: true }); // "Prediction 1 of many" types out (7.1-7.5)
|
|
355
|
+
k.play('error', 7.4, { f: 'A3', gain: 0.7, pan: pan(2600, 7.4) });
|
|
356
|
+
k.tone(7.4, { f: [[0, 160], [0.2, 90]], dur: 0.3, gain: 0.18, pan: pan(2600, 7.4) }); // panel judders
|
|
357
|
+
tap(7.63, 900, 0.9, pan(2400, 7.65)); // Answer: cat
|
|
358
|
+
// ADJUST: the red error line draws back (E 8.0-8.6) with a hot dot riding it; weights re-balance (8.6-9.3)
|
|
359
|
+
glow(8.0, 8.6, 1400, 600, 1.2, pan(2250, 8.3));
|
|
360
|
+
k.tone(8.0, { f: [[0, 520], [0.6, 260]], type: 'triangle', dur: 0.62, gain: 0.045, a: 0.3, pan: pan(2250, 8.3) });
|
|
361
|
+
tap(8.12, 760, 0.6, pan(2250, 8.2)); // "error signal"
|
|
362
|
+
tap(8.52, 900, 0.8, pan(2240, 8.6), false); // "3 Adjust"
|
|
363
|
+
k.noise(8.6, { dur: 0.75, color: 'pink', filter: 'bandpass', f: [[0, 500], [0.4, 1300], [0.75, 900]], q: 3, gain: 0.05, a: 0.3, pan: pan(2010, 9), verb: 0.3, minor: true }); // weights shimmer as they rebalance
|
|
364
|
+
// CORRECT: green "cat" (9.4), check badge (9.45), typing, Guess again
|
|
365
|
+
['C5', 'E5', 'G5'].forEach((n, i) => chime(9.4 + i * 0.07, n, 0.75 - i * 0.12, pan(2600, 9.45), 0.6));
|
|
366
|
+
for (let i = 0; i < 6; i++) k.play('key', 9.55 + i * 0.065, { gain: 0.5, pan: pan(2400, 9.7), minor: true });
|
|
367
|
+
|
|
368
|
+
// ---- beat 4: ACCURACY panel, the line chart draws point by point
|
|
369
|
+
glide(10.2, 11.1);
|
|
370
|
+
frost(10.4, pan(3060, 10.6));
|
|
371
|
+
['A4', 'B4', 'C5', 'D5', 'E5', 'F5', 'G5'].forEach((n, i) => chime(10.9 + 1.7 * inv((i + 1) / 7), n, 0.45, pan(2820 + (i + 1) * 69, 11 + i * 0.2), 0.7, true)); // each point lands
|
|
372
|
+
k.noise(10.9, { dur: 1.7, color: 'pink', filter: 'bandpass', f: [[0, 700], [1.7, 1600]], q: 5, gain: 0.025, a: 0.8, pan: pan(3060, 11.8), minor: true }); // the glowing line drawing
|
|
373
|
+
counter(10.95, 12.56, (t) => Math.round(H.lerp(61, 97, H.ease.inOut(ph(t, 10.9, 12.6)))), 2600, 0.9, pan(2900, 12), 1 / 10);
|
|
374
|
+
// 97% (the biggest hit): number glows green and swells, a ring pulses off the last point
|
|
375
|
+
k.play('thud', 12.6, { f: 90, gain: 0.6 });
|
|
376
|
+
k.noise(12.6, { dur: 1.0, color: 'pink', filter: 'lowpass', f: [[0, 2200], [0.9, 400]], gain: 0.16, verb: 0.4 });
|
|
377
|
+
['A4', 'C5', 'E5', 'A5'].forEach((n, i) => chime(12.6 + i * 0.03, n, 1.3 - i * 0.15, (i - 1.5) * 0.25, 1.8));
|
|
378
|
+
glide(12.8, 13.8, 0.9);
|
|
379
|
+
// takeaway glass bar (EO 13.0-13.5) settles and resolves
|
|
380
|
+
frost(12.95, 0, 0.7);
|
|
381
|
+
['E5', 'A5'].forEach((n, i) => chime(13.35 + i * 0.09, n, 0.6 - i * 0.12, (i - 0.5) * 0.3, 1.4));
|
|
382
|
+
k.tone(13.35, { f: 'A2', type: 'triangle', dur: 1.2, gain: 0.12, a: 0.02 });
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
registerStyle({
|
|
386
|
+
id: 'glassmorphism',
|
|
387
|
+
name: 'Glassmorphism UI',
|
|
388
|
+
category: 'Dimensional',
|
|
389
|
+
description: 'Frosted-glass UI: translucent panels that genuinely blur the vivid gradient blobs and orbs behind them, with 1px light borders, a diagonal specular sheen, fine frost grain and crisp Inter type.',
|
|
390
|
+
motion: 'Color blobs bloom up under the glass, the frosted card rises in, then the chat plays out (user bubble pops, the AI reply types itself line by line) while stat chips float in glass-over-glass and their ring and sparkline draw on; blobs keep drifting so the frost shimmers.',
|
|
391
|
+
duration: 5,
|
|
392
|
+
fonts: ['800 60px "Inter"', '700 20px "Inter"', '600 18px "Inter"', '600 15px "Inter"', '400 15px "Inter"', '400 18px "Inter"', '800 22px "Inter"', '600 12px "Inter"'],
|
|
393
|
+
frameT: 4.6,
|
|
394
|
+
readsPixels: false,
|
|
395
|
+
explainerDuration: 14.5,
|
|
396
|
+
explainerNote: 'The camera glides and zooms across one big frosted dashboard (data feed → network card → output chat → accuracy chart → pull back) while the live colour blobs drift behind, so every panel re-frosts as it moves; connectors are glowing gradient lines with travelling light dots, labels are glass pills, numbers count in big Inter 800.',
|
|
397
|
+
explainer: glassExplainer,
|
|
398
|
+
explainerSound: glassSound,
|
|
399
|
+
draw(ctx, W, H_, t) {
|
|
400
|
+
// ---------- background: vivid blobs + a few crisp orbs (so the frost has something to blur) ----------
|
|
401
|
+
const BG = H.layer(W, H_), b = BG.getContext('2d');
|
|
402
|
+
const base = b.createLinearGradient(0, 0, W, H_);
|
|
403
|
+
base.addColorStop(0, '#0c0a24'); base.addColorStop(1, '#170f3a');
|
|
404
|
+
b.fillStyle = base; b.fillRect(0, 0, W, H_);
|
|
405
|
+
const blob = (x, y, r, col, a = 1) => {
|
|
406
|
+
const g = b.createRadialGradient(x, y, 0, x, y, r);
|
|
407
|
+
g.addColorStop(0, H.rgba(col, a)); g.addColorStop(0.5, H.rgba(col, a * 0.55)); g.addColorStop(1, H.rgba(col, 0));
|
|
408
|
+
b.fillStyle = g; b.fillRect(x - r, y - r, r * 2, r * 2);
|
|
409
|
+
};
|
|
410
|
+
const d = (ph, a) => Math.sin(t * 0.5 + ph) * a;
|
|
411
|
+
const ph = (a, b2) => H.clamp((t - a) / (b2 - a));
|
|
412
|
+
const E = (a, b2) => H.ease.out(ph(a, b2));
|
|
413
|
+
const typed = (str, a, b2) => str.slice(0, Math.round(str.length * ph(a, b2)));
|
|
414
|
+
const bloom = (i) => 0.35 + 0.65 * H.ease.out(ph(i * 0.12, 0.9 + i * 0.12));
|
|
415
|
+
blob(930 + d(0, 30), 230 + d(1, 20), 330 * bloom(0), '#ff2bd6', 0.95 * bloom(0));
|
|
416
|
+
blob(1180 + d(2, 20), 600, 300 * bloom(1), '#ff7a1a', 0.95 * bloom(1));
|
|
417
|
+
blob(620, 640 + d(3, 20), 320 * bloom(2), '#2b6bff', 0.9 * bloom(2));
|
|
418
|
+
blob(260 + d(4, 30), 170, 330 * bloom(3), '#7a2bff', 0.85 * bloom(3));
|
|
419
|
+
blob(120, 640, 250, '#00d1ff', 0.6);
|
|
420
|
+
blob(760, 380, 200, '#ff4d6d', 0.5);
|
|
421
|
+
// crisp orbs
|
|
422
|
+
orb(b, 1090 + d(5, 10), 170, 118, '#ffd2f4', '#ff4fc1', '#6a1497');
|
|
423
|
+
orb(b, 585, 575 + d(6, 8), 86, '#c7f2ff', '#3aa0ff', '#1a2a8a');
|
|
424
|
+
orb(b, 1215, 520, 46, '#ffe3b8', '#ff8a2a', '#9a2f12');
|
|
425
|
+
// ring
|
|
426
|
+
b.save(); b.translate(780, 120); b.rotate(-0.4);
|
|
427
|
+
const rg = b.createLinearGradient(-90, 0, 90, 0); rg.addColorStop(0, '#7af0ff'); rg.addColorStop(1, '#8a5bff');
|
|
428
|
+
b.strokeStyle = rg; b.lineWidth = 22; b.beginPath(); b.ellipse(0, 0, 92, 40, 0, 0, 7); b.stroke(); b.restore();
|
|
429
|
+
// faint grid
|
|
430
|
+
b.strokeStyle = 'rgba(255,255,255,0.035)'; b.lineWidth = 1; b.beginPath();
|
|
431
|
+
for (let x = 0; x <= W; x += 48) { b.moveTo(x + 0.5, 0); b.lineTo(x + 0.5, H_); }
|
|
432
|
+
for (let y = 0; y <= H_; y += 48) { b.moveTo(0, y + 0.5); b.lineTo(W, y + 0.5); }
|
|
433
|
+
b.stroke();
|
|
434
|
+
ctx.drawImage(BG, 0, 0);
|
|
435
|
+
let SRC = blurOf(BG, W, H_, 26);
|
|
436
|
+
|
|
437
|
+
// ---------- left: headline ----------
|
|
438
|
+
ctx.save(); ctx.globalAlpha = E(0.35, 0.7);
|
|
439
|
+
glass(ctx, SRC, 80 - (1 - E(0.35, 0.8)) * 20, 196, 196, 34, 17, { shadow: 16, tint: 0.08 });
|
|
440
|
+
ctx.fillStyle = '#b7f5ff'; ctx.beginPath(); ctx.arc(100, 213, 4 * (0.7 + 0.3 * Math.sin(t * 4)), 0, 7); ctx.fill();
|
|
441
|
+
ctx.font = '600 12px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.9)'; ctx.fillText('NEW · AI COPILOT 2.0', 114, 217.5);
|
|
442
|
+
ctx.restore();
|
|
443
|
+
// headline lines rise out of a mask, staggered
|
|
444
|
+
const line = (str, y, a, fill, font) => {
|
|
445
|
+
const e = E(a, a + 0.55); if (e <= 0) return;
|
|
446
|
+
ctx.save(); ctx.beginPath(); ctx.rect(60, y - 62, 520, 76); ctx.clip();
|
|
447
|
+
ctx.globalAlpha = e; ctx.font = font; ctx.fillStyle = fill; ctx.fillText(str, 76, y + (1 - e) * 64); ctx.restore();
|
|
448
|
+
};
|
|
449
|
+
line('Your AI', 300, 0.5, '#ffffff', '800 60px "Inter"');
|
|
450
|
+
line('copilot,', 366, 0.62, '#ffffff', '800 60px "Inter"');
|
|
451
|
+
const hg = ctx.createLinearGradient(76, 0, 400, 0); hg.addColorStop(0, '#ffffff'); hg.addColorStop(1, '#ffc6f0');
|
|
452
|
+
line('always on.', 432, 0.74, hg, '800 60px "Inter"');
|
|
453
|
+
ctx.save(); ctx.globalAlpha = E(1.05, 1.5); ctx.font = '400 18px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.68)';
|
|
454
|
+
ctx.fillText('Answers, summaries and actions —', 78, 478 + (1 - E(1.05, 1.5)) * 10); ctx.fillText('right where you work.', 78, 504 + (1 - E(1.05, 1.5)) * 10);
|
|
455
|
+
ctx.restore();
|
|
456
|
+
|
|
457
|
+
// ---------- chat card (rises in, frosted) ----------
|
|
458
|
+
const ce = E(0.55, 1.25);
|
|
459
|
+
const cx = 650, cy = 96 + (1 - ce) * 50, cw = 470, ch = 520;
|
|
460
|
+
ctx.save(); ctx.globalAlpha = ce;
|
|
461
|
+
glass(ctx, SRC, cx, cy, cw, ch, 28, { tint: 0.09 });
|
|
462
|
+
ctx.restore();
|
|
463
|
+
// header
|
|
464
|
+
ctx.save(); ctx.globalAlpha = E(1.0, 1.35);
|
|
465
|
+
orb(ctx, cx + 44, cy + 46, 20, '#ffd6f5', '#ff4fc1', '#7a1fb0');
|
|
466
|
+
ctx.strokeStyle = 'rgba(255,255,255,0.9)'; ctx.lineWidth = 1.8; ctx.beginPath();
|
|
467
|
+
const sx = cx + 44, sy = cy + 46; ctx.moveTo(sx, sy - 8); ctx.quadraticCurveTo(sx, sy, sx + 8, sy); ctx.quadraticCurveTo(sx, sy, sx, sy + 8); ctx.quadraticCurveTo(sx, sy, sx - 8, sy); ctx.quadraticCurveTo(sx, sy, sx, sy - 8); ctx.stroke();
|
|
468
|
+
ctx.font = '600 15px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText('Nova', cx + 76, cy + 42);
|
|
469
|
+
ctx.fillStyle = '#4dffa6'; ctx.beginPath(); ctx.arc(cx + 80, cy + 58, 3.5, 0, 7); ctx.fill();
|
|
470
|
+
ctx.font = '400 12px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.6)'; ctx.fillText('AI assistant · online', cx + 89, cy + 62);
|
|
471
|
+
for (let i = 0; i < 3; i++) { ctx.fillStyle = 'rgba(255,255,255,0.7)'; ctx.beginPath(); ctx.arc(cx + cw - 54 + i * 8, cy + 46, 2, 0, 7); ctx.fill(); }
|
|
472
|
+
ctx.restore();
|
|
473
|
+
const dl = E(1.1, 1.6);
|
|
474
|
+
if (dl > 0) { ctx.strokeStyle = 'rgba(255,255,255,0.12)'; ctx.lineWidth = 1; ctx.beginPath(); ctx.moveTo(cx + 24, cy + 88.5); ctx.lineTo(cx + 24 + (cw - 48) * dl, cy + 88.5); ctx.stroke(); }
|
|
475
|
+
// user message pops from its tail corner
|
|
476
|
+
{
|
|
477
|
+
const bw = 262, bx = cx + cw - 24 - bw, by = cy + 112;
|
|
478
|
+
const k = H.ease.back(ph(1.45, 1.85));
|
|
479
|
+
if (k > 0) {
|
|
480
|
+
ctx.save(); ctx.translate(bx + bw, by + 46); ctx.scale(k, k); ctx.translate(-(bx + bw), -(by + 46)); ctx.globalAlpha = Math.min(1, ph(1.45, 1.6));
|
|
481
|
+
const ug = ctx.createLinearGradient(bx, by, bx + bw, by + 46);
|
|
482
|
+
ug.addColorStop(0, '#8a5bff'); ug.addColorStop(1, '#ff4fc1');
|
|
483
|
+
ctx.save(); ctx.shadowColor = 'rgba(255,60,200,0.35)'; ctx.shadowBlur = 20; ctx.shadowOffsetY = 6;
|
|
484
|
+
ctx.fillStyle = ug; ctx.beginPath(); ctx.roundRect(bx, by, bw, 46, [18, 18, 4, 18]); ctx.fill(); ctx.restore();
|
|
485
|
+
ctx.font = '400 15px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText("Summarize today's sales call", bx + 18, by + 28);
|
|
486
|
+
ctx.restore();
|
|
487
|
+
ctx.save(); ctx.globalAlpha = E(1.8, 2.1); ctx.font = '400 11px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.45)'; ctx.fillText('9:41', cx + cw - 52, by + 64); ctx.restore();
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
// AI reply: bubble grows from its tail corner, then types line by line
|
|
491
|
+
{
|
|
492
|
+
const bx = cx + 24, by = cy + 192, bw = 340, bh = 156;
|
|
493
|
+
const k = H.ease.back(ph(1.95, 2.35));
|
|
494
|
+
if (k > 0) {
|
|
495
|
+
ctx.save(); ctx.translate(bx, by + bh); ctx.scale(k, k); ctx.translate(-bx, -(by + bh)); ctx.globalAlpha = Math.min(1, ph(1.95, 2.1));
|
|
496
|
+
ctx.fillStyle = 'rgba(255,255,255,0.12)'; ctx.beginPath(); ctx.roundRect(bx, by, bw, bh, [18, 18, 18, 4]); ctx.fill();
|
|
497
|
+
ctx.strokeStyle = 'rgba(255,255,255,0.22)'; ctx.lineWidth = 1; ctx.beginPath(); ctx.roundRect(bx + 0.5, by + 0.5, bw - 1, bh - 1, [18, 18, 18, 4]); ctx.stroke();
|
|
498
|
+
ctx.restore();
|
|
499
|
+
ctx.font = '400 15px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText(typed('Here are the 3 key takeaways:', 2.25, 2.65), bx + 18, by + 32);
|
|
500
|
+
const items = [['Budget approved for Q3', '#4dffa6'], ['Pilot starts next Monday', '#7ad7ff'], ['Security review needed', '#ffb35c']];
|
|
501
|
+
items.forEach(([txt, c], i) => {
|
|
502
|
+
const a0 = 2.7 + i * 0.32;
|
|
503
|
+
const e = E(a0, a0 + 0.25); if (e <= 0) return;
|
|
504
|
+
const yy = by + 66 + i * 34;
|
|
505
|
+
ctx.save(); ctx.globalAlpha = e;
|
|
506
|
+
ctx.fillStyle = H.rgba(c, 0.18); ctx.beginPath(); ctx.roundRect(bx + 18, yy - 15, 22, 22, 7); ctx.fill();
|
|
507
|
+
ctx.font = '600 12px "Inter"'; ctx.fillStyle = c; ctx.textAlign = 'center'; ctx.fillText(String(i + 1), bx + 29, yy); ctx.textAlign = 'left';
|
|
508
|
+
ctx.restore();
|
|
509
|
+
ctx.font = '400 14px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.88)'; ctx.fillText(typed(txt, a0 + 0.05, a0 + 0.3), bx + 52, yy);
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
// typing indicator: Nova is "thinking" before the reply, then again after it
|
|
514
|
+
{
|
|
515
|
+
const bx = cx + 24;
|
|
516
|
+
const before = t > 1.7 && t < 1.98, after = t > 3.75;
|
|
517
|
+
if (before || after) {
|
|
518
|
+
const by = before ? cy + 192 : cy + 364;
|
|
519
|
+
ctx.save(); ctx.globalAlpha = before ? 1 : E(3.75, 3.95);
|
|
520
|
+
ctx.fillStyle = 'rgba(255,255,255,0.10)'; ctx.beginPath(); ctx.roundRect(bx, by, 64, 30, 15); ctx.fill();
|
|
521
|
+
for (let i = 0; i < 3; i++) {
|
|
522
|
+
const a = 0.35 + 0.65 * Math.max(0, Math.sin(t * 9 - i * 0.9));
|
|
523
|
+
ctx.fillStyle = `rgba(255,255,255,${a})`; ctx.beginPath(); ctx.arc(bx + 20 + i * 12, by + 15, 3.2, 0, 7); ctx.fill();
|
|
524
|
+
}
|
|
525
|
+
ctx.restore();
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
// input field
|
|
529
|
+
{
|
|
530
|
+
const ix = cx + 20, iy = cy + ch - 74, iw = cw - 40, ih = 52;
|
|
531
|
+
ctx.save(); ctx.globalAlpha = E(1.15, 1.5);
|
|
532
|
+
ctx.fillStyle = 'rgba(10,6,40,0.22)'; ctx.beginPath(); ctx.roundRect(ix, iy, iw, ih, 26); ctx.fill();
|
|
533
|
+
ctx.strokeStyle = 'rgba(255,255,255,0.18)'; ctx.beginPath(); ctx.roundRect(ix + 0.5, iy + 0.5, iw - 1, ih - 1, 26); ctx.stroke();
|
|
534
|
+
ctx.font = '400 15px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.5)'; ctx.fillText('Ask Nova anything…', ix + 22, iy + 31);
|
|
535
|
+
if (Math.sin(t * 6) > 0) { ctx.fillStyle = 'rgba(255,255,255,0.8)'; ctx.fillRect(ix + 21, iy + 17, 1.5, 19); }
|
|
536
|
+
const g = ctx.createLinearGradient(ix + iw - 46, iy, ix + iw - 6, iy + ih);
|
|
537
|
+
g.addColorStop(0, '#ff7a1a'); g.addColorStop(1, '#ff2bd6');
|
|
538
|
+
ctx.fillStyle = g; ctx.beginPath(); ctx.arc(ix + iw - 26, iy + 26, 19, 0, 7); ctx.fill();
|
|
539
|
+
ctx.strokeStyle = '#fff'; ctx.lineWidth = 2; ctx.lineCap = 'round'; ctx.lineJoin = 'round';
|
|
540
|
+
ctx.beginPath(); ctx.moveTo(ix + iw - 26, iy + 34); ctx.lineTo(ix + iw - 26, iy + 18); ctx.moveTo(ix + iw - 33, iy + 25); ctx.lineTo(ix + iw - 26, iy + 18); ctx.lineTo(ix + iw - 19, iy + 25); ctx.stroke();
|
|
541
|
+
ctx.restore();
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
// ---------- stat chips: glass over glass (re-blur the composited frame), floating in ----------
|
|
545
|
+
SRC = blurOf(ctx.canvas, W, H_, 18);
|
|
546
|
+
const chip = (a0, dx, dy, fn) => {
|
|
547
|
+
const e = E(a0, a0 + 0.6); if (e <= 0) return;
|
|
548
|
+
ctx.save(); ctx.globalAlpha = Math.min(1, ph(a0, a0 + 0.3)); fn((1 - e) * dx, (1 - e) * dy); ctx.restore();
|
|
549
|
+
};
|
|
550
|
+
// chip 1: speed
|
|
551
|
+
chip(2.25, -40, 0, (ox, oy) => {
|
|
552
|
+
const x = 570 + ox, y = 180 + d(1, 4) + oy, w = 168, h = 64;
|
|
553
|
+
glass(ctx, SRC, x, y, w, h, 18, { shadow: 34, tint: 0.12 });
|
|
554
|
+
const g = ctx.createLinearGradient(x + 14, y + 14, x + 50, y + 50); g.addColorStop(0, '#ffcf5c'); g.addColorStop(1, '#ff7a1a');
|
|
555
|
+
ctx.fillStyle = g; ctx.beginPath(); ctx.roundRect(x + 14, y + 14, 36, 36, 11); ctx.fill();
|
|
556
|
+
ctx.fillStyle = '#fff'; ctx.beginPath(); ctx.moveTo(x + 34, y + 20); ctx.lineTo(x + 24, y + 34); ctx.lineTo(x + 31, y + 34); ctx.lineTo(x + 28, y + 44); ctx.lineTo(x + 39, y + 29); ctx.lineTo(x + 32, y + 29); ctx.closePath(); ctx.fill();
|
|
557
|
+
ctx.font = '800 22px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText((2.4 * E(2.3, 3.0)).toFixed(1) + '×', x + 62, y + 34);
|
|
558
|
+
ctx.font = '400 12px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.65)'; ctx.fillText('faster replies', x + 62, y + 51);
|
|
559
|
+
});
|
|
560
|
+
// chip 2: accuracy ring
|
|
561
|
+
chip(2.55, 40, 0, (ox, oy) => {
|
|
562
|
+
const x = 1018 + ox, y = 356 + d(2, 4) + oy, w = 196, h = 76;
|
|
563
|
+
glass(ctx, SRC, x, y, w, h, 20, { shadow: 34, tint: 0.12 });
|
|
564
|
+
const c = [x + 40, y + 38];
|
|
565
|
+
const rp = H.ease.inOut(ph(2.7, 3.6));
|
|
566
|
+
ctx.lineWidth = 6; ctx.strokeStyle = 'rgba(255,255,255,0.15)'; ctx.beginPath(); ctx.arc(c[0], c[1], 21, 0, 7); ctx.stroke();
|
|
567
|
+
const g = ctx.createLinearGradient(c[0] - 20, c[1] - 20, c[0] + 20, c[1] + 20); g.addColorStop(0, '#4dffa6'); g.addColorStop(1, '#00d1ff');
|
|
568
|
+
if (rp > 0) { ctx.strokeStyle = g; ctx.lineCap = 'round'; ctx.beginPath(); ctx.arc(c[0], c[1], 21, -Math.PI / 2, -Math.PI / 2 + Math.PI * 2 * 0.986 * rp); ctx.stroke(); }
|
|
569
|
+
ctx.font = '800 22px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText((98.6 * rp).toFixed(1) + '%', x + 76, y + 40);
|
|
570
|
+
ctx.font = '400 12px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.65)'; ctx.fillText('answer accuracy', x + 76, y + 58);
|
|
571
|
+
});
|
|
572
|
+
// chip 3: sparkline
|
|
573
|
+
chip(2.85, 0, 40, (ox, oy) => {
|
|
574
|
+
const x = 556 + ox, y = 586 + d(3, 4) + oy, w = 190, h = 92;
|
|
575
|
+
glass(ctx, SRC, x, y, w, h, 20, { shadow: 34, tint: 0.12 });
|
|
576
|
+
ctx.font = '400 12px "Inter"'; ctx.fillStyle = 'rgba(255,255,255,0.65)'; ctx.fillText('Tokens / sec', x + 16, y + 26);
|
|
577
|
+
ctx.font = '800 22px "Inter"'; ctx.fillStyle = '#fff'; ctx.fillText('12.8k', x + 16, y + 52);
|
|
578
|
+
ctx.font = '600 12px "Inter"'; ctx.fillStyle = '#4dffa6'; ctx.fillText('▲ 18%', x + 82, y + 51);
|
|
579
|
+
const pts = []; const sr = H.rng(4);
|
|
580
|
+
for (let i = 0; i <= 12; i++) pts.push([x + 16 + i * 13.2, y + 80 - (i * 1.4 + sr() * 8 + Math.sin(i * 0.8 + t) * 2)]);
|
|
581
|
+
const sp = H.ease.inOut(ph(3.0, 3.7)), n = Math.max(1, Math.round(12 * sp));
|
|
582
|
+
const vis = pts.slice(0, n + 1);
|
|
583
|
+
if (sp > 0) {
|
|
584
|
+
const ag = ctx.createLinearGradient(0, y + 50, 0, y + 86); ag.addColorStop(0, 'rgba(77,255,166,0.35)'); ag.addColorStop(1, 'rgba(77,255,166,0)');
|
|
585
|
+
ctx.fillStyle = ag; ctx.beginPath(); ctx.moveTo(vis[0][0], y + 86); vis.forEach(p => ctx.lineTo(p[0], p[1])); ctx.lineTo(vis[vis.length - 1][0], y + 86); ctx.closePath(); ctx.fill();
|
|
586
|
+
ctx.strokeStyle = '#4dffa6'; ctx.lineWidth = 2; ctx.lineJoin = 'round'; ctx.beginPath(); vis.forEach((p, i) => i ? ctx.lineTo(p[0], p[1]) : ctx.moveTo(p[0], p[1])); ctx.stroke();
|
|
587
|
+
const lp = vis[vis.length - 1]; ctx.fillStyle = '#fff'; ctx.beginPath(); ctx.arc(lp[0], lp[1], 3.5, 0, 7); ctx.fill();
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
},
|
|
591
|
+
});
|
|
592
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 46,
|
|
3
|
+
"name": "Glassmorphism UI",
|
|
4
|
+
"nameZh": "毛玻璃界面",
|
|
5
|
+
"family": "Dimensional",
|
|
6
|
+
"familyZh": "立体空间",
|
|
7
|
+
"description": "Frosted-glass UI: translucent panels that genuinely blur the vivid gradient blobs and orbs behind them, with 1px light borders, a diagonal specular sheen, fine frost grain and crisp Inter type.",
|
|
8
|
+
"motionNotes": "Motion: Color blobs bloom up under the glass, the frosted card rises in, then the chat plays out (user bubble pops, the AI reply types itself line by line) while stat chips float in glass-over-glass and their ring and sparkline draw on; blobs keep drifting so the frost shimmers.",
|
|
9
|
+
"explainerNotes": "Explainer: The camera glides and zooms across one big frosted dashboard (data feed → network card → output chat → accuracy chart → pull back) while the live colour blobs drift behind, so every panel re-frosts as it moves; connectors are glowing gradient lines with travelling light dots, labels are glass pills, numbers count in big Inter 800.",
|
|
10
|
+
"code": "code.js",
|
|
11
|
+
"registeredAs": "glassmorphism",
|
|
12
|
+
"source": "https://www.futurepedia.io/resources/ai-style-atlas/view"
|
|
13
|
+
}
|