@autoaiai/aicut 0.1.11 → 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 -94
- package/package.json +1 -1
- package/skills/aicut-motion/SKILL.md +69 -3
- 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/motion-delivery.md +55 -0
- 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/server/fetch-github.mjs +14 -3
- package/studio/server/server.mjs +40 -3
- 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/es-C8XPZARI.js +1 -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 +2 -2
- package/skills/30x-web-to-video/SKILL.md +0 -421
- package/skills/30x-web-to-video/examples/INDEX.md +0 -26
- package/skills/30x-web-to-video/references/animations.md +0 -539
- package/skills/30x-web-to-video/references/audio.md +0 -256
- package/skills/30x-web-to-video/references/components.md +0 -340
- package/skills/30x-web-to-video/references/lottie.md +0 -174
- package/skills/30x-web-to-video/references/visual-effects.md +0 -157
- package/skills/30x-web-to-video/remotion-best-practices/rules/audio.md +0 -169
- package/skills/30x-web-to-video/remotion-best-practices/rules/calculate-metadata.md +0 -134
- package/skills/30x-web-to-video/remotion-best-practices/rules/charts.md +0 -120
- package/skills/30x-web-to-video/remotion-best-practices/rules/compositions.md +0 -154
- package/skills/30x-web-to-video/remotion-best-practices/rules/ffmpeg.md +0 -38
- package/skills/30x-web-to-video/remotion-best-practices/rules/fonts.md +0 -152
- package/skills/3d-asset-generation/SKILL.md +0 -142
- package/skills/action-fight-prompt/SKILL.md +0 -136
- package/skills/action-fight-prompt/references/camera-and-impact.md +0 -64
- package/skills/action-fight-prompt/references/example-15s-duel.md +0 -59
- package/skills/action-fight-prompt/references/scene-patterns.md +0 -80
- package/skills/ad-creative-video/SKILL.md +0 -205
- package/skills/ad-creative-video/references/batch-ad-pipeline.md +0 -289
- package/skills/ad-creative-video/references/platform-specs.md +0 -72
- package/skills/after-effects/SKILL.md +0 -123
- package/skills/after-effects/references/export-recipes.md +0 -168
- package/skills/after-effects/references/expression-library.md +0 -184
- package/skills/after-effects/references/expressions.md +0 -134
- package/skills/after-effects/references/performance-triage.md +0 -138
- package/skills/after-effects/references/project-hygiene.md +0 -188
- package/skills/ai-media-quality-review/SKILL.md +0 -72
- package/skills/ai-product-video/SKILL.md +0 -296
- package/skills/ai-product-video/references/aesthetic-rules.md +0 -177
- package/skills/ai-product-video/references/final-review.md +0 -110
- package/skills/ai-product-video/references/guided-free-creation.md +0 -194
- package/skills/ai-product-video/references/music-beat-sync.md +0 -219
- package/skills/ai-product-video/references/pipeline.md +0 -392
- package/skills/ai-product-video/references/sequences/promo-energy-arc.md +0 -50
- package/skills/ai-product-video/references/shots/ATTRIBUTION.md +0 -65
- package/skills/ai-product-video/references/shots/camera/basic-3d-scene.md +0 -37
- package/skills/ai-product-video/references/shots/camera/crash-zoom-punch.md +0 -39
- package/skills/ai-product-video/references/shots/camera/cursor-flyover.md +0 -38
- package/skills/ai-product-video/references/shots/camera/depth-layer-moves.md +0 -40
- package/skills/ai-product-video/references/shots/camera/graze-face-tour.md +0 -57
- package/skills/anidoodle/SKILL.md +0 -185
- package/skills/anidoodle/references/anatomy.md +0 -91
- package/skills/anidoodle/references/backends-and-adapters.md +0 -82
- package/skills/anidoodle/references/camera.md +0 -148
- package/skills/anidoodle/references/craft-bar.md +0 -72
- package/skills/anidoodle/references/determinism-and-contract.md +0 -46
- package/skills/anidoodle/references/formats.md +0 -121
- package/skills/anidoodle/references/motion-grammar.md +0 -234
- package/skills/anidoodle/references/music/compose.md +0 -388
- package/skills/anidoodle/references/music/sound-design.md +0 -245
- package/skills/anidoodle/references/music/sounds-licenses.md +0 -69
- package/skills/anidoodle/references/music/styles/lofi-electronic.md +0 -112
- package/skills/anidoodle/references/music/styles/music-box.md +0 -57
- package/skills/animated-component-libraries/SKILL.md +0 -820
- package/skills/animated-component-libraries/references/customization_guide.md +0 -699
- package/skills/animated-component-libraries/references/magic_ui_components.md +0 -422
- package/skills/animated-component-libraries/references/react_bits_components.md +0 -587
- package/skills/animated-infographic/SKILL.md +0 -211
- package/skills/animated-infographic/references/sequenced-infographic.md +0 -286
- package/skills/appshot-core/SKILL.md +0 -872
- package/skills/article-highlights/SKILL.md +0 -151
- package/skills/avatar-mix/SKILL.md +0 -301
- package/skills/bang-motion/SKILL.md +0 -583
- package/skills/bang-motion/references/ae-bridge-higgsfield.md +0 -160
- package/skills/bang-motion/references/anti-ppt.md +0 -110
- package/skills/bang-motion/references/architecture.md +0 -188
- package/skills/bang-motion/references/explainer.md +0 -579
- package/skills/bang-motion/references/kartun-panggung.md +0 -221
- package/skills/bang-motion/references/opener-konsep.md +0 -817
- package/skills/bang-motion/references/roadmap.md +0 -85
- package/skills/bang-motion/references/techniques.md +0 -690
- package/skills/beat-sync-edit/SKILL.md +0 -148
- package/skills/book-video-factory/SKILL.md +0 -139
- package/skills/book-video-factory/references/first-run.md +0 -50
- package/skills/book-video-factory/references/paper-collage-explainer.md +0 -127
- package/skills/book-video-factory/references/quality-gates.md +0 -87
- package/skills/book-video-production/SKILL.md +0 -211
- package/skills/brag/SKILL.md +0 -195
- package/skills/brag/references/audio.md +0 -312
- package/skills/brag/references/step-1-inspect.md +0 -125
- package/skills/brag/references/step-2-plan.md +0 -234
- package/skills/brag/references/step-3-compose.md +0 -199
- package/skills/brag/references/step-4-deliver.md +0 -141
- package/skills/brag/references/tones.md +0 -231
- package/skills/brand-setup/SKILL.md +0 -228
- package/skills/brewreel/SKILL.md +0 -491
- package/skills/brewreel/docs/broll.en.md +0 -252
- package/skills/brewreel/docs/broll.md +0 -252
- package/skills/brewreel/docs/custom-shot.en.md +0 -66
- package/skills/brewreel/docs/custom-shot.md +0 -103
- package/skills/brewreel/docs/faq.en.md +0 -90
- package/skills/brewreel/docs/faq.md +0 -90
- package/skills/brewreel/docs/features.en.md +0 -157
- package/skills/brewreel/docs/features.md +0 -157
- package/skills/brewreel/docs/gallery.en.md +0 -44
- package/skills/brewreel/docs/gallery.md +0 -44
- package/skills/brewreel/docs/how-it-works.en.md +0 -64
- package/skills/brewreel/docs/how-it-works.md +0 -64
- package/skills/caption-animation/SKILL.md +0 -216
- package/skills/caption-animation/references/word-timed-captions.md +0 -254
- package/skills/cartcut-editing/SKILL.md +0 -615
- package/skills/cartcut-editing/references/html-typography.md +0 -277
- package/skills/cassette-video-edit/SKILL.md +0 -129
- package/skills/ccvideo/SKILL.md +0 -264
- package/skills/chekhov-dramaturgy/SKILL.md +0 -367
- package/skills/chekhov-dramaturgy/reference.md +0 -375
- package/skills/chengfeng-check-updates/SKILL.md +0 -283
- package/skills/cinematic-product-promo-skill/SKILL.md +0 -295
- package/skills/cinematic-product-promo-skill/references/aesthetic-rules.md +0 -187
- package/skills/cinematic-product-promo-skill/references/final-review.md +0 -116
- package/skills/cinematic-product-promo-skill/references/guided-free-creation.md +0 -199
- package/skills/cinematic-product-promo-skill/references/jianying-export.md +0 -183
- package/skills/cinematic-product-promo-skill/references/music-beat-sync.md +0 -257
- package/skills/cinematic-product-promo-skill/references/pipeline.md +0 -393
- package/skills/cinematic-product-promo-skill/references/sequences/promo-energy-arc.md +0 -50
- package/skills/cinematic-product-promo-skill/references/shots/ATTRIBUTION.md +0 -65
- package/skills/cinematic-product-promo-skill/references/shots/camera/basic-3d-scene.md +0 -37
- package/skills/cinematic-product-promo-skill/references/shots/camera/crash-zoom-punch.md +0 -39
- package/skills/cinematic-product-promo-skill/references/shots/camera/cursor-flyover.md +0 -38
- package/skills/cinematic-product-promo-skill/references/shots/camera/depth-layer-moves.md +0 -40
- package/skills/claude-gif/SKILL.md +0 -211
- package/skills/claude-gif/references/gif-optimization.md +0 -209
- package/skills/claude-gif/references/perfect-loops.md +0 -295
- package/skills/claude-gif/references/platform-specs.md +0 -138
- package/skills/claude-gif/references/prompt-engineering.md +0 -211
- package/skills/claude-gif/references/remotion-gif.md +0 -560
- package/skills/codex-video-pipeline/SKILL.md +0 -213
- package/skills/codex-video-pipeline/examples/ai-meeting-notes/INPUT.md +0 -10
- package/skills/codex-video-pipeline/examples/ai-meeting-notes/expected/action-list.md +0 -22
- package/skills/codex-video-pipeline/references/captions.md +0 -39
- package/skills/codex-video-pipeline/references/cover-system.md +0 -72
- package/skills/codex-video-pipeline/references/cross-platform.md +0 -77
- package/skills/codex-video-pipeline/references/example-run.md +0 -54
- package/skills/codex-video-pipeline/references/first-run.md +0 -130
- package/skills/codex-video-pipeline/references/project-contract.md +0 -54
- package/skills/codex-video-pipeline/references/quality-gates.md +0 -44
- package/skills/codex-video-pipeline/references/research-and-script.md +0 -50
- package/skills/collage-broll-explainers/SKILL.md +0 -429
- package/skills/create-onboarding-video/SKILL.md +0 -233
- package/skills/cs-shotcraft-skill/SKILL.md +0 -218
- package/skills/cs-shotcraft-skill/references/aesthetic-rules.md +0 -207
- package/skills/cs-shotcraft-skill/references/camera-table.md +0 -88
- package/skills/cs-shotcraft-skill/references/engineering.md +0 -132
- package/skills/cs-shotcraft-skill/references/final-review.md +0 -118
- package/skills/cs-shotcraft-skill/references/guided-free-creation.md +0 -199
- package/skills/cs-shotcraft-skill/references/jianying-export.md +0 -183
- package/skills/cs-shotcraft-skill/references/music-beat-sync.md +0 -257
- package/skills/cs-shotcraft-skill/references/pipeline.md +0 -408
- package/skills/cs-shotcraft-skill/references/product-machine.md +0 -56
- package/skills/cs-shotcraft-skill/references/sequences/promo-energy-arc.md +0 -50
- package/skills/cs-shotcraft-skill/references/shots/ATTRIBUTION.md +0 -65
- package/skills/cs-shotcraft-skill/references/shots/camera/basic-3d-scene.md +0 -37
- package/skills/cut-video/SKILL.md +0 -387
- package/skills/cyxj-hyperframes-overlay/SKILL.md +0 -75
- package/skills/cyxj-remotion-evolve/SKILL.md +0 -123
- package/skills/cyxj-remotion-evolve-vibe-motion/SKILL.md +0 -123
- package/skills/demo-video-creation-skill/SKILL.md +0 -152
- package/skills/demo-video-creation-skill/references/capture-workflow.md +0 -74
- package/skills/demo-video-creation-skill/references/qc-checklist.md +0 -61
- package/skills/demo-video-creation-skill/references/remotion-ffmpeg.md +0 -94
- package/skills/demo-video-creation-skill/references/storytelling.md +0 -86
- package/skills/demo-video-creation-skill/references/visual-system.md +0 -83
- package/skills/demoday/SKILL.md +0 -148
- package/skills/develop-premiere-pro-mcp/SKILL.md +0 -131
- package/skills/diagram-animation/SKILL.md +0 -200
- package/skills/diagram-animation/references/diagram-and-chart-recipes.md +0 -218
- package/skills/diagram-tour/SKILL.md +0 -287
- package/skills/diagram-tour/examples/agent-architecture/agent-architecture-tour.md +0 -78
- package/skills/docvideoer/SKILL.md +0 -139
- package/skills/draftcut/SKILL.md +0 -104
- package/skills/draftcut/docs/agent-bootstrap.md +0 -64
- package/skills/draftcut/docs/approvals.md +0 -45
- package/skills/draftcut/docs/audio-first-migration.md +0 -35
- package/skills/draftcut/docs/configuration.md +0 -54
- package/skills/draftcut/docs/getting-started.md +0 -63
- package/skills/draftcut/docs/harness-case-study.en.md +0 -23
- package/skills/draftcut/docs/harness-case-study.md +0 -47
- package/skills/draftcut/references/01-plan.md +0 -30
- package/skills/draftcut/references/03-deliver.md +0 -26
- package/skills/draftcut/references/04-reference-theme-prompt.md +0 -7
- package/skills/draftcut/references/05-social-loudness.md +0 -58
- package/skills/draftcut/references/06-modern-components.md +0 -72
- package/skills/easyedit/SKILL.md +0 -66
- package/skills/erduo-broll-loop-engineering/SKILL.md +0 -136
- package/skills/erduo-broll-loop-engineering/references/animation-craft.md +0 -208
- package/skills/erduo-broll-loop-engineering/references/first-run-onboarding.md +0 -107
- package/skills/erduo-broll-loop-engineering/references/handoff-template.md +0 -70
- package/skills/erduo-broll-loop-engineering/references/motion-layout-lint.md +0 -122
- package/skills/erduo-broll-loop-engineering/references/parent-review-checklist.md +0 -171
- package/skills/erduo-broll-loop-engineering/references/prompt-first-workflow.md +0 -322
- package/skills/erduo-broll-loop-engineering/references/remotion-backend.md +0 -334
- package/skills/erduo-broll-loop-engineering/references/runtime/remotion-hyperframes-map.md +0 -76
- package/skills/erduo-broll-loop-engineering/references/runtime/runtime-contract.md +0 -174
- package/skills/erduo-broll-loop-engineering/references/runtime/runtime-selection.md +0 -135
- package/skills/erduo-broll-loop-engineering/references/shotcraft/remotion-sources/SOURCE.md +0 -7
- package/skills/erduo-broll-loop-engineering/references/shotcraft/upstream-attribution.md +0 -65
- package/skills/explainer-assets/SKILL.md +0 -98
- package/skills/explainer-video/SKILL.md +0 -146
- package/skills/framewright/SKILL.md +0 -324
- package/skills/framewright/references/audio.md +0 -230
- package/skills/framewright/references/guide.md +0 -276
- package/skills/framewright/references/painting.md +0 -425
- package/skills/framewright/references/photo.md +0 -75
- package/skills/framewright/references/questionnaire.md +0 -115
- package/skills/framewright/references/styles.md +0 -388
- package/skills/framewright/references/troubleshooting.md +0 -119
- package/skills/framewright/references/world.md +0 -215
- package/skills/gbro-collage-broll/SKILL.md +0 -435
- package/skills/gbro-collage-info/SKILL.md +0 -135
- package/skills/gbro-collage-info/references/motion-grammar.md +0 -66
- package/skills/gbro-collage-info/references/production.md +0 -67
- package/skills/gbro-collage-info/references/style-system.md +0 -38
- package/skills/gemini-tts/SKILL.md +0 -208
- package/skills/gemini-tts/references/prompting-guide.md +0 -169
- package/skills/gen/SKILL.md +0 -282
- package/skills/ghost-editor/SKILL.md +0 -437
- package/skills/ghost-editor/docs/HOW-IT-WORKS.md +0 -82
- package/skills/ghost-editor/docs/PLAYBOOK.md +0 -139
- package/skills/ghost-editor/docs/THIRD_PARTY/audio.md +0 -17
- package/skills/ghost-editor/docs/THIRD_PARTY/audioqa.md +0 -13
- package/skills/ghost-editor/docs/THIRD_PARTY/captions.md +0 -20
- package/skills/ghost-editor/docs/THIRD_PARTY/fonts.md +0 -17
- package/skills/ghost-editor/docs/THIRD_PARTY/kinetic.md +0 -22
- package/skills/ghost-editor/docs/THIRD_PARTY/looks.md +0 -22
- package/skills/ghost-editor/docs/THIRD_PARTY/matte.md +0 -20
- package/skills/ghost-editor/docs/THIRD_PARTY/models.md +0 -11
- package/skills/ghost-editor/docs/THIRD_PARTY/runtime.md +0 -13
- package/skills/ghost-editor/docs/THIRD_PARTY/shaders.md +0 -15
- package/skills/git-story-film/SKILL.md +0 -220
- package/skills/git-story-film/examples/raven-story/FONTS.md +0 -8
- package/skills/git-story-film/examples/raven-story/OUTLINE.md +0 -93
- package/skills/git-story-film/references/craft.md +0 -148
- package/skills/git-story-film/references/directing.md +0 -185
- package/skills/git-story-film/references/forms.md +0 -150
- package/skills/git-story-film/references/production.md +0 -150
- package/skills/git-story-film/references/story.md +0 -137
- package/skills/git-story-film/references/text-and-fonts.md +0 -90
- package/skills/guizang-product-video-skill/SKILL.md +0 -96
- package/skills/guizang-product-video-skill/references/audio-and-qa.md +0 -113
- package/skills/guizang-product-video-skill/references/audio-sourcing.md +0 -80
- package/skills/guizang-product-video-skill/references/case-study.md +0 -63
- package/skills/guizang-product-video-skill/references/component-pipeline.md +0 -86
- package/skills/guizang-product-video-skill/references/cover.md +0 -43
- package/skills/guizang-product-video-skill/references/direction.md +0 -91
- package/skills/guizang-product-video-skill/references/onboarding.md +0 -98
- package/skills/guizang-product-video-skill/references/repo-and-style.md +0 -44
- package/skills/guizang-product-video-skill/references/review.md +0 -38
- package/skills/guizang-product-video-skill/references/starter.md +0 -168
- package/skills/guizang-product-video-skill/references/story-and-copy.md +0 -88
- package/skills/guizang-product-video-skill/references/visual-vocabulary.md +0 -78
- package/skills/guofeng-paper-video/SKILL.md +0 -159
- package/skills/guofeng-paper-video/style/design.md +0 -43
- package/skills/guofeng-paper-video/style/palette.md +0 -21
- package/skills/guofeng-paper-video/style/prompts/01-/345/210/206/351/225/234/350/241/250.md +0 -19
- package/skills/guofeng-paper-video/style/prompts/02-/347/224/237/346/210/220/347/272/270/347/211/207.md +0 -37
- package/skills/guofeng-paper-video/style/prompts/03-/351/205/215/351/237/263/350/204/232/346/234/254.md +0 -27
- package/skills/guofeng-paper-video/style//345/210/206/351/225/234/344/270/216/345/233/276/345/261/202/350/247/204/350/214/203.md +0 -67
- package/skills/guofeng-paper-video/style//347/272/270/347/211/207/347/264/240/346/235/220/350/247/204/350/214/203.md +0 -29
- package/skills/hand-drawn-explainer-video-nikola/SKILL.md +0 -113
- package/skills/hand-drawn-explainer-video-nikola/docs/ARCHITECTURE.md +0 -18
- package/skills/hand-drawn-explainer-video-nikola/docs/CONFIGURATION.md +0 -22
- package/skills/hand-drawn-explainer-video-nikola/docs/STYLES.md +0 -28
- package/skills/hand-drawn-explainer-video-nikola/docs/TROUBLESHOOTING.md +0 -35
- package/skills/hand-drawn-explainer-video-nikola/examples/program-animation/skill-demo/DESIGN.md +0 -24
- package/skills/hand-drawn-explainer-video-nikola/references/automation-workflow.md +0 -67
- package/skills/hand-drawn-explainer-video-nikola/references/output-example.md +0 -79
- package/skills/hand-drawn-explainer-video-nikola/references/preflight-and-recovery.md +0 -49
- package/skills/hand-drawn-explainer-video-nikola/references/style-guide.md +0 -82
- package/skills/hand-drawn-explainer-video-nikola/references/style-selection-and-updates.md +0 -39
- package/skills/hand-drawn-explainer-video-nikola/references/upstream-whiteboard-review.md +0 -30
- package/skills/hand-drawn-explainer-video-nikola/references/voiceover.md +0 -37
- package/skills/hbg-life-simulation/SKILL.md +0 -285
- package/skills/hbg-life-simulation/references/image-generation.md +0 -53
- package/skills/hbg-life-simulation/references/local-account-api.md +0 -112
- package/skills/hbg-life-simulation/references/opening-system.md +0 -45
- package/skills/hbg-life-simulation/references/project-spec.md +0 -62
- package/skills/hbg-life-simulation/references/render-and-qa.md +0 -107
- package/skills/hbg-life-simulation/references/storyboarding.md +0 -69
- package/skills/hbg-life-simulation/references/style-system.md +0 -80
- package/skills/hbg-life-simulation/references/visual-system.md +0 -44
- package/skills/heygen-avatar/SKILL.md +0 -489
- package/skills/heygen-avatar/references/asset-routing.md +0 -86
- package/skills/heygen-avatar/references/avatar-creation.md +0 -181
- package/skills/heygen-avatar/references/troubleshooting.md +0 -137
- package/skills/heytea-doodle-poster/SKILL.md +0 -132
- package/skills/heytea-doodle-poster/references/desktop-pet-character-modes.md +0 -103
- package/skills/heytea-doodle-poster/references/desktop-pet-environment.md +0 -122
- package/skills/heytea-doodle-poster/references/desktop-pet-pack.md +0 -106
- package/skills/heytea-doodle-poster/references/desktop-pet-workflow.md +0 -264
- package/skills/heytea-doodle-poster/references/evaluation.md +0 -246
- package/skills/heytea-doodle-poster/references/lettering-guide.md +0 -213
- package/skills/heytea-doodle-poster/references/mixed-media-style-guide.md +0 -101
- package/skills/heytea-doodle-poster/references/monster-poster-workflow.md +0 -56
- package/skills/heytea-doodle-poster/references/style-guide.md +0 -412
- package/skills/heytea-doodle-poster-hosted/SKILL.md +0 -132
- package/skills/heytea-doodle-poster-hosted/references/desktop-pet-character-modes.md +0 -103
- package/skills/heytea-doodle-poster-hosted/references/desktop-pet-environment.md +0 -122
- package/skills/heytea-doodle-poster-hosted/references/desktop-pet-pack.md +0 -106
- package/skills/heytea-doodle-poster-hosted/references/desktop-pet-workflow.md +0 -264
- package/skills/heytea-doodle-poster-hosted/references/evaluation.md +0 -246
- package/skills/heytea-doodle-poster-hosted/references/lettering-guide.md +0 -213
- package/skills/heytea-doodle-poster-hosted/references/mixed-media-style-guide.md +0 -101
- package/skills/heytea-doodle-poster-hosted/references/monster-poster-workflow.md +0 -56
- package/skills/heytea-doodle-poster-hosted/references/style-guide.md +0 -412
- package/skills/html2video/SKILL.md +0 -290
- package/skills/html2video/references/cjk-type.md +0 -173
- package/skills/html2video/references/editorial.md +0 -145
- package/skills/html2video/references/narration.md +0 -111
- package/skills/html2video/references/pitfalls.md +0 -238
- package/skills/html2video/references/shots.md +0 -198
- package/skills/html2video/references/storyboard.md +0 -323
- package/skills/hyperdirector/SKILL.md +0 -202
- package/skills/hyperdirector/docs/audio-workflow.md +0 -160
- package/skills/hyperdirector/docs/audio-workflow.zh-CN.md +0 -244
- package/skills/hyperdirector/docs/brand-kit-setup.md +0 -322
- package/skills/hyperdirector/docs/brand-kit-setup.zh-CN.md +0 -277
- package/skills/hyperdirector/docs/cursor-development-notes.md +0 -474
- package/skills/hyperdirector/docs/faq.md +0 -285
- package/skills/hyperdirector/docs/faq.zh-CN.md +0 -198
- package/skills/hyperdirector/docs/first-video.md +0 -320
- package/skills/hyperdirector/docs/first-video.zh-CN.md +0 -265
- package/skills/hyperdirector/docs/installation.md +0 -254
- package/skills/hyperdirector/docs/installation.zh-CN.md +0 -222
- package/skills/hyperdirector/docs/quickstart.md +0 -203
- package/skills/hyperframes/SKILL.md +0 -117
- package/skills/hyperframes/references/captions.md +0 -46
- package/skills/hyperframes/references/film.md +0 -48
- package/skills/hyperframes/references/format.md +0 -158
- package/skills/hyperframes/references/look.md +0 -69
- package/skills/hyperframes/references/motion.md +0 -95
- package/skills/hyperframes/references/overlays.md +0 -39
- package/skills/hyperframes/references/review.md +0 -51
- package/skills/hyperframes/references/runtimes.md +0 -69
- package/skills/hyperframes/references/skill-lifecycle.md +0 -49
- package/skills/hyperframes/references/sound.md +0 -43
- package/skills/hyperframes/references/spec.md +0 -76
- package/skills/hyperframes/references/story.md +0 -103
- package/skills/hyperframes-motion-director/SKILL.md +0 -920
- package/skills/hyperframes-motion-director/references/asset-choreography-and-render-qa.md +0 -185
- package/skills/hyperframes-motion-director/references/audio-sync.md +0 -83
- package/skills/hyperframes-motion-director/references/design-engineering.md +0 -156
- package/skills/hyperframes-motion-director/references/gsap-choreography.md +0 -202
- package/skills/hyperframes-motion-director/references/hyperframes-stability.md +0 -99
- package/skills/hyperframes-motion-director/references/imagegen-asset-pipeline.md +0 -227
- package/skills/hyperframes-motion-director/references/motion-background-system.md +0 -165
- package/skills/hyperframes-motion-director/references/motion-craft.md +0 -182
- package/skills/hyperframes-motion-director/references/premium-product-promo.md +0 -287
- package/skills/hyperframes-motion-director/references/text-over-background-layout.md +0 -221
- package/skills/hyperframes-motion-director/references/visual-standard.md +0 -174
- package/skills/hyperframes-motion-director/references/workflow.md +0 -320
- package/skills/hypit/SKILL.md +0 -367
- package/skills/hypit/references/creation/brief.md +0 -93
- package/skills/hypit/references/creation/script-and-time.md +0 -259
- package/skills/hypit/references/creation/transformations.md +0 -143
- package/skills/hypit/references/playbooks/craft/b-roll.md +0 -94
- package/skills/hypit/references/playbooks/craft/caption-tracking.md +0 -126
- package/skills/hypit/references/playbooks/craft/captions.md +0 -253
- package/skills/hypit/references/playbooks/craft/generated-dependencies.md +0 -38
- package/skills/hypit/references/playbooks/craft/graphic-compositions.md +0 -85
- package/skills/hypit/references/playbooks/craft/motion-graphics.md +0 -68
- package/skills/hypit/references/playbooks/craft/screen-demonstrations.md +0 -51
- package/skills/hypit/references/playbooks/craft/sound-mix.md +0 -70
- package/skills/hypit/references/playbooks/formats/narration-led-demo.md +0 -87
- package/skills/image/SKILL.md +0 -153
- package/skills/image/references/characters.md +0 -86
- package/skills/image/references/creative-direction.md +0 -137
- package/skills/image/references/de-slop.md +0 -95
- package/skills/image/references/dimensional.md +0 -88
- package/skills/image/references/editing.md +0 -112
- package/skills/image/references/golden-rules.md +0 -198
- package/skills/image/references/gpt-image.md +0 -228
- package/skills/image/references/models.md +0 -78
- package/skills/image/references/multi-panel.md +0 -354
- package/skills/image/references/nano-banana.md +0 -150
- package/skills/image/references/patterns/character-design.md +0 -150
- package/skills/image/references/patterns/ecommerce.md +0 -124
- package/skills/image-smixs/SKILL.md +0 -153
- package/skills/image-smixs/references/characters.md +0 -86
- package/skills/image-smixs/references/creative-direction.md +0 -137
- package/skills/image-smixs/references/de-slop.md +0 -95
- package/skills/image-smixs/references/dimensional.md +0 -88
- package/skills/image-smixs/references/editing.md +0 -112
- package/skills/image-smixs/references/golden-rules.md +0 -198
- package/skills/image-smixs/references/gpt-image.md +0 -228
- package/skills/image-smixs/references/models.md +0 -78
- package/skills/image-smixs/references/multi-panel.md +0 -354
- package/skills/image-smixs/references/nano-banana.md +0 -150
- package/skills/image-smixs/references/patterns/character-design.md +0 -150
- package/skills/image-smixs/references/patterns/ecommerce.md +0 -124
- package/skills/image-story-video-wizard/SKILL.md +0 -148
- package/skills/image-story-video-wizard/docs/ARTICLE_ALIGNMENT.md +0 -29
- package/skills/image-story-video-wizard/references/host-routing.md +0 -44
- package/skills/image-story-video-wizard/references/state-schema.md +0 -79
- package/skills/image-story-video-wizard/references/workflow.md +0 -203
- package/skills/image-story-video-wizard/references/writing-and-review.md +0 -60
- package/skills/ip-as-logo/SKILL.md +0 -151
- package/skills/ip-as-logo-s1dashu/SKILL.md +0 -151
- package/skills/jtxvideo-skill/SKILL.md +0 -337
- package/skills/kinetic-reel/SKILL.md +0 -140
- package/skills/kinetic-reel/examples/work-reel-26/STORYBOARD.md +0 -51
- package/skills/kinetic-reel/references/sound.md +0 -40
- package/skills/kinetic-reel/references/style-guide.md +0 -79
- package/skills/knowledge-explainer-skill/SKILL.md +0 -149
- package/skills/knowledge-explainer-skill/examples/ai_video_3steps.md +0 -61
- package/skills/knowledge-explainer-skill/examples/algorithm_bubble.md +0 -20
- package/skills/knowledge-explainer-skill/examples/before_after_demo.md +0 -38
- package/skills/knowledge-explainer-skill/examples/cta_outro.md +0 -11
- package/skills/knowledge-explainer-skill/examples/double_pendulum.md +0 -20
- package/skills/knowledge-explainer-skill/examples/paper_fold.md +0 -20
- package/skills/knowledge-explainer-skill/examples/script.md +0 -40
- package/skills/lanshu-create-ai-presenter-video/SKILL.md +0 -253
- package/skills/lanshu-create-ai-presenter-video/references/editing.md +0 -67
- package/skills/lanshu-create-ai-presenter-video/references/generation.md +0 -94
- package/skills/lanshu-create-ai-presenter-video/references/qa-recovery.md +0 -83
- package/skills/lanshu-create-ai-presenter-video/references/styled-explainer.md +0 -189
- package/skills/laoxu-video-script/SKILL.md +0 -117
- package/skills/laoxu-video-script/references/cases.md +0 -305
- package/skills/laoxu-video-script/references/de-ai.md +0 -32
- package/skills/laoxu-video-script/references/diagnostics.md +0 -67
- package/skills/laoxu-video-script/references/format.md +0 -62
- package/skills/laoxu-video-script/references/formulas.md +0 -43
- package/skills/laoxu-video-script/references/method.md +0 -115
- package/skills/laoxu-video-script/references/motifs-and-lines.md +0 -829
- package/skills/laoxu-video-script/references/persona.md +0 -38
- package/skills/laoxu-video-script/references/qihao-path.md +0 -35
- package/skills/laoxu-video-script/references/qihao-xinfa.md +0 -39
- package/skills/laoxu-video-script/references/redlines.md +0 -26
- package/skills/lemo-opuscar/SKILL.md +0 -67
- package/skills/lipnardo/SKILL.md +0 -308
- package/skills/lipnardo/examples/batch-personalized.md +0 -44
- package/skills/lipnardo/examples/photo-to-avatar-pipeline.md +0 -56
- package/skills/lipnardo/examples/single-video.md +0 -44
- package/skills/lipnardo/references/avatar-types.md +0 -42
- package/skills/lipnardo/references/credit-costs.md +0 -39
- package/skills/lipnardo/references/error-codes.md +0 -66
- package/skills/lipnardo/references/heygen-api-reference.md +0 -416
- package/skills/ll-video-decomposer/SKILL.md +0 -105
- package/skills/ll-video-decomposer/references/audiovisual-analysis-guide.md +0 -44
- package/skills/ll-video-decomposer/references/evidence-and-confidence-rules.md +0 -41
- package/skills/ll-video-decomposer/references/multi-video-comparison-template.md +0 -48
- package/skills/ll-video-decomposer/references/single-video-report-template.md +0 -47
- package/skills/ll-video-decomposer/references/tool-discovery-workflow.md +0 -30
- package/skills/ll-video-decomposer/references/transcription-routing.md +0 -65
- package/skills/ll-video-decomposer/references/video-acquisition-workflow.md +0 -30
- package/skills/ltx2-video/SKILL.md +0 -193
- package/skills/ltx2-video/references/mode_ux.md +0 -293
- package/skills/make-ai-short/SKILL.md +0 -130
- package/skills/make-blender-education-video/SKILL.md +0 -247
- package/skills/make-blender-education-video/references/evidence-and-explanation.md +0 -62
- package/skills/make-blender-education-video/references/github-workflow-discovery.md +0 -55
- package/skills/make-blender-education-video/references/production-workflow.md +0 -62
- package/skills/make-blender-education-video/references/story-patterns.md +0 -65
- package/skills/make-blender-education-video/references/visual-quality.md +0 -82
- package/skills/manage-storyboard-projects/SKILL.md +0 -128
- package/skills/manim-composer/SKILL.md +0 -176
- package/skills/manim-composer/references/narrative-patterns.md +0 -125
- package/skills/manim-composer/references/scene-examples.md +0 -216
- package/skills/manim-composer/references/visual-techniques.md +0 -223
- package/skills/manim-composer/templates/scenes-template.md +0 -147
- package/skills/monet-ai-editor-monet/SKILL.md +0 -367
- package/skills/motion-graphics/SKILL.md +0 -206
- package/skills/motion-graphics/references/craft.md +0 -136
- package/skills/motion-graphics/references/engine.md +0 -130
- package/skills/motion-graphics/references/export.md +0 -67
- package/skills/motion-graphics/references/physics.md +0 -100
- package/skills/motion-graphics/references/verify.md +0 -124
- package/skills/motion-video/SKILL.md +0 -133
- package/skills/motion-video/references/audio-and-beat-sync.md +0 -109
- package/skills/motion-video/references/composition-contract.md +0 -107
- package/skills/motion-video/references/production-pipeline.md +0 -147
- package/skills/motion-video/references/style-comic-spiderverse.md +0 -87
- package/skills/motion-video/references/style-glass-keynote.md +0 -69
- package/skills/motion-video-maker/SKILL.md +0 -1452
- package/skills/motion-video-maker/reference/components.md +0 -451
- package/skills/motion-video-maker/reference/workflow.md +0 -190
- package/skills/motioncraft/SKILL.md +0 -221
- package/skills/motioncraft/references/animation-system.md +0 -57
- package/skills/motioncraft/references/assets-and-licensing.md +0 -21
- package/skills/motioncraft/references/customization.md +0 -52
- package/skills/motioncraft/references/gpu-cloud-render.md +0 -15
- package/skills/motioncraft/references/music.md +0 -43
- package/skills/motioncraft/references/phase1-planning-and-preview.md +0 -74
- package/skills/motioncraft/references/phase2-timeline-audio.md +0 -33
- package/skills/motioncraft/references/phase3-pixel-review.md +0 -13
- package/skills/motioncraft/references/phase4-templates.md +0 -30
- package/skills/motioncraft/references/preflight.md +0 -27
- package/skills/motioncraft/references/qa.md +0 -53
- package/skills/motioncraft/references/reference-analysis.md +0 -37
- package/skills/narrator-ai-cli/SKILL.md +0 -256
- package/skills/narrator-ai-cli/references/magic-video.md +0 -205
- package/skills/narrator-ai-cli/references/operations.md +0 -230
- package/skills/narrator-ai-cli/references/resources.md +0 -126
- package/skills/narrator-ai-cli/references/workflows.md +0 -332
- package/skills/newcut-video-clipping/SKILL.md +0 -194
- package/skills/newcut-video-clipping/references/examples.md +0 -59
- package/skills/newcut-video-clipping/references/provider-config.md +0 -110
- package/skills/newcut-video-clipping/references/quality-check.md +0 -35
- package/skills/newcut-video-clipping/references/semantic-plan.md +0 -65
- package/skills/notes-to-video/SKILL.md +0 -476
- package/skills/openchatcut/SKILL.md +0 -100
- package/skills/openchatcut/references/editing-workflow.md +0 -54
- package/skills/openchatcut/references/getting-started.md +0 -106
- package/skills/openchatcut/references/known-errors.md +0 -62
- package/skills/openstoryline-install/SKILL.md +0 -228
- package/skills/orca-motion/SKILL.md +0 -100
- package/skills/orca-motion/references/api.md +0 -100
- package/skills/orca-motion/references/integration.md +0 -59
- package/skills/orca-motion/references/kinetic-type.md +0 -59
- package/skills/orca-motion/references/principles.md +0 -76
- package/skills/package-talking-head-video/SKILL.md +0 -90
- package/skills/package-talking-head-video/docs/EXAMPLES.md +0 -18
- package/skills/package-talking-head-video/docs/TROUBLESHOOTING.md +0 -29
- package/skills/package-talking-head-video/docs/USAGE.md +0 -83
- package/skills/package-talking-head-video/docs/superpowers/plans/2026-08-08-multicolor-center-speaker.md +0 -144
- package/skills/package-talking-head-video/docs/superpowers/plans/2026-08-08-semantic-template-system-v2.md +0 -1099
- package/skills/package-talking-head-video/docs/superpowers/specs/2026-08-08-multicolor-center-speaker-design.md +0 -154
- package/skills/package-talking-head-video/docs/superpowers/specs/2026-08-08-semantic-template-system-v2-design.md +0 -365
- package/skills/package-talking-head-video/examples/auto-editing-0/GATE_A.md +0 -56
- package/skills/package-talking-head-video/examples/auto-editing-0/GATE_D.md +0 -8
- package/skills/package-talking-head-video/examples/auto-editing-0/QA_REPORT.md +0 -34
- package/skills/package-talking-head-video/references/director-rules.md +0 -29
- package/skills/package-talking-head-video/references/motion-and-illustration.md +0 -25
- package/skills/paper-cut/SKILL.md +0 -164
- package/skills/paper-cut/references/asset-spec.md +0 -47
- package/skills/paper-cut/references/audio-and-chatcut.md +0 -26
- package/skills/paper-cut/references/hyperframes-assembly.md +0 -47
- package/skills/paper-cut/references/image-led-production.md +0 -65
- package/skills/paper-cut/references/storyboard-schema.md +0 -48
- package/skills/paper-cut/references/workflow.md +0 -39
- package/skills/personal-ip-brand-intro/SKILL.md +0 -216
- package/skills/personal-ip-brand-intro/references/intake-schema.md +0 -79
- package/skills/personal-ip-brand-intro/references/music-upload-workflow.md +0 -40
- package/skills/personal-ip-brand-intro/references/originality-rules.md +0 -42
- package/skills/personal-ip-brand-intro/references/qa-checklist.md +0 -60
- package/skills/personal-ip-brand-intro/references/rhythm-routing.md +0 -41
- package/skills/personal-ip-brand-intro/references/storyboard-contract.md +0 -42
- package/skills/pixel2motion/SKILL.md +0 -279
- package/skills/pixel2motion/references/html-delivery-template.md +0 -42
- package/skills/pixel2motion/references/motion-personality.md +0 -109
- package/skills/pixel2motion/references/reveal-patterns.md +0 -163
- package/skills/pixel2motion/references/ribbon-fitting.md +0 -90
- package/skills/pixel2motion/references/twelve-principles-for-logos.md +0 -116
- package/skills/premiere-batch-delivery/SKILL.md +0 -71
- package/skills/premiere-pro-mcp/SKILL.md +0 -161
- package/skills/promo-creator-skills/SKILL.md +0 -209
- package/skills/promo-creator-skills/references/mureka_prompt_guide.md +0 -251
- package/skills/promo-creator-skills/references/product_promo_bgm_prompting.md +0 -100
- package/skills/promo-video/SKILL.md +0 -408
- package/skills/qisi-video-remix/SKILL.md +0 -134
- package/skills/qisi-video-remix/examples/creative-plan.md +0 -133
- package/skills/qisi-video-remix/references/delivery-guide.md +0 -63
- package/skills/reel-video/SKILL.md +0 -237
- package/skills/remotion-ad-video/SKILL.md +0 -252
- package/skills/remotion-ad-video/references/ad-aesthetic-qa.md +0 -60
- package/skills/remotion-ad-video/references/ad-brief-contract.md +0 -235
- package/skills/remotion-ad-video/references/ad-exemplars.md +0 -186
- package/skills/remotion-ad-video/references/ad-intake.md +0 -54
- package/skills/remotion-ad-video/references/asset-harvest.md +0 -56
- package/skills/remotion-ad-video/references/audio-caption-system.md +0 -202
- package/skills/remotion-ad-video/references/concept-contract.md +0 -128
- package/skills/remotion-ad-video/references/creative-direction.md +0 -146
- package/skills/remotion-ad-video/references/fast-test-workflow.md +0 -86
- package/skills/remotion-ad-video/references/game-ad-patterns.md +0 -75
- package/skills/remotion-ad-video/references/hyperframes-output.md +0 -90
- package/skills/remotion-ad-video/references/industry-angle-library.md +0 -71
- package/skills/remotion-ads/SKILL.md +0 -278
- package/skills/remotion-ads/references/ad-copywriting.md +0 -229
- package/skills/remotion-ads/references/animations.md +0 -693
- package/skills/remotion-ads/references/brand-config-template.md +0 -355
- package/skills/remotion-ads/references/captions.md +0 -529
- package/skills/remotion-ads/references/carousels.md +0 -580
- package/skills/remotion-ads/references/components.md +0 -897
- package/skills/remotion-ads/references/copy-frameworks.md +0 -144
- package/skills/remotion-ads/references/formats.md +0 -436
- package/skills/remotion-ads/references/gemini-tts.md +0 -473
- package/skills/remotion-ads/references/html-in-canvas.md +0 -555
- package/skills/remotion-ads/references/local-assets.md +0 -543
- package/skills/remotion-ads/references/music.md +0 -656
- package/skills/remotion-code-motion-explainer/SKILL.md +0 -178
- package/skills/remotion-code-motion-explainer/references/code-motion-design.md +0 -86
- package/skills/remotion-code-motion-explainer/references/motion-production-patterns.md +0 -93
- package/skills/remotion-code-motion-explainer/references/production-and-qc.md +0 -99
- package/skills/remotion-code-motion-explainer/references/reference-reconstruction.md +0 -48
- package/skills/remotion-code-motion-explainer/references/ui-motion-shot-library.md +0 -62
- package/skills/remotion-motion-graphics/SKILL.md +0 -169
- package/skills/remotion-motion-graphics/references/patterns.md +0 -355
- package/skills/remotion-motion-graphics/references/polish.md +0 -102
- package/skills/remotion-motion-graphics/references/scaffold.md +0 -144
- package/skills/remotion-motion-graphics/references/traps.md +0 -152
- package/skills/remotion-resemble-ai/SKILL.md +0 -879
- package/skills/remotion-resemble-ai/rules/resemble-captions.md +0 -350
- package/skills/remotion-resemble-ai/rules/resemble-remotion-integration.md +0 -305
- package/skills/remotion-resemble-ai/rules/resemble-setup.md +0 -284
- package/skills/remotion-resemble-ai/rules/resemble-streaming-tts.md +0 -225
- package/skills/remotion-resemble-ai/rules/resemble-sync-tts.md +0 -239
- package/skills/remotion-resemble-ai/rules/resemble-voices.md +0 -213
- package/skills/remotion-resemble-ai/rules/visual-animations.md +0 -567
- package/skills/riffkit/SKILL.md +0 -196
- package/skills/riffkit/examples/any-look-styles.md +0 -11
- package/skills/riffkit/examples/faceless-and-auto.md +0 -16
- package/skills/riffkit/examples/localize-spanish.md +0 -18
- package/skills/riffkit/examples/tiktok-shop-product.md +0 -22
- package/skills/riffkit/references/anchor.md +0 -62
- package/skills/riffkit/references/api.md +0 -806
- package/skills/riffkit/references/details.md +0 -153
- package/skills/riffkit/references/errors.md +0 -69
- package/skills/riffkit/references/intents.md +0 -29
- package/skills/saas-motion-video/SKILL.md +0 -71
- package/skills/script-to-video/SKILL.md +0 -2627
- package/skills/shorts/SKILL.md +0 -372
- package/skills/shorts/references/caption-styles.md +0 -105
- package/skills/shorts/references/platform-specs.md +0 -149
- package/skills/shorts/references/remotion-patterns.md +0 -180
- package/skills/shorts/references/scoring-rubric.md +0 -106
- package/skills/smart-video-editor/SKILL.md +0 -327
- package/skills/smart-video-editor/docs/FONTS.md +0 -57
- package/skills/story-telling/SKILL.md +0 -222
- package/skills/story-telling/rules/composition.md +0 -130
- package/skills/story-telling/rules/images.md +0 -119
- package/skills/story-telling/rules/models.md +0 -98
- package/skills/story-telling/rules/narration.md +0 -87
- package/skills/story-telling/rules/pitfalls.md +0 -140
- package/skills/story-telling/rules/story-formats.md +0 -108
- package/skills/story-telling/rules/story-json.md +0 -143
- package/skills/story-telling/rules/voices.md +0 -114
- package/skills/story-telling/rules/workflow.md +0 -105
- package/skills/story-to-handdrawn-video/SKILL.md +0 -216
- package/skills/story-to-handdrawn-video/references/asset-workflow.md +0 -24
- package/skills/story-to-handdrawn-video/references/reference-style-workflow.md +0 -27
- package/skills/su-card-to-video/SKILL.md +0 -103
- package/skills/talking-head-video-pipeline/SKILL.md +0 -224
- package/skills/talking-head-video-pipeline/examples/prompts.md +0 -217
- package/skills/talking-head-video-pipeline/references/asr-adapters.md +0 -51
- package/skills/talking-head-video-pipeline/references/caption-workflow.md +0 -53
- package/skills/talking-head-video-pipeline/references/export-recipes.md +0 -78
- package/skills/talking-head-video-pipeline/references/layout-safety.md +0 -49
- package/skills/talking-head-video-pipeline/references/video-use-integration.md +0 -71
- package/skills/talking-head-video-pipeline/references/workflows/captions.md +0 -52
- package/skills/talking-head-video-pipeline/references/workflows/design.md +0 -77
- package/skills/talking-head-video-pipeline/references/workflows/doctor.md +0 -51
- package/skills/talking-head-video-pipeline/references/workflows/export.md +0 -50
- package/skills/talking-head-video-pipeline/references/workflows/init.md +0 -51
- package/skills/talking-head-video-pipeline/references/workflows/learn.md +0 -36
- package/skills/text-to-lottie/SKILL.md +0 -202
- package/skills/text-to-lottie/references/chapterization-transition-grammar.md +0 -132
- package/skills/text-to-lottie/references/design-taste.md +0 -292
- package/skills/text-to-lottie/references/lottie-spec-map.md +0 -82
- package/skills/text-to-lottie/references/motion-taste.md +0 -260
- package/skills/text-to-lottie/references/player-contract.md +0 -325
- package/skills/text-to-lottie/references/recipe-camera-scene-motion.md +0 -65
- package/skills/text-to-lottie/references/recipe-data-stats.md +0 -104
- package/skills/text-to-lottie/references/recipe-diagram-technical.md +0 -106
- package/skills/text-to-lottie/references/recipe-loaders-icons.md +0 -70
- package/skills/text-to-lottie/references/recipe-logo.md +0 -72
- package/skills/text-to-lottie/references/recipe-lower-thirds.md +0 -62
- package/skills/text-to-lottie/references/recipe-product-promo.md +0 -99
- package/skills/ultrademo/SKILL.md +0 -212
- package/skills/video-assemble/SKILL.md +0 -101
- package/skills/video-assemble-zenstory-ai/SKILL.md +0 -153
- package/skills/video-assemble-zenstory-ai/references/audio-modes.md +0 -63
- package/skills/video-assemble-zenstory-ai/references/explicit-audio-mix.md +0 -77
- package/skills/video-assemble-zenstory-ai/references/jianying/SOURCE.md +0 -14
- package/skills/video-assemble-zenstory-ai/references/narration-adoption.md +0 -103
- package/skills/video-assemble-zenstory-ai/references/packaging.md +0 -44
- package/skills/video-assemble-zenstory-ai/references/source-score.md +0 -146
- package/skills/video-assemble-zenstory-ai/references/subtitle-track.md +0 -202
- package/skills/video-editing/SKILL.md +0 -688
- package/skills/video-explainer/SKILL.md +0 -163
- package/skills/video-explainer/references/brief-to-script.md +0 -56
- package/skills/video-explainer/references/errors-and-privacy.md +0 -18
- package/skills/video-explainer/references/motion-storyboard.md +0 -82
- package/skills/video-explainer/references/render-and-verify.md +0 -62
- package/skills/video-explainer/references/review-gate.md +0 -82
- package/skills/video-explainer/references/setup-and-doctor.md +0 -33
- package/skills/video-script-builder/SKILL.md +0 -329
- package/skills/video-script-builder/examples/quick-start-transcript.md +0 -19
- package/skills/video-script-builder/references/audio-workflow.md +0 -84
- package/skills/video-script-builder/references/caption-components.md +0 -70
- package/skills/video-script-builder/references/common-pitfalls.md +0 -80
- package/skills/video-script-builder/references/component-catalog.md +0 -197
- package/skills/video-script-builder/references/component-recipes.md +0 -165
- package/skills/video-script-builder/references/gsap-patterns.md +0 -112
- package/skills/video-script-builder/references/pacing-rules.md +0 -78
- package/skills/video-script-builder/references/quality-checklist.md +0 -98
- package/skills/video-script-builder/references/remotion-patterns.md +0 -211
- package/skills/video-script-builder/references/shader-transitions.md +0 -115
- package/skills/video-script-builder/references/taste-principles.md +0 -160
- package/skills/video-scrub/SKILL.md +0 -216
- package/skills/video-scrub/references/profiles.md +0 -89
- package/skills/video-scrub/references/residue-map.md +0 -204
- package/skills/video-short-maker/SKILL.md +0 -182
- package/skills/video-shot-analysis-feishu/SKILL.md +0 -173
- package/skills/video-shotcraft/SKILL.md +0 -267
- package/skills/video-shotcraft/docs/deepseek-harness.md +0 -69
- package/skills/video-shotcraft/references/aesthetic-rules.md +0 -177
- package/skills/video-shotcraft/references/final-review.md +0 -112
- package/skills/video-shotcraft/references/guided-free-creation.md +0 -199
- package/skills/video-shotcraft/references/jianying-export.md +0 -182
- package/skills/video-shotcraft/references/music-beat-sync.md +0 -219
- package/skills/video-shotcraft/references/pipeline.md +0 -390
- package/skills/video-shotcraft/references/sequences/promo-energy-arc.md +0 -50
- package/skills/video-shotcraft/references/shots/ATTRIBUTION.md +0 -65
- package/skills/video-shotcraft/references/shots/camera/basic-3d-scene.md +0 -37
- package/skills/video-shotcraft/references/shots/camera/crash-zoom-punch.md +0 -39
- package/skills/video-shotcraft/references/shots/camera/cursor-flyover.md +0 -38
- package/skills/video-shotcraft-vincentwei10/SKILL.md +0 -316
- package/skills/video-shotcraft-vincentwei10/references/aesthetic-rules.md +0 -187
- package/skills/video-shotcraft-vincentwei10/references/final-review.md +0 -116
- package/skills/video-shotcraft-vincentwei10/references/guided-free-creation.md +0 -199
- package/skills/video-shotcraft-vincentwei10/references/jianying-export.md +0 -183
- package/skills/video-shotcraft-vincentwei10/references/music-beat-sync.md +0 -257
- package/skills/video-shotcraft-vincentwei10/references/pipeline.md +0 -401
- package/skills/video-shotcraft-vincentwei10/references/publish-upload-post.md +0 -111
- package/skills/video-shotcraft-vincentwei10/references/sequences/promo-energy-arc.md +0 -50
- package/skills/video-shotcraft-vincentwei10/references/shots/ATTRIBUTION.md +0 -62
- package/skills/video-shotcraft-vincentwei10/references/shots/camera/basic-3d-scene.md +0 -41
- package/skills/video-shotcraft-vincentwei10/references/shots/camera/crash-zoom-punch.md +0 -52
- package/skills/video-shotcraft-vincentwei10/references/shots/camera/cursor-flyover.md +0 -39
- package/skills/video-structure-analyzer/SKILL.md +0 -148
- package/skills/video-structure-analyzer/examples/xhs-rook-time-spend/xhs-rook-time-spend_/346/213/211/347/211/207/346/213/206/350/247/243.md +0 -50
- package/skills/video-structure-analyzer/examples/xhs-smelly-cat/xhs-smelly-cat_/346/213/211/347/211/207/346/213/206/350/247/243.md +0 -19
- package/skills/video-toolkit/SKILL.md +0 -686
- package/skills/videocut/SKILL.md +0 -159
- package/skills/videodb/SKILL.md +0 -497
- package/skills/videodb/reference/api-reference.md +0 -741
- package/skills/videodb/reference/capture-reference.md +0 -399
- package/skills/videodb/reference/capture.md +0 -110
- package/skills/videodb/reference/editor-reference.md +0 -506
- package/skills/videodb/reference/editor.md +0 -389
- package/skills/videodb/reference/generative.md +0 -344
- package/skills/videodb/reference/indexing-reference.md +0 -481
- package/skills/videodb/reference/indexing.md +0 -537
- package/skills/videodb/reference/legacy/index-reference.md +0 -223
- package/skills/videodb/reference/legacy/index.md +0 -241
- package/skills/videodb/reference/legacy/search.md +0 -249
- package/skills/videodb/reference/migration.md +0 -113
- package/skills/vlog-auto-edit/SKILL.md +0 -982
- package/skills/vlog-auto-edit/examples/project_structure.md +0 -84
- package/skills/vox-animated-ad-mcp/SKILL.md +0 -419
- package/skills/vox-director/SKILL.md +0 -351
- package/skills/vox-director/references/beat-layer.md +0 -143
- package/skills/vox-director/references/host-mode.md +0 -120
- package/skills/vox-director/references/local-engine.md +0 -73
- package/skills/vox-director/references/models-and-gotchas.md +0 -91
- package/skills/vox-director/references/prompt-guide.md +0 -275
- package/skills/vox-director/references/voices.md +0 -59
- package/skills/xingchen-vox-collage/SKILL.md +0 -251
- package/skills/xingchen-vox-collage/references/asset-layer-contract.md +0 -98
- package/skills/xingchen-vox-collage/references/creative-exploration.md +0 -19
- package/skills/xingchen-vox-collage/references/learned-branches.md +0 -34
- package/skills/xingchen-vox-collage/references/remotion-scene-contract.md +0 -77
- package/skills/xingchen-vox-collage/references/visual-language.md +0 -74
- package/skills/xingchen-vox-collage/references/visual-qa.md +0 -59
- package/skills/youtube/SKILL.md +0 -147
- package/skills/youtube/references/algorithm-guide.md +0 -59
- package/skills/youtube/references/analytics-benchmarks.md +0 -67
- package/skills/youtube/references/dataforseo-integration.md +0 -51
- package/skills/youtube/references/monetization-guide.md +0 -62
- package/skills/youtube/references/repurposing-guide.md +0 -54
- package/skills/youtube/references/retention-scripting-guide.md +0 -75
- package/skills/youtube/references/seo-playbook.md +0 -77
- package/skills/youtube/references/shorts-playbook.md +0 -64
- package/skills/youtube/references/thumbnail-ctr-guide.md +0 -73
- package/skills/youtube-shorts-factory/SKILL.md +0 -358
- package/skills/youtube-shorts-factory/resources/adaptation-guide.md +0 -133
- package/skills/youtube-shorts-factory/resources/storyboard-template.md +0 -271
- package/skills/youtube-shorts-factory/resources/workflow-steps.md +0 -139
- package/studio/ui/dist/assets/ExportCenter-DEyy1vs_.js +0 -1
- package/studio/ui/dist/assets/SettingsModal-CQmsA2A2.js +0 -2
- package/studio/ui/dist/assets/es-AqUfIkAy.js +0 -1
- package/studio/ui/dist/assets/index-C7moXjTY.css +0 -1
- package/studio/ui/dist/assets/index-DdU5QNpY.js +0 -1623
- package/studio/ui/dist/assets/ja-YwiCB4QQ.js +0 -1
- package/studio/ui/dist/assets/ko-CKtBPDze.js +0 -1
- package/studio/ui/dist/assets/zh-CN-DtNEwKWJ.js +0 -1
|
@@ -0,0 +1,881 @@
|
|
|
1
|
+
{
|
|
2
|
+
// ---------- Shadow Puppet Theatre ----------
|
|
3
|
+
// Black cut-out puppets with punched cut-work, pinned joints and rods, pressed against a backlit cloth screen.
|
|
4
|
+
// Pipeline per frame: lamp light on the cloth -> coloured gels (multiply) -> silhouettes (each puppet is drawn on
|
|
5
|
+
// its own scratch layer, holes punched with destination-out, then laid on the shadow layer, blurred if it is held
|
|
6
|
+
// away from the screen) -> cloth weave, light diffusion, grain.
|
|
7
|
+
const INK = 'rgb(20,8,4)';
|
|
8
|
+
const FF = '"IM Fell English"';
|
|
9
|
+
const NF = '"Libre Baskerville"'; // lining figures for the counters
|
|
10
|
+
const TAU = Math.PI * 2;
|
|
11
|
+
const NZ = H.makeNoise(4242);
|
|
12
|
+
const sm = H.smooth, cl = H.clamp, lerp = H.lerp, EO = H.ease.out, EIO = H.ease.inOut;
|
|
13
|
+
const LAY = {};
|
|
14
|
+
function lay(name, w, h) {
|
|
15
|
+
let c = LAY[name];
|
|
16
|
+
if (!c) c = LAY[name] = H.layer(w, h);
|
|
17
|
+
const x = c.getContext('2d');
|
|
18
|
+
x.setTransform(1, 0, 0, 1, 0, 0); x.globalCompositeOperation = 'source-over'; x.globalAlpha = 1; x.filter = 'none';
|
|
19
|
+
x.clearRect(0, 0, c.width, c.height);
|
|
20
|
+
return c;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// ---------- small drawing helpers ----------
|
|
24
|
+
function cut(p, fn) { p.save(); p.globalCompositeOperation = 'destination-out'; p.fillStyle = '#000'; p.strokeStyle = '#000'; fn(); p.restore(); }
|
|
25
|
+
function dot(c, x, y, r) { c.beginPath(); c.arc(x, y, r, 0, TAU); c.fill(); }
|
|
26
|
+
// teardrop: round end at (x,y), point at distance len along angle a
|
|
27
|
+
function tear(c, x, y, len, w, a) {
|
|
28
|
+
c.save(); c.translate(x, y); c.rotate(a);
|
|
29
|
+
c.beginPath(); c.moveTo(0, -w / 2); c.quadraticCurveTo(len * 0.55, -w * 0.45, len, 0); c.quadraticCurveTo(len * 0.55, w * 0.45, 0, w / 2);
|
|
30
|
+
c.arc(0, 0, w / 2, Math.PI / 2, Math.PI * 1.5); c.fill(); c.restore();
|
|
31
|
+
}
|
|
32
|
+
// a pivot pin: a punched ring around a rivet head
|
|
33
|
+
function pin(p, x, y, r) { r = r || 8; cut(p, () => dot(p, x, y, r)); p.fillStyle = INK; dot(p, x, y, r * 0.55); }
|
|
34
|
+
function gearPath(c, r, n, depth, rot) {
|
|
35
|
+
c.beginPath();
|
|
36
|
+
for (let i = 0; i < n; i++) {
|
|
37
|
+
const a0 = rot + i * TAU / n, s = TAU / n;
|
|
38
|
+
[[a0, r - depth], [a0 + s * 0.12, r], [a0 + s * 0.42, r], [a0 + s * 0.54, r - depth]].forEach(([a, rr], k) => {
|
|
39
|
+
const X = Math.cos(a) * rr, Y = Math.sin(a) * rr;
|
|
40
|
+
if (i === 0 && k === 0) c.moveTo(X, Y); else c.lineTo(X, Y);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
c.closePath();
|
|
44
|
+
}
|
|
45
|
+
const both = (cs, fn) => cs.forEach(fn);
|
|
46
|
+
const wpt = (p, x, y) => { const q = p.getTransform().transformPoint(new DOMPoint(x, y)); return [q.x, q.y]; };
|
|
47
|
+
// a cubic bezier point / tangent
|
|
48
|
+
const bz = (P, u) => { const v = 1 - u; return [v * v * v * P[0][0] + 3 * v * v * u * P[1][0] + 3 * v * u * u * P[2][0] + u * u * u * P[3][0], v * v * v * P[0][1] + 3 * v * v * u * P[1][1] + 3 * v * u * u * P[2][1] + u * u * u * P[3][1]]; };
|
|
49
|
+
const bzA = (P, u) => { const a = bz(P, Math.max(0, u - 0.01)), b = bz(P, Math.min(1, u + 0.01)); return Math.atan2(b[1] - a[1], b[0] - a[0]); };
|
|
50
|
+
const swing = (t, t0, amp, k, w) => (t > t0 ? amp * Math.exp(-(t - t0) * k) * Math.sin((t - t0) * w) : 0);
|
|
51
|
+
const blinkAt = (t, list) => list.reduce((m, b) => Math.max(m, 1 - Math.abs((t - b) / 0.08)), 0);
|
|
52
|
+
|
|
53
|
+
// ---------- frame lifecycle ----------
|
|
54
|
+
function begin(W, Hh) { return { W, Hh, S: lay('S', W, Hh), G: lay('G', W, Hh), rods: [] }; }
|
|
55
|
+
// draw one puppet: fn(p, g, rods) on a fresh scratch layer, then lay it on the shadow layer
|
|
56
|
+
function pup(st, o, fn) {
|
|
57
|
+
const P = lay('P', st.W, st.Hh), p = P.getContext('2d'), g = st.G.getContext('2d');
|
|
58
|
+
p.fillStyle = INK; p.strokeStyle = INK;
|
|
59
|
+
g.save(); fn(p, g, st.rods); g.restore();
|
|
60
|
+
const s = st.S.getContext('2d');
|
|
61
|
+
s.save(); s.globalAlpha = o.alpha == null ? 1 : o.alpha; if (o.blur) s.filter = `blur(${o.blur}px)`; s.drawImage(P, 0, 0); s.restore();
|
|
62
|
+
}
|
|
63
|
+
const STOPS = [[0, [255, 232, 168]], [0.16, [255, 200, 104]], [0.42, [238, 132, 46]], [0.68, [168, 60, 20]], [0.88, [84, 24, 9]], [1, [38, 10, 4]]];
|
|
64
|
+
function lamp(ctx, W, Hh, t, b, flare) {
|
|
65
|
+
const f = 1 + 0.045 * NZ.n2(t * 6.1, 0.3) + 0.025 * NZ.n2(t * 17.3, 2.2);
|
|
66
|
+
const B = Math.max(0, b * f);
|
|
67
|
+
const cx = 640 + NZ.n2(t * 0.9, 5) * 12, cy = 320 + NZ.n2(7, t * 0.8) * 9;
|
|
68
|
+
ctx.fillStyle = '#000'; ctx.fillRect(0, 0, W, Hh);
|
|
69
|
+
const g = ctx.createRadialGradient(cx, cy, 0, cx, cy, 860 + (flare || 0) * 200);
|
|
70
|
+
STOPS.forEach(([o, c]) => g.addColorStop(o, H.rgba(c.map((v) => Math.min(255, v * B + (255 - v) * (flare || 0) * 0.7)), 1)));
|
|
71
|
+
ctx.fillStyle = g; ctx.fillRect(0, 0, W, Hh);
|
|
72
|
+
}
|
|
73
|
+
function weave(W, Hh) {
|
|
74
|
+
if (LAY._weave) return LAY._weave;
|
|
75
|
+
const c = H.layer(W, Hh), x = c.getContext('2d'), img = x.createImageData(W, Hh), d = img.data, r = H.rng(77);
|
|
76
|
+
const row = Float32Array.from({ length: Hh }, () => 0.6 + r() * 0.8), col = Float32Array.from({ length: W }, () => 0.6 + r() * 0.8);
|
|
77
|
+
for (let y = 0; y < Hh; y++) for (let X = 0; X < W; X++) {
|
|
78
|
+
const i = (y * W + X) * 4;
|
|
79
|
+
const th = (y % 3 === 0 ? 1 : y % 3 === 1 ? 0.35 : 0) * row[y] * (0.7 + 0.3 * Math.sin(X * 0.05 + row[y] * 9));
|
|
80
|
+
const tv = (X % 3 === 0 ? 1 : X % 3 === 1 ? 0.3 : 0) * col[X] * (0.7 + 0.3 * Math.sin(y * 0.043 + col[X] * 7));
|
|
81
|
+
const v = 255 * (1 - 0.075 * th - 0.06 * tv);
|
|
82
|
+
d[i] = v; d[i + 1] = v * 0.985; d[i + 2] = v * 0.97; d[i + 3] = 255;
|
|
83
|
+
}
|
|
84
|
+
x.putImageData(img, 0, 0);
|
|
85
|
+
// soft folds and slubs of the cloth (low-res, scaled up)
|
|
86
|
+
const f = H.layer(160, 90), fx = f.getContext('2d'), fi = fx.createImageData(160, 90);
|
|
87
|
+
for (let y = 0; y < 90; y++) for (let X = 0; X < 160; X++) {
|
|
88
|
+
const v = 255 * (1 - 0.07 * (0.5 + 0.5 * NZ.fbm2(X * 0.05, y * 0.012, 3)) - 0.03 * (0.5 + 0.5 * NZ.n2(X * 0.4, y * 0.2)));
|
|
89
|
+
const i = (y * 160 + X) * 4; fi.data[i] = fi.data[i + 1] = fi.data[i + 2] = v; fi.data[i + 3] = 255;
|
|
90
|
+
}
|
|
91
|
+
fx.putImageData(fi, 0, 0);
|
|
92
|
+
x.globalCompositeOperation = 'multiply'; x.imageSmoothingEnabled = true; x.drawImage(f, 0, 0, W, Hh);
|
|
93
|
+
// a vertical seam in the cloth
|
|
94
|
+
x.globalCompositeOperation = 'multiply'; x.fillStyle = 'rgba(200,190,180,1)'; x.fillRect(214, 0, 2, Hh); x.fillStyle = 'rgba(232,226,220,1)'; x.fillRect(211, 0, 7, Hh);
|
|
95
|
+
LAY._weave = c; return c;
|
|
96
|
+
}
|
|
97
|
+
function grainTile(k) {
|
|
98
|
+
const key = '_grain' + k;
|
|
99
|
+
if (LAY[key]) return LAY[key];
|
|
100
|
+
const c = H.layer(256, 256), x = c.getContext('2d'), img = x.createImageData(256, 256), r = H.rng(900 + k);
|
|
101
|
+
for (let i = 0; i < img.data.length; i += 4) { const w = r() < 0.5 ? 0 : 255; img.data[i] = img.data[i + 1] = img.data[i + 2] = w; img.data[i + 3] = r() * 26; }
|
|
102
|
+
x.putImageData(img, 0, 0); LAY[key] = c; return c;
|
|
103
|
+
}
|
|
104
|
+
function end(ctx, st, t) {
|
|
105
|
+
const { W, Hh } = st;
|
|
106
|
+
// rods: thin sticks running down out of frame to the puppeteers, a little off the screen so a little soft
|
|
107
|
+
if (st.rods.length) {
|
|
108
|
+
const R = lay('R', W, Hh), r = R.getContext('2d');
|
|
109
|
+
r.strokeStyle = INK; r.lineCap = 'round';
|
|
110
|
+
st.rods.forEach(([x, y, w, a]) => { r.globalAlpha = a == null ? 1 : a; r.lineWidth = w || 3.2; r.beginPath(); r.moveTo(x, y); r.lineTo(x + (x - 640) * 0.14 + 18, Hh + 40); r.stroke(); dot(r, x, y, (w || 3.2) * 1.2); });
|
|
111
|
+
r.globalAlpha = 1;
|
|
112
|
+
const s = st.S.getContext('2d'); s.save(); s.filter = 'blur(1.3px)'; s.globalAlpha = 0.9; s.drawImage(R, 0, 0); s.restore();
|
|
113
|
+
}
|
|
114
|
+
ctx.save(); ctx.globalCompositeOperation = 'multiply'; ctx.drawImage(st.G, 0, 0); ctx.restore();
|
|
115
|
+
ctx.save(); ctx.filter = 'blur(0.7px)'; ctx.globalAlpha = 0.97; ctx.drawImage(st.S, 0, 0); ctx.restore();
|
|
116
|
+
// the cloth
|
|
117
|
+
ctx.save(); ctx.globalCompositeOperation = 'multiply'; ctx.drawImage(weave(W, Hh), 0, 0); ctx.restore();
|
|
118
|
+
// light diffusing through the cloth: glow bleeding into the shadows and around the punched holes
|
|
119
|
+
const hl = lay('half', W / 4, Hh / 4), hx = hl.getContext('2d');
|
|
120
|
+
hx.filter = 'blur(5px)'; hx.drawImage(ctx.canvas, 0, 0, W / 4, Hh / 4);
|
|
121
|
+
ctx.save(); ctx.globalCompositeOperation = 'screen'; ctx.globalAlpha = 0.13; ctx.drawImage(hl, 0, 0, W, Hh); ctx.restore();
|
|
122
|
+
// grain, shifted at 12 fps
|
|
123
|
+
const fr = Math.floor(t * 12), gt = grainTile(fr % 3), gr = H.rng(fr + 5);
|
|
124
|
+
ctx.save(); ctx.fillStyle = ctx.createPattern(gt, 'repeat'); ctx.translate(-gr() * 256, -gr() * 256); ctx.fillRect(0, 0, W + 256, Hh + 256); ctx.restore();
|
|
125
|
+
H.vignette(ctx, W, Hh, 0.38, '20,5,2');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// ---------- stage furniture (cached) ----------
|
|
129
|
+
function valance(W) {
|
|
130
|
+
if (LAY._val) return LAY._val;
|
|
131
|
+
const c = H.layer(W, 80), p = c.getContext('2d');
|
|
132
|
+
p.fillStyle = INK; p.fillRect(0, 0, W, 14);
|
|
133
|
+
for (let x = -16; x < W + 32; x += 32) { p.beginPath(); p.arc(x + 16, 13, 16, 0, Math.PI); p.fill(); }
|
|
134
|
+
for (let x = 32; x < W; x += 64) { p.fillRect(x - 1, 20, 2, 22); tear(p, x, 40, 18, 9, Math.PI / 2); dot(p, x, 40, 5); }
|
|
135
|
+
cut(p, () => { for (let x = 8; x < W; x += 12) dot(p, x, 6, 1.8); for (let x = -16; x < W + 32; x += 32) { dot(p, x + 16, 20, 3.2); tear(p, x + 10, 17, 7, 3.4, 2.4); tear(p, x + 22, 17, 7, 3.4, 0.74); } });
|
|
136
|
+
LAY._val = c; return c;
|
|
137
|
+
}
|
|
138
|
+
function ground(W) {
|
|
139
|
+
if (LAY._gnd) return LAY._gnd;
|
|
140
|
+
const c = H.layer(W, 110), p = c.getContext('2d'), r = H.rng(31);
|
|
141
|
+
p.fillStyle = INK; p.strokeStyle = INK; p.fillRect(0, 96, W, 14);
|
|
142
|
+
// filigree grass: thin curved blades
|
|
143
|
+
for (let x = -10; x < W + 10; x += 5 + r() * 6) {
|
|
144
|
+
const h = 14 + r() * 34 * (0.6 + 0.4 * Math.sin(x * 0.013) ** 2), lean = (r() - 0.5) * 22, w = 2 + r() * 2.5;
|
|
145
|
+
p.beginPath(); p.moveTo(x - w, 100); p.quadraticCurveTo(x + lean * 0.3, 100 - h * 0.6, x + lean, 100 - h); p.quadraticCurveTo(x + lean * 0.3 + w * 0.6, 100 - h * 0.55, x + w, 100); p.fill();
|
|
146
|
+
}
|
|
147
|
+
// curls, ferns, little flowers
|
|
148
|
+
p.lineCap = 'round';
|
|
149
|
+
for (let x = 60; x < W; x += 150 + r() * 90) {
|
|
150
|
+
const dir = r() < 0.5 ? -1 : 1, h = 40 + r() * 26;
|
|
151
|
+
p.lineWidth = 3; p.beginPath(); p.moveTo(x, 100); p.quadraticCurveTo(x + dir * 6, 100 - h * 0.6, x + dir * 2, 100 - h);
|
|
152
|
+
for (let a = 0; a < 5.5; a += 0.3) { const rr = 10 * (1 - a / 6.2); p.lineTo(x + dir * (2 + 10 - Math.cos(a) * rr), 100 - h - Math.sin(a) * rr * dir * dir); }
|
|
153
|
+
p.stroke();
|
|
154
|
+
for (let k = 1; k < 4; k++) tear(p, x + dir * 3, 100 - h * k / 4.2, 14, 6, dir > 0 ? -0.5 : Math.PI + 0.5);
|
|
155
|
+
}
|
|
156
|
+
for (let x = 140; x < W; x += 260 + r() * 120) {
|
|
157
|
+
const h = 50 + r() * 20; p.lineWidth = 2; p.beginPath(); p.moveTo(x, 100); p.quadraticCurveTo(x + 8, 100 - h / 2, x + 3, 100 - h); p.stroke();
|
|
158
|
+
for (let k = 0; k < 6; k++) tear(p, x + 3, 100 - h, 11, 6, k * TAU / 6);
|
|
159
|
+
cut(p, () => dot(p, x + 3, 100 - h, 2.4));
|
|
160
|
+
}
|
|
161
|
+
LAY._gnd = c; return c;
|
|
162
|
+
}
|
|
163
|
+
// a fern frond cut from hide (local coords: base at 0,0, growing up)
|
|
164
|
+
function fernShape(p) {
|
|
165
|
+
p.fillStyle = INK; p.strokeStyle = INK; p.lineWidth = 10; p.lineCap = 'round';
|
|
166
|
+
p.beginPath(); p.moveTo(0, 0); p.quadraticCurveTo(40, -200, 10, -360); p.stroke();
|
|
167
|
+
for (let k = 1; k < 13; k++) { const q = k / 13, y = -q * 340, x = 40 * Math.sin(q * 2.4) - 4; tear(p, x, y, 110 * (1 - q * 0.6), 34 * (1 - q * 0.5), 0.2 - q * 0.3); tear(p, x, y, 90 * (1 - q * 0.6), 30 * (1 - q * 0.5), Math.PI - 0.4 + q * 0.2); }
|
|
168
|
+
}
|
|
169
|
+
// explainer depth cue: the same fern held right up by the lamp, so its shadow is huge and very soft.
|
|
170
|
+
// The blurred sprite is cached once; per frame it is only rotated (sway) and laid on the shadow layer.
|
|
171
|
+
const FERN_OX = 170, FERN_OY = 440;
|
|
172
|
+
function nearFern(st, t, side, a) {
|
|
173
|
+
if (!LAY._fern) {
|
|
174
|
+
const c = H.layer(380, 520), x = c.getContext('2d');
|
|
175
|
+
const raw = H.layer(380, 520), rx = raw.getContext('2d'); rx.translate(FERN_OX, FERN_OY); fernShape(rx);
|
|
176
|
+
x.filter = 'blur(7px)'; x.drawImage(raw, 0, 0); LAY._fern = c;
|
|
177
|
+
}
|
|
178
|
+
const s = st.S.getContext('2d');
|
|
179
|
+
s.save(); s.globalAlpha = a;
|
|
180
|
+
if (side > 0) { s.translate(st.W, 0); s.scale(-1, 1); }
|
|
181
|
+
s.translate(-30, 770); s.rotate(0.5 + Math.sin(t * 0.8) * 0.03); s.scale(1.08, 1.08);
|
|
182
|
+
s.drawImage(LAY._fern, -FERN_OX, -FERN_OY);
|
|
183
|
+
s.restore();
|
|
184
|
+
}
|
|
185
|
+
function stage(st, t) {
|
|
186
|
+
const s = st.S.getContext('2d');
|
|
187
|
+
s.drawImage(valance(st.W), 0, 0);
|
|
188
|
+
s.drawImage(ground(st.W), 0, st.Hh - 110);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// ---------- puppets ----------
|
|
192
|
+
// the mechanical owl. o: x,y (feet) s, tilt, head, wl, wr (wing lift), gear, blink, look [x,y], eye, gearGel, sparks
|
|
193
|
+
function owl(p, g, o, rods) {
|
|
194
|
+
both([p, g], (c) => { c.save(); c.translate(o.x, o.y); c.rotate(o.tilt || 0); c.scale(o.s, o.s); });
|
|
195
|
+
p.fillStyle = INK; p.strokeStyle = INK;
|
|
196
|
+
// tail fan
|
|
197
|
+
[-0.42, 0, 0.42].forEach((a) => tear(p, 0, -84, 112, 34, Math.PI / 2 + a));
|
|
198
|
+
cut(p, () => [-0.42, 0, 0.42].forEach((a) => { for (let k = 1; k < 5; k++) dot(p, Math.cos(Math.PI / 2 + a) * (k * 20 + 6), -84 + Math.sin(Math.PI / 2 + a) * (k * 20 + 6) + 0, 2.6); }));
|
|
199
|
+
// legs and claws
|
|
200
|
+
p.fillRect(-36, -72, 14, 66); p.fillRect(22, -72, 14, 66);
|
|
201
|
+
for (const fx of [-29, 29]) [0.3, 1.35, 2.7].forEach((a) => tear(p, fx, -6, 26, 9, a));
|
|
202
|
+
// body
|
|
203
|
+
p.beginPath(); p.ellipse(0, -190, 100, 138, 0, 0, TAU); p.fill();
|
|
204
|
+
cut(p, () => {
|
|
205
|
+
for (let i = 0; i < 36; i++) { const a = i / 36 * TAU; dot(p, 4 + Math.cos(a) * 82, -200 + Math.sin(a) * 94, 3); }
|
|
206
|
+
for (let row = 0; row < 3; row++) {
|
|
207
|
+
const y = -94 + row * 15, n = 6 - row, sp = 20;
|
|
208
|
+
for (let k = 0; k < n; k++) tear(p, (k - (n - 1) / 2) * sp, y, 13, 7, Math.PI / 2);
|
|
209
|
+
}
|
|
210
|
+
// side feather slits
|
|
211
|
+
for (const sd of [-1, 1]) for (let k = 0; k < 5; k++) { p.lineWidth = 2.4; p.beginPath(); p.arc(sd * 70, -150 + k * 20 - 40, 18, sd > 0 ? 2.2 : 0.2, sd > 0 ? 2.9 : 0.94); p.stroke(); }
|
|
212
|
+
});
|
|
213
|
+
// chest gears (the inner workings): light leaks through the teeth and spokes
|
|
214
|
+
const gears = [[-18, -212, 46, 12, 1], [44, -150, 28, 8, -46 / 28], [40, -262, 19, 7, -46 / 19]];
|
|
215
|
+
gears.forEach(([gx, gy, r, n, ratio]) => {
|
|
216
|
+
const rot = (o.gear || 0) * ratio;
|
|
217
|
+
both([p, g], (c) => { c.save(); c.translate(gx, gy); });
|
|
218
|
+
cut(p, () => { gearPath(p, r, n, r * 0.2, rot); p.fill(); });
|
|
219
|
+
g.fillStyle = o.gearGel || 'rgb(222,52,40)'; gearPath(g, r + 2, n, r * 0.2, rot); g.fill();
|
|
220
|
+
p.fillStyle = INK; dot(p, 0, 0, r * 0.66);
|
|
221
|
+
cut(p, () => { for (let k = 0; k < 5; k++) { const a = rot + k * TAU / 5; p.beginPath(); p.arc(0, 0, r * 0.52, a + 0.2, a + TAU / 5 - 0.2); p.arc(0, 0, r * 0.25, a + TAU / 5 - 0.35, a + 0.35, true); p.closePath(); p.fill(); } });
|
|
222
|
+
pin(p, 0, 0, Math.max(4, r * 0.16));
|
|
223
|
+
both([p, g], (c) => c.restore());
|
|
224
|
+
});
|
|
225
|
+
// cut-work sparks when the gears re-set
|
|
226
|
+
if (o.sparks) {
|
|
227
|
+
g.fillStyle = 'rgb(255,226,130)';
|
|
228
|
+
for (let k = 0; k < 8; k++) {
|
|
229
|
+
const a = k / 8 * TAU + 0.3, d = 120 + o.sparks * 60, x = Math.cos(a) * d * 0.9, y = -200 + Math.sin(a) * d;
|
|
230
|
+
const s = 14 * Math.sin(Math.PI * o.sparks);
|
|
231
|
+
if (s < 1) continue;
|
|
232
|
+
p.save(); p.translate(x, y); p.rotate(o.sparks * 2);
|
|
233
|
+
p.fillStyle = INK; p.beginPath(); for (let i = 0; i < 8; i++) { const rr = i % 2 ? s * 0.38 : s; p.lineTo(Math.cos(i * TAU / 8) * rr, Math.sin(i * TAU / 8) * rr); } p.fill();
|
|
234
|
+
p.restore();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
// wings, pinned at the shoulders
|
|
238
|
+
for (const sd of [-1, 1]) {
|
|
239
|
+
const a = sd < 0 ? o.wl || 0 : o.wr || 0;
|
|
240
|
+
both([p, g], (c) => { c.save(); c.translate(sd * 84, -262); c.rotate(-sd * a); c.scale(sd, 1); });
|
|
241
|
+
p.fillStyle = INK;
|
|
242
|
+
p.beginPath(); p.moveTo(-14, -8); p.bezierCurveTo(30, -22, 54, 40, 48, 110); p.bezierCurveTo(44, 170, 24, 215, 6, 246);
|
|
243
|
+
p.bezierCurveTo(-4, 200, -22, 150, -24, 90); p.bezierCurveTo(-26, 40, -26, 10, -14, -8); p.fill();
|
|
244
|
+
cut(p, () => {
|
|
245
|
+
[[70, 3, 26], [118, 3, 22], [164, 2, 20], [204, 1, 16]].forEach(([y, n, len]) => { for (let k = 0; k < n; k++) tear(p, -8 + k * 18 - (n - 1) * 4, y - len, len, 9, Math.PI / 2 - 0.12); });
|
|
246
|
+
p.lineWidth = 2.2; p.beginPath(); p.moveTo(-6, 20); p.bezierCurveTo(14, 60, 30, 120, 10, 230); p.stroke();
|
|
247
|
+
});
|
|
248
|
+
pin(p, 0, 0, 9);
|
|
249
|
+
if (rods && !o.noRods) rods.push([...wpt(p, 6, 238), 2.6]);
|
|
250
|
+
both([p, g], (c) => c.restore());
|
|
251
|
+
}
|
|
252
|
+
// head, pinned at the neck
|
|
253
|
+
both([p, g], (c) => { c.save(); c.translate(0, -300); c.rotate(o.head || 0); c.translate(0, 300); });
|
|
254
|
+
p.fillStyle = INK;
|
|
255
|
+
p.beginPath(); p.ellipse(0, -372, 112, 84, 0, 0, TAU); p.fill();
|
|
256
|
+
for (const sd of [-1, 1]) { p.beginPath(); p.moveTo(sd * 58, -442); p.quadraticCurveTo(sd * 112, -470, sd * 134, -508); p.quadraticCurveTo(sd * 120, -450, sd * 106, -404); p.closePath(); p.fill(); }
|
|
257
|
+
const ey = -374, look = o.look || [0, 0];
|
|
258
|
+
cut(p, () => {
|
|
259
|
+
for (const sd of [-1, 1]) {
|
|
260
|
+
const ex = sd * 46;
|
|
261
|
+
for (let k = 0; k < 18; k++) {
|
|
262
|
+
const a = k / 18 * TAU; if (Math.cos(a) * sd < -0.55) continue;
|
|
263
|
+
p.lineWidth = 3.2; p.beginPath(); p.moveTo(ex + Math.cos(a) * 39, ey + Math.sin(a) * 39); p.lineTo(ex + Math.cos(a) * 54, ey + Math.sin(a) * 54); p.stroke();
|
|
264
|
+
}
|
|
265
|
+
tear(p, sd * 118, -480, 22, 7, sd > 0 ? -2.2 : -0.94);
|
|
266
|
+
tear(p, sd * 100, -446, 16, 6, sd > 0 ? -2.0 : -1.14);
|
|
267
|
+
}
|
|
268
|
+
p.lineWidth = 3.5; p.beginPath(); p.moveTo(-14, -350); p.lineTo(14, -350); p.lineTo(0, -310); p.closePath(); p.stroke();
|
|
269
|
+
for (let k = -4; k <= 4; k++) dot(p, k * 11, -440 + Math.abs(k) * 1.6, 2.4);
|
|
270
|
+
for (const sd of [-1, 1]) dot(p, sd * 46, ey, 31);
|
|
271
|
+
});
|
|
272
|
+
g.fillStyle = o.eye || 'rgb(92,206,150)';
|
|
273
|
+
for (const sd of [-1, 1]) dot(g, sd * 46, ey, 32);
|
|
274
|
+
for (const sd of [-1, 1]) {
|
|
275
|
+
const ex = sd * 46;
|
|
276
|
+
p.fillStyle = INK; dot(p, ex + look[0] * 9, ey + look[1] * 9, 13);
|
|
277
|
+
cut(p, () => dot(p, ex + look[0] * 9 + 4, ey + look[1] * 9 - 4, 3.6));
|
|
278
|
+
const bl = o.blink || 0;
|
|
279
|
+
if (bl > 0) { p.save(); p.beginPath(); p.arc(ex, ey, 32, 0, TAU); p.clip(); p.fillStyle = INK; p.fillRect(ex - 33, ey - 33, 66, 66 * bl); p.restore(); }
|
|
280
|
+
}
|
|
281
|
+
pin(p, 0, -300, 9);
|
|
282
|
+
both([p, g], (c) => c.restore());
|
|
283
|
+
if (rods && !o.noRods) rods.push([...wpt(p, 0, -70), 3.6]);
|
|
284
|
+
both([p, g], (c) => c.restore());
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function cat(c) {
|
|
288
|
+
c.fillStyle = INK; c.strokeStyle = INK;
|
|
289
|
+
c.beginPath(); c.ellipse(-12, 26, 36, 30, -0.15, 0, TAU); c.fill();
|
|
290
|
+
c.beginPath(); c.ellipse(10, 6, 17, 32, 0.12, 0, TAU); c.fill();
|
|
291
|
+
c.beginPath(); c.arc(16, -30, 20, 0, TAU); c.fill();
|
|
292
|
+
c.beginPath(); c.moveTo(0, -38); c.lineTo(3, -68); c.lineTo(18, -48); c.closePath(); c.fill();
|
|
293
|
+
c.beginPath(); c.moveTo(18, -49); c.lineTo(34, -66); c.lineTo(36, -36); c.closePath(); c.fill();
|
|
294
|
+
c.beginPath(); c.ellipse(32, -23, 9, 7, 0.2, 0, TAU); c.fill();
|
|
295
|
+
c.beginPath(); c.roundRect(12, 18, 12, 38, 5); c.fill();
|
|
296
|
+
c.beginPath(); c.roundRect(-30, 46, 56, 10, 5); c.fill();
|
|
297
|
+
c.lineCap = 'round'; c.lineWidth = 9; c.beginPath(); c.moveTo(-40, 46); c.bezierCurveTo(-74, 46, -72, 2, -54, -14); c.stroke();
|
|
298
|
+
cut(c, () => {
|
|
299
|
+
c.beginPath(); c.ellipse(24, -34, 4.4, 2.6, -0.25, 0, TAU); c.fill();
|
|
300
|
+
c.lineWidth = 1.7; c.beginPath(); c.moveTo(5, -8); c.quadraticCurveTo(-10, 12, -8, 34); c.stroke();
|
|
301
|
+
c.beginPath(); c.moveTo(36, -21); c.lineTo(52, -26); c.moveTo(36, -19); c.lineTo(52, -16); c.stroke();
|
|
302
|
+
});
|
|
303
|
+
c.lineWidth = 1.6; c.beginPath(); c.moveTo(40, -22); c.lineTo(58, -28); c.moveTo(40, -20); c.lineTo(58, -14); c.stroke();
|
|
304
|
+
}
|
|
305
|
+
function dog(c) {
|
|
306
|
+
c.fillStyle = INK; c.strokeStyle = INK;
|
|
307
|
+
c.beginPath(); c.ellipse(-14, 24, 36, 28, -0.1, 0, TAU); c.fill();
|
|
308
|
+
c.beginPath(); c.ellipse(10, 4, 18, 30, 0.15, 0, TAU); c.fill();
|
|
309
|
+
c.beginPath(); c.arc(14, -30, 19, 0, TAU); c.fill();
|
|
310
|
+
c.beginPath(); c.roundRect(20, -41, 34, 18, 8); c.fill();
|
|
311
|
+
c.beginPath(); c.arc(54, -36, 6, 0, TAU); c.fill();
|
|
312
|
+
c.beginPath(); c.ellipse(1, -22, 9, 21, 0.35, 0, TAU); c.fill();
|
|
313
|
+
c.beginPath(); c.roundRect(10, 16, 13, 40, 5); c.fill();
|
|
314
|
+
c.beginPath(); c.roundRect(-38, 46, 66, 10, 5); c.fill();
|
|
315
|
+
c.lineCap = 'round'; c.lineWidth = 8; c.beginPath(); c.moveTo(-46, 12); c.bezierCurveTo(-62, 2, -64, -20, -56, -34); c.stroke();
|
|
316
|
+
cut(c, () => {
|
|
317
|
+
dot(c, 22, -37, 3.6);
|
|
318
|
+
c.lineWidth = 2.2; c.beginPath(); c.ellipse(1, -22, 9, 21, 0.35, 0, TAU); c.stroke();
|
|
319
|
+
c.lineWidth = 3; c.setLineDash([3, 4]); c.beginPath(); c.arc(14, -30, 24, 1.2, 2.3); c.stroke(); c.setLineDash([]);
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
// picture card on a rod. o: x,y (centre) s rot kind label gel
|
|
323
|
+
function card(p, g, o, rods) {
|
|
324
|
+
both([p, g], (c) => { c.save(); c.translate(o.x, o.y); c.rotate(o.rot || 0); c.scale(o.s, o.s); });
|
|
325
|
+
p.fillStyle = INK;
|
|
326
|
+
p.beginPath(); p.roundRect(-86, -112, 172, 224, 8); p.fill();
|
|
327
|
+
for (let x = -78; x <= 78; x += 13) { dot(p, x, -112, 5.5); dot(p, x, 112, 5.5); }
|
|
328
|
+
for (let y = -99; y <= 99; y += 13) { dot(p, -86, y, 5.5); dot(p, 86, y, 5.5); }
|
|
329
|
+
cut(p, () => { p.beginPath(); p.roundRect(-70, -96, 140, 134, 5); p.fill(); });
|
|
330
|
+
g.fillStyle = o.gel || (o.kind === 'cat' ? 'rgb(120,206,176)' : 'rgb(236,112,96)');
|
|
331
|
+
g.beginPath(); g.roundRect(-72, -98, 144, 138, 5); g.fill();
|
|
332
|
+
p.save(); p.translate(8, -24); p.scale(0.94, 0.94); (o.kind === 'cat' ? cat : dog)(p); p.restore();
|
|
333
|
+
p.fillStyle = INK;
|
|
334
|
+
cut(p, () => {
|
|
335
|
+
for (let x = -64; x <= 64; x += 10) dot(p, x, 50, 2.1);
|
|
336
|
+
p.font = `400 44px ${FF}`; p.textAlign = 'center'; p.textBaseline = 'alphabetic'; p.fillText(o.label || o.kind, 0, 96);
|
|
337
|
+
});
|
|
338
|
+
if (rods && !o.noRods) rods.push([...wpt(p, 0, 112), 3.2]);
|
|
339
|
+
both([p, g], (c) => c.restore());
|
|
340
|
+
}
|
|
341
|
+
// a card that slips into the owl: drawn on its own scratch layer and laid down at alpha a (gel and rod fade with it)
|
|
342
|
+
function cardFade(p, g, o, rods, a) {
|
|
343
|
+
if (a <= 0.004) return;
|
|
344
|
+
if (a >= 0.996) { card(p, g, o, rods); return; }
|
|
345
|
+
const C = lay('C', p.canvas.width, p.canvas.height), c = C.getContext('2d'), n = rods ? rods.length : 0;
|
|
346
|
+
c.fillStyle = INK; c.strokeStyle = INK;
|
|
347
|
+
g.save(); g.globalAlpha = a; card(c, g, o, rods); g.restore();
|
|
348
|
+
if (rods) for (let i = n; i < rods.length; i++) rods[i][3] = a;
|
|
349
|
+
p.save(); p.globalAlpha = a; p.drawImage(C, 0, 0); p.restore();
|
|
350
|
+
}
|
|
351
|
+
// the teacher's articulated hand, pointing left. o: x,y (wrist pin) s rot
|
|
352
|
+
function hand(p, g, o, rods) {
|
|
353
|
+
both([p, g], (c) => { c.save(); c.translate(o.x, o.y); c.scale(o.s, o.s); });
|
|
354
|
+
p.fillStyle = INK; p.strokeStyle = INK;
|
|
355
|
+
p.beginPath(); p.moveTo(16, -26); p.lineTo(240, -40); p.lineTo(240, 40); p.lineTo(16, 26); p.closePath(); p.fill();
|
|
356
|
+
for (let y = -30; y <= 30; y += 10) dot(p, 14, y, 7);
|
|
357
|
+
cut(p, () => {
|
|
358
|
+
for (let y = -24; y <= 24; y += 12) dot(p, 28, y, 3);
|
|
359
|
+
for (let x = 56; x < 230; x += 26) { p.lineWidth = 2.4; p.beginPath(); p.moveTo(x, -22 - (x - 56) * 0.06); p.quadraticCurveTo(x + 10, 0, x + 2, 22 + (x - 56) * 0.06); p.stroke(); }
|
|
360
|
+
dot(p, 0, 0, 9);
|
|
361
|
+
});
|
|
362
|
+
p.fillStyle = INK; dot(p, 0, 0, 5);
|
|
363
|
+
p.save(); p.rotate(o.rot || 0);
|
|
364
|
+
p.beginPath(); p.ellipse(-32, 0, 34, 25, 0, 0, TAU); p.fill();
|
|
365
|
+
p.beginPath(); p.roundRect(-122, -14, 92, 15, 7.5); p.fill();
|
|
366
|
+
[[-60, 7], [-58, 17], [-52, 26]].forEach(([x, y]) => { p.beginPath(); p.ellipse(x, y, 15, 6.5, 0.1, 0, TAU); p.fill(); });
|
|
367
|
+
p.beginPath(); p.ellipse(-52, -21, 22, 7, -0.45, 0, TAU); p.fill();
|
|
368
|
+
cut(p, () => {
|
|
369
|
+
p.lineWidth = 2; p.beginPath(); p.moveTo(-72, 12); p.lineTo(-46, 12); p.moveTo(-70, 22); p.lineTo(-44, 22); p.stroke();
|
|
370
|
+
p.beginPath(); p.arc(-110, -6.5, 4, -1.2, 1.2); p.stroke();
|
|
371
|
+
p.beginPath(); p.moveTo(-80, -2); p.lineTo(-74, -2); p.stroke();
|
|
372
|
+
});
|
|
373
|
+
p.restore();
|
|
374
|
+
if (rods) rods.push([...wpt(p, 200, 0), 3.4]);
|
|
375
|
+
both([p, g], (c) => c.restore());
|
|
376
|
+
}
|
|
377
|
+
// a hanging tag with cut-out letters. o: x,y (hang pin) rot flip w h text size badge('x'|'v') badgeS
|
|
378
|
+
function tag(p, g, o) {
|
|
379
|
+
both([p, g], (c) => { c.save(); c.translate(o.x, o.y); c.rotate(o.rot || 0); });
|
|
380
|
+
p.fillStyle = INK; p.strokeStyle = INK; p.lineWidth = 2;
|
|
381
|
+
p.beginPath(); p.moveTo(0, 0); p.lineTo(0, 30); p.stroke(); dot(p, 0, 0, 4);
|
|
382
|
+
both([p, g], (c) => { c.translate(0, 30 + o.h / 2); c.scale(o.flip == null ? 1 : o.flip, 1); });
|
|
383
|
+
const w = o.w, h = o.h;
|
|
384
|
+
p.beginPath(); p.roundRect(-w / 2, -h / 2, w, h, 12); p.fill();
|
|
385
|
+
for (let x = -w / 2 + 10; x <= w / 2 - 10; x += 14) { dot(p, x, -h / 2, 4.5); dot(p, x, h / 2, 4.5); }
|
|
386
|
+
cut(p, () => {
|
|
387
|
+
p.lineWidth = 2.4; p.beginPath(); p.roundRect(-w / 2 + 8, -h / 2 + 8, w - 16, h - 16, 7); p.stroke();
|
|
388
|
+
p.font = `italic 400 ${o.size}px ${FF}`; p.textAlign = 'center'; p.textBaseline = 'middle'; p.fillText(o.text, o.tx || 0, 3);
|
|
389
|
+
});
|
|
390
|
+
if (o.badge && o.badgeS > 0.01) badge(p, g, { x: w / 2 - 38, y: 0, s: o.badgeS, ok: o.badge === 'v' });
|
|
391
|
+
both([p, g], (c) => c.restore());
|
|
392
|
+
}
|
|
393
|
+
function badge(p, g, o) {
|
|
394
|
+
both([p, g], (c) => { c.save(); c.translate(o.x, o.y); c.scale(o.s, o.s); });
|
|
395
|
+
p.fillStyle = INK; dot(p, 0, 0, 40);
|
|
396
|
+
for (let k = 0; k < 12; k++) dot(p, Math.cos(k * TAU / 12) * 40, Math.sin(k * TAU / 12) * 40, 7);
|
|
397
|
+
cut(p, () => dot(p, 0, 0, 31));
|
|
398
|
+
g.fillStyle = o.ok ? 'rgb(110,220,120)' : 'rgb(240,60,46)'; dot(g, 0, 0, 33);
|
|
399
|
+
p.strokeStyle = INK; p.lineCap = 'round'; p.lineWidth = 11; p.beginPath();
|
|
400
|
+
if (o.ok) { p.moveTo(-16, 1); p.lineTo(-4, 14); p.lineTo(18, -14); } else { p.moveTo(-14, -14); p.lineTo(14, 14); p.moveTo(14, -14); p.lineTo(-14, 14); }
|
|
401
|
+
p.stroke();
|
|
402
|
+
both([p, g], (c) => c.restore());
|
|
403
|
+
}
|
|
404
|
+
// small label plaque with cut letters, hung on a string of length `hang` (0 = sits)
|
|
405
|
+
function plaque(p, o) {
|
|
406
|
+
p.save(); p.translate(o.x, o.y); p.rotate(o.rot || 0);
|
|
407
|
+
p.font = `italic 400 ${o.size}px ${FF}`;
|
|
408
|
+
const tw = p.measureText(o.text).width, w = tw + o.size * 1.1, h = o.size * 1.5;
|
|
409
|
+
p.fillStyle = INK; p.strokeStyle = INK;
|
|
410
|
+
if (o.hang) { p.lineWidth = 2; p.beginPath(); p.moveTo(0, -h / 2); p.lineTo(0, -h / 2 - o.hang); p.stroke(); }
|
|
411
|
+
p.beginPath(); p.roundRect(-w / 2, -h / 2, w, h, h * 0.28); p.fill();
|
|
412
|
+
dot(p, -w / 2 - 4, 0, h * 0.24); dot(p, w / 2 + 4, 0, h * 0.24);
|
|
413
|
+
cut(p, () => {
|
|
414
|
+
p.lineWidth = 2; p.beginPath(); p.roundRect(-w / 2 + 6, -h / 2 + 6, w - 12, h - 12, h * 0.2); p.stroke();
|
|
415
|
+
dot(p, -w / 2 - 4, 0, h * 0.09); dot(p, w / 2 + 4, 0, h * 0.09);
|
|
416
|
+
p.textAlign = 'center'; p.textBaseline = 'middle'; p.fillText(o.text, 0, 2);
|
|
417
|
+
});
|
|
418
|
+
p.restore();
|
|
419
|
+
}
|
|
420
|
+
// a growing vine-arrow (cut from one strip of hide): P = cubic bezier, prog 0..1
|
|
421
|
+
function vine(p, P, prog, w) {
|
|
422
|
+
if (prog <= 0.001) return;
|
|
423
|
+
w = w || 7; p.fillStyle = INK; p.strokeStyle = INK; p.lineCap = 'round'; p.lineJoin = 'round';
|
|
424
|
+
const N = 60, n = Math.max(2, Math.ceil(N * prog));
|
|
425
|
+
p.lineWidth = w; p.beginPath();
|
|
426
|
+
for (let i = 0; i <= n; i++) { const q = bz(P, Math.min(prog, i / N)); if (i === 0) p.moveTo(q[0], q[1]); else p.lineTo(q[0], q[1]); }
|
|
427
|
+
p.stroke();
|
|
428
|
+
// start curl
|
|
429
|
+
const s0 = bz(P, 0), a0 = bzA(P, 0);
|
|
430
|
+
p.lineWidth = 3.5; p.beginPath();
|
|
431
|
+
for (let a = 0; a < 5.2; a += 0.25) { const r = 16 * (1 - a / 6), aa = a0 + Math.PI + a; p.lineTo(s0[0] + Math.cos(a0 + Math.PI) * 4 + Math.cos(aa) * r - Math.cos(a0 + Math.PI) * 16, s0[1] + Math.sin(a0 + Math.PI) * 4 + Math.sin(aa) * r - Math.sin(a0 + Math.PI) * 16); }
|
|
432
|
+
p.stroke();
|
|
433
|
+
// leaves
|
|
434
|
+
[0.18, 0.34, 0.5, 0.66, 0.8].forEach((u, i) => {
|
|
435
|
+
if (u > prog - 0.06) return;
|
|
436
|
+
const q = bz(P, u), a = bzA(P, u) + (i % 2 ? 1 : -1) * 0.9, gr = Math.min(1, (prog - u) / 0.12);
|
|
437
|
+
tear(p, q[0], q[1], 26 * gr, 11 * gr, a);
|
|
438
|
+
cut(p, () => { p.lineWidth = 1.4; p.beginPath(); p.moveTo(q[0] + Math.cos(a) * 5, q[1] + Math.sin(a) * 5); p.lineTo(q[0] + Math.cos(a) * 20 * gr, q[1] + Math.sin(a) * 20 * gr); p.stroke(); });
|
|
439
|
+
});
|
|
440
|
+
// spade arrowhead
|
|
441
|
+
const e = bz(P, prog), ea = bzA(P, prog);
|
|
442
|
+
p.save(); p.translate(e[0], e[1]); p.rotate(ea);
|
|
443
|
+
p.beginPath(); p.moveTo(30, 0); p.quadraticCurveTo(8, -6, -4, -19); p.quadraticCurveTo(2, -6, -6, 0); p.quadraticCurveTo(2, 6, -4, 19); p.quadraticCurveTo(8, 6, 30, 0); p.fill();
|
|
444
|
+
cut(p, () => dot(p, 6, 0, 3.2));
|
|
445
|
+
p.restore();
|
|
446
|
+
}
|
|
447
|
+
// hanging intertitle card with cut-out lettering. o: x,y centre, w,h, s, rot (about the top), lines [{text,size,y,italic,arrow}]
|
|
448
|
+
function titleCard(p, g, o) {
|
|
449
|
+
both([p, g], (c) => { c.save(); c.translate(o.x, o.y - o.h / 2 * o.s); c.rotate(o.rot || 0); c.scale(o.s, o.s); c.translate(0, o.h / 2); });
|
|
450
|
+
const w = o.w, h = o.h;
|
|
451
|
+
p.fillStyle = INK; p.strokeStyle = INK; p.lineWidth = 2.4;
|
|
452
|
+
p.beginPath(); p.moveTo(-w * 0.32, -h / 2); p.lineTo(-w * 0.32, -h / 2 - 900); p.moveTo(w * 0.32, -h / 2); p.lineTo(w * 0.32, -h / 2 - 900); p.stroke();
|
|
453
|
+
p.beginPath(); p.roundRect(-w / 2, -h / 2, w, h, 14); p.fill();
|
|
454
|
+
for (let x = -w / 2 + 12; x <= w / 2 - 12; x += 16) { dot(p, x, -h / 2, 6); dot(p, x, h / 2, 6); }
|
|
455
|
+
for (const sx of [-1, 1]) { p.beginPath(); p.arc(sx * w / 2, 0, h * 0.22, -Math.PI / 2, Math.PI / 2, sx < 0); p.fill(); }
|
|
456
|
+
cut(p, () => {
|
|
457
|
+
p.lineWidth = 3; p.beginPath(); p.roundRect(-w / 2 + 14, -h / 2 + 14, w - 28, h - 28, 8); p.stroke();
|
|
458
|
+
for (let x = -w / 2 + 34; x <= w / 2 - 34; x += 11) { dot(p, x, -h / 2 + 24, 1.8); dot(p, x, h / 2 - 24, 1.8); }
|
|
459
|
+
for (const sx of [-1, 1]) for (const sy of [-1, 1]) {
|
|
460
|
+
const cx = sx * (w / 2 - 34), cy = sy * (h / 2 - 34);
|
|
461
|
+
dot(p, cx, cy, 4);
|
|
462
|
+
[0, 1, 2].forEach((k) => tear(p, cx, cy, 14, 6, Math.atan2(-sy, -sx) + (k - 1) * 0.7 + Math.PI));
|
|
463
|
+
}
|
|
464
|
+
for (const sx of [-1, 1]) { dot(p, sx * (w / 2 + h * 0.1), 0, h * 0.07); }
|
|
465
|
+
o.lines.forEach((L) => {
|
|
466
|
+
p.font = `${L.italic ? 'italic ' : ''}400 ${L.size}px ${FF}`; p.textAlign = 'center'; p.textBaseline = 'alphabetic';
|
|
467
|
+
if (L.arrow) {
|
|
468
|
+
const tw = p.measureText(L.text).width, aw = L.size * 1.2, gap = L.size * 0.3, x0 = -(tw + aw + gap) / 2, ay = L.y - L.size * 0.3;
|
|
469
|
+
p.fillText(L.text, x0 + aw + gap + tw / 2, L.y);
|
|
470
|
+
p.fillRect(x0, ay - 3.5, aw - 16, 7);
|
|
471
|
+
p.beginPath(); p.moveTo(x0 + aw, ay); p.lineTo(x0 + aw - 24, ay - 15); p.lineTo(x0 + aw - 24, ay + 15); p.closePath(); p.fill();
|
|
472
|
+
dot(p, x0, ay, 7);
|
|
473
|
+
} else p.fillText(L.text, 0, L.y);
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
both([p, g], (c) => c.restore());
|
|
477
|
+
}
|
|
478
|
+
// moon in a lace frame; fill 0..1 = lit fraction, burst 0..1 = rays
|
|
479
|
+
function moon(p, g, o) {
|
|
480
|
+
both([p, g], (c) => { c.save(); c.translate(o.x, o.y); });
|
|
481
|
+
const r = o.r;
|
|
482
|
+
p.fillStyle = INK;
|
|
483
|
+
if (o.burst > 0.01) {
|
|
484
|
+
const L = 46 * o.burst;
|
|
485
|
+
for (let k = 0; k < 16; k++) {
|
|
486
|
+
const a = k / 16 * TAU + 0.1, l = (k % 2 ? 0.6 : 1) * L, w = 0.09;
|
|
487
|
+
p.beginPath(); p.moveTo(Math.cos(a - w) * (r + 12), Math.sin(a - w) * (r + 12)); p.lineTo(Math.cos(a) * (r + 16 + l), Math.sin(a) * (r + 16 + l)); p.lineTo(Math.cos(a + w) * (r + 12), Math.sin(a + w) * (r + 12)); p.fill();
|
|
488
|
+
dot(p, Math.cos(a) * (r + 22 + l), Math.sin(a) * (r + 22 + l), 4 * o.burst);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
dot(p, 0, 0, r + 12);
|
|
492
|
+
for (let k = 0; k < 20; k++) dot(p, Math.cos(k * TAU / 20) * (r + 12), Math.sin(k * TAU / 20) * (r + 12), 5.5);
|
|
493
|
+
cut(p, () => { dot(p, 0, 0, r); for (let k = 0; k < 20; k++) dot(p, Math.cos((k + 0.5) * TAU / 20) * (r + 7), Math.sin((k + 0.5) * TAU / 20) * (r + 7), 1.8); });
|
|
494
|
+
g.fillStyle = 'rgb(255,246,214)'; dot(g, 0, 0, r + 1);
|
|
495
|
+
const f = cl(o.fill);
|
|
496
|
+
p.fillStyle = INK; [[-0.3, -0.25, 0.16], [0.28, 0.1, 0.22], [-0.1, 0.42, 0.12], [0.35, -0.42, 0.09]].forEach(([x, y, rr]) => { dot(p, x * r, y * r, rr * r); cut(p, () => dot(p, x * r + rr * r * 0.25, y * r - rr * r * 0.2, rr * r * 0.72)); });
|
|
497
|
+
if (f < 0.995) { p.save(); p.beginPath(); p.arc(0, 0, r + 0.5, 0, TAU); p.clip(); p.fillStyle = INK; dot(p, -2 * r * f, 0, r + 1); p.restore(); }
|
|
498
|
+
both([p, g], (c) => c.restore());
|
|
499
|
+
}
|
|
500
|
+
function ladder(p, x, yTop, yBot, n) {
|
|
501
|
+
p.fillStyle = INK; p.strokeStyle = INK;
|
|
502
|
+
for (const sx of [-1, 1]) { p.beginPath(); p.moveTo(x + sx * 44 - 5, yBot); p.lineTo(x + sx * 40 - 4, yTop); p.lineTo(x + sx * 40 + 4, yTop); p.lineTo(x + sx * 44 + 5, yBot); p.fill(); dot(p, x + sx * 40, yTop, 8); }
|
|
503
|
+
const step = (yBot - 52 - yTop) / (n - 1);
|
|
504
|
+
for (let k = 0; k < n; k++) {
|
|
505
|
+
const y = yBot - 52 - k * step;
|
|
506
|
+
p.fillRect(x - 44, y - 4, 88, 8);
|
|
507
|
+
for (const sx of [-1, 1]) { p.beginPath(); p.ellipse(x + sx * 42, y, 9, 6, 0, 0, TAU); p.fill(); }
|
|
508
|
+
}
|
|
509
|
+
cut(p, () => { for (let k = 0; k < n; k++) { const y = yBot - 52 - k * step; for (const sx of [-1, 1]) { p.lineWidth = 1.6; p.beginPath(); p.moveTo(x + sx * 42 - 6, y - 4); p.lineTo(x + sx * 42 + 6, y + 4); p.stroke(); } } for (let y = yTop + 20; y < yBot; y += 26) for (const sx of [-1, 1]) dot(p, x + sx * 41.5, y, 1.8); });
|
|
510
|
+
return (k) => yBot - 52 - k * step;
|
|
511
|
+
}
|
|
512
|
+
function branch(p, x0, y0, x1, y1, r) {
|
|
513
|
+
p.fillStyle = INK; p.strokeStyle = INK; p.lineCap = 'round';
|
|
514
|
+
const P = [[x0, y0], [lerp(x0, x1, 0.35), y0 - 40], [lerp(x0, x1, 0.7), y1 + 30], [x1, y1]];
|
|
515
|
+
for (let i = 0; i < 40; i++) { const q = bz(P, i / 40), q2 = bz(P, (i + 1) / 40); p.lineWidth = lerp(26, 6, i / 40); p.beginPath(); p.moveTo(q[0], q[1]); p.lineTo(q2[0], q2[1]); p.stroke(); }
|
|
516
|
+
[0.2, 0.45, 0.62, 0.8, 0.92].forEach((u, i) => {
|
|
517
|
+
const q = bz(P, u), up = i % 2 ? -1 : 1;
|
|
518
|
+
p.lineWidth = 3; p.beginPath(); p.moveTo(q[0], q[1]);
|
|
519
|
+
const ex = q[0] + (x1 - x0) * 0.05, ey = q[1] - up * 48;
|
|
520
|
+
p.quadraticCurveTo(q[0] + 10, q[1] - up * 30, ex, ey); p.stroke();
|
|
521
|
+
for (let a = 0, cx = ex, cy = ey; a < 5; a += 0.35) { const rr = 9 * (1 - a / 5.6); p.beginPath(); p.arc(ex + 9 * Math.cos(Math.PI), ey, rr, a, a + 0.4); p.stroke(); }
|
|
522
|
+
tear(p, q[0], q[1], 34, 15, -up * 1.3 + (x1 < x0 ? Math.PI : 0) * 0.5 - 0.6);
|
|
523
|
+
tear(p, (q[0] + ex) / 2, (q[1] + ey) / 2, 26, 12, -up * 2.2);
|
|
524
|
+
});
|
|
525
|
+
cut(p, () => { for (let i = 2; i < 30; i += 2) { const q = bz(P, i / 40); dot(p, q[0], q[1], 2.4 * (1 - i / 40)); } });
|
|
526
|
+
void r;
|
|
527
|
+
}
|
|
528
|
+
function star(p, x, y, r) { p.beginPath(); for (let i = 0; i < 10; i++) { const rr = i % 2 ? r * 0.42 : r, a = i * TAU / 10 - Math.PI / 2; p.lineTo(x + Math.cos(a) * rr, y + Math.sin(a) * rr); } p.fill(); }
|
|
529
|
+
function curtains(p, W, Hh, cover, t) {
|
|
530
|
+
const e = cover * (W / 2 + 40);
|
|
531
|
+
for (const sd of [-1, 1]) {
|
|
532
|
+
const wave = (y) => Math.sin(y * 0.018 + t * 2 + sd) * 10 + Math.sin(y * 0.05) * 4;
|
|
533
|
+
const inner = (y) => (sd < 0 ? e - 40 + wave(y) : W - e + 40 + wave(y));
|
|
534
|
+
const outer = sd < 0 ? -60 : W + 60;
|
|
535
|
+
p.fillStyle = INK; p.beginPath(); p.moveTo(outer, -10);
|
|
536
|
+
for (let y = -10; y <= Hh + 10; y += 20) p.lineTo(inner(y), y);
|
|
537
|
+
p.lineTo(outer, Hh + 10); p.closePath(); p.fill();
|
|
538
|
+
for (let y = 30; y < Hh; y += 24) { tear(p, inner(y), y, 18, 9, sd < 0 ? 0 : Math.PI); }
|
|
539
|
+
cut(p, () => {
|
|
540
|
+
const xs = sd < 0 ? [] : [];
|
|
541
|
+
for (let k = 1; k < 9; k++) {
|
|
542
|
+
const x = sd < 0 ? inner(0) - k * 70 : inner(0) + k * 70;
|
|
543
|
+
for (let y = 50; y < Hh - 20; y += 22) { const xx = x + wave(y) * 0.6 + Math.sin(y * 0.03 + k) * 6; p.save(); p.translate(xx, y); p.rotate(Math.PI / 4); p.fillRect(-3.4, -3.4, 6.8, 6.8); p.restore(); }
|
|
544
|
+
}
|
|
545
|
+
for (let y = 40; y < Hh - 20; y += 18) dot(p, inner(y) - sd * 18, y, 3);
|
|
546
|
+
void xs;
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
// ---------- the still / clip ----------
|
|
552
|
+
function stillFrame(ctx, W, Hh, t) {
|
|
553
|
+
const st = begin(W, Hh);
|
|
554
|
+
let b = sm(0, 0.9, t) * (1 - 0.45 * Math.max(0, NZ.n2(t * 23, 9.1)) * (1 - sm(0.6, 1.05, t)));
|
|
555
|
+
lamp(ctx, W, Hh, t, b, 0);
|
|
556
|
+
// moon on its thread
|
|
557
|
+
pup(st, {}, (p, g) => {
|
|
558
|
+
const sw = Math.sin(t * 1.1) * 0.03;
|
|
559
|
+
p.save(); p.translate(1116, 0); p.rotate(sw); p.lineWidth = 2; p.strokeStyle = INK; p.beginPath(); p.moveTo(0, 0); p.lineTo(0, 82); p.stroke(); p.restore();
|
|
560
|
+
moon(p, g, { x: 1116 + Math.sin(sw) * -150, y: 150, r: 56, fill: 0.62, burst: 0 });
|
|
561
|
+
[[972, 96, 15, 1.3], [1236, 120, 12, 0.9], [1036, 250, 10, 1.7]].forEach(([x, y, r, f]) => {
|
|
562
|
+
const a = Math.sin(t * f + x) * 0.06; p.save(); p.translate(x, 0); p.rotate(a); p.lineWidth = 1.6; p.beginPath(); p.moveTo(0, 0); p.lineTo(0, y - r); p.stroke(); p.fillStyle = INK; star(p, 0, y, r); cut(p, () => dot(p, 0, y, r * 0.22)); p.restore();
|
|
563
|
+
});
|
|
564
|
+
});
|
|
565
|
+
// title card drops on its strings and swings
|
|
566
|
+
const cy = lerp(-260, 250, EO(sm(1.5, 2.15, t)));
|
|
567
|
+
pup(st, {}, (p, g) => titleCard(p, g, { x: 300, y: cy, w: 440, h: 226, s: 1, rot: swing(t, 2.0, 0.09, 1.5, 6.5), lines: [{ text: 'The Thinking', size: 56, y: -6 }, { text: 'Machine', size: 62, y: 58, italic: true }] }));
|
|
568
|
+
// branch from the right
|
|
569
|
+
pup(st, {}, (p) => branch(p, 1300, 548, 640, 512));
|
|
570
|
+
// owl hops along the branch
|
|
571
|
+
const u = sm(0.7, 2.0, t), hop = Math.abs(Math.sin(u * Math.PI * 3)) * 26 * (1 - u);
|
|
572
|
+
const flap = (1 - sm(1.8, 2.4, t)) * (0.55 + 0.45 * Math.sin(t * 15));
|
|
573
|
+
pup(st, {}, (p, g, rods) => owl(p, g, {
|
|
574
|
+
x: lerp(1460, 840, EO(u)), y: 512 - hop, s: 0.86, tilt: (1 - u) * -0.08,
|
|
575
|
+
head: Math.sin(sm(2.6, 3.4, t) * Math.PI) * -0.16 + sm(3.6, 4.0, t) * 0.04, wl: 0.06 + flap + Math.sin(t * 2.2) * 0.03, wr: 0.06 + flap + Math.sin(t * 2.2 + 1) * 0.03,
|
|
576
|
+
gear: Math.floor(t * 3) * 0.26 + sm(0, 0.12, (t * 3) % 1) * 0.26, blink: blinkAt(t, [3.45, 4.35]), look: [-0.7 + sm(2.6, 3.0, t) * 0.4, 0.1],
|
|
577
|
+
}, rods));
|
|
578
|
+
// a cat comes to look
|
|
579
|
+
const cu = EO(sm(2.5, 3.3, t));
|
|
580
|
+
pup(st, {}, (p, g, rods) => {
|
|
581
|
+
p.save(); p.translate(lerp(-120, 372, cu), 628 - Math.abs(Math.sin(cu * Math.PI * 2)) * 12 * (1 - cu)); p.scale(1.15, 1.15); cat(p); rods.push([...wpt(p, -8, 50), 3]); p.restore();
|
|
582
|
+
});
|
|
583
|
+
stage(st, t);
|
|
584
|
+
// an out-of-focus fern held near the lamp: big and soft
|
|
585
|
+
pup(st, { blur: 7, alpha: 0.92 }, (p) => {
|
|
586
|
+
p.save(); p.translate(-30, 770); p.rotate(0.5 + Math.sin(t * 0.8) * 0.03);
|
|
587
|
+
fernShape(p);
|
|
588
|
+
p.restore();
|
|
589
|
+
});
|
|
590
|
+
end(ctx, st, t);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
// ---------- explainer: "How does AI learn?" as a shadow play ----------
|
|
594
|
+
const XD = 15;
|
|
595
|
+
// scene A cards (big, labelled) and the flock of small ones; times also used by the sound score
|
|
596
|
+
const ACARDS = [{ t0: 2.7, kind: 'cat' }, { t0: 3.45, kind: 'dog' }, { t0: 4.2, kind: 'cat' }];
|
|
597
|
+
const ACARD_DUR = 1.6;
|
|
598
|
+
const cardPath = (u) => ({ x: lerp(-110, 1050, EIO(cl(u / 0.9))), y: 470 - 70 * Math.sin(Math.PI * Math.min(u, 0.85) / 0.85), rot: 0.07 * Math.sin(u * TAU * 1.5) });
|
|
599
|
+
const fmt = (n) => n.toLocaleString('en-US');
|
|
600
|
+
const countA = (t) => Math.round(Math.pow(10, 6 * sm(2.7, 5.5, t)));
|
|
601
|
+
const accC = (t) => Math.round(61 + 36 * EO(sm(10.8, 12.0, t)));
|
|
602
|
+
const VG = [[386, 322], [440, 140], [660, 104], [752, 250]]; // Guess vine (owl -> card)
|
|
603
|
+
const VA = [[770, 520], [726, 660], [470, 668], [376, 566]]; // Adjust vine (card -> owl)
|
|
604
|
+
|
|
605
|
+
function sceneA(st, t) {
|
|
606
|
+
// the question card drops, then is hoisted into the corner
|
|
607
|
+
const hp = EIO(sm(1.9, 2.5, t));
|
|
608
|
+
const dropY = lerp(-240, 300, EO(sm(0.15, 0.8, t)));
|
|
609
|
+
pup(st, {}, (p, g) => titleCard(p, g, {
|
|
610
|
+
x: lerp(640, 238, hp), y: lerp(dropY, 86, hp), w: 800, h: 190, s: lerp(1, 0.5, hp),
|
|
611
|
+
rot: swing(t, 0.7, 0.08, 2.2, 7) + swing(t, 2.45, 0.05, 2.5, 8),
|
|
612
|
+
lines: [{ text: 'How does AI learn?', size: 74, y: 24 }],
|
|
613
|
+
}));
|
|
614
|
+
// counter board
|
|
615
|
+
if (t > 2.5) {
|
|
616
|
+
const dy = lerp(-260, 0, EO(sm(2.5, 2.85, t))), v = countA(t), pop = 1 + 0.1 * Math.exp(-Math.max(0, t - 5.5) * 8) * (t > 5.5 ? 1 : 0);
|
|
617
|
+
pup(st, {}, (p) => {
|
|
618
|
+
p.save(); p.translate(612, 214 + dy); p.rotate(swing(t, 2.85, 0.04, 2.5, 7));
|
|
619
|
+
p.fillStyle = INK; p.strokeStyle = INK; p.lineWidth = 2;
|
|
620
|
+
p.beginPath(); p.moveTo(-250, 34); p.lineTo(-250, -260); p.moveTo(250, 34); p.lineTo(250, -260); p.stroke();
|
|
621
|
+
p.fillRect(-256, 22, 512, 7); dot(p, -256, 25, 8); dot(p, 256, 25, 8);
|
|
622
|
+
p.save(); p.font = `400 88px ${NF}`; const cw = p.measureText(fmt(v)).width, fit = Math.min(1, 360 / cw); p.translate(0, -12); p.scale(pop * fit, pop * fit); p.textAlign = 'center'; p.textBaseline = 'alphabetic'; p.fillText(fmt(v), 0, 0); p.restore();
|
|
623
|
+
p.restore();
|
|
624
|
+
plaque(p, { x: 612, y: 248 + dy, text: 'examples', size: 36 });
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
// big labelled cards (behind the owl, so they slip into it)
|
|
628
|
+
pup(st, {}, (p, g, rods) => {
|
|
629
|
+
ACARDS.forEach((c) => { const u = (t - c.t0) / ACARD_DUR; if (u <= 0 || u >= 0.9) return; const q = cardPath(u); cardFade(p, g, { ...q, s: 0.9, kind: c.kind }, rods, 1 - sm(880, 1010, q.x)); });
|
|
630
|
+
});
|
|
631
|
+
// the flock: many small cards, held further back (softer)
|
|
632
|
+
if (t > 4.3) pup(st, { blur: 1.6, alpha: 0.95 }, (p, g) => {
|
|
633
|
+
for (let j = 0; j < 18; j++) {
|
|
634
|
+
const u = (t - 4.35 - j * 0.085) / 1.05; if (u <= 0 || u >= 0.88) continue;
|
|
635
|
+
const q = cardPath(u); cardFade(p, g, { x: q.x, y: q.y + 20 + ((j % 3) - 1) * 80, rot: q.rot * 2, s: 0.36, kind: j % 2 ? 'dog' : 'cat', noRods: true }, null, 1 - sm(860, 990, q.x));
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
// the owl (until it takes off)
|
|
639
|
+
if (t < 5.85) {
|
|
640
|
+
const u = sm(2.2, 3.0, t), hop = Math.abs(Math.sin(u * Math.PI * 2)) * 30 * (1 - u), flap = (1 - sm(2.8, 3.2, t)) * (0.5 + 0.5 * Math.sin(t * 16));
|
|
641
|
+
const fed = ACARDS.reduce((m, c) => m + sm(c.t0 + 1.25, c.t0 + 1.45, t), 0) + sm(4.6, 5.9, t) * 4;
|
|
642
|
+
pup(st, {}, (p, g, rods) => owl(p, g, {
|
|
643
|
+
x: lerp(1460, 1036, EO(u)), y: 652 - hop, s: 0.86, wl: 0.05 + flap + Math.sin(t * 2.3) * 0.03, wr: 0.05 + flap + Math.sin(t * 2.3 + 1) * 0.03,
|
|
644
|
+
gear: fed * 0.55, look: [-1, 0.25], head: -0.06, blink: blinkAt(t, [3.9, 5.2]),
|
|
645
|
+
}, rods));
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
function flyOver(st, t) {
|
|
649
|
+
// the owl takes off and flies up toward the lamp: its shadow swells until it fills the screen
|
|
650
|
+
const lift = sm(5.85, 6.05, t), q = sm(6.0, 6.62, t);
|
|
651
|
+
const s = lerp(0.86, 7.2, Math.pow(q, 1.2));
|
|
652
|
+
const cx = lerp(1036, 600, EIO(sm(0, 0.5, q))) - 900 * sm(0.5, 1, q) * sm(0.5, 1, q), cy = lerp(652 - 190 * 0.86 - 40 * lift, 360, EIO(sm(0, 0.5, q))) - 300 * sm(0.55, 1, q);
|
|
653
|
+
const flap = 1.6 + 0.35 * Math.sin(t * 22);
|
|
654
|
+
pup(st, { blur: 1 + 26 * q, alpha: 1 - 0.1 * q }, (p, g) => owl(p, g, { x: cx, y: cy + 190 * s, s, wl: lift * flap, wr: lift * flap, gear: t * 3, look: [0, -0.5], noRods: q > 0.05 }, q > 0.05 ? null : st.rods));
|
|
655
|
+
const cover = sm(0.25, 0.42, q) * (1 - sm(0.5, 0.72, q));
|
|
656
|
+
if (cover > 0) { const s2 = st.S.getContext('2d'); s2.save(); s2.globalAlpha = cover * 0.93; s2.fillStyle = INK; s2.fillRect(0, 0, st.W, st.Hh); s2.restore(); }
|
|
657
|
+
}
|
|
658
|
+
function sceneB(st, t) {
|
|
659
|
+
const OW = { x: 262, y: 714, s: 0.95 };
|
|
660
|
+
// card with the cat rises in on its rod
|
|
661
|
+
const cy = lerp(900, 390, EO(sm(6.32, 6.85, t)));
|
|
662
|
+
const tapT = 8.05, gearU = sm(9.0, 9.7, t);
|
|
663
|
+
pup(st, {}, (p, g, rods) => card(p, g, { x: 850, y: cy, s: 1.1, kind: 'cat', rot: swing(t, 6.85, 0.05, 3, 9) + swing(t, tapT + 0.05, 0.05, 4, 14) }, rods));
|
|
664
|
+
// owl close-up
|
|
665
|
+
const adj = sm(9.0, 9.25, t) * (1 - sm(9.55, 9.9, t));
|
|
666
|
+
pup(st, {}, (p, g, rods) => owl(p, g, {
|
|
667
|
+
...OW, wl: 0.05 + 0.32 * adj + Math.sin(t * 2.1) * 0.03, wr: 0.05 + 0.32 * adj + Math.sin(t * 2.1 + 1) * 0.03,
|
|
668
|
+
head: 0.06 - 0.12 * sm(8.05, 8.2, t) * (1 - sm(8.6, 8.9, t)), look: t < 8.0 ? [1, -0.15] : t < 8.9 ? [1, 0.1] : [0.6, 0.5 * (1 - sm(9.7, 9.9, t))],
|
|
669
|
+
gear: 2.2 + EIO(gearU) * 3.2, gearGel: gearU > 0.05 && gearU < 0.98 || (t > 9.0 && t < 9.95) ? 'rgb(255,214,96)' : undefined,
|
|
670
|
+
sparks: sm(9.15, 9.75, t) * (t < 9.75 ? 1 : 0), blink: blinkAt(t, [6.6, 10.25]),
|
|
671
|
+
}, rods));
|
|
672
|
+
// Guess vine + its plaque, the guess tag hanging from it
|
|
673
|
+
const gp = EIO(sm(6.9, 7.45, t));
|
|
674
|
+
pup(st, {}, (p, g) => {
|
|
675
|
+
vine(p, VG, gp, 7);
|
|
676
|
+
if (t > 7.15) plaque(p, { x: 556, y: lerp(-60, 142, EO(sm(7.15, 7.4, t))), text: 'Guess', size: 38, rot: swing(t, 7.4, 0.06, 3, 9), hang: 220 });
|
|
677
|
+
if (t > 7.42) {
|
|
678
|
+
const hang = bz(VG, 0.64), drop = EO(sm(7.42, 7.62, t));
|
|
679
|
+
const flipU = sm(9.72, 10.02, t), flip = Math.cos(flipU * Math.PI);
|
|
680
|
+
const shake = t > tapT && t < tapT + 0.5 ? Math.sin((t - tapT) * 60) * 0.06 * (1 - (t - tapT) / 0.5) : 0;
|
|
681
|
+
const right = flipU > 0.5;
|
|
682
|
+
tag(p, g, {
|
|
683
|
+
x: hang[0], y: hang[1] - 6, rot: swing(t, 7.62, 0.12, 2.5, 8) + shake, flip: Math.max(0.04, Math.abs(flip)),
|
|
684
|
+
w: 200 * drop, h: 76 * drop, text: right ? 'cat' : 'dog?', size: 52 * drop, tx: -26,
|
|
685
|
+
badge: t > tapT ? (right ? 'v' : 'x') : null, badgeS: right ? EO(sm(10.0, 10.18, t)) * 0.92 : EO(sm(tapT, tapT + 0.14, t)) * 0.92,
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
// the teacher's hand comes in and taps the card
|
|
690
|
+
if (t > 7.7) {
|
|
691
|
+
const inU = EO(sm(7.7, 8.0, t)), tap = Math.sin(Math.PI * sm(7.95, 8.15, t)) + Math.sin(Math.PI * sm(10.02, 10.22, t)) * 0.7;
|
|
692
|
+
pup(st, { blur: 1.2 }, (p, g, rods) => {
|
|
693
|
+
hand(p, g, { x: lerp(1420, 1082, inU) - tap * 22, y: 308 + tap * 4, s: 1, rot: -0.12 * tap }, rods);
|
|
694
|
+
if (t > 8.12) plaque(p, { x: 1090, y: lerp(-40, 208, EO(sm(8.12, 8.36, t))), text: 'Check', size: 38, rot: swing(t, 8.36, 0.07, 3, 9), hang: 220 });
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
// Adjust vine runs back into the owl's chest
|
|
698
|
+
pup(st, {}, (p) => {
|
|
699
|
+
vine(p, VA, EIO(sm(8.5, 9.02, t)), 7);
|
|
700
|
+
if (t > 8.72) plaque(p, { x: 584, y: lerp(800, 598, EO(sm(8.72, 8.96, t))), text: 'Adjust', size: 38 });
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
function sceneC(st, t) {
|
|
704
|
+
const acc = accC(t), p01 = (acc - 61) / 36;
|
|
705
|
+
const hit = t > 12.0 ? Math.exp(-(t - 12.0) * 5) : 0;
|
|
706
|
+
pup(st, {}, (p) => {
|
|
707
|
+
plaque(p, { x: 350, y: lerp(-60, 196, EO(sm(10.6, 10.85, t))), text: 'Accuracy', size: 46, rot: swing(t, 10.85, 0.05, 3, 8), hang: 220 });
|
|
708
|
+
p.save(); p.translate(350, 440); p.scale(1 + hit * 0.14, 1 + hit * 0.14);
|
|
709
|
+
p.fillStyle = INK; p.font = `400 170px ${NF}`; p.textAlign = 'center'; p.textBaseline = 'alphabetic'; p.fillText(acc + '%', 0, 0);
|
|
710
|
+
p.restore();
|
|
711
|
+
// emphasis: a vine flourish draws under the number
|
|
712
|
+
vine(p, [[120, 500], [250, 545], [440, 470], [580, 500]], EIO(sm(12.0, 12.35, t)), 6);
|
|
713
|
+
});
|
|
714
|
+
// ladder, owl climbing rung by rung, moon filling at the top
|
|
715
|
+
const climbP = cl(p01), kf = climbP * 9, k = Math.floor(kf), hopU = sm(0.55, 1, kf - k), pos = Math.min(9, k + hopU);
|
|
716
|
+
const top = t > 12.0 ? 1 : 0;
|
|
717
|
+
pup(st, {}, (p, g, rods) => {
|
|
718
|
+
const rung = ladder(p, 820, 262, 720, 10);
|
|
719
|
+
moon(p, g, { x: 1070, y: 250, r: 80, fill: 0.12 + 0.88 * climbP, burst: EO(sm(12.0, 12.3, t)) * (1 - 0.15 * Math.sin((t - 12) * 6) * (t > 12.3 ? 1 : 0)) });
|
|
720
|
+
const hopY = Math.sin(Math.PI * hopU) * 22 * (k < 9 ? 1 : 0);
|
|
721
|
+
const flap = (k < 9 ? Math.sin(Math.PI * hopU) * 0.9 : 0) + top * (0.5 + 0.5 * Math.sin(t * 14)) * (1 - sm(12.6, 12.9, t));
|
|
722
|
+
owl(p, g, { x: 820, y: rung(pos) - hopY + 4, s: 0.38, wl: 0.06 + flap, wr: 0.06 + flap, gear: pos * 0.8, look: [0.6, -0.6], blink: blinkAt(t, [11.2]) }, rods);
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
function sceneD(st, t) {
|
|
726
|
+
pup(st, {}, (p, g) => titleCard(p, g, {
|
|
727
|
+
x: 640, y: lerp(-200, 318, EO(sm(13.2, 13.5, t))), w: 940, h: 270, s: 1, rot: swing(t, 13.5, 0.05, 2.2, 6),
|
|
728
|
+
lines: [{ text: 'More examples', size: 76, y: -14 }, { text: 'better guesses', size: 76, y: 84, italic: true, arrow: true }],
|
|
729
|
+
}));
|
|
730
|
+
pup(st, {}, (p, g, rods) => {
|
|
731
|
+
card(p, g, { x: 168, y: 606, s: 0.5, kind: 'cat', rot: Math.sin(t * 2) * 0.03 }, rods);
|
|
732
|
+
card(p, g, { x: 290, y: 616, s: 0.5, kind: 'dog', rot: Math.sin(t * 2 + 1) * 0.03 }, rods);
|
|
733
|
+
const bow = Math.sin(Math.PI * sm(14.15, 14.75, t));
|
|
734
|
+
owl(p, g, { x: 1100, y: 700, s: 0.4, tilt: bow * 0.25, head: bow * 0.2, wl: 0.1 + bow * 0.6, wr: 0.1 + bow * 0.6, gear: t, look: [-0.6, 0.2], blink: blinkAt(t, [13.8]) }, rods);
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
function explainerFrame(ctx, W, Hh, t) {
|
|
738
|
+
const st = begin(W, Hh);
|
|
739
|
+
let b = sm(0, 0.55, t) * (1 - 0.35 * Math.max(0, NZ.n2(t * 23, 3.3)) * (1 - sm(0.35, 0.7, t)));
|
|
740
|
+
b *= 1 - 0.93 * Math.sin(Math.PI * cl((t - 10.3) / 0.5)); // the lamp is turned down and up again
|
|
741
|
+
const flare = t > 12.0 ? Math.exp(-(t - 12.0) * 3) * 0.32 : 0; // 97%: the flame flares
|
|
742
|
+
lamp(ctx, W, Hh, t, b + flare * 0.3, flare);
|
|
743
|
+
// a red gel is slid in front of the lamp for the wrong guess
|
|
744
|
+
const red = sm(8.03, 8.12, t) * (1 - sm(8.45, 8.75, t));
|
|
745
|
+
if (red > 0) { ctx.save(); ctx.globalCompositeOperation = 'multiply'; ctx.fillStyle = `rgba(255,70,50,${red * 0.75})`; ctx.fillRect(0, 0, W, Hh); ctx.restore(); }
|
|
746
|
+
if (t < 6.28) sceneA(st, t); else if (t < 10.55) sceneB(st, t); else if (t < 13.2) sceneC(st, t); else sceneD(st, t);
|
|
747
|
+
if (t > 5.8 && t < 6.7) flyOver(st, t);
|
|
748
|
+
stage(st, t);
|
|
749
|
+
// the soft near-lamp fern: bottom-left while the cards come in, bottom-right once the owl sits left
|
|
750
|
+
if (t < 6.28) nearFern(st, t, -1, 0.82 * sm(0.3, 0.9, t)); else if (t < 13.2) nearFern(st, t, 1, 0.82);
|
|
751
|
+
// lace curtains close and part again
|
|
752
|
+
const cover = EIO(sm(12.85, 13.15, t)) * (1 - EIO(sm(13.3, 13.65, t)));
|
|
753
|
+
if (cover > 0.001) pup(st, {}, (p) => curtains(p, W, Hh, cover, t));
|
|
754
|
+
end(ctx, st, t);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
registerStyle({
|
|
758
|
+
id: 'shadow-puppet',
|
|
759
|
+
name: 'Shadow Puppet Theatre',
|
|
760
|
+
category: 'Paper & Craft',
|
|
761
|
+
description: 'Black cut-out silhouettes with punched lace-like cut-work, pinned joints and thin control rods, pressed against a backlit cloth screen glowing amber at the lamp and falling to red-brown at the edges, with coloured gels in the openings.',
|
|
762
|
+
motion: 'The oil lamp sputters alight, puppets slide and hop in on their rods with jointed limbs swinging, hanging cards drop and sway on their strings, and the flame keeps the screen gently breathing.',
|
|
763
|
+
fonts: ['400 88px "Libre Baskerville"', '400 74px "IM Fell English"', 'italic 400 52px "IM Fell English"', '400 190px "IM Fell English"', 'italic 400 38px "IM Fell English"'],
|
|
764
|
+
frameT: 4.6,
|
|
765
|
+
duration: 5,
|
|
766
|
+
readsPixels: false,
|
|
767
|
+
explainerDuration: XD,
|
|
768
|
+
explainerNote: 'Told as a little shadow play: a mechanical owl puppet is fed picture cards on rods, guesses on a hanging tag, a teacher\'s hand corrects it and its cut-work gears re-set, then it climbs a ladder toward a filling moon; transitions are the medium\'s own (the owl flies at the lamp so its shadow fills the screen, the lamp is turned down and up, lace curtains close and part), arrows are growing hide vines and labels are punched plaques on strings.',
|
|
769
|
+
explainerSound(k) {
|
|
770
|
+
const D = XD;
|
|
771
|
+
// first time (1 ms scan) at which f(t) reaches or passes v
|
|
772
|
+
const when = (f, v, a, b) => { for (let t = a; t <= b; t += 0.001) if (f(t) >= v) return t; return b; };
|
|
773
|
+
// gamelan-ish struck bronze: fundamental + a slightly detuned twin (the ombak beat) + soft upper partials, all under 2.5 kHz
|
|
774
|
+
const gam = (t, n, g = 1, pan = 0, minor = false) => {
|
|
775
|
+
const f = k.hz(n);
|
|
776
|
+
k.tone(t, { f, dur: 1.9, gain: 0.13 * g, a: 0.002, pan, verb: 0.3, minor });
|
|
777
|
+
k.tone(t, { f: f * 1.007, dur: 1.6, gain: 0.07 * g, a: 0.002, pan, verb: 0.3, minor });
|
|
778
|
+
k.tone(t, { f: f * 2.01, dur: 0.55, gain: 0.04 * g, a: 0.002, pan, minor });
|
|
779
|
+
if (f * 2.95 < 2500) k.tone(t, { f: f * 2.95, dur: 0.22, gain: 0.018 * g, a: 0.002, pan, minor });
|
|
780
|
+
k.noise(t, { dur: 0.02, filter: 'bandpass', f: Math.min(2200, f * 1.6), q: 2, gain: 0.08 * g, pan, minor });
|
|
781
|
+
};
|
|
782
|
+
// the low gong for 97%
|
|
783
|
+
const gong = (t, g = 1) => {
|
|
784
|
+
k.play('thud', t, { f: 90, gain: 0.7 * g });
|
|
785
|
+
k.tone(t, { f: [[0, 98], [3.6, 95]], dur: 3.6, gain: 0.36 * g, a: 0.012, verb: 0.45 });
|
|
786
|
+
k.tone(t, { f: [[0, 99.2], [3.2, 96]], dur: 3.2, gain: 0.16 * g, a: 0.02 });
|
|
787
|
+
k.tone(t, { f: 202, dur: 2.2, gain: 0.1 * g, a: 0.01, verb: 0.4 });
|
|
788
|
+
k.tone(t, { f: 277, dur: 1.4, gain: 0.05 * g, a: 0.01 });
|
|
789
|
+
k.noise(t, { dur: 0.3, color: 'brown', filter: 'lowpass', f: 450, gain: 0.3 * g });
|
|
790
|
+
};
|
|
791
|
+
const tap = (t, f = 640, g = 0.55, pan = 0, minor = true) => { k.play('tock', t, { f, gain: g, pan, minor }); k.noise(t, { dur: 0.014, filter: 'bandpass', f: 1700, q: 2.5, gain: 0.32 * g, a: 0.001, pan, minor }); }; // wooden rod tap: knock + bright click
|
|
792
|
+
const hide = (t, dur, g = 0.5, pan = 0, minor = true) => k.play('paper', t, { dur, gain: g, pan, minor }); // leather/hide rustle
|
|
793
|
+
const slide = (t, dur, g = 0.12, minor = true) => k.noise(t, { dur, color: 'brown', filter: 'lowpass', f: [[0, 260], [dur * 0.5, 520], [dur, 240]], gain: g, a: dur * 0.4, minor });
|
|
794
|
+
const flap = (t, g = 0.25, pan = 0, minor = true) => k.noise(t, { dur: 0.11, color: 'pink', filter: 'lowpass', f: [[0, 900], [0.11, 300]], gain: g, a: 0.03, pan, minor });
|
|
795
|
+
|
|
796
|
+
// ---- beds: the lamp's hum and the room
|
|
797
|
+
k.bed('hum', 0.2, D, { gain: 0.5 });
|
|
798
|
+
k.bed('room', 0, D, { gain: 0.7 });
|
|
799
|
+
// lamp catches: a soft whump, then a few sputters (sputter noise in explainerFrame, 0-0.7 s)
|
|
800
|
+
k.noise(0.04, { dur: 0.45, color: 'brown', filter: 'lowpass', f: [[0, 200], [0.12, 700], [0.45, 180]], gain: 0.4, a: 0.05 });
|
|
801
|
+
[0.18, 0.31, 0.47].forEach((t, i) => k.noise(t, { dur: 0.012, filter: 'bandpass', f: 1300 + i * 300, q: 1.5, gain: 0.12, minor: true }));
|
|
802
|
+
// flame crackle now and then
|
|
803
|
+
[2.1, 3.9, 6.9, 9.4, 11.0, 14.0].forEach((t, i) => k.noise(t, { dur: 0.01, filter: 'bandpass', f: 1500 + i * 120, q: 1.4, gain: 0.07, minor: true }));
|
|
804
|
+
|
|
805
|
+
// ---- HOOK: card drops on its strings (lands ~0.62), rings a bronze note; hoisted to the corner 1.9-2.5
|
|
806
|
+
hide(0.24, 0.3, 0.7);
|
|
807
|
+
tap(0.62, 520, 0.7, 0, false);
|
|
808
|
+
gam(0.64, 'D4', 1.0);
|
|
809
|
+
slide(1.9, 0.6, 0.14);
|
|
810
|
+
tap(2.47, 700, 0.45, -0.5);
|
|
811
|
+
|
|
812
|
+
// ---- DATA: owl hops in from the right (hop landings at 2.6 and 3.0), wings flapping
|
|
813
|
+
hide(2.2, 0.55, 0.55, 0.6);
|
|
814
|
+
for (let t = 2.25; t < 3.05; t += 0.39) flap(t, 0.22, 0.6);
|
|
815
|
+
tap(2.6, 420, 0.5, 0.6); tap(3.0, 380, 0.65, 0.6);
|
|
816
|
+
// counter board drops (2.5-2.85)
|
|
817
|
+
hide(2.5, 0.25, 0.35, -0.1); tap(2.82, 760, 0.45, -0.1);
|
|
818
|
+
// big cards: rustle in from the left, clack as each slips into the owl (u = 0.9 of 1.6 s)
|
|
819
|
+
ACARDS.forEach((c, i) => { hide(c.t0 + 0.08, 0.35, 0.5, -0.7); tap(c.t0 + 0.9 * ACARD_DUR, 360 + i * 30, 1.0, 0.5); });
|
|
820
|
+
// the flock streaming in
|
|
821
|
+
hide(4.4, 1.4, 0.32, -0.2);
|
|
822
|
+
// counter: wooden ticks, at most ~11/s, slowing as the number settles
|
|
823
|
+
{ let last = -1, prev = countA(2.6); for (let t = 2.72; t < 5.48; t += 0.002) { const v = countA(t); if (v !== prev && t - last >= 0.09) { tap(t, 1150, 0.36, -0.1); last = t; } prev = v; } }
|
|
824
|
+
gam(5.5, 'A4', 0.9, -0.1);
|
|
825
|
+
|
|
826
|
+
// ---- TRANSITION: the owl flies at the lamp, its shadow fills the screen (5.85-6.6)
|
|
827
|
+
flap(5.88, 0.45, 0.5, false); flap(6.02, 0.5, 0.2, false);
|
|
828
|
+
k.noise(5.95, { dur: 0.75, color: 'pink', filter: 'bandpass', f: [[0, 180], [0.35, 800], [0.75, 160]], q: 0.8, gain: 0.42, a: 0.3, verb: 0.2 });
|
|
829
|
+
k.play('thud', 6.24, { f: 70, gain: 0.35 });
|
|
830
|
+
|
|
831
|
+
// ---- GUESS / CHECK / ADJUST
|
|
832
|
+
slide(6.32, 0.4, 0.12); tap(6.72, 560, 0.5, 0.3); // cat card rises on its rod
|
|
833
|
+
k.play('stroke', 6.9, { material: 'brush', dur: 0.55, gain: 0.7, minor: true }); // Guess vine grows
|
|
834
|
+
tap(7.36, 820, 0.45, 0); // Guess plaque lands
|
|
835
|
+
tap(7.58, 600, 0.55, 0.1, false); // the guess tag drops: "dog?"
|
|
836
|
+
gam(7.6, 'D4', 0.75, 0.1); gam(7.78, 'F4', 0.75, 0.1); // a questioning rise
|
|
837
|
+
hide(7.7, 0.3, 0.9, 0.8); // the teacher's hand comes in
|
|
838
|
+
k.play('thud', 8.05, { f: 170, gain: 0.55, pan: 0.5 }); tap(8.05, 300, 0.9, 0.5, false); // knock on the card
|
|
839
|
+
k.noise(8.0, { dur: 0.14, filter: 'highpass', f: 1200, gain: 0.08, a: 0.06 }); // red gel slid in front of the lamp
|
|
840
|
+
gam(8.08, 'Eb4', 0.8, 0.1); gam(8.08, 'E4', 0.7, 0.1); gam(8.08, 'A2', 0.9, 0); // clashing bronze: wrong
|
|
841
|
+
tap(8.32, 860, 0.75, 0.6); // Check plaque
|
|
842
|
+
k.play('stroke', 8.5, { material: 'brush', dur: 0.52, gain: 1.1, minor: true }); // Adjust vine
|
|
843
|
+
tap(8.92, 760, 0.7, -0.1); // Adjust plaque
|
|
844
|
+
// gears re-set: a wooden ratchet while they turn (9.0-9.7)
|
|
845
|
+
for (let t = 9.02; t < 9.68; t += 0.075) tap(t, 1050 + ((t * 40) % 3) * 60, 0.55, -0.5);
|
|
846
|
+
gam(9.18, 'A5', 0.4, -0.5, true);
|
|
847
|
+
flap(9.82, 0.3, 0.1); // tag flips over
|
|
848
|
+
gam(10.0, 'A4', 0.85, 0.1); gam(10.12, 'D5', 0.85, 0.1); // "cat" + tick: right
|
|
849
|
+
tap(10.12, 320, 0.5, 0.5); // hand taps again
|
|
850
|
+
|
|
851
|
+
// ---- TRANSITION: lamp turned down and up (10.3-10.8)
|
|
852
|
+
k.noise(10.3, { dur: 0.5, color: 'brown', filter: 'lowpass', f: [[0, 600], [0.25, 140], [0.5, 600]], gain: 0.35, a: 0.05, hold: 0.3 });
|
|
853
|
+
|
|
854
|
+
// ---- PROGRESS: Accuracy plaque, owl climbs rung by rung (one pitched wood block per rung), number counts
|
|
855
|
+
tap(10.82, 820, 0.7, -0.4);
|
|
856
|
+
const scale = ['D4', 'Eb4', 'F4', 'A4', 'Bb4', 'D5', 'Eb5', 'F5', 'A5'];
|
|
857
|
+
const kf = (t) => ((accC(t) - 61) / 36) * 9;
|
|
858
|
+
const rungT = [];
|
|
859
|
+
for (let n = 1; n <= 9; n++) { const t = when(kf, n, 10.8, 12.01); rungT.push(t); k.tone(t, { f: scale[n - 1], type: 'triangle', dur: 0.12, gain: 0.09, a: 0.002, pan: 0.3, minor: true }); tap(t, 500, 0.7, 0.3); }
|
|
860
|
+
{ let last = -1, prev = accC(10.7); for (let t = 10.8; t < 11.98; t += 0.002) { const v = accC(t); if (v !== prev && t - last >= 0.1 && !rungT.some((r) => Math.abs(r - t) < 0.15)) { tap(t, 1200, 0.38, -0.4); last = t; } prev = v; } }
|
|
861
|
+
// 97%: the gong, the moon bursts, the flame flares
|
|
862
|
+
gong(12.0, 1.1);
|
|
863
|
+
gam(12.02, 'D5', 0.6, 0.4);
|
|
864
|
+
hide(12.0, 0.3, 0.35, 0.4);
|
|
865
|
+
k.play('stroke', 12.0, { material: 'brush', dur: 0.35, gain: 0.5, minor: true }); // underline vine
|
|
866
|
+
|
|
867
|
+
// ---- TRANSITION: lace curtains close (12.85-13.15) and part (13.3-13.65)
|
|
868
|
+
for (const pan of [-0.7, 0.7]) k.noise(12.86, { dur: 0.32, color: 'pink', filter: 'bandpass', f: [[0, 500], [0.2, 1500], [0.32, 700]], q: 0.7, gain: 0.25, a: 0.12, pan });
|
|
869
|
+
k.play('thud', 13.15, { f: 110, gain: 0.3 });
|
|
870
|
+
for (const pan of [-0.7, 0.7]) k.noise(13.3, { dur: 0.36, color: 'pink', filter: 'bandpass', f: [[0, 700], [0.2, 1500], [0.36, 500]], q: 0.7, gain: 0.22, a: 0.12, pan });
|
|
871
|
+
|
|
872
|
+
// ---- TAKEAWAY: the card swings in; a resolving bronze phrase
|
|
873
|
+
tap(13.5, 520, 1.0, 0, true);
|
|
874
|
+
gam(13.62, 'D4', 0.9, -0.2); gam(13.76, 'A4', 0.85, 0); gam(13.9, 'D5', 0.8, 0.2);
|
|
875
|
+
k.tone(13.62, { f: 'D3', dur: 2.0, gain: 0.12, a: 0.01, verb: 0.4 });
|
|
876
|
+
tap(14.15, 420, 1.0, 0.7); // the owl takes a bow
|
|
877
|
+
},
|
|
878
|
+
explainer(ctx, W, Hh, t) { explainerFrame(ctx, W, Hh, t); },
|
|
879
|
+
draw(ctx, W, Hh, t) { stillFrame(ctx, W, Hh, t); },
|
|
880
|
+
});
|
|
881
|
+
}
|