popost 4.6.0 → 4.6.6
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/LICENSE +59 -3
- package/README.md +25 -10
- package/SKILL.md +48 -131
- package/THIRD_PARTY_NOTICES +524 -0
- package/agents/openai.yaml +2 -2
- package/assets/canvas/assets/{dist-Ag5yM9-G.js → dist-BmD8AP0A.js} +1 -1
- package/assets/canvas/assets/{es-DzkTYs_E.js → es-CC29Cabv.js} +1 -1
- package/assets/canvas/assets/{index-DjfLTPyx.js → index-DhwyFpu2.js} +6 -6
- package/assets/canvas/assets/{jszip.min-Cw2BF2G0.js → jszip.min-Bwf_yCrF.js} +1 -1
- package/assets/canvas/build-info.json +5 -5
- package/assets/canvas/index.html +1 -1
- package/assets/video/examples/audio-bars.html +125 -0
- package/assets/video/examples/bouncing-ball.html +182 -0
- package/assets/video/examples/card-flip.html +92 -0
- package/assets/video/examples/catalogue.json +16221 -0
- package/assets/video/examples/counter-stat.html +155 -0
- package/assets/video/examples/folding-doors.html +94 -0
- package/assets/video/examples/glitch-title.html +120 -0
- package/assets/video/examples/goo-blobs.html +127 -0
- package/assets/video/examples/grid-reveal.html +151 -0
- package/assets/video/examples/hf/agent-cursor.html +781 -0
- package/assets/video/examples/hf/ai-answer-rank.html +767 -0
- package/assets/video/examples/hf/ai-chat-reveal.html +1260 -0
- package/assets/video/examples/hf/animated-bar-chart.html +312 -0
- package/assets/video/examples/hf/app-showcase.html +1115 -0
- package/assets/video/examples/hf/apple-money-count.html +453 -0
- package/assets/video/examples/hf/arc-motion-path.html +303 -0
- package/assets/video/examples/hf/ascii-render-pass.html +728 -0
- package/assets/video/examples/hf/ascii-trail-reveal.html +595 -0
- package/assets/video/examples/hf/aurora-drift.html +439 -0
- package/assets/video/examples/hf/aurora.html +258 -0
- package/assets/video/examples/hf/avatar-cloud.html +667 -0
- package/assets/video/examples/hf/avatar-group-hover.html +342 -0
- package/assets/video/examples/hf/badge-pop.html +400 -0
- package/assets/video/examples/hf/bar-chart-race.html +795 -0
- package/assets/video/examples/hf/beat-accent.html +507 -0
- package/assets/video/examples/hf/beat-freeze-cut.html +1050 -0
- package/assets/video/examples/hf/beat-pulse-background.html +422 -0
- package/assets/video/examples/hf/beat-timeline.html +488 -0
- package/assets/video/examples/hf/before-after-wipe.html +681 -0
- package/assets/video/examples/hf/blob.html +258 -0
- package/assets/video/examples/hf/blue-sweater-intro-video.html +1656 -0
- package/assets/video/examples/hf/blur-in.html +624 -0
- package/assets/video/examples/hf/blur-out-up.html +350 -0
- package/assets/video/examples/hf/bottom-up-letters.html +335 -0
- package/assets/video/examples/hf/browser-device-stage.html +847 -0
- package/assets/video/examples/hf/camcorder-hud.html +371 -0
- package/assets/video/examples/hf/camera-dolly-zoom.html +485 -0
- package/assets/video/examples/hf/camera-rig-depth-stack.html +246 -0
- package/assets/video/examples/hf/camera-scan-gate.html +708 -0
- package/assets/video/examples/hf/camera-shake.html +989 -0
- package/assets/video/examples/hf/canopy-part-title.html +2549 -0
- package/assets/video/examples/hf/caption-blend-difference.html +247 -0
- package/assets/video/examples/hf/caption-camera-follow.html +537 -0
- package/assets/video/examples/hf/caption-clip-wipe.html +363 -0
- package/assets/video/examples/hf/caption-editorial-emphasis.html +615 -0
- package/assets/video/examples/hf/caption-emoji-pop.html +623 -0
- package/assets/video/examples/hf/caption-glitch-rgb.html +475 -0
- package/assets/video/examples/hf/caption-gradient-fill.html +392 -0
- package/assets/video/examples/hf/caption-highlight.html +433 -0
- package/assets/video/examples/hf/caption-kinetic-slam.html +334 -0
- package/assets/video/examples/hf/caption-matrix-decode.html +399 -0
- package/assets/video/examples/hf/caption-neon-accent.html +684 -0
- package/assets/video/examples/hf/caption-neon-glow.html +373 -0
- package/assets/video/examples/hf/caption-parallax-layers.html +530 -0
- package/assets/video/examples/hf/caption-particle-burst.html +454 -0
- package/assets/video/examples/hf/caption-pill-karaoke.html +517 -0
- package/assets/video/examples/hf/caption-texture.html +368 -0
- package/assets/video/examples/hf/caption-weight-shift.html +566 -0
- package/assets/video/examples/hf/card-resize.html +435 -0
- package/assets/video/examples/hf/caret-swap.html +601 -0
- package/assets/video/examples/hf/carousel-circle-1.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-2.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-3.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-4.html +1175 -0
- package/assets/video/examples/hf/carousel-circle-5.html +1175 -0
- package/assets/video/examples/hf/carousel-orbit-1.html +1198 -0
- package/assets/video/examples/hf/carousel-orbit-2.html +1198 -0
- package/assets/video/examples/hf/carousel-orbit-3.html +1198 -0
- package/assets/video/examples/hf/carousel-orbit-4.html +1214 -0
- package/assets/video/examples/hf/carousel-orbit-5.html +1198 -0
- package/assets/video/examples/hf/carousel-path-1.html +1219 -0
- package/assets/video/examples/hf/carousel-path-2.html +1176 -0
- package/assets/video/examples/hf/carousel-path-3.html +1190 -0
- package/assets/video/examples/hf/carousel-path-4.html +1219 -0
- package/assets/video/examples/hf/carousel-path-5.html +1218 -0
- package/assets/video/examples/hf/carousel-vision-1.html +1180 -0
- package/assets/video/examples/hf/carousel-vision-2.html +1180 -0
- package/assets/video/examples/hf/carousel-vision-3.html +1180 -0
- package/assets/video/examples/hf/carousel-vision-4.html +1187 -0
- package/assets/video/examples/hf/carousel-vision-5.html +1180 -0
- package/assets/video/examples/hf/char-slam-explode.html +546 -0
- package/assets/video/examples/hf/chart-story.html +973 -0
- package/assets/video/examples/hf/chat-message.html +635 -0
- package/assets/video/examples/hf/chat-thread.html +953 -0
- package/assets/video/examples/hf/chatgpt-exchange.html +1620 -0
- package/assets/video/examples/hf/chromatic-radial-split.html +613 -0
- package/assets/video/examples/hf/chrome-orb.html +258 -0
- package/assets/video/examples/hf/cinemagraph.html +422 -0
- package/assets/video/examples/hf/cinematic-zoom.html +613 -0
- package/assets/video/examples/hf/claude-exchange.html +1845 -0
- package/assets/video/examples/hf/code-3d-extrude.html +755 -0
- package/assets/video/examples/hf/code-diff.html +956 -0
- package/assets/video/examples/hf/code-highlight.html +885 -0
- package/assets/video/examples/hf/code-morph.html +1357 -0
- package/assets/video/examples/hf/code-particle-assemble.html +622 -0
- package/assets/video/examples/hf/code-scroll.html +1700 -0
- package/assets/video/examples/hf/code-shader-dissolve.html +677 -0
- package/assets/video/examples/hf/code-slice-hero.html +1276 -0
- package/assets/video/examples/hf/code-snippet-apple-terminal-pro.html +388 -0
- package/assets/video/examples/hf/code-snippet-dark-2026.html +1231 -0
- package/assets/video/examples/hf/code-snippet-dark-modern.html +1227 -0
- package/assets/video/examples/hf/code-terminal-run.html +766 -0
- package/assets/video/examples/hf/code-typing.html +903 -0
- package/assets/video/examples/hf/color-wheel.html +258 -0
- package/assets/video/examples/hf/colorama-wipe.html +503 -0
- package/assets/video/examples/hf/comparison-split.html +657 -0
- package/assets/video/examples/hf/confetti.html +349 -0
- package/assets/video/examples/hf/conic-progress-ring.html +441 -0
- package/assets/video/examples/hf/constellation-hub.html +662 -0
- package/assets/video/examples/hf/cosmic-orb.html +643 -0
- package/assets/video/examples/hf/count-up.html +552 -0
- package/assets/video/examples/hf/cross-warp-morph.html +624 -0
- package/assets/video/examples/hf/cta-close.html +492 -0
- package/assets/video/examples/hf/cta-lockup.html +470 -0
- package/assets/video/examples/hf/cuboid-carousel.html +2385 -0
- package/assets/video/examples/hf/cursor-annotate.html +827 -0
- package/assets/video/examples/hf/cursor-context-menu.html +757 -0
- package/assets/video/examples/hf/cursor-drag-drop.html +656 -0
- package/assets/video/examples/hf/cursor-glyph-trail.html +904 -0
- package/assets/video/examples/hf/cursor-marquee-select.html +1266 -0
- package/assets/video/examples/hf/cursor-text-select.html +638 -0
- package/assets/video/examples/hf/cursor-zoom-follow.html +973 -0
- package/assets/video/examples/hf/curtain-reveal.html +590 -0
- package/assets/video/examples/hf/cut-the-curve.html +715 -0
- package/assets/video/examples/hf/dart-cursor.html +863 -0
- package/assets/video/examples/hf/data-chart.html +666 -0
- package/assets/video/examples/hf/decision-tree.html +655 -0
- package/assets/video/examples/hf/decline-chart.html +485 -0
- package/assets/video/examples/hf/device-frame-stage.html +661 -0
- package/assets/video/examples/hf/domain-warp-dissolve.html +627 -0
- package/assets/video/examples/hf/drift-hold.html +392 -0
- package/assets/video/examples/hf/dynamic-grid.html +336 -0
- package/assets/video/examples/hf/echo-smear.html +994 -0
- package/assets/video/examples/hf/echo-trail.html +557 -0
- package/assets/video/examples/hf/editorial-flash-overlay.html +337 -0
- package/assets/video/examples/hf/exploded-stack.html +761 -0
- package/assets/video/examples/hf/extended-keyframe.html +715 -0
- package/assets/video/examples/hf/extruded-logo.html +757 -0
- package/assets/video/examples/hf/facet-morph.html +746 -0
- package/assets/video/examples/hf/fade-through.html +443 -0
- package/assets/video/examples/hf/falling-lines.html +259 -0
- package/assets/video/examples/hf/filmed-screen.html +1065 -0
- package/assets/video/examples/hf/flash-through-white.html +613 -0
- package/assets/video/examples/hf/flowchart-vertical.html +631 -0
- package/assets/video/examples/hf/flowchart.html +630 -0
- package/assets/video/examples/hf/flowing-gradient.html +258 -0
- package/assets/video/examples/hf/focus-blur-resolve.html +321 -0
- package/assets/video/examples/hf/focus-rack.html +542 -0
- package/assets/video/examples/hf/focus-swap.html +496 -0
- package/assets/video/examples/hf/fractal-noise.html +258 -0
- package/assets/video/examples/hf/freeze-frame-dressing.html +357 -0
- package/assets/video/examples/hf/frost.html +258 -0
- package/assets/video/examples/hf/gabor-noise.html +258 -0
- package/assets/video/examples/hf/gallery-tunnel.html +652 -0
- package/assets/video/examples/hf/gesture-tap.html +604 -0
- package/assets/video/examples/hf/glass-hero.html +505 -0
- package/assets/video/examples/hf/glass-shard-title.html +1618 -0
- package/assets/video/examples/hf/glitch.html +613 -0
- package/assets/video/examples/hf/gloss-sweep.html +418 -0
- package/assets/video/examples/hf/godrays.html +257 -0
- package/assets/video/examples/hf/goo.html +258 -0
- package/assets/video/examples/hf/gooey-split.html +1092 -0
- package/assets/video/examples/hf/grain-field.html +377 -0
- package/assets/video/examples/hf/grain-overlay.html +295 -0
- package/assets/video/examples/hf/gravitational-lens.html +612 -0
- package/assets/video/examples/hf/grid-card-assemble.html +671 -0
- package/assets/video/examples/hf/grid-pixelate-wipe.html +314 -0
- package/assets/video/examples/hf/halftone-dissolve.html +696 -0
- package/assets/video/examples/hf/halftone-field.html +598 -0
- package/assets/video/examples/hf/headline-slam.html +455 -0
- package/assets/video/examples/hf/heatmap.html +258 -0
- package/assets/video/examples/hf/heygen-avatar-promo-card.html +627 -0
- package/assets/video/examples/hf/hologram.html +258 -0
- package/assets/video/examples/hf/holographic.html +258 -0
- package/assets/video/examples/hf/hw-arrow.html +835 -0
- package/assets/video/examples/hf/hw-boil.html +632 -0
- package/assets/video/examples/hf/hw-box-label.html +741 -0
- package/assets/video/examples/hf/hw-callout-circle.html +820 -0
- package/assets/video/examples/hf/hw-frame.html +455 -0
- package/assets/video/examples/hf/hw-path-text.html +349 -0
- package/assets/video/examples/hf/hw-pipeline.html +472 -0
- package/assets/video/examples/hf/hw-scribble-transition.html +291 -0
- package/assets/video/examples/hf/hw-text-cloud.html +439 -0
- package/assets/video/examples/hf/hw-title.html +412 -0
- package/assets/video/examples/hf/hw-underline.html +403 -0
- package/assets/video/examples/hf/hw-write-title.html +1389 -0
- package/assets/video/examples/hf/icon-morph-beat.html +463 -0
- package/assets/video/examples/hf/icon-swap.html +380 -0
- package/assets/video/examples/hf/ink-bleed-reveal.html +659 -0
- package/assets/video/examples/hf/inline-highlight.html +322 -0
- package/assets/video/examples/hf/input-feedback.html +419 -0
- package/assets/video/examples/hf/instagram-follow.html +460 -0
- package/assets/video/examples/hf/ios26-liquid-glass.html +1597 -0
- package/assets/video/examples/hf/iris-reveal.html +684 -0
- package/assets/video/examples/hf/keyframe-scrub-stack.html +326 -0
- package/assets/video/examples/hf/kinetic-center-build.html +538 -0
- package/assets/video/examples/hf/kinetic-type-swap.html +610 -0
- package/assets/video/examples/hf/kinetic-type.html +862 -0
- package/assets/video/examples/hf/lens-flare.html +258 -0
- package/assets/video/examples/hf/light-edge.html +259 -0
- package/assets/video/examples/hf/light-leak.html +612 -0
- package/assets/video/examples/hf/light-sweep-pass.html +684 -0
- package/assets/video/examples/hf/line-by-line-slide.html +345 -0
- package/assets/video/examples/hf/line-swap.html +526 -0
- package/assets/video/examples/hf/liquid-glass-notification.html +1898 -0
- package/assets/video/examples/hf/liquid-glass-widgets.html +2175 -0
- package/assets/video/examples/hf/liquid-metal.html +259 -0
- package/assets/video/examples/hf/locked-nucleus-orbit.html +564 -0
- package/assets/video/examples/hf/logo-brand-close.html +598 -0
- package/assets/video/examples/hf/logo-outro.html +397 -0
- package/assets/video/examples/hf/logo-sting.html +378 -0
- package/assets/video/examples/hf/logo-wall.html +502 -0
- package/assets/video/examples/hf/lottie-character-walk.html +407 -0
- package/assets/video/examples/hf/lt-accent-underline.html +247 -0
- package/assets/video/examples/hf/lt-bold-block.html +249 -0
- package/assets/video/examples/hf/lt-clean-bar.html +251 -0
- package/assets/video/examples/hf/lt-color-block.html +241 -0
- package/assets/video/examples/hf/lt-dark-card.html +251 -0
- package/assets/video/examples/hf/lt-kicker-name.html +254 -0
- package/assets/video/examples/hf/lt-mask-reveal.html +260 -0
- package/assets/video/examples/hf/lt-neon-border.html +604 -0
- package/assets/video/examples/hf/lt-side-rule.html +254 -0
- package/assets/video/examples/hf/lt-soft-pill.html +259 -0
- package/assets/video/examples/hf/lt-stack-bars.html +249 -0
- package/assets/video/examples/hf/macos-notification.html +372 -0
- package/assets/video/examples/hf/macos-tahoe-liquid-glass.html +1701 -0
- package/assets/video/examples/hf/magnetic-cursor.html +684 -0
- package/assets/video/examples/hf/marble.html +257 -0
- package/assets/video/examples/hf/marker-checklist-card.html +727 -0
- package/assets/video/examples/hf/marker-highlight.html +589 -0
- package/assets/video/examples/hf/match-cut.html +505 -0
- package/assets/video/examples/hf/matrix-decode.html +363 -0
- package/assets/video/examples/hf/menu-morph.html +420 -0
- package/assets/video/examples/hf/mesh-gradient-bg.html +329 -0
- package/assets/video/examples/hf/mesh-gradient.html +257 -0
- package/assets/video/examples/hf/message-thread-reveal.html +1913 -0
- package/assets/video/examples/hf/micro-transitions.html +631 -0
- package/assets/video/examples/hf/mk-background.html +376 -0
- package/assets/video/examples/hf/mk-callout-highlight.html +322 -0
- package/assets/video/examples/hf/mk-clone-wall-transition.html +364 -0
- package/assets/video/examples/hf/mk-emphasis-type.html +235 -0
- package/assets/video/examples/hf/mk-line-graph.html +432 -0
- package/assets/video/examples/hf/mk-placeholder-grid.html +373 -0
- package/assets/video/examples/hf/mk-progress-stat.html +324 -0
- package/assets/video/examples/hf/mk-specs-list.html +362 -0
- package/assets/video/examples/hf/mk-usage-arc.html +297 -0
- package/assets/video/examples/hf/modal-morph.html +727 -0
- package/assets/video/examples/hf/morph-swap.html +590 -0
- package/assets/video/examples/hf/morph-text.html +409 -0
- package/assets/video/examples/hf/multi-device-splay.html +934 -0
- package/assets/video/examples/hf/multiplayer-cursors.html +642 -0
- package/assets/video/examples/hf/native-notification-pop.html +670 -0
- package/assets/video/examples/hf/nebula.html +258 -0
- package/assets/video/examples/hf/news-ticker.html +548 -0
- package/assets/video/examples/hf/north-korea-locked-down.html +447 -0
- package/assets/video/examples/hf/notes-reveal.html +2028 -0
- package/assets/video/examples/hf/notes-typing.html +631 -0
- package/assets/video/examples/hf/notification-cascade.html +740 -0
- package/assets/video/examples/hf/notification-pileup.html +667 -0
- package/assets/video/examples/hf/notification-stack.html +610 -0
- package/assets/video/examples/hf/number-pop-in.html +362 -0
- package/assets/video/examples/hf/number-wheel.html +378 -0
- package/assets/video/examples/hf/nyc-paris-flight.html +659 -0
- package/assets/video/examples/hf/nyt-graph.html +715 -0
- package/assets/video/examples/hf/obsidian.html +258 -0
- package/assets/video/examples/hf/offset-path-traveler.html +511 -0
- package/assets/video/examples/hf/onboarding-stepper-flow.html +292 -0
- package/assets/video/examples/hf/orbit-card.html +2457 -0
- package/assets/video/examples/hf/ordered-dither-pass.html +753 -0
- package/assets/video/examples/hf/organic-light-leak-overlay.html +336 -0
- package/assets/video/examples/hf/oscilloscope-trace.html +718 -0
- package/assets/video/examples/hf/outline-draw.html +394 -0
- package/assets/video/examples/hf/oversized-cursor.html +851 -0
- package/assets/video/examples/hf/overwhelm-surround.html +557 -0
- package/assets/video/examples/hf/page-slide.html +377 -0
- package/assets/video/examples/hf/pan-stations.html +555 -0
- package/assets/video/examples/hf/panel-reveal.html +370 -0
- package/assets/video/examples/hf/paper-collage-reveal.html +737 -0
- package/assets/video/examples/hf/parallax-device-dive.html +647 -0
- package/assets/video/examples/hf/parallax-unzoom.html +499 -0
- package/assets/video/examples/hf/parallax-zoom.html +515 -0
- package/assets/video/examples/hf/particle-image-reveal.html +595 -0
- package/assets/video/examples/hf/particle-text-dissolve.html +615 -0
- package/assets/video/examples/hf/path-traced-3d.html +508 -0
- package/assets/video/examples/hf/pendulum-swing.html +364 -0
- package/assets/video/examples/hf/per-word-crossfade.html +398 -0
- package/assets/video/examples/hf/per-word-rise.html +556 -0
- package/assets/video/examples/hf/perspective-marquee.html +366 -0
- package/assets/video/examples/hf/physical-exit.html +459 -0
- package/assets/video/examples/hf/plasma.html +258 -0
- package/assets/video/examples/hf/plastic.html +258 -0
- package/assets/video/examples/hf/play-mode.html +1035 -0
- package/assets/video/examples/hf/press-ripple.html +675 -0
- package/assets/video/examples/hf/prism.html +258 -0
- package/assets/video/examples/hf/product-promo.html +1311 -0
- package/assets/video/examples/hf/product-turntable.html +4569 -0
- package/assets/video/examples/hf/pull-back-reveal.html +546 -0
- package/assets/video/examples/hf/pull-to-refresh.html +861 -0
- package/assets/video/examples/hf/push-in.html +379 -0
- package/assets/video/examples/hf/rack-focus.html +779 -0
- package/assets/video/examples/hf/radial-surround.html +653 -0
- package/assets/video/examples/hf/reddit-post.html +515 -0
- package/assets/video/examples/hf/rgb-glitch-text.html +353 -0
- package/assets/video/examples/hf/ridged-burn.html +624 -0
- package/assets/video/examples/hf/ripple-waves.html +613 -0
- package/assets/video/examples/hf/ripples.html +259 -0
- package/assets/video/examples/hf/rubber-band-bumper.html +534 -0
- package/assets/video/examples/hf/scan-band.html +415 -0
- package/assets/video/examples/hf/scramble-reveal.html +510 -0
- package/assets/video/examples/hf/screen-flow-carousel.html +779 -0
- package/assets/video/examples/hf/scroll-camera-story.html +988 -0
- package/assets/video/examples/hf/scroll-feed.html +602 -0
- package/assets/video/examples/hf/sdf-iris.html +613 -0
- package/assets/video/examples/hf/segmentation-flood.html +748 -0
- package/assets/video/examples/hf/separator.html +620 -0
- package/assets/video/examples/hf/settings-toggle-flow.html +286 -0
- package/assets/video/examples/hf/share-sheet-carousel.html +591 -0
- package/assets/video/examples/hf/shared-axis-y.html +370 -0
- package/assets/video/examples/hf/shared-axis-z.html +514 -0
- package/assets/video/examples/hf/sheet-spring-up.html +681 -0
- package/assets/video/examples/hf/shimmer-sweep.html +301 -0
- package/assets/video/examples/hf/signup-flow.html +276 -0
- package/assets/video/examples/hf/sine-wave.html +258 -0
- package/assets/video/examples/hf/skeleton-reveal.html +373 -0
- package/assets/video/examples/hf/slack-notification-ad.html +901 -0
- package/assets/video/examples/hf/slit-scan-reveal.html +540 -0
- package/assets/video/examples/hf/slot-machine-roll.html +391 -0
- package/assets/video/examples/hf/snow.html +499 -0
- package/assets/video/examples/hf/social-proof-card.html +534 -0
- package/assets/video/examples/hf/soft-blur-in.html +322 -0
- package/assets/video/examples/hf/spain-map.html +583 -0
- package/assets/video/examples/hf/spiral-galaxy.html +507 -0
- package/assets/video/examples/hf/spiral.html +258 -0
- package/assets/video/examples/hf/split-flap-board.html +537 -0
- package/assets/video/examples/hf/split-tilt-cards.html +775 -0
- package/assets/video/examples/hf/spotify-card.html +470 -0
- package/assets/video/examples/hf/spotlight-card.html +328 -0
- package/assets/video/examples/hf/spring-pop.html +406 -0
- package/assets/video/examples/hf/spring-stack-shuffle.html +791 -0
- package/assets/video/examples/hf/stagger-cascade.html +465 -0
- package/assets/video/examples/hf/stagger-lattice.html +278 -0
- package/assets/video/examples/hf/staggered-fade-up.html +368 -0
- package/assets/video/examples/hf/star-rating-fill.html +511 -0
- package/assets/video/examples/hf/starfield.html +450 -0
- package/assets/video/examples/hf/state-chip-rail.html +585 -0
- package/assets/video/examples/hf/sticky-mock-swap.html +664 -0
- package/assets/video/examples/hf/stitched-text-draw.html +1053 -0
- package/assets/video/examples/hf/stop-motion-cadence.html +670 -0
- package/assets/video/examples/hf/store-badge-lockup.html +521 -0
- package/assets/video/examples/hf/strands.html +258 -0
- package/assets/video/examples/hf/streaming-text.html +581 -0
- package/assets/video/examples/hf/strikethrough-replace.html +356 -0
- package/assets/video/examples/hf/stripes.html +258 -0
- package/assets/video/examples/hf/success-check.html +390 -0
- package/assets/video/examples/hf/sun-burst.html +258 -0
- package/assets/video/examples/hf/svg-line-draw-loader.html +257 -0
- package/assets/video/examples/hf/svg-mask-reveal.html +523 -0
- package/assets/video/examples/hf/svg-stroke-trace.html +465 -0
- package/assets/video/examples/hf/swipe-rail.html +564 -0
- package/assets/video/examples/hf/swirl-vortex.html +623 -0
- package/assets/video/examples/hf/swirl.html +258 -0
- package/assets/video/examples/hf/swiss-grid.html +837 -0
- package/assets/video/examples/hf/tabs-slide-indicator.html +424 -0
- package/assets/video/examples/hf/telemetry-hud.html +760 -0
- package/assets/video/examples/hf/terminal-simulator.html +293 -0
- package/assets/video/examples/hf/testimonial-card.html +545 -0
- package/assets/video/examples/hf/testimonial-proof-card.html +720 -0
- package/assets/video/examples/hf/text-match-cut.html +1345 -0
- package/assets/video/examples/hf/text-shimmer.html +394 -0
- package/assets/video/examples/hf/text-stagger.html +373 -0
- package/assets/video/examples/hf/text-state-swap.html +421 -0
- package/assets/video/examples/hf/thermal-distortion.html +624 -0
- package/assets/video/examples/hf/thin-film.html +258 -0
- package/assets/video/examples/hf/thread-message-stack.html +377 -0
- package/assets/video/examples/hf/three-orbiting-cards.html +322 -0
- package/assets/video/examples/hf/ticker-takeover.html +534 -0
- package/assets/video/examples/hf/tiktok-follow.html +435 -0
- package/assets/video/examples/hf/tilt-card.html +406 -0
- package/assets/video/examples/hf/titlecard-calm.html +388 -0
- package/assets/video/examples/hf/titlecard-lockup.html +546 -0
- package/assets/video/examples/hf/toggle-flip.html +601 -0
- package/assets/video/examples/hf/top-down-letters.html +326 -0
- package/assets/video/examples/hf/torn-paper-rip.html +762 -0
- package/assets/video/examples/hf/touch-indicator.html +777 -0
- package/assets/video/examples/hf/tracing-beam.html +608 -0
- package/assets/video/examples/hf/tracking-in.html +317 -0
- package/assets/video/examples/hf/transitions-3d.html +434 -0
- package/assets/video/examples/hf/transitions-blur.html +524 -0
- package/assets/video/examples/hf/transitions-cover.html +508 -0
- package/assets/video/examples/hf/transitions-destruction.html +551 -0
- package/assets/video/examples/hf/transitions-dissolve.html +529 -0
- package/assets/video/examples/hf/transitions-distortion.html +522 -0
- package/assets/video/examples/hf/transitions-grid.html +442 -0
- package/assets/video/examples/hf/transitions-light.html +528 -0
- package/assets/video/examples/hf/transitions-mechanical.html +560 -0
- package/assets/video/examples/hf/transitions-other.html +532 -0
- package/assets/video/examples/hf/transitions-push.html +520 -0
- package/assets/video/examples/hf/transitions-radial.html +492 -0
- package/assets/video/examples/hf/transitions-scale.html +487 -0
- package/assets/video/examples/hf/trust-strip.html +445 -0
- package/assets/video/examples/hf/typed-prompt.html +619 -0
- package/assets/video/examples/hf/typewriter.html +350 -0
- package/assets/video/examples/hf/typing-indicator.html +702 -0
- package/assets/video/examples/hf/ui-3d-reveal.html +2929 -0
- package/assets/video/examples/hf/ui-focus-zoom.html +786 -0
- package/assets/video/examples/hf/us-map-bubble.html +669 -0
- package/assets/video/examples/hf/us-map-flow.html +621 -0
- package/assets/video/examples/hf/us-map-hex.html +733 -0
- package/assets/video/examples/hf/us-map.html +591 -0
- package/assets/video/examples/hf/variable-font-flex.html +538 -0
- package/assets/video/examples/hf/vector-editor-rig.html +977 -0
- package/assets/video/examples/hf/vfx-anamorphic-flare.html +572 -0
- package/assets/video/examples/hf/vfx-iphone-device.html +1089 -0
- package/assets/video/examples/hf/vfx-liquid-background.html +1479 -0
- package/assets/video/examples/hf/vfx-liquid-glass.html +2054 -0
- package/assets/video/examples/hf/vfx-magnetic.html +660 -0
- package/assets/video/examples/hf/vfx-portal.html +1090 -0
- package/assets/video/examples/hf/vfx-shatter.html +1382 -0
- package/assets/video/examples/hf/vignette.html +385 -0
- package/assets/video/examples/hf/voronoi.html +258 -0
- package/assets/video/examples/hf/vox-annotate.html +707 -0
- package/assets/video/examples/hf/vpn-youtube-spot.html +1118 -0
- package/assets/video/examples/hf/water.html +258 -0
- package/assets/video/examples/hf/waveform.html +258 -0
- package/assets/video/examples/hf/week-in-merges.html +673 -0
- package/assets/video/examples/hf/weight-wave.html +531 -0
- package/assets/video/examples/hf/whip-pan-cut.html +668 -0
- package/assets/video/examples/hf/whip-pan.html +613 -0
- package/assets/video/examples/hf/whiteboard-ink.html +763 -0
- package/assets/video/examples/hf/wireframe-portal-title.html +3840 -0
- package/assets/video/examples/hf/wordmark-tiles.html +559 -0
- package/assets/video/examples/hf/world-map.html +623 -0
- package/assets/video/examples/hf/worley-noise.html +259 -0
- package/assets/video/examples/hf/x-follow-card.html +286 -0
- package/assets/video/examples/hf/x-post.html +611 -0
- package/assets/video/examples/hf/yt-camera-move.html +308 -0
- package/assets/video/examples/hf/yt-circle-pointer.html +301 -0
- package/assets/video/examples/hf/yt-comment-card.html +458 -0
- package/assets/video/examples/hf/yt-feather-highlight.html +279 -0
- package/assets/video/examples/hf/yt-lcd-background.html +446 -0
- package/assets/video/examples/hf/yt-logo-intro.html +390 -0
- package/assets/video/examples/hf/yt-lower-third.html +414 -0
- package/assets/video/examples/hf/yt-prism-title.html +343 -0
- package/assets/video/examples/hf/yt-screen-warp.html +257 -0
- package/assets/video/examples/hf/yt-vertical-fill.html +367 -0
- package/assets/video/examples/kinetic-type.html +137 -0
- package/assets/video/examples/motion-blur-streak.html +119 -0
- package/assets/video/examples/object-reveal.html +107 -0
- package/assets/video/examples/parallax-layers.html +130 -0
- package/assets/video/examples/particle-burst.html +157 -0
- package/assets/video/examples/pen-draw.html +146 -0
- package/assets/video/examples/shape-morph.html +151 -0
- package/assets/video/examples/slam-title.html +125 -0
- package/assets/video/examples/speed-lines.html +123 -0
- package/assets/video/examples/spring-pop.html +129 -0
- package/assets/video/examples/streak-wipe.html +78 -0
- package/assets/video/examples/three-chrome-knot.html +155 -0
- package/assets/video/examples/three-clay.html +138 -0
- package/assets/video/examples/three-cube-wave.html +140 -0
- package/assets/video/examples/three-extruded-shape.html +148 -0
- package/assets/video/examples/type-on.html +128 -0
- package/assets/video/motion.js +991 -0
- package/assets/video/screen.js +298 -0
- package/assets/video/sfx/catalogue.json +2283 -0
- package/dist/cli.js +38185 -3485
- package/dist/index.js +37910 -3428
- package/dist/types/args.d.ts +2 -0
- package/dist/types/broken-pipe.d.ts +13 -0
- package/dist/types/cloud/service.d.ts +13 -0
- package/dist/types/commands/usage.d.ts +2 -0
- package/dist/types/commands/video.d.ts +10 -0
- package/dist/types/core/error-text.d.ts +26 -0
- package/dist/types/core/errors.d.ts +5 -3
- package/dist/types/core/image-info.d.ts +1 -1
- package/dist/types/core/image.d.ts +3 -5
- package/dist/types/core/project.d.ts +8 -7
- package/dist/types/core/util.d.ts +1 -2
- package/dist/types/cpu-budget.d.ts +43 -0
- package/dist/types/credentials.d.ts +0 -10
- package/dist/types/editor/http-types.d.ts +1 -0
- package/dist/types/i18n.d.ts +11 -0
- package/dist/types/images/batch-jobs.d.ts +2 -0
- package/dist/types/images/batch-run.d.ts +2 -1
- package/dist/types/images/jobs.d.ts +7 -0
- package/dist/types/images/pending.d.ts +40 -0
- package/dist/types/images/retry.d.ts +4 -1
- package/dist/types/images/run.d.ts +9 -1
- package/dist/types/main.d.ts +4 -1
- package/dist/types/node-runtime.d.ts +6 -1
- package/dist/types/profile.d.ts +2 -0
- package/dist/types/providers/api-errors.d.ts +2 -2
- package/dist/types/providers/api.d.ts +13 -5
- package/dist/types/providers/base.d.ts +2 -0
- package/dist/types/providers/cli-generate.d.ts +5 -1
- package/dist/types/providers/cli-pending.d.ts +24 -0
- package/dist/types/providers/errors.d.ts +7 -2
- package/dist/types/providers/ledger.d.ts +10 -6
- package/dist/types/providers/popost-async.d.ts +35 -0
- package/dist/types/providers/popost-tasks.d.ts +16 -5
- package/dist/types/providers/popost-validate.d.ts +0 -1
- package/dist/types/providers/popost.d.ts +16 -1
- package/dist/types/providers/task.d.ts +43 -0
- package/dist/types/render/audit-script.d.ts +2 -1
- package/dist/types/render/audit.d.ts +2 -0
- package/dist/types/render/browser.d.ts +16 -2
- package/dist/types/runtime.d.ts +73 -2
- package/dist/types/version.d.ts +1 -1
- package/dist/types/video/align/index.d.ts +43 -0
- package/dist/types/video/capture/director.d.ts +70 -0
- package/dist/types/video/capture/index.d.ts +141 -0
- package/dist/types/video/capture/stage.d.ts +99 -0
- package/dist/types/video/capture/steps.d.ts +138 -0
- package/dist/types/video/commands/cast.d.ts +3 -0
- package/dist/types/video/commands/clips.d.ts +2 -0
- package/dist/types/video/commands/compare-scope.d.ts +7 -0
- package/dist/types/video/commands/credits.d.ts +19 -0
- package/dist/types/video/commands/elements.d.ts +22 -0
- package/dist/types/video/commands/eval.d.ts +2 -0
- package/dist/types/video/commands/example.d.ts +1 -0
- package/dist/types/video/commands/generate.d.ts +14 -0
- package/dist/types/video/commands/loop-shared.d.ts +12 -0
- package/dist/types/video/commands/loop.d.ts +4 -0
- package/dist/types/video/commands/make.d.ts +9 -0
- package/dist/types/video/commands/materials.d.ts +1 -0
- package/dist/types/video/commands/measure.d.ts +2 -0
- package/dist/types/video/commands/media.d.ts +2 -0
- package/dist/types/video/commands/music-plan.d.ts +1 -0
- package/dist/types/video/commands/music.d.ts +2 -0
- package/dist/types/video/commands/read.d.ts +19 -0
- package/dist/types/video/commands/replication.d.ts +2 -0
- package/dist/types/video/commands/sfx-extract.d.ts +2 -0
- package/dist/types/video/commands/sfx-place.d.ts +3 -0
- package/dist/types/video/commands/sfx.d.ts +2 -0
- package/dist/types/video/commands/shared.d.ts +39 -0
- package/dist/types/video/commands/source.d.ts +2 -0
- package/dist/types/video/commands/speech-check.d.ts +1 -0
- package/dist/types/video/commands/speech-kind.d.ts +6 -0
- package/dist/types/video/commands/template.d.ts +10 -0
- package/dist/types/video/commands/voice-profile.d.ts +2 -0
- package/dist/types/video/commands/voice-sample.d.ts +1 -0
- package/dist/types/video/compile/footage.d.ts +36 -0
- package/dist/types/video/compile/index.d.ts +30 -0
- package/dist/types/video/compile/page-bundle.d.ts +1 -0
- package/dist/types/video/compile/page.d.ts +10 -0
- package/dist/types/video/compile/words.d.ts +9 -0
- package/dist/types/video/describe/aim.d.ts +20 -0
- package/dist/types/video/describe/beats.d.ts +53 -0
- package/dist/types/video/describe/curves.d.ts +27 -0
- package/dist/types/video/describe/frames.d.ts +62 -0
- package/dist/types/video/describe/index.d.ts +34 -0
- package/dist/types/video/describe/inset.d.ts +83 -0
- package/dist/types/video/describe/kind.d.ts +29 -0
- package/dist/types/video/describe/known.d.ts +31 -0
- package/dist/types/video/describe/movement.d.ts +17 -0
- package/dist/types/video/describe/parts.d.ts +50 -0
- package/dist/types/video/describe/paths.d.ts +21 -0
- package/dist/types/video/describe/speech-kind.d.ts +144 -0
- package/dist/types/video/describe/unrecovered.d.ts +29 -0
- package/dist/types/video/draft/build.d.ts +34 -0
- package/dist/types/video/draft/export.d.ts +19 -0
- package/dist/types/video/draft/lifecycle.d.ts +9 -0
- package/dist/types/video/draft/native.d.ts +27 -0
- package/dist/types/video/draft/schema.d.ts +316 -0
- package/dist/types/video/draft/targets.d.ts +19 -0
- package/dist/types/video/elements/caption-reading.d.ts +9 -0
- package/dist/types/video/elements/caption-roles.d.ts +6 -0
- package/dist/types/video/elements/carry.d.ts +45 -0
- package/dist/types/video/elements/check.d.ts +14 -0
- package/dist/types/video/elements/findings.d.ts +49 -0
- package/dist/types/video/elements/main.d.ts +54 -0
- package/dist/types/video/elements/picture.d.ts +31 -0
- package/dist/types/video/elements/questions.d.ts +35 -0
- package/dist/types/video/elements/read.d.ts +14 -0
- package/dist/types/video/elements/status.d.ts +23 -0
- package/dist/types/video/elements/types.d.ts +120 -0
- package/dist/types/video/eval/contrast.d.ts +136 -0
- package/dist/types/video/eval/dataset.d.ts +21 -0
- package/dist/types/video/eval/floor.d.ts +27 -0
- package/dist/types/video/eval/ledger.d.ts +27 -0
- package/dist/types/video/eval/legibility.d.ts +33 -0
- package/dist/types/video/eval/readback-frames.d.ts +41 -0
- package/dist/types/video/eval/readback-run.d.ts +54 -0
- package/dist/types/video/eval/readback.d.ts +48 -0
- package/dist/types/video/eval/roundtrip.d.ts +71 -0
- package/dist/types/video/generate/approved.d.ts +74 -0
- package/dist/types/video/generate/cast.d.ts +56 -0
- package/dist/types/video/generate/character.d.ts +14 -0
- package/dist/types/video/generate/clip-sound.d.ts +63 -0
- package/dist/types/video/generate/cloud-image.d.ts +12 -0
- package/dist/types/video/generate/cloud.d.ts +67 -0
- package/dist/types/video/generate/dialogue.d.ts +116 -0
- package/dist/types/video/generate/index.d.ts +265 -0
- package/dist/types/video/generate/provenance.d.ts +11 -0
- package/dist/types/video/generate/speech-lock.d.ts +4 -0
- package/dist/types/video/generate/speech.d.ts +20 -0
- package/dist/types/video/host.d.ts +42 -0
- package/dist/types/video/hosted-api.d.ts +161 -0
- package/dist/types/video/look/index.d.ts +67 -0
- package/dist/types/video/look/like.d.ts +18 -0
- package/dist/types/video/look/sheets.d.ts +58 -0
- package/dist/types/video/measure/align.d.ts +33 -0
- package/dist/types/video/measure/amount.d.ts +52 -0
- package/dist/types/video/measure/bars.d.ts +22 -0
- package/dist/types/video/measure/boundaries.d.ts +18 -0
- package/dist/types/video/measure/cache.d.ts +6 -0
- package/dist/types/video/measure/camera.d.ts +21 -0
- package/dist/types/video/measure/colour.d.ts +12 -0
- package/dist/types/video/measure/curve.d.ts +29 -0
- package/dist/types/video/measure/cuts.d.ts +17 -0
- package/dist/types/video/measure/easing.d.ts +52 -0
- package/dist/types/video/measure/fill.d.ts +20 -0
- package/dist/types/video/measure/fits.d.ts +80 -0
- package/dist/types/video/measure/gradual.d.ts +23 -0
- package/dist/types/video/measure/index.d.ts +28 -0
- package/dist/types/video/measure/kinds.d.ts +71 -0
- package/dist/types/video/measure/motion.d.ts +26 -0
- package/dist/types/video/measure/move.d.ts +90 -0
- package/dist/types/video/measure/moves.d.ts +22 -0
- package/dist/types/video/measure/orientation.d.ts +11 -0
- package/dist/types/video/measure/pixels.d.ts +41 -0
- package/dist/types/video/measure/profile.d.ts +53 -0
- package/dist/types/video/measure/reveal.d.ts +48 -0
- package/dist/types/video/measure/rhythm.d.ts +7 -0
- package/dist/types/video/measure/robust.d.ts +18 -0
- package/dist/types/video/measure/signals.d.ts +48 -0
- package/dist/types/video/measure/signature.d.ts +10 -0
- package/dist/types/video/measure/span.d.ts +28 -0
- package/dist/types/video/measure/still-shots.d.ts +40 -0
- package/dist/types/video/measure/switch.d.ts +101 -0
- package/dist/types/video/measure/tracks.d.ts +20 -0
- package/dist/types/video/measure/unmix.d.ts +20 -0
- package/dist/types/video/media/decode.d.ts +59 -0
- package/dist/types/video/media/ffmpeg.d.ts +48 -0
- package/dist/types/video/media/footage.d.ts +53 -0
- package/dist/types/video/media/screenshot.d.ts +26 -0
- package/dist/types/video/media/selection.d.ts +4 -0
- package/dist/types/video/media/wav.d.ts +26 -0
- package/dist/types/video/music/hosted.d.ts +110 -0
- package/dist/types/video/music/plan.d.ts +103 -0
- package/dist/types/video/music/provenance.d.ts +86 -0
- package/dist/types/video/page/apply.d.ts +9 -0
- package/dist/types/video/page/contract.d.ts +150 -0
- package/dist/types/video/page/css.d.ts +9 -0
- package/dist/types/video/page/dom.d.ts +51 -0
- package/dist/types/video/page/fit.d.ts +13 -0
- package/dist/types/video/page/layout.d.ts +8 -0
- package/dist/types/video/page/main.d.ts +1 -0
- package/dist/types/video/page/scene.d.ts +38 -0
- package/dist/types/video/page/texts.d.ts +10 -0
- package/dist/types/video/page/words.d.ts +39 -0
- package/dist/types/video/paid-download.d.ts +19 -0
- package/dist/types/video/plan/ask.d.ts +77 -0
- package/dist/types/video/plan/generated.d.ts +29 -0
- package/dist/types/video/plan/index.d.ts +6 -0
- package/dist/types/video/plan/materials.d.ts +22 -0
- package/dist/types/video/plan/model.d.ts +59 -0
- package/dist/types/video/plan/prompt.d.ts +41 -0
- package/dist/types/video/plan/see.d.ts +35 -0
- package/dist/types/video/presets/camera.d.ts +27 -0
- package/dist/types/video/presets/easing.d.ts +11 -0
- package/dist/types/video/presets/fill.d.ts +16 -0
- package/dist/types/video/presets/loop.d.ts +20 -0
- package/dist/types/video/presets/motion.d.ts +47 -0
- package/dist/types/video/presets/spoken.d.ts +35 -0
- package/dist/types/video/presets/text-styles.d.ts +44 -0
- package/dist/types/video/presets/transition.d.ts +66 -0
- package/dist/types/video/preview/cloud.d.ts +13 -0
- package/dist/types/video/preview/edit/check.d.ts +15 -0
- package/dist/types/video/preview/edit/editor.d.ts +52 -0
- package/dist/types/video/preview/edit/ops.d.ts +52 -0
- package/dist/types/video/preview/edit/render.d.ts +11 -0
- package/dist/types/video/preview/edit/retime.d.ts +2 -0
- package/dist/types/video/preview/edit/routes.d.ts +1106 -0
- package/dist/types/video/preview/export-settings.d.ts +25 -0
- package/dist/types/video/preview/files.d.ts +25 -0
- package/dist/types/video/preview/html.d.ts +9 -0
- package/dist/types/video/preview/index.d.ts +20 -0
- package/dist/types/video/preview/project.d.ts +48 -0
- package/dist/types/video/preview/protocol.d.ts +91 -0
- package/dist/types/video/preview/server.d.ts +21 -0
- package/dist/types/video/preview/shell/app.d.ts +81 -0
- package/dist/types/video/preview/shell/dom.d.ts +40 -0
- package/dist/types/video/preview/shell/edit/controller.d.ts +32 -0
- package/dist/types/video/preview/shell/edit/fields.d.ts +49 -0
- package/dist/types/video/preview/shell/edit/form-parts.d.ts +17 -0
- package/dist/types/video/preview/shell/edit/form.d.ts +17 -0
- package/dist/types/video/preview/shell/edit/inline.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/lanes-edit.d.ts +31 -0
- package/dist/types/video/preview/shell/edit/layer-order.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/remove.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/reveal.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/scenes.d.ts +7 -0
- package/dist/types/video/preview/shell/edit/schema.d.ts +30 -0
- package/dist/types/video/preview/shell/edit/source.d.ts +83 -0
- package/dist/types/video/preview/shell/edit/split.d.ts +8 -0
- package/dist/types/video/preview/shell/edit/stage-edit.d.ts +21 -0
- package/dist/types/video/preview/shell/edit/text-fit.d.ts +4 -0
- package/dist/types/video/preview/shell/edit/toolbar.d.ts +14 -0
- package/dist/types/video/preview/shell/footage.d.ts +6 -0
- package/dist/types/video/preview/shell/i18n.d.ts +176 -0
- package/dist/types/video/preview/shell/lanes.d.ts +2 -0
- package/dist/types/video/preview/shell/main.d.ts +1 -0
- package/dist/types/video/preview/shell/model.d.ts +85 -0
- package/dist/types/video/preview/shell/panel.d.ts +3 -0
- package/dist/types/video/preview/shell/readonly.d.ts +1 -0
- package/dist/types/video/preview/shell/stage.d.ts +7 -0
- package/dist/types/video/preview/shell/studio/audio.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/cloud.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/code.d.ts +6 -0
- package/dist/types/video/preview/shell/studio/copy.d.ts +159 -0
- package/dist/types/video/preview/shell/studio/draft-result.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/export.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/scene-selection.d.ts +19 -0
- package/dist/types/video/preview/shell/studio/sidebar.d.ts +27 -0
- package/dist/types/video/preview/shell/studio/style.d.ts +2 -0
- package/dist/types/video/preview/shell/studio/timeline.d.ts +3 -0
- package/dist/types/video/preview/shell/studio/ui.d.ts +16 -0
- package/dist/types/video/preview/shell/studio/workspace.d.ts +11 -0
- package/dist/types/video/preview/shell/style.d.ts +5 -0
- package/dist/types/video/preview/shell/transport.d.ts +6 -0
- package/dist/types/video/preview/shell-bundle.d.ts +1 -0
- package/dist/types/video/preview/studio-actions.d.ts +4 -0
- package/dist/types/video/preview/studio-data.d.ts +32 -0
- package/dist/types/video/preview/thumbnails.d.ts +5 -0
- package/dist/types/video/preview/watch.d.ts +23 -0
- package/dist/types/video/progress.d.ts +28 -0
- package/dist/types/video/project/check-camera.d.ts +8 -0
- package/dist/types/video/project/check-caption.d.ts +8 -0
- package/dist/types/video/project/check-common.d.ts +25 -0
- package/dist/types/video/project/check-footage.d.ts +22 -0
- package/dist/types/video/project/check-look.d.ts +19 -0
- package/dist/types/video/project/check-sound.d.ts +54 -0
- package/dist/types/video/project/check-span.d.ts +11 -0
- package/dist/types/video/project/check-tracks.d.ts +8 -0
- package/dist/types/video/project/check-transition.d.ts +11 -0
- package/dist/types/video/project/check-words.d.ts +32 -0
- package/dist/types/video/project/check.d.ts +42 -0
- package/dist/types/video/project/issues.d.ts +43 -0
- package/dist/types/video/project/schema.d.ts +2074 -0
- package/dist/types/video/project/suggest.d.ts +4 -0
- package/dist/types/video/project/words.d.ts +6 -0
- package/dist/types/video/render/browser-step.d.ts +5 -0
- package/dist/types/video/render/encode.d.ts +49 -0
- package/dist/types/video/render/index.d.ts +90 -0
- package/dist/types/video/render/layout.d.ts +26 -0
- package/dist/types/video/render/record.d.ts +80 -0
- package/dist/types/video/render/session.d.ts +64 -0
- package/dist/types/video/render/verify.d.ts +16 -0
- package/dist/types/video/replication/audio-provenance.d.ts +36 -0
- package/dist/types/video/replication/browser.d.ts +1 -0
- package/dist/types/video/replication/check.d.ts +19 -0
- package/dist/types/video/replication/contract.d.ts +683 -0
- package/dist/types/video/replication/io.d.ts +22 -0
- package/dist/types/video/replication/motion-bundle.d.ts +1 -0
- package/dist/types/video/replication/motion.d.ts +109 -0
- package/dist/types/video/replication/pairs.d.ts +69 -0
- package/dist/types/video/replication/prefill.d.ts +34 -0
- package/dist/types/video/replication/production.d.ts +163 -0
- package/dist/types/video/replication/revision.d.ts +2 -0
- package/dist/types/video/replication/schema.d.ts +56 -0
- package/dist/types/video/replication/source-clock.d.ts +24 -0
- package/dist/types/video/replication/speech-observed.d.ts +121 -0
- package/dist/types/video/replication/voice-spans.d.ts +3 -0
- package/dist/types/video/retarget/caption-look.d.ts +14 -0
- package/dist/types/video/retarget/fps.d.ts +7 -0
- package/dist/types/video/retarget/index.d.ts +248 -0
- package/dist/types/video/retarget/items.d.ts +44 -0
- package/dist/types/video/retarget/marks.d.ts +12 -0
- package/dist/types/video/retarget/pace.d.ts +36 -0
- package/dist/types/video/retarget/speak.d.ts +41 -0
- package/dist/types/video/retarget/tempo.d.ts +40 -0
- package/dist/types/video/retarget/titles.d.ts +76 -0
- package/dist/types/video/retarget/words.d.ts +39 -0
- package/dist/types/video/scene/author.d.ts +74 -0
- package/dist/types/video/scene/check.d.ts +64 -0
- package/dist/types/video/scene/copied.d.ts +30 -0
- package/dist/types/video/scene/cues.d.ts +40 -0
- package/dist/types/video/scene/examples.d.ts +129 -0
- package/dist/types/video/scene/findings.d.ts +71 -0
- package/dist/types/video/scene/fonts.d.ts +19 -0
- package/dist/types/video/scene/items.d.ts +23 -0
- package/dist/types/video/scene/library.d.ts +41 -0
- package/dist/types/video/scene/lint.d.ts +15 -0
- package/dist/types/video/scene/numbers.d.ts +39 -0
- package/dist/types/video/scene/pictures.d.ts +12 -0
- package/dist/types/video/scene/write.d.ts +41 -0
- package/dist/types/video/score/index.d.ts +13 -0
- package/dist/types/video/score/pair.d.ts +43 -0
- package/dist/types/video/score/picture.d.ts +14 -0
- package/dist/types/video/score/project-windows.d.ts +9 -0
- package/dist/types/video/score/shot-transition.d.ts +62 -0
- package/dist/types/video/score/shots.d.ts +101 -0
- package/dist/types/video/score/time.d.ts +22 -0
- package/dist/types/video/score/tracks.d.ts +42 -0
- package/dist/types/video/score/weights.d.ts +19 -0
- package/dist/types/video/sfx/cache.d.ts +16 -0
- package/dist/types/video/sfx/catalogue.d.ts +64 -0
- package/dist/types/video/sfx/extract.d.ts +65 -0
- package/dist/types/video/sfx/levels.d.ts +39 -0
- package/dist/types/video/sfx/library.d.ts +26 -0
- package/dist/types/video/sfx/place.d.ts +82 -0
- package/dist/types/video/sfx/project.d.ts +36 -0
- package/dist/types/video/sound/analysis.d.ts +46 -0
- package/dist/types/video/sound/breaks.d.ts +84 -0
- package/dist/types/video/sound/measure.d.ts +106 -0
- package/dist/types/video/sound/modes.d.ts +75 -0
- package/dist/types/video/sound/pcm.d.ts +21 -0
- package/dist/types/video/sound/reading.d.ts +124 -0
- package/dist/types/video/sound/speech-check.d.ts +76 -0
- package/dist/types/video/source/collect.d.ts +64 -0
- package/dist/types/video/source/read.d.ts +57 -0
- package/dist/types/video/source/used.d.ts +4 -0
- package/dist/types/video/speech/hosted.d.ts +36 -0
- package/dist/types/video/speech/index.d.ts +83 -0
- package/dist/types/video/speech/types.d.ts +41 -0
- package/dist/types/video/submit-retry.d.ts +15 -0
- package/dist/types/video/synth/generate.d.ts +53 -0
- package/dist/types/video/synth/truth.d.ts +8 -0
- package/dist/types/video/synth/write.d.ts +13 -0
- package/dist/types/video/template/capacity.d.ts +37 -0
- package/dist/types/video/template/card-elements.d.ts +17 -0
- package/dist/types/video/template/card.d.ts +22 -0
- package/dist/types/video/template/check-captions.d.ts +11 -0
- package/dist/types/video/template/check.d.ts +40 -0
- package/dist/types/video/template/facts.d.ts +90 -0
- package/dist/types/video/template/fill.d.ts +51 -0
- package/dist/types/video/template/fingerprint.d.ts +2 -0
- package/dist/types/video/template/fit.d.ts +60 -0
- package/dist/types/video/template/index.d.ts +8 -0
- package/dist/types/video/template/project.d.ts +21 -0
- package/dist/types/video/template/save.d.ts +52 -0
- package/dist/types/video/template/slots.d.ts +26 -0
- package/dist/types/video/template/speech-rules.d.ts +61 -0
- package/dist/types/video/template/split.d.ts +10 -0
- package/dist/types/video/template/structure.d.ts +81 -0
- package/dist/types/video/template/swap.d.ts +33 -0
- package/dist/types/video/template/types.d.ts +387 -0
- package/dist/types/video/text/bar.d.ts +63 -0
- package/dist/types/video/text/change.d.ts +19 -0
- package/dist/types/video/text/core.d.ts +25 -0
- package/dist/types/video/text/cues.d.ts +26 -0
- package/dist/types/video/text/fold.d.ts +9 -0
- package/dist/types/video/text/frame.d.ts +41 -0
- package/dist/types/video/text/highlight.d.ts +19 -0
- package/dist/types/video/text/index.d.ts +67 -0
- package/dist/types/video/text/letters.d.ts +85 -0
- package/dist/types/video/text/look.d.ts +53 -0
- package/dist/types/video/text/reader-command.d.ts +26 -0
- package/dist/types/video/text/reveal.d.ts +37 -0
- package/dist/types/video/text/rings.d.ts +39 -0
- package/dist/types/video/text/shadow.d.ts +44 -0
- package/dist/types/video/text/share.d.ts +2 -0
- package/dist/types/video/text/speech.d.ts +15 -0
- package/dist/types/video/text/strokes.d.ts +30 -0
- package/dist/types/video/text/types.d.ts +147 -0
- package/dist/types/video/timeline/cue-words.d.ts +27 -0
- package/dist/types/video/timeline/footage.d.ts +25 -0
- package/dist/types/video/timeline/frame.d.ts +55 -0
- package/dist/types/video/timeline/items.d.ts +28 -0
- package/dist/types/video/timeline/mix.d.ts +67 -0
- package/dist/types/video/timeline/resolve.d.ts +20 -0
- package/dist/types/video/timeline/spans.d.ts +32 -0
- package/dist/types/video/timeline/words.d.ts +64 -0
- package/dist/types/video/tool.d.ts +29 -0
- package/dist/types/video/types.d.ts +1057 -0
- package/dist/types/video/voice/create.d.ts +43 -0
- package/dist/types/video/voice/hosted.d.ts +36 -0
- package/dist/types/video/voice/index.d.ts +61 -0
- package/dist/types/video/voice/pace.d.ts +37 -0
- package/dist/types/video/voice/profile.d.ts +26 -0
- package/dist/types/video/voice/sample.d.ts +46 -0
- package/dist/types/video/wallet.d.ts +38 -0
- package/dist/types/video/work.d.ts +10 -0
- package/dist/types/workflow/build.d.ts +1 -1
- package/dist/types/workflow/errors.d.ts +1 -1
- package/dist/types/workflow/io.d.ts +1 -1
- package/dist/types/workflow/post-bundle.d.ts +8 -3
- package/dist/types/workflow/series-plan.d.ts +5 -2
- package/dist/types/workflow/template-plugins.d.ts +0 -8
- package/package.json +13 -4
- package/references/image-workflow.md +111 -0
- package/references/onboarding.md +50 -19
- package/references/post-bundle.md +2 -2
- package/references/providers.md +6 -3
- package/references/video-draft-export.md +13 -0
- package/references/video-editing.md +43 -0
- package/references/video-effects.md +605 -0
- package/references/video-elements.md +199 -0
- package/references/video-examples/showcase/assets/pattern.svg +18 -0
- package/references/video-examples/showcase/assets/voice.sbg +4 -0
- package/references/video-examples/showcase/assets/voice.words.json +68 -0
- package/references/video-examples/showcase/video.json +550 -0
- package/references/video-examples/template-demo/TEMPLATE.md +30 -0
- package/references/video-examples/template-demo/fill.json +29 -0
- package/references/video-examples/template-demo/slots.json +210 -0
- package/references/video-examples/template-demo/template.json +105 -0
- package/references/video-motion.md +315 -0
- package/references/video-native-observation.md +37 -0
- package/references/video-performers.md +86 -0
- package/references/video-project.md +63 -0
- package/references/video-replication.md +276 -0
- package/references/video-scenes.md +366 -0
- package/references/video-sfx.md +109 -0
- package/references/video-sound.md +207 -0
- package/references/video-templates.md +177 -0
- package/references/video-tools.md +560 -0
- package/references/video.md +756 -0
- package/templates/community/README.md +274 -1
- package/templates/community/index.json +3829 -0
- package/templates/community/instagram-age-expectations/README.md +14 -0
- package/templates/community/instagram-age-expectations/SKILL.md +52 -0
- package/templates/community/instagram-age-expectations/source.json +9 -0
- package/templates/community/instagram-age-expectations/template.json +53 -0
- package/templates/community/instagram-artwork-detail/README.md +19 -0
- package/templates/community/instagram-artwork-detail/SKILL.md +53 -0
- package/templates/community/instagram-artwork-detail/source.json +9 -0
- package/templates/community/instagram-artwork-detail/template.json +61 -0
- package/templates/community/instagram-balanced-traits/README.md +12 -0
- package/templates/community/instagram-balanced-traits/SKILL.md +52 -0
- package/templates/community/instagram-balanced-traits/source.json +9 -0
- package/templates/community/instagram-balanced-traits/template.json +53 -0
- package/templates/community/instagram-behind-the-scenes/README.md +12 -0
- package/templates/community/instagram-behind-the-scenes/SKILL.md +53 -0
- package/templates/community/instagram-behind-the-scenes/source.json +9 -0
- package/templates/community/instagram-behind-the-scenes/template.json +52 -0
- package/templates/community/instagram-brand-personification/README.md +26 -0
- package/templates/community/instagram-brand-personification/SKILL.md +53 -0
- package/templates/community/instagram-brand-personification/source.json +9 -0
- package/templates/community/instagram-brand-personification/template.json +66 -0
- package/templates/community/instagram-brand-system/README.md +17 -0
- package/templates/community/instagram-brand-system/SKILL.md +53 -0
- package/templates/community/instagram-brand-system/source.json +9 -0
- package/templates/community/instagram-brand-system/template.json +60 -0
- package/templates/community/instagram-calendar-cheat-sheet/README.md +8 -0
- package/templates/community/instagram-calendar-cheat-sheet/SKILL.md +53 -0
- package/templates/community/instagram-calendar-cheat-sheet/source.json +9 -0
- package/templates/community/instagram-calendar-cheat-sheet/template.json +47 -0
- package/templates/community/instagram-capacity-planning/README.md +12 -0
- package/templates/community/instagram-capacity-planning/SKILL.md +53 -0
- package/templates/community/instagram-capacity-planning/source.json +9 -0
- package/templates/community/instagram-capacity-planning/template.json +55 -0
- package/templates/community/instagram-category-use-guide/README.md +14 -0
- package/templates/community/instagram-category-use-guide/SKILL.md +53 -0
- package/templates/community/instagram-category-use-guide/source.json +9 -0
- package/templates/community/instagram-category-use-guide/template.json +55 -0
- package/templates/community/instagram-character-led-tour/README.md +17 -0
- package/templates/community/instagram-character-led-tour/SKILL.md +53 -0
- package/templates/community/instagram-character-led-tour/source.json +9 -0
- package/templates/community/instagram-character-led-tour/template.json +56 -0
- package/templates/community/instagram-comic-dialogue/README.md +16 -0
- package/templates/community/instagram-comic-dialogue/SKILL.md +53 -0
- package/templates/community/instagram-comic-dialogue/source.json +9 -0
- package/templates/community/instagram-comic-dialogue/template.json +59 -0
- package/templates/community/instagram-command-shortcuts/README.md +13 -0
- package/templates/community/instagram-command-shortcuts/SKILL.md +53 -0
- package/templates/community/instagram-command-shortcuts/source.json +9 -0
- package/templates/community/instagram-command-shortcuts/template.json +52 -0
- package/templates/community/instagram-context-changes-meaning/README.md +11 -0
- package/templates/community/instagram-context-changes-meaning/SKILL.md +53 -0
- package/templates/community/instagram-context-changes-meaning/source.json +9 -0
- package/templates/community/instagram-context-changes-meaning/template.json +54 -0
- package/templates/community/instagram-continuous-canvas/README.md +16 -0
- package/templates/community/instagram-continuous-canvas/SKILL.md +52 -0
- package/templates/community/instagram-continuous-canvas/source.json +9 -0
- package/templates/community/instagram-continuous-canvas/template.json +59 -0
- package/templates/community/instagram-conversation-questions/README.md +12 -0
- package/templates/community/instagram-conversation-questions/SKILL.md +52 -0
- package/templates/community/instagram-conversation-questions/source.json +9 -0
- package/templates/community/instagram-conversation-questions/template.json +51 -0
- package/templates/community/instagram-copy-alternatives/README.md +11 -0
- package/templates/community/instagram-copy-alternatives/SKILL.md +53 -0
- package/templates/community/instagram-copy-alternatives/source.json +9 -0
- package/templates/community/instagram-copy-alternatives/template.json +50 -0
- package/templates/community/instagram-copyable-notes/README.md +13 -0
- package/templates/community/instagram-copyable-notes/SKILL.md +52 -0
- package/templates/community/instagram-copyable-notes/source.json +9 -0
- package/templates/community/instagram-copyable-notes/template.json +51 -0
- package/templates/community/instagram-curated-resources/README.md +13 -0
- package/templates/community/instagram-curated-resources/SKILL.md +52 -0
- package/templates/community/instagram-curated-resources/source.json +9 -0
- package/templates/community/instagram-curated-resources/template.json +54 -0
- package/templates/community/instagram-destination-costs/README.md +17 -0
- package/templates/community/instagram-destination-costs/SKILL.md +52 -0
- package/templates/community/instagram-destination-costs/source.json +9 -0
- package/templates/community/instagram-destination-costs/template.json +56 -0
- package/templates/community/instagram-diagram-reference/README.md +10 -0
- package/templates/community/instagram-diagram-reference/SKILL.md +53 -0
- package/templates/community/instagram-diagram-reference/source.json +9 -0
- package/templates/community/instagram-diagram-reference/template.json +52 -0
- package/templates/community/instagram-different-perspectives/README.md +15 -0
- package/templates/community/instagram-different-perspectives/SKILL.md +53 -0
- package/templates/community/instagram-different-perspectives/source.json +9 -0
- package/templates/community/instagram-different-perspectives/template.json +55 -0
- package/templates/community/instagram-document-reveal/README.md +8 -0
- package/templates/community/instagram-document-reveal/SKILL.md +53 -0
- package/templates/community/instagram-document-reveal/source.json +9 -0
- package/templates/community/instagram-document-reveal/template.json +46 -0
- package/templates/community/instagram-effect-breakdown/README.md +14 -0
- package/templates/community/instagram-effect-breakdown/SKILL.md +53 -0
- package/templates/community/instagram-effect-breakdown/source.json +9 -0
- package/templates/community/instagram-effect-breakdown/template.json +55 -0
- package/templates/community/instagram-effort-and-outcome/README.md +13 -0
- package/templates/community/instagram-effort-and-outcome/SKILL.md +52 -0
- package/templates/community/instagram-effort-and-outcome/source.json +9 -0
- package/templates/community/instagram-effort-and-outcome/template.json +54 -0
- package/templates/community/instagram-emotion-and-meaning/README.md +16 -0
- package/templates/community/instagram-emotion-and-meaning/SKILL.md +52 -0
- package/templates/community/instagram-emotion-and-meaning/source.json +9 -0
- package/templates/community/instagram-emotion-and-meaning/template.json +56 -0
- package/templates/community/instagram-everyday-interface-story/README.md +12 -0
- package/templates/community/instagram-everyday-interface-story/SKILL.md +53 -0
- package/templates/community/instagram-everyday-interface-story/source.json +9 -0
- package/templates/community/instagram-everyday-interface-story/template.json +51 -0
- package/templates/community/instagram-everyday-photo-diary/README.md +16 -0
- package/templates/community/instagram-everyday-photo-diary/SKILL.md +52 -0
- package/templates/community/instagram-everyday-photo-diary/source.json +9 -0
- package/templates/community/instagram-everyday-photo-diary/template.json +61 -0
- package/templates/community/instagram-evidence-to-method/README.md +13 -0
- package/templates/community/instagram-evidence-to-method/SKILL.md +53 -0
- package/templates/community/instagram-evidence-to-method/source.json +9 -0
- package/templates/community/instagram-evidence-to-method/template.json +56 -0
- package/templates/community/instagram-expectation-reality-review/README.md +18 -0
- package/templates/community/instagram-expectation-reality-review/SKILL.md +53 -0
- package/templates/community/instagram-expectation-reality-review/source.json +9 -0
- package/templates/community/instagram-expectation-reality-review/template.json +57 -0
- package/templates/community/instagram-experiment-story/README.md +20 -0
- package/templates/community/instagram-experiment-story/SKILL.md +54 -0
- package/templates/community/instagram-experiment-story/source.json +9 -0
- package/templates/community/instagram-experiment-story/template.json +58 -0
- package/templates/community/instagram-fill-in-speech/README.md +14 -0
- package/templates/community/instagram-fill-in-speech/SKILL.md +53 -0
- package/templates/community/instagram-fill-in-speech/source.json +9 -0
- package/templates/community/instagram-fill-in-speech/template.json +53 -0
- package/templates/community/instagram-fill-in-workbook/README.md +16 -0
- package/templates/community/instagram-fill-in-workbook/SKILL.md +53 -0
- package/templates/community/instagram-fill-in-workbook/source.json +9 -0
- package/templates/community/instagram-fill-in-workbook/template.json +57 -0
- package/templates/community/instagram-font-pairing/README.md +14 -0
- package/templates/community/instagram-font-pairing/SKILL.md +52 -0
- package/templates/community/instagram-font-pairing/source.json +9 -0
- package/templates/community/instagram-font-pairing/template.json +53 -0
- package/templates/community/instagram-goal-benchmarks/README.md +12 -0
- package/templates/community/instagram-goal-benchmarks/SKILL.md +53 -0
- package/templates/community/instagram-goal-benchmarks/source.json +9 -0
- package/templates/community/instagram-goal-benchmarks/template.json +51 -0
- package/templates/community/instagram-identity-match/README.md +19 -0
- package/templates/community/instagram-identity-match/SKILL.md +52 -0
- package/templates/community/instagram-identity-match/source.json +9 -0
- package/templates/community/instagram-identity-match/template.json +64 -0
- package/templates/community/instagram-illustrated-opinion/README.md +16 -0
- package/templates/community/instagram-illustrated-opinion/SKILL.md +52 -0
- package/templates/community/instagram-illustrated-opinion/source.json +9 -0
- package/templates/community/instagram-illustrated-opinion/template.json +56 -0
- package/templates/community/instagram-illustrated-story-explainer/README.md +14 -0
- package/templates/community/instagram-illustrated-story-explainer/SKILL.md +53 -0
- package/templates/community/instagram-illustrated-story-explainer/source.json +9 -0
- package/templates/community/instagram-illustrated-story-explainer/template.json +55 -0
- package/templates/community/instagram-image-to-palette/README.md +17 -0
- package/templates/community/instagram-image-to-palette/SKILL.md +53 -0
- package/templates/community/instagram-image-to-palette/source.json +9 -0
- package/templates/community/instagram-image-to-palette/template.json +58 -0
- package/templates/community/instagram-incremental-assembly/README.md +15 -0
- package/templates/community/instagram-incremental-assembly/SKILL.md +52 -0
- package/templates/community/instagram-incremental-assembly/source.json +9 -0
- package/templates/community/instagram-incremental-assembly/template.json +55 -0
- package/templates/community/instagram-interview-storyboard/README.md +25 -0
- package/templates/community/instagram-interview-storyboard/SKILL.md +53 -0
- package/templates/community/instagram-interview-storyboard/source.json +9 -0
- package/templates/community/instagram-interview-storyboard/template.json +65 -0
- package/templates/community/instagram-launch-news/README.md +9 -0
- package/templates/community/instagram-launch-news/SKILL.md +53 -0
- package/templates/community/instagram-launch-news/source.json +9 -0
- package/templates/community/instagram-launch-news/template.json +55 -0
- package/templates/community/instagram-layout-anatomy/README.md +12 -0
- package/templates/community/instagram-layout-anatomy/SKILL.md +53 -0
- package/templates/community/instagram-layout-anatomy/source.json +9 -0
- package/templates/community/instagram-layout-anatomy/template.json +54 -0
- package/templates/community/instagram-learning-path/README.md +14 -0
- package/templates/community/instagram-learning-path/SKILL.md +53 -0
- package/templates/community/instagram-learning-path/source.json +9 -0
- package/templates/community/instagram-learning-path/template.json +55 -0
- package/templates/community/instagram-local-picks/README.md +16 -0
- package/templates/community/instagram-local-picks/SKILL.md +52 -0
- package/templates/community/instagram-local-picks/source.json +9 -0
- package/templates/community/instagram-local-picks/template.json +55 -0
- package/templates/community/instagram-matched-test/README.md +10 -0
- package/templates/community/instagram-matched-test/SKILL.md +53 -0
- package/templates/community/instagram-matched-test/source.json +9 -0
- package/templates/community/instagram-matched-test/template.json +49 -0
- package/templates/community/instagram-metric-formulas/README.md +15 -0
- package/templates/community/instagram-metric-formulas/SKILL.md +53 -0
- package/templates/community/instagram-metric-formulas/source.json +9 -0
- package/templates/community/instagram-metric-formulas/template.json +55 -0
- package/templates/community/instagram-milestones-and-feelings/README.md +13 -0
- package/templates/community/instagram-milestones-and-feelings/SKILL.md +52 -0
- package/templates/community/instagram-milestones-and-feelings/source.json +9 -0
- package/templates/community/instagram-milestones-and-feelings/template.json +56 -0
- package/templates/community/instagram-mistakes-and-alternatives/README.md +12 -0
- package/templates/community/instagram-mistakes-and-alternatives/SKILL.md +52 -0
- package/templates/community/instagram-mistakes-and-alternatives/source.json +9 -0
- package/templates/community/instagram-mistakes-and-alternatives/template.json +53 -0
- package/templates/community/instagram-myth-and-fact/README.md +12 -0
- package/templates/community/instagram-myth-and-fact/SKILL.md +53 -0
- package/templates/community/instagram-myth-and-fact/source.json +9 -0
- package/templates/community/instagram-myth-and-fact/template.json +51 -0
- package/templates/community/instagram-news-digest/README.md +13 -0
- package/templates/community/instagram-news-digest/SKILL.md +53 -0
- package/templates/community/instagram-news-digest/source.json +9 -0
- package/templates/community/instagram-news-digest/template.json +52 -0
- package/templates/community/instagram-numbers-at-human-scale/README.md +12 -0
- package/templates/community/instagram-numbers-at-human-scale/SKILL.md +53 -0
- package/templates/community/instagram-numbers-at-human-scale/source.json +9 -0
- package/templates/community/instagram-numbers-at-human-scale/template.json +52 -0
- package/templates/community/instagram-object-led-activities/README.md +16 -0
- package/templates/community/instagram-object-led-activities/SKILL.md +53 -0
- package/templates/community/instagram-object-led-activities/source.json +9 -0
- package/templates/community/instagram-object-led-activities/template.json +56 -0
- package/templates/community/instagram-object-name-origins/README.md +11 -0
- package/templates/community/instagram-object-name-origins/SKILL.md +52 -0
- package/templates/community/instagram-object-name-origins/source.json +9 -0
- package/templates/community/instagram-object-name-origins/template.json +52 -0
- package/templates/community/instagram-one-input-many-results/README.md +14 -0
- package/templates/community/instagram-one-input-many-results/SKILL.md +53 -0
- package/templates/community/instagram-one-input-many-results/source.json +9 -0
- package/templates/community/instagram-one-input-many-results/template.json +52 -0
- package/templates/community/instagram-one-variable-comparison/README.md +11 -0
- package/templates/community/instagram-one-variable-comparison/SKILL.md +53 -0
- package/templates/community/instagram-one-variable-comparison/source.json +9 -0
- package/templates/community/instagram-one-variable-comparison/template.json +52 -0
- package/templates/community/instagram-opportunity-guide/README.md +18 -0
- package/templates/community/instagram-opportunity-guide/SKILL.md +53 -0
- package/templates/community/instagram-opportunity-guide/source.json +9 -0
- package/templates/community/instagram-opportunity-guide/template.json +57 -0
- package/templates/community/instagram-palette-application-board/README.md +11 -0
- package/templates/community/instagram-palette-application-board/SKILL.md +52 -0
- package/templates/community/instagram-palette-application-board/source.json +9 -0
- package/templates/community/instagram-palette-application-board/template.json +52 -0
- package/templates/community/instagram-personal-budget-case/README.md +14 -0
- package/templates/community/instagram-personal-budget-case/SKILL.md +53 -0
- package/templates/community/instagram-personal-budget-case/source.json +9 -0
- package/templates/community/instagram-personal-budget-case/template.json +53 -0
- package/templates/community/instagram-personal-experiment/README.md +11 -0
- package/templates/community/instagram-personal-experiment/SKILL.md +53 -0
- package/templates/community/instagram-personal-experiment/source.json +9 -0
- package/templates/community/instagram-personal-experiment/template.json +52 -0
- package/templates/community/instagram-photo-and-technical-sketch/README.md +10 -0
- package/templates/community/instagram-photo-and-technical-sketch/SKILL.md +53 -0
- package/templates/community/instagram-photo-and-technical-sketch/source.json +9 -0
- package/templates/community/instagram-photo-and-technical-sketch/template.json +49 -0
- package/templates/community/instagram-photo-moment-story/README.md +12 -0
- package/templates/community/instagram-photo-moment-story/SKILL.md +53 -0
- package/templates/community/instagram-photo-moment-story/source.json +9 -0
- package/templates/community/instagram-photo-moment-story/template.json +53 -0
- package/templates/community/instagram-product-change/README.md +9 -0
- package/templates/community/instagram-product-change/SKILL.md +53 -0
- package/templates/community/instagram-product-change/source.json +10 -0
- package/templates/community/instagram-product-change/template.json +53 -0
- package/templates/community/instagram-prompt-result-reference/README.md +26 -0
- package/templates/community/instagram-prompt-result-reference/SKILL.md +53 -0
- package/templates/community/instagram-prompt-result-reference/source.json +9 -0
- package/templates/community/instagram-prompt-result-reference/template.json +68 -0
- package/templates/community/instagram-public-follow-up/README.md +15 -0
- package/templates/community/instagram-public-follow-up/SKILL.md +53 -0
- package/templates/community/instagram-public-follow-up/source.json +9 -0
- package/templates/community/instagram-public-follow-up/template.json +54 -0
- package/templates/community/instagram-reader-question-answer/README.md +10 -0
- package/templates/community/instagram-reader-question-answer/SKILL.md +53 -0
- package/templates/community/instagram-reader-question-answer/source.json +9 -0
- package/templates/community/instagram-reader-question-answer/template.json +48 -0
- package/templates/community/instagram-remaining-capacity/README.md +11 -0
- package/templates/community/instagram-remaining-capacity/SKILL.md +52 -0
- package/templates/community/instagram-remaining-capacity/source.json +9 -0
- package/templates/community/instagram-remaining-capacity/template.json +52 -0
- package/templates/community/instagram-research-brief/README.md +16 -0
- package/templates/community/instagram-research-brief/SKILL.md +53 -0
- package/templates/community/instagram-research-brief/source.json +9 -0
- package/templates/community/instagram-research-brief/template.json +54 -0
- package/templates/community/instagram-result-and-recipe/README.md +17 -0
- package/templates/community/instagram-result-and-recipe/SKILL.md +53 -0
- package/templates/community/instagram-result-and-recipe/source.json +9 -0
- package/templates/community/instagram-result-and-recipe/template.json +56 -0
- package/templates/community/instagram-result-to-steps/README.md +13 -0
- package/templates/community/instagram-result-to-steps/SKILL.md +53 -0
- package/templates/community/instagram-result-to-steps/source.json +9 -0
- package/templates/community/instagram-result-to-steps/template.json +51 -0
- package/templates/community/instagram-reverse-instruction/README.md +15 -0
- package/templates/community/instagram-reverse-instruction/SKILL.md +53 -0
- package/templates/community/instagram-reverse-instruction/source.json +9 -0
- package/templates/community/instagram-reverse-instruction/template.json +54 -0
- package/templates/community/instagram-said-and-meant/README.md +9 -0
- package/templates/community/instagram-said-and-meant/SKILL.md +52 -0
- package/templates/community/instagram-said-and-meant/source.json +10 -0
- package/templates/community/instagram-said-and-meant/template.json +46 -0
- package/templates/community/instagram-same-budget-choices/README.md +12 -0
- package/templates/community/instagram-same-budget-choices/SKILL.md +53 -0
- package/templates/community/instagram-same-budget-choices/source.json +9 -0
- package/templates/community/instagram-same-budget-choices/template.json +52 -0
- package/templates/community/instagram-screenshot-walkthrough/README.md +12 -0
- package/templates/community/instagram-screenshot-walkthrough/SKILL.md +53 -0
- package/templates/community/instagram-screenshot-walkthrough/source.json +9 -0
- package/templates/community/instagram-screenshot-walkthrough/template.json +58 -0
- package/templates/community/instagram-searchable-asset-index/README.md +13 -0
- package/templates/community/instagram-searchable-asset-index/SKILL.md +52 -0
- package/templates/community/instagram-searchable-asset-index/source.json +9 -0
- package/templates/community/instagram-searchable-asset-index/template.json +53 -0
- package/templates/community/instagram-similar-concepts/README.md +15 -0
- package/templates/community/instagram-similar-concepts/SKILL.md +52 -0
- package/templates/community/instagram-similar-concepts/source.json +9 -0
- package/templates/community/instagram-similar-concepts/template.json +54 -0
- package/templates/community/instagram-single-event-news/README.md +14 -0
- package/templates/community/instagram-single-event-news/SKILL.md +53 -0
- package/templates/community/instagram-single-event-news/source.json +9 -0
- package/templates/community/instagram-single-event-news/template.json +56 -0
- package/templates/community/instagram-style-assembly/README.md +13 -0
- package/templates/community/instagram-style-assembly/SKILL.md +53 -0
- package/templates/community/instagram-style-assembly/source.json +9 -0
- package/templates/community/instagram-style-assembly/template.json +53 -0
- package/templates/community/instagram-style-choice/README.md +14 -0
- package/templates/community/instagram-style-choice/SKILL.md +53 -0
- package/templates/community/instagram-style-choice/source.json +9 -0
- package/templates/community/instagram-style-choice/template.json +58 -0
- package/templates/community/instagram-symbolism-in-artifact/README.md +9 -0
- package/templates/community/instagram-symbolism-in-artifact/SKILL.md +52 -0
- package/templates/community/instagram-symbolism-in-artifact/source.json +9 -0
- package/templates/community/instagram-symbolism-in-artifact/template.json +47 -0
- package/templates/community/instagram-taste-matched-recommendations/README.md +17 -0
- package/templates/community/instagram-taste-matched-recommendations/SKILL.md +52 -0
- package/templates/community/instagram-taste-matched-recommendations/source.json +9 -0
- package/templates/community/instagram-taste-matched-recommendations/template.json +56 -0
- package/templates/community/instagram-then-now-pairs/README.md +14 -0
- package/templates/community/instagram-then-now-pairs/SKILL.md +52 -0
- package/templates/community/instagram-then-now-pairs/source.json +9 -0
- package/templates/community/instagram-then-now-pairs/template.json +52 -0
- package/templates/community/instagram-timed-action-plan/README.md +15 -0
- package/templates/community/instagram-timed-action-plan/SKILL.md +53 -0
- package/templates/community/instagram-timed-action-plan/source.json +9 -0
- package/templates/community/instagram-timed-action-plan/template.json +60 -0
- package/templates/community/instagram-tools-by-task/README.md +13 -0
- package/templates/community/instagram-tools-by-task/SKILL.md +53 -0
- package/templates/community/instagram-tools-by-task/source.json +9 -0
- package/templates/community/instagram-tools-by-task/template.json +57 -0
- package/templates/community/instagram-two-perspectives/README.md +8 -0
- package/templates/community/instagram-two-perspectives/SKILL.md +52 -0
- package/templates/community/instagram-two-perspectives/source.json +9 -0
- package/templates/community/instagram-two-perspectives/template.json +47 -0
- package/templates/community/instagram-two-views-one-dataset/README.md +8 -0
- package/templates/community/instagram-two-views-one-dataset/SKILL.md +53 -0
- package/templates/community/instagram-two-views-one-dataset/source.json +9 -0
- package/templates/community/instagram-two-views-one-dataset/template.json +51 -0
- package/templates/community/instagram-version-change-audit/README.md +10 -0
- package/templates/community/instagram-version-change-audit/SKILL.md +53 -0
- package/templates/community/instagram-version-change-audit/source.json +9 -0
- package/templates/community/instagram-version-change-audit/template.json +51 -0
- package/templates/community/instagram-visual-analogy/README.md +13 -0
- package/templates/community/instagram-visual-analogy/SKILL.md +53 -0
- package/templates/community/instagram-visual-analogy/source.json +9 -0
- package/templates/community/instagram-visual-analogy/template.json +53 -0
- package/templates/community/instagram-visual-guess/README.md +15 -0
- package/templates/community/instagram-visual-guess/SKILL.md +53 -0
- package/templates/community/instagram-visual-guess/source.json +9 -0
- package/templates/community/instagram-visual-guess/template.json +54 -0
- package/templates/community/instagram-visual-technique-reference/README.md +18 -0
- package/templates/community/instagram-visual-technique-reference/SKILL.md +53 -0
- package/templates/community/instagram-visual-technique-reference/source.json +9 -0
- package/templates/community/instagram-visual-technique-reference/template.json +60 -0
- package/templates/community/instagram-worked-examples/README.md +13 -0
- package/templates/community/instagram-worked-examples/SKILL.md +52 -0
- package/templates/community/instagram-worked-examples/source.json +9 -0
- package/templates/community/instagram-worked-examples/template.json +57 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/water, commit a8332860c396e9224d42b7ea2a9cc8f42918c961.
|
|
4
|
+
Copyright 2026 HeyGen, Inc. Licensed under the Apache License, Version 2.0; the licence text is in the popost
|
|
5
|
+
Skill's THIRD_PARTY_NOTICES. Changed for the popost Skill (tools/video/port-hyperframes.mjs): its comments removed; its WebGPU shader (Water, written at run time by the shaders library, MIT) translated to WebGL2 (tools/video/hyperframes-shaders.json) and drawn from the scene's time; GSAP loaded from the project (../lib/gsap.min.js) instead of a CDN; the 1920x1080 composition scaled into the scene's canvas (parameter "fit"); HyperFrames variables declared as parameters; its root-level clips laid out as HyperFrames lays them out; its clips shown and hidden from the scene's time; sound cues derived from its tweens.
|
|
6
|
+
-->
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="utf-8" />
|
|
10
|
+
<style>
|
|
11
|
+
[data-composition-id="water"] canvas[data-shader] {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
width: 1920px;
|
|
15
|
+
height: 1080px;
|
|
16
|
+
display: block;
|
|
17
|
+
background: #000;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
<style id="popost-fit">
|
|
21
|
+
html, body { margin: 0 !important; width: 1280px; height: 720px; overflow: hidden !important; background: #000000; }
|
|
22
|
+
#popost-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
|
|
23
|
+
</style>
|
|
24
|
+
<script type="application/json" id="popost-params">
|
|
25
|
+
{
|
|
26
|
+
"about": "A sphere of wind-rippled water reflecting a blue sky, on black. A WebGPU shader from the Shaders library (shaders.com, MIT).",
|
|
27
|
+
"class": "background",
|
|
28
|
+
"tags": [
|
|
29
|
+
"webgpu",
|
|
30
|
+
"webgpu-shader",
|
|
31
|
+
"orb",
|
|
32
|
+
"water",
|
|
33
|
+
"material",
|
|
34
|
+
"blue"
|
|
35
|
+
],
|
|
36
|
+
"seconds": 2,
|
|
37
|
+
"params": [
|
|
38
|
+
{
|
|
39
|
+
"name": "fit",
|
|
40
|
+
"type": "choice",
|
|
41
|
+
"default": "contain",
|
|
42
|
+
"options": [
|
|
43
|
+
"contain",
|
|
44
|
+
"cover"
|
|
45
|
+
],
|
|
46
|
+
"what": "how the 1920x1080 composition is fitted into the canvas: whole with bars, or filling it and cropped"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"values": {}
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
<script>
|
|
53
|
+
/* popost: the scene's parameters stand in for HyperFrames variables; random numbers are seeded; the composition is
|
|
54
|
+
scaled into the canvas; clips are shown and hidden from the scene's time. */
|
|
55
|
+
(function () {
|
|
56
|
+
var block = document.getElementById('popost-params');
|
|
57
|
+
var values = block ? (JSON.parse(block.textContent).values || {}) : {};
|
|
58
|
+
var vars = {};
|
|
59
|
+
Object.keys(values).forEach(function (k) { if (k !== 'fit') vars[k] = values[k] === 'true' ? true : values[k] === 'false' ? false : values[k]; });
|
|
60
|
+
window.__hyperframes = { getVariables: function () { return vars; } };
|
|
61
|
+
var seed = 20240229;
|
|
62
|
+
window.__popostRandom = function () { seed = (seed + 0x6d2b79f5) >>> 0; var t = seed; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
|
|
63
|
+
// HyperFrames variables as CSS custom properties (runtime/getVariables.ts, compositionLoader.ts). A mounted
|
|
64
|
+
// composition's host lists its variables (data-popost-variables, written by the port): before the composition's
|
|
65
|
+
// scripts run it gets those no rule gives it yet (an inherited value counts), and after them the rest; a value given
|
|
66
|
+
// by a parameter always wins.
|
|
67
|
+
var cssName = function (id) { return '--' + (String(id).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'node'); };
|
|
68
|
+
var givenId = function (n) { return Object.keys(values).filter(function (id) { return id !== 'fit' && cssName(id) === n; })[0]; };
|
|
69
|
+
var hostVars = function (h, early) {
|
|
70
|
+
(h.getAttribute('data-popost-variables') || '').split(';').forEach(function (d) {
|
|
71
|
+
var i = d.indexOf(':'), n = d.slice(0, i).trim(), k = givenId(n);
|
|
72
|
+
if (i < 0 || !n) return;
|
|
73
|
+
if (k !== undefined) h.style.setProperty(n, String(vars[k]));
|
|
74
|
+
else if (!(h.style.getPropertyValue(n) || (early ? getComputedStyle(h).getPropertyValue(n) : '')).trim()) h.style.setProperty(n, d.slice(i + 1).trim());
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
// Root-level clips laid out as HyperFrames lays them out (runtime/init.ts, applyCompositionSizing and applyClipLayout):
|
|
78
|
+
// its root composition (one marked data-root="true", else the first element with a data-composition-id, which is the
|
|
79
|
+
// page's <html> when that has one) gets its declared size, a position and overflow hidden; each child of it with a
|
|
80
|
+
// data-start is placed absolute unless it is absolute or fixed already, and given its declared size, or 100% where it
|
|
81
|
+
// measures 0. A composition box deeper in the page keeps the position its page gives it.
|
|
82
|
+
var layout = function () {
|
|
83
|
+
var hroot = document.querySelector('[data-composition-id][data-root="true"]') || document.querySelector('[data-composition-id]');
|
|
84
|
+
if (!hroot) return;
|
|
85
|
+
var px = function (v) { var n = parseFloat(v); return isFinite(n) && n > 0 ? n + 'px' : null; };
|
|
86
|
+
var rw = px(hroot.getAttribute('data-width')), rh = px(hroot.getAttribute('data-height'));
|
|
87
|
+
if (rw) { hroot.style.width = rw; hroot.style.setProperty('--comp-width', rw); }
|
|
88
|
+
if (rh) { hroot.style.height = rh; hroot.style.setProperty('--comp-height', rh); }
|
|
89
|
+
if (!hroot.style.position) hroot.style.position = 'relative';
|
|
90
|
+
hroot.style.overflow = 'hidden';
|
|
91
|
+
Array.prototype.forEach.call(hroot.children, function (el) {
|
|
92
|
+
if (/^(SCRIPT|STYLE|LINK|META)$/.test(el.tagName) || !el.hasAttribute('data-start')) return;
|
|
93
|
+
var none = el.style.getPropertyValue('display') === 'none', priority = el.style.getPropertyPriority('display');
|
|
94
|
+
if (none) el.style.removeProperty('display');
|
|
95
|
+
var cs = getComputedStyle(el);
|
|
96
|
+
if (cs.position !== 'absolute' && cs.position !== 'fixed') el.style.position = 'absolute';
|
|
97
|
+
if (el.tagName !== 'AUDIO') {
|
|
98
|
+
var byFile = /^(IMG|VIDEO)$/.test(el.tagName), fw = px(el.getAttribute('data-width')), fh = px(el.getAttribute('data-height'));
|
|
99
|
+
if (fw) { if (!el.style.width && (cs.width === '0px' || cs.width === 'auto')) el.style.width = fw; } else if (!byFile && !el.style.width && cs.width === '0px') el.style.width = '100%';
|
|
100
|
+
if (fh) { if (!el.style.height && (cs.height === '0px' || cs.height === 'auto')) el.style.height = fh; } else if (!byFile && !el.style.height && cs.height === '0px') el.style.height = '100%';
|
|
101
|
+
}
|
|
102
|
+
if (none) el.style.setProperty('display', 'none', priority);
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
// HyperFrames loads a mounted composition after it has laid out the page, so its scripts see the host placed: each
|
|
106
|
+
// script of a mounted composition calls this first (the port puts the call there).
|
|
107
|
+
window.__popostMount = function (script) {
|
|
108
|
+
var h = script && script.closest ? script.closest('[data-popost-host]') : null;
|
|
109
|
+
if (!h || h.__popostMounted) return;
|
|
110
|
+
h.__popostMounted = true;
|
|
111
|
+
layout();
|
|
112
|
+
hostVars(h, true);
|
|
113
|
+
};
|
|
114
|
+
window.__popostFit = function () {
|
|
115
|
+
// The canvas, from the size this file declares: a scene of a later shot loads in a layer that is not displayed, where the page measures 0.
|
|
116
|
+
var size = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
|
|
117
|
+
var W = 1920, H = 1080, s = document.getElementById('popost-stage'), cw = Number(size[1]), ch = Number(size[2]);
|
|
118
|
+
var k = (values.fit === 'cover' ? Math.max : Math.min)(cw / W, ch / H);
|
|
119
|
+
s.style.transform = 'translate(' + (cw - W * k) / 2 + 'px,' + (ch - H * k) / 2 + 'px) scale(' + k + ')';
|
|
120
|
+
// The page's own declared variables on its root element (runtime/getVariables.ts, injectCompositionCssVariables):
|
|
121
|
+
// each default where no rule defines its property, a value given by a parameter always.
|
|
122
|
+
Array.prototype.forEach.call(document.querySelectorAll('[data-popost-host]'), function (h) { hostVars(h, false); });
|
|
123
|
+
layout();
|
|
124
|
+
// Timed elements as HyperFrames has them (runtime/clipTree.ts, clipWindow.ts): every element with a data-start but the
|
|
125
|
+
// root composition, from its start plus the starts of the compositions it sits in, for its data-duration (a
|
|
126
|
+
// composition without one: its timeline's length); one that runs to the end of the root keeps its last frame.
|
|
127
|
+
var root = s.querySelector('[data-composition-id]');
|
|
128
|
+
var clips = Array.prototype.slice.call(s.querySelectorAll('[data-start]')).filter(function (c) { return (root ? c !== root : c.parentNode !== s) && !/^(SCRIPT|STYLE|LINK|META|TEMPLATE|NOSCRIPT)$/.test(c.tagName) && isFinite(parseFloat(c.getAttribute('data-start'))); });
|
|
129
|
+
var windows = clips.map(function (c) {
|
|
130
|
+
var a = parseFloat(c.getAttribute('data-start')), d = parseFloat(c.getAttribute('data-duration')), id = c.getAttribute('data-composition-id');
|
|
131
|
+
for (var p = c.parentElement; p && p !== s; p = p.parentElement) if (p !== root && p.hasAttribute('data-composition-id') && isFinite(parseFloat(p.getAttribute('data-start')))) a += parseFloat(p.getAttribute('data-start'));
|
|
132
|
+
var tl = !(d > 0) && id && window.__timelines && window.__timelines[id];
|
|
133
|
+
return [a, d > 0 ? d : tl && tl.duration ? tl.duration() : Infinity];
|
|
134
|
+
});
|
|
135
|
+
var rootLength = parseFloat(root && root.getAttribute('data-duration'));
|
|
136
|
+
// A mounted composition that starts later in its host runs on its own time.
|
|
137
|
+
[].forEach(function (m) {
|
|
138
|
+
var tl = window.__timelines && window.__timelines[m.id];
|
|
139
|
+
if (tl) window.__timelines[m.id] = { pause: function () { tl.pause(); }, seek: function (t) { tl.seek(Math.max(0, t - m.start)); }, duration: function () { return tl.duration() + m.start; } };
|
|
140
|
+
});
|
|
141
|
+
var scene = (window.__popostScene = window.__popostScene || {}), before = scene.render;
|
|
142
|
+
scene.render = function (seconds, fps) {
|
|
143
|
+
if (before) before(seconds, fps);
|
|
144
|
+
// A page that draws on the HyperFrames seek event gets it for every frame; what it waits for resolves before the frame is taken.
|
|
145
|
+
window.dispatchEvent(new CustomEvent('hf-seek', { detail: { time: seconds, waitUntil: function () {} } }));
|
|
146
|
+
for (var i = 0; i < clips.length; i++) {
|
|
147
|
+
var a = windows[i][0], end = a + windows[i][1];
|
|
148
|
+
clips[i].style.visibility = seconds >= a - 1e-6 && (seconds < end - 1e-6 || end >= rootLength - 1e-6) ? 'visible' : 'hidden';
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
})();
|
|
153
|
+
</script>
|
|
154
|
+
<script type="application/json" id="popost-cues">[]</script>
|
|
155
|
+
</head>
|
|
156
|
+
<body>
|
|
157
|
+
<div id="popost-stage">
|
|
158
|
+
<div
|
|
159
|
+
data-composition-id="water"
|
|
160
|
+
data-start="0"
|
|
161
|
+
data-duration="2"
|
|
162
|
+
data-width="1920"
|
|
163
|
+
data-height="1080"
|
|
164
|
+
|
|
165
|
+
data-no-timeline
|
|
166
|
+
style="position: relative; width: 1920px; height: 1080px; overflow: hidden; background: #000"
|
|
167
|
+
>
|
|
168
|
+
<canvas data-shader="Water" width="1920" height="1080"></canvas>
|
|
169
|
+
</div>
|
|
170
|
+
<script type="application/json" id="popost-shader">{"vert":"#version 300 es\n\nprecision highp float;\nprecision highp int;\n\nstruct fullScreenTriangle_Output {\n vec4 pos;\n vec2 uv;\n};\nsmooth out vec2 _vs2fs_location0;\n\nvoid main() {\n uint vertexIndex = uint(gl_VertexID);\n fullScreenTriangle_Output _tmp_return = fullScreenTriangle_Output(vec4(vec2[3](vec2(-1.0, -1.0), vec2(3.0, -1.0), vec2(-1.0, 3.0))[vertexIndex], 0.0, 1.0), vec2[3](vec2(0.0, 1.0), vec2(2.0, 1.0), vec2(0.0, -1.0))[vertexIndex]);\n gl_Position = _tmp_return.pos;\n _vs2fs_location0 = _tmp_return.uv;\n return;\n}\n\n","frag":"#version 300 es\n\nprecision highp float;\nprecision highp int;\n\nstruct fullScreenTriangle_Output {\n vec4 pos;\n vec2 uv;\n};\nstruct padded {\n float _opacity;\n float _pad0_;\n float _pad1_;\n float _pad2_;\n};\nstruct struct_1_ {\n vec2 center;\n float scale;\n float rotation;\n vec4 waterColor;\n float clarity;\n float depth;\n float shallows;\n float caustics;\n float causticScale;\n float choppiness;\n float waveScale;\n float swirl;\n float speed;\n float reflection;\n float envRotation;\n float sharpness;\n float lightAngle;\n float foam;\n float edgeSoftness;\n float _opacity;\n float _animTime;\n float _vfOriginX;\n float _vfOriginY;\n float _vfSpanX;\n float _vfSpanY;\n float _vfActiveRes;\n float _vfRBound;\n float _saRadius;\n float _saSides;\n float _saRounding;\n float _saInnerRatio;\n float _saRotation;\n float _saHeight;\n float _saOffset;\n float _saAperture;\n};\nstruct struct_2_ {\n float time;\n vec2 viewportSize;\n vec2 logicalViewportSize;\n float aspect;\n vec2 pointer;\n float pointerActive;\n};\nstruct combined {\n padded n_root;\n struct_1_ n_fx;\n struct_2_ _sys;\n};\nstruct KeyLight {\n vec3 L;\n vec3 H;\n};\nstruct final_Input {\n vec2 uv;\n};\nlayout(std140) uniform combined_block_0Fragment { combined _group_0_binding_0_fs; };\n\nuniform highp sampler2D _group_1_binding_0_fs;\n\nsmooth in vec2 _vs2fs_location0;\nout vec4 _fs2p_location0;\n\nvec2 sdfSpaceUV(vec2 center, float scale, float rotation, vec2 uv_1, float aspect) {\n float centerX = center.x;\n float centerY = (1.0 - center.y);\n float dxAc = ((uv_1.x - centerX) * aspect);\n float dy = (uv_1.y - centerY);\n float rotRad = (rotation * 0.017453292);\n float cosR = cos(rotRad);\n float sinR = sin(rotRad);\n float rdx = ((dxAc * cosR) + (dy * sinR));\n float rdy = ((dy * cosR) - (dxAc * sinR));\n return vec2(((rdx / scale) + 0.5), ((rdy / scale) + 0.5));\n}\n\nvec4 fieldSampleArg(vec2 uv_2, highp sampler2D field, float originX, float originY, float spanX, float spanY, float activeResF, float rBound) {\n float uxc = clamp(uv_2.x, originX, (originX + spanX));\n float uyc = clamp(uv_2.y, originY, (originY + spanY));\n float outsideDist = length(vec2((uv_2.x - uxc), (uv_2.y - uyc)));\n float px = ((((uxc - originX) / spanX) * activeResF) - 0.5);\n float py = ((((uyc - originY) / spanY) * activeResF) - 0.5);\n float x0_ = floor(px);\n float y0_ = floor(py);\n float fx = (px - x0_);\n float fy = (py - y0_);\n float tx2_ = (fx * fx);\n float tx3_ = (tx2_ * fx);\n float wx0_ = (((tx3_ * -0.5) + tx2_) - (fx * 0.5));\n float wx1_ = (((tx3_ * 1.5) - (tx2_ * 2.5)) + 1.0);\n float wx2_ = (((tx3_ * -1.5) + (tx2_ * 2.0)) + (fx * 0.5));\n float wx3_ = ((tx3_ * 0.5) - (tx2_ * 0.5));\n float ty2_ = (fy * fy);\n float ty3_ = (ty2_ * fy);\n float wy0_ = (((ty3_ * -0.5) + ty2_) - (fy * 0.5));\n float wy1_ = (((ty3_ * 1.5) - (ty2_ * 2.5)) + 1.0);\n float wy2_ = (((ty3_ * -1.5) + (ty2_ * 2.0)) + (fy * 0.5));\n float wy3_ = ((ty3_ * 0.5) - (ty2_ * 0.5));\n float maxT = (activeResF - 1.0);\n uint cxm = uint(clamp((x0_ - 1.0), 0.0, maxT));\n uint cx0_ = uint(clamp(x0_, 0.0, maxT));\n uint cx1_ = uint(clamp((x0_ + 1.0), 0.0, maxT));\n uint cx2_ = uint(clamp((x0_ + 2.0), 0.0, maxT));\n uint cym = uint(clamp((y0_ - 1.0), 0.0, maxT));\n uint cy0_ = uint(clamp(y0_, 0.0, maxT));\n uint cy1_ = uint(clamp((y0_ + 1.0), 0.0, maxT));\n uint cy2_ = uint(clamp((y0_ + 2.0), 0.0, maxT));\n vec4 k00_ = texelFetch(field, ivec2(uvec2(cxm, cym)), 0);\n vec4 k01_ = texelFetch(field, ivec2(uvec2(cx0_, cym)), 0);\n vec4 k02_ = texelFetch(field, ivec2(uvec2(cx1_, cym)), 0);\n vec4 k03_ = texelFetch(field, ivec2(uvec2(cx2_, cym)), 0);\n vec4 k10_ = texelFetch(field, ivec2(uvec2(cxm, cy0_)), 0);\n vec4 k11_ = texelFetch(field, ivec2(uvec2(cx0_, cy0_)), 0);\n vec4 k12_ = texelFetch(field, ivec2(uvec2(cx1_, cy0_)), 0);\n vec4 k13_ = texelFetch(field, ivec2(uvec2(cx2_, cy0_)), 0);\n vec4 k20_ = texelFetch(field, ivec2(uvec2(cxm, cy1_)), 0);\n vec4 k21_ = texelFetch(field, ivec2(uvec2(cx0_, cy1_)), 0);\n vec4 k22_ = texelFetch(field, ivec2(uvec2(cx1_, cy1_)), 0);\n vec4 k23_ = texelFetch(field, ivec2(uvec2(cx2_, cy1_)), 0);\n vec4 k30_ = texelFetch(field, ivec2(uvec2(cxm, cy2_)), 0);\n vec4 k31_ = texelFetch(field, ivec2(uvec2(cx0_, cy2_)), 0);\n vec4 k32_ = texelFetch(field, ivec2(uvec2(cx1_, cy2_)), 0);\n vec4 k33_ = texelFetch(field, ivec2(uvec2(cx2_, cy2_)), 0);\n float rAcc = (((((((((((((((((k00_.x * wx0_) * wy0_) + ((k01_.x * wx1_) * wy0_)) + ((k02_.x * wx2_) * wy0_)) + ((k03_.x * wx3_) * wy0_)) + ((k10_.x * wx0_) * wy1_)) + ((k11_.x * wx1_) * wy1_)) + ((k12_.x * wx2_) * wy1_)) + ((k13_.x * wx3_) * wy1_)) + ((k20_.x * wx0_) * wy2_)) + ((k21_.x * wx1_) * wy2_)) + ((k22_.x * wx2_) * wy2_)) + ((k23_.x * wx3_) * wy2_)) + ((k30_.x * wx0_) * wy3_)) + ((k31_.x * wx1_) * wy3_)) + ((k32_.x * wx2_) * wy3_)) + ((k33_.x * wx3_) * wy3_));\n float aAcc = (((((((((((((((((k00_.w * wx0_) * wy0_) + ((k01_.w * wx1_) * wy0_)) + ((k02_.w * wx2_) * wy0_)) + ((k03_.w * wx3_) * wy0_)) + ((k10_.w * wx0_) * wy1_)) + ((k11_.w * wx1_) * wy1_)) + ((k12_.w * wx2_) * wy1_)) + ((k13_.w * wx3_) * wy1_)) + ((k20_.w * wx0_) * wy2_)) + ((k21_.w * wx1_) * wy2_)) + ((k22_.w * wx2_) * wy2_)) + ((k23_.w * wx3_) * wy2_)) + ((k30_.w * wx0_) * wy3_)) + ((k31_.w * wx1_) * wy3_)) + ((k32_.w * wx2_) * wy3_)) + ((k33_.w * wx3_) * wy3_));\n vec4 bl = mix(mix(k11_, k12_, fx), mix(k21_, k22_, fx), fy);\n float rMin = min(min(k11_.x, k12_.x), min(k21_.x, k22_.x));\n float rMax = max(max(k11_.x, k12_.x), max(k21_.x, k22_.x));\n float aMin = min(min(k11_.w, k12_.w), min(k21_.w, k22_.w));\n float aMax = max(max(k11_.w, k12_.w), max(k21_.w, k22_.w));\n float aOut = clamp(aAcc, aMin, aMax);\n float rNear = (clamp(rAcc, rMin, rMax) + outsideDist);\n float rCircle = (length(vec2((uv_2.x - 0.5), (uv_2.y - 0.5))) - rBound);\n float rOut = mix(rNear, max(rCircle, rNear), smoothstep(0.0, 0.25, outsideDist));\n return vec4(rOut, bl.y, bl.z, aOut);\n}\n\nbool outsideShape(float sdf, float pxH) {\n return (sdf > (pxH * 2.0));\n}\n\nfloat opticalThickness(float sdf_1, float volumetric) {\n float thickVol = clamp(((sdf_1 * -1.0) * 2.0), 0.0, 1.2);\n float thickFlat = (clamp((sdf_1 * -1.0), 0.0, 0.5) * 2.0);\n return ((volumetric > 0.5) ? thickVol : thickFlat);\n}\n\nvec3 beerLambert(float thickness, vec3 absorb) {\n return vec3(exp(((thickness * absorb.x) * -1.0)), exp(((thickness * absorb.y) * -1.0)), exp(((thickness * absorb.z) * -1.0)));\n}\n\nvec4 fieldSampleFastArg(vec2 uv_3, highp sampler2D field_1, float originX_1, float originY_1, float spanX_1, float spanY_1, float activeResF_1, float rBound_1) {\n float uxc_1 = clamp(uv_3.x, originX_1, (originX_1 + spanX_1));\n float uyc_1 = clamp(uv_3.y, originY_1, (originY_1 + spanY_1));\n float outsideDist_1 = length(vec2((uv_3.x - uxc_1), (uv_3.y - uyc_1)));\n float px_1 = ((((uxc_1 - originX_1) / spanX_1) * activeResF_1) - 0.5);\n float py_1 = ((((uyc_1 - originY_1) / spanY_1) * activeResF_1) - 0.5);\n float x0_1 = floor(px_1);\n float y0_1 = floor(py_1);\n float fx_1 = (px_1 - x0_1);\n float fy_1 = (py_1 - y0_1);\n float maxT_1 = (activeResF_1 - 1.0);\n uint cx0_1 = uint(clamp(x0_1, 0.0, maxT_1));\n uint cx1_1 = uint(clamp((x0_1 + 1.0), 0.0, maxT_1));\n uint cy0_1 = uint(clamp(y0_1, 0.0, maxT_1));\n uint cy1_1 = uint(clamp((y0_1 + 1.0), 0.0, maxT_1));\n vec4 t00_ = texelFetch(field_1, ivec2(uvec2(cx0_1, cy0_1)), 0);\n vec4 t10_ = texelFetch(field_1, ivec2(uvec2(cx1_1, cy0_1)), 0);\n vec4 t01_ = texelFetch(field_1, ivec2(uvec2(cx0_1, cy1_1)), 0);\n vec4 t11_ = texelFetch(field_1, ivec2(uvec2(cx1_1, cy1_1)), 0);\n vec4 bl_1 = mix(mix(t00_, t10_, fx_1), mix(t01_, t11_, fx_1), fy_1);\n float rNear_1 = (bl_1.x + outsideDist_1);\n float rCircle_1 = (length(vec2((uv_3.x - 0.5), (uv_3.y - 0.5))) - rBound_1);\n float rOut_1 = mix(rNear_1, max(rCircle_1, rNear_1), smoothstep(0.0, 0.25, outsideDist_1));\n return vec4(rOut_1, bl_1.y, bl_1.z, bl_1.w);\n}\n\nvec2 offsetUV(vec2 uv_4, float ox, float oy) {\n return vec2((uv_4.x + ox), (uv_4.y + oy));\n}\n\nvec3 volumetricNormal(vec4 surf0_, vec4 surfX, vec4 surfY, float eps, float gradClamp) {\n float ddx = clamp(((surfX.w - surf0_.w) / eps), (gradClamp * -1.0), gradClamp);\n float ddy = clamp(((surfY.w - surf0_.w) / eps), (gradClamp * -1.0), gradClamp);\n return normalize(vec3(ddx, ddy, -1.0));\n}\n\nvec2 patternCoords(vec2 sdfUV, vec4 surf0_1, float volumetric_1) {\n return vec2(((volumetric_1 > 0.5) ? surf0_1.y : (sdfUV.x - 0.5)), ((volumetric_1 > 0.5) ? surf0_1.z : (sdfUV.y - 0.5)));\n}\n\nvec2 flowWarpOffset(vec2 warpInput, float flowT) {\n float wx = (sin((((warpInput.x * 1.7) + (flowT * 0.7)) + 1.7)) * cos((((warpInput.y * 1.3) + (flowT * 0.5)) + 2.3)));\n float wy = (cos((((warpInput.x * 1.4) + (flowT * 0.9)) + 8.7)) * sin((((warpInput.y * 1.6) + (flowT * 0.6)) + 5.1)));\n return vec2(wx, wy);\n}\n\nfloat mxFade(float t) {\n return (((t * t) * t) * ((t * ((t * 6.0) - 15.0)) + 10.0));\n}\n\nuint mxRotl32_(uint x, int k) {\n return ((x \u003c\u003c uint(k)) | (x >> uint((32 - k))));\n}\n\nuint mxBjfinal(uint a0_, uint b0_, uint c0_) {\n uint a = 0u;\n uint b = 0u;\n uint c = 0u;\n a = a0_;\n b = b0_;\n c = c0_;\n uint _e6 = c;\n uint _e7 = b;\n c = (_e6 ^ _e7);\n uint _e9 = c;\n uint _e10 = b;\n uint _e12 = mxRotl32_(_e10, 14);\n c = (_e9 - _e12);\n uint _e14 = a;\n uint _e15 = c;\n a = (_e14 ^ _e15);\n uint _e17 = a;\n uint _e18 = c;\n uint _e20 = mxRotl32_(_e18, 11);\n a = (_e17 - _e20);\n uint _e22 = b;\n uint _e23 = a;\n b = (_e22 ^ _e23);\n uint _e25 = b;\n uint _e26 = a;\n uint _e28 = mxRotl32_(_e26, 25);\n b = (_e25 - _e28);\n uint _e30 = c;\n uint _e31 = b;\n c = (_e30 ^ _e31);\n uint _e33 = c;\n uint _e34 = b;\n uint _e36 = mxRotl32_(_e34, 16);\n c = (_e33 - _e36);\n uint _e38 = a;\n uint _e39 = c;\n a = (_e38 ^ _e39);\n uint _e41 = a;\n uint _e42 = c;\n uint _e44 = mxRotl32_(_e42, 4);\n a = (_e41 - _e44);\n uint _e46 = b;\n uint _e47 = a;\n b = (_e46 ^ _e47);\n uint _e49 = b;\n uint _e50 = a;\n uint _e52 = mxRotl32_(_e50, 14);\n b = (_e49 - _e52);\n uint _e54 = c;\n uint _e55 = b;\n c = (_e54 ^ _e55);\n uint _e57 = c;\n uint _e58 = b;\n uint _e60 = mxRotl32_(_e58, 24);\n c = (_e57 - _e60);\n uint _e62 = c;\n return _e62;\n}\n\nuint mxHashInt1_(int x_1, int y) {\n uint a_1 = (3735928580u + uint(x_1));\n uint b_1 = (3735928580u + uint(y));\n uint _e7 = mxBjfinal(a_1, b_1, 3735928580u);\n return _e7;\n}\n\nfloat mxGradientFloat2_(uint hash, float x_2, float y_1) {\n uint h = (hash & 7u);\n float u = ((h \u003c 4u) ? x_2 : y_1);\n float v_1 = (2.0 * ((h \u003c 4u) ? y_1 : x_2));\n float uu = (((h & 1u) != 0u) ? -(u) : u);\n float vv = (((h & 2u) != 0u) ? -(v_1) : v_1);\n return (uu + vv);\n}\n\nfloat mxBilerp(float v0_, float v1_, float v2_, float v3_, float s, float t_1) {\n float s1_ = (1.0 - s);\n return (((1.0 - t_1) * ((v0_ * s1_) + (v1_ * s))) + (t_1 * ((v2_ * s1_) + (v3_ * s))));\n}\n\nfloat mxGradientScale2d(float v) {\n return (0.6616 * v);\n}\n\nfloat mxPerlinNoiseFloat2_(vec2 p) {\n int X = int(floor(p.x));\n int Y = int(floor(p.y));\n float fx_2 = (p.x - float(X));\n float fy_2 = (p.y - float(Y));\n float _e13 = mxFade(fx_2);\n float _e14 = mxFade(fy_2);\n uint _e15 = mxHashInt1_(X, Y);\n float _e16 = mxGradientFloat2_(_e15, fx_2, fy_2);\n uint _e19 = mxHashInt1_((X + 1), Y);\n float _e22 = mxGradientFloat2_(_e19, (fx_2 - 1.0), fy_2);\n uint _e25 = mxHashInt1_(X, (Y + 1));\n float _e28 = mxGradientFloat2_(_e25, fx_2, (fy_2 - 1.0));\n uint _e33 = mxHashInt1_((X + 1), (Y + 1));\n float _e38 = mxGradientFloat2_(_e33, (fx_2 - 1.0), (fy_2 - 1.0));\n float _e39 = mxBilerp(_e16, _e22, _e28, _e38, _e13, _e14);\n float _e40 = mxGradientScale2d(_e39);\n return _e40;\n}\n\nfloat mxNoiseFloat2_(vec2 p_1) {\n float _e1 = mxPerlinNoiseFloat2_(p_1);\n return _e1;\n}\n\nKeyLight keyLight(float lx, float ly, float lz) {\n vec3 L = normalize(vec3(lx, ly, lz));\n vec3 H = normalize((L + vec3(0.0, 0.0, -1.0)));\n return KeyLight(L, H);\n}\n\nfloat grazingView(vec3 n) {\n return (1.0 - clamp((n.z * -1.0), 0.0, 1.0));\n}\n\nfloat sharpGlint(float ndh, float sharp, vec4 cfg) {\n return (pow(ndh, mix(cfg.x, cfg.y, sharp)) * mix(cfg.z, cfg.w, sharp));\n}\n\nfloat insideMask(float sdf_2, float sharpEdge, float pxH_1, float minPixels) {\n float w = max((sharpEdge * 0.03125), (pxH_1 * minPixels));\n return clamp(((sdf_2 * -1.0) / w), 0.0, 1.0);\n}\n\nfloat silhouetteAlpha(float sdf_3, float edgeSoftness, float pxH_2) {\n float sharpEdge_1 = max((edgeSoftness * 0.5), 0.001);\n float _e10 = insideMask(sdf_3, sharpEdge_1, pxH_2, 1.5);\n return smoothstep(0.0, 1.0, _e10);\n}\n\nvec3 linearToSrgb(vec3 color) {\n vec3 a_2 = ((pow(color, vec3(0.41666)) * 1.055) - vec3(0.055));\n vec3 b_2 = (color * 12.92);\n bvec3 factor = lessThanEqual(color, vec3(0.0031308));\n return mix(a_2, b_2, factor);\n}\n\nvec3 tone_linear(vec3 color_1) {\n return vec3(color_1.x, color_1.y, color_1.z);\n}\n\nvoid main() {\n final_Input in_ = final_Input(_vs2fs_location0);\n vec2 uv = vec2(0.0);\n vec4 water_0_ = vec4(0.0, 0.0, 0.0, 0.0);\n vec4 composed_51_ = vec4(0.0);\n uv = in_.uv;\n vec2 _e6 = _group_0_binding_0_fs.n_fx.center;\n float _e10 = _group_0_binding_0_fs.n_fx.scale;\n float _e14 = _group_0_binding_0_fs.n_fx.rotation;\n vec2 _e15 = uv;\n float _e19 = _group_0_binding_0_fs._sys.aspect;\n vec2 _e20 = sdfSpaceUV(_e6, _e10, _e14, _e15, _e19);\n float _e25 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e29 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e33 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e37 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e41 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e45 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e46 = fieldSampleArg(_e20, _group_1_binding_0_fs, _e25, _e29, _e33, _e37, _e41, _e45);\n float _e51 = _group_0_binding_0_fs.n_fx.scale;\n float sdf_1_ = (_e46.x / _e51);\n float _e57 = _group_0_binding_0_fs._sys.viewportSize.y;\n float pxH_4_ = (1.0 / _e57);\n bool _e66 = outsideShape(sdf_1_, pxH_4_);\n if (!(_e66)) {\n vec4 _e71 = _group_0_binding_0_fs.n_fx.waterColor;\n vec3 wc_7_ = _e71.xyz;\n float _e74 = opticalThickness(sdf_1_, 1.0);\n float _e78 = _group_0_binding_0_fs.n_fx.depth;\n float thickness_9_ = (_e74 * _e78);\n float depthT_8_ = clamp((thickness_9_ * 1.3), 0.0, 1.0);\n vec3 _e101 = beerLambert(thickness_9_, vec3(((1.0 - wc_7_.x) * 2.2), ((1.0 - wc_7_.y) * 2.2), ((1.0 - wc_7_.z) * 2.2)));\n float _e109 = _group_0_binding_0_fs.n_fx.shallows;\n vec3 bodyTint_6_ = ((mix(mix(wc_7_, vec3(1.0, 1.0, 1.0), vec3(clamp(_e109, 0.0, 1.0))), wc_7_, vec3(depthT_8_)) * _e101) + (wc_7_ * (depthT_8_ * 0.18)));\n vec2 _e124 = offsetUV(_e20, 0.01, 0.0);\n float _e129 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e133 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e137 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e141 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e145 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e149 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e150 = fieldSampleFastArg(_e124, _group_1_binding_0_fs, _e129, _e133, _e137, _e141, _e145, _e149);\n vec2 _e153 = offsetUV(_e20, 0.0, 0.01);\n float _e158 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e162 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e166 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e170 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e174 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e178 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e179 = fieldSampleFastArg(_e153, _group_1_binding_0_fs, _e158, _e162, _e166, _e170, _e174, _e178);\n vec3 _e182 = volumetricNormal(_e46, _e150, _e179, 0.01, 5.0);\n vec2 _e184 = patternCoords(_e20, _e46, 1.0);\n float _e188 = _group_0_binding_0_fs.n_fx.waveScale;\n float freq_21_ = (_e188 * 2.4);\n vec2 q_19_ = vec2(((_e184.x * freq_21_) * 0.8), ((_e184.y * freq_21_) * 1.25));\n float _e203 = _group_0_binding_0_fs.n_fx._animTime;\n float flowT_22_ = (_e203 * 0.2);\n vec2 _e208 = flowWarpOffset((q_19_ * 0.6), flowT_22_);\n float _e212 = _group_0_binding_0_fs.n_fx.swirl;\n vec2 fbmH0_50_ = ((q_19_ + (_e208 * (_e212 * 0.9))) + vec2(0.0, (flowT_22_ * -1.0)));\n float _e222 = mxNoiseFloat2_(fbmH0_50_);\n float h0n1_23_ = (_e222 * 0.52);\n float _e228 = _group_0_binding_0_fs.n_fx.choppiness;\n float relief_24_ = (_e228 * 0.5);\n vec2 qf_25_ = (((fbmH0_50_ * 3.3) + vec2((flowT_22_ * 1.7), (flowT_22_ * -1.15))) + vec2(11.3, 4.7));\n float _e243 = mxNoiseFloat2_(qf_25_);\n float f0n1_26_ = (_e243 * 0.52);\n float _e249 = _group_0_binding_0_fs.n_fx.choppiness;\n float reliefFine_27_ = (_e249 * 0.22);\n float _e257 = mxNoiseFloat2_((fbmH0_50_ + vec2(0.06, 0.0)));\n float _e272 = mxNoiseFloat2_((qf_25_ + vec2(0.025, 0.0)));\n float _e288 = mxNoiseFloat2_((fbmH0_50_ + vec2(0.0, 0.06)));\n float _e303 = mxNoiseFloat2_((qf_25_ + vec2(0.0, 0.025)));\n vec3 n_14_ = normalize(vec3(((_e182.x - (clamp((((_e257 * 0.52) - h0n1_23_) / 0.06), -4.0, 4.0) * relief_24_)) - (clamp((((_e272 * 0.52) - f0n1_26_) / 0.025), -4.0, 4.0) * reliefFine_27_)), ((_e182.y - (clamp((((_e288 * 0.52) - h0n1_23_) / 0.06), -4.0, 4.0) * relief_24_)) - (clamp((((_e303 * 0.52) - f0n1_26_) / 0.025), -4.0, 4.0) * reliefFine_27_)), _e182.z));\n vec3 tDir_13_ = refract(vec3(0.0, 0.0, 1.0), n_14_, 0.7501876);\n float _e326 = _group_0_binding_0_fs.n_fx.envRotation;\n float _e333 = _group_0_binding_0_fs.n_fx.envRotation;\n vec2 env_28_ = vec2(cos((_e326 * 0.017453292)), sin((_e333 * 0.017453292)));\n float transEy_12_ = ((tDir_13_.x * env_28_.y) + (tDir_13_.y * env_28_.x));\n float transUp_11_ = clamp(((transEy_12_ * 0.5) + 0.5), 0.0, 1.0);\n float _e355 = _group_0_binding_0_fs.n_fx.sharpness;\n float sharp_30_ = clamp(_e355, 0.0, 1.0);\n float transSunRad_29_ = mix(0.5, 0.13, sharp_30_);\n float transEx_31_ = ((tDir_13_.x * env_28_.x) - (tDir_13_.y * env_28_.y));\n float _e372 = _group_0_binding_0_fs.n_fx.lightAngle;\n float _e379 = _group_0_binding_0_fs.n_fx.lightAngle;\n vec2 light_32_ = vec2(cos((_e372 * 0.017453292)), sin((_e379 * 0.017453292)));\n KeyLight _e387 = keyLight(light_32_.x, light_32_.y, -0.7);\n float diffuse_33_ = ((pow(clamp(((dot(n_14_, _e387.L) * 0.5) + 0.5), 0.0, 1.0), 0.8) * 0.5) + 0.5);\n float _e406 = _group_0_binding_0_fs.n_fx._animTime;\n float causT_38_ = (_e406 * 3.0);\n float _e415 = _group_0_binding_0_fs.n_fx.causticScale;\n vec2 fbmC1_36_ = ((vec2(_e184.x, _e184.y) * _e415) + vec2((sin((causT_38_ * 0.15)) * 0.4), ((causT_38_ * 0.3) * -1.0)));\n vec2 fbmC2_39_ = ((fbmC1_36_ * 1.9) + vec2(3.7, ((causT_38_ * 0.18) * -1.0)));\n float _e437 = mxNoiseFloat2_(fbmC1_36_);\n float _e444 = mxNoiseFloat2_(((fbmC1_36_ * 2.07) + vec2(4.3, 9.1)));\n float _e454 = mxNoiseFloat2_(((fbmC1_36_ * 4.13) + vec2(1.7, 8.2)));\n float _e465 = mxNoiseFloat2_(fbmC2_39_);\n float _e472 = mxNoiseFloat2_(((fbmC2_39_ * 2.07) + vec2(4.3, 9.1)));\n float _e482 = mxNoiseFloat2_(((fbmC2_39_ * 4.13) + vec2(1.7, 8.2)));\n float causV_35_ = pow(clamp((((1.0 - abs((((_e437 + (_e444 * 0.5)) + (_e454 * 0.25)) * 0.52))) * 0.6) + ((1.0 - abs((((_e465 + (_e472 * 0.5)) + (_e482 * 0.25)) * 0.52))) * 0.4)), 0.0, 1.0), 3.0);\n float _e506 = _group_0_binding_0_fs.n_fx.caustics;\n float causMask_40_ = (((depthT_8_ * 0.8) + 0.2) * _e506);\n vec3 R_44_ = reflect(vec3(0.0, 0.0, 1.0), n_14_);\n float reflEy_43_ = ((R_44_.x * env_28_.y) + (R_44_.y * env_28_.x));\n float reflUp_42_ = clamp(((reflEy_43_ * 0.5) + 0.5), 0.0, 1.0);\n float reflSunRad_45_ = mix(0.5, 0.13, sharp_30_);\n float reflEx_46_ = ((R_44_.x * env_28_.x) - (R_44_.y * env_28_.y));\n float _e585 = _group_0_binding_0_fs.n_fx.reflection;\n vec3 reflCol_41_ = ((mix(vec3(0.04, 0.1, 0.16), mix(vec3(0.9, 0.96, 1.0), vec3(0.2, 0.46, 0.85), vec3(smoothstep(0.5, 1.0, reflUp_42_))), vec3(smoothstep(0.4, 0.55, reflUp_42_))) + (vec3(1.0, 0.97, 0.88) * (smoothstep(reflSunRad_45_, (reflSunRad_45_ * 0.15), length((vec2(reflEx_46_, reflEy_43_) - vec2((light_32_.x * 0.8), ((light_32_.y * 0.8) + 0.12))))) * 1.5))) * _e585);\n float _e587 = grazingView(n_14_);\n float _e588 = mxNoiseFloat2_(fbmH0_50_);\n float _e595 = mxNoiseFloat2_(((fbmH0_50_ * 2.07) + vec2(4.3, 9.1)));\n float _e605 = mxNoiseFloat2_(((fbmH0_50_ * 4.13) + vec2(1.7, 8.2)));\n float h0_49_ = (((_e588 + (_e595 * 0.5)) + (_e605 * 0.25)) * 0.52);\n float _e637 = _group_0_binding_0_fs.n_fx.foam;\n float foamMask_48_ = (clamp((smoothstep(0.62, 0.92, clamp(((h0_49_ * 0.5) + 0.5), 0.0, 1.0)) + ((1.0 - smoothstep(0.0, 0.045, (sdf_1_ * -1.0))) * 0.7)), 0.0, 1.0) * _e637);\n float _e693 = _group_0_binding_0_fs.n_fx.clarity;\n float _e745 = sharpGlint(clamp(dot(n_14_, _e387.H), 0.0, 1.0), sharp_30_, vec4(40.0, 600.0, 0.3, 1.3));\n vec3 waterRgb_5_ = mix((mix((((mix(bodyTint_6_, ((((mix(vec3(0.04, 0.1, 0.16), mix(vec3(0.9, 0.96, 1.0), vec3(0.2, 0.46, 0.85), vec3(smoothstep(0.5, 1.0, transUp_11_))), vec3(smoothstep(0.4, 0.55, transUp_11_))) + (vec3(1.0, 0.97, 0.88) * (smoothstep(transSunRad_29_, (transSunRad_29_ * 0.15), length((vec2(transEx_31_, transEy_12_) - vec2((light_32_.x * 0.8), ((light_32_.y * 0.8) + 0.12))))) * 1.5))) * _e101) * 0.6) + (bodyTint_6_ * 0.4)), vec3((clamp(_e693, 0.0, 1.0) * (1.0 - (depthT_8_ * 0.8))))) * diffuse_33_) * (1.0 + ((causV_35_ * causMask_40_) * 0.7))) + (vec3(0.55, 0.82, 1.0) * ((causV_35_ * causMask_40_) * 0.45))), reflCol_41_, vec3(clamp((0.04 + (pow(_e587, 5.0) * 0.96)), 0.0, 1.0))) + (vec3(1.0, 0.98, 0.92) * _e745)), vec3(1.0, 1.0, 1.0), vec3((foamMask_48_ * 0.85)));\n float _e759 = _group_0_binding_0_fs.n_fx.edgeSoftness;\n float _e760 = silhouetteAlpha(sdf_1_, _e759, pxH_4_);\n water_0_ = vec4(waterRgb_5_, _e760);\n }\n vec4 _e762 = water_0_;\n composed_51_ = _e762;\n vec4 _e764 = composed_51_;\n vec3 _e766 = tone_linear(_e764.xyz);\n vec3 _e767 = linearToSrgb(_e766);\n float _e769 = composed_51_.w;\n float _e772 = composed_51_.w;\n _fs2p_location0 = vec4((_e767 * _e769), _e772);\n return;\n}\n\n","uniforms":[{"block":"combined_block_0Fragment","bytes":"AACAPwAAAAAAAAAAAAAAAAAAAD8AAAA/AACAPwAAAAAAAAAA918FP1atVD8AAIA/zczMPgAAoEAAAAA/mpkZPgAAwEDNzEw/AABgQJqZGT8AAAA/AAAAQAAAAADNzMw9AADwQZqZmT7NzEw9AACAP28SA7wK16M9CtejPT0KVz89Clc/AACARKRwvT4zM7M+AADAQAAAAADNzMw+AAAAAAAAgD7NzEw+AACHQwAAAAAAAAAAAAAAAAAA8EQAAIdEAADwRAAAh0Q5juM/AAAAAAAAIMEAACDBAAAAAAAAAAA=","lines":[[112,-0.00800000038,0.499999996],[176,0,1]],"viewport":[184,192]}],"textures":[{"sampler":"_group_1_binding_0_fs","size":[1024,1024],"frag":"#version 300 es\n\nprecision highp float;\nprecision highp int;\n\nstruct RotStruct {\n float cx;\n float sx;\n float cy;\n float sy;\n float cz;\n float sz;\n};\nstruct MarchParams {\n RotStruct rot;\n float rBound;\n float spanX;\n float spanY;\n float originX;\n float originY;\n uint activeRes;\n float pA;\n float pB;\n float pC;\n float pD;\n vec3 mb0_;\n vec3 mb1_;\n vec3 mb2_;\n vec3 mb3_;\n vec3 mb4_;\n vec3 mb5_;\n vec3 mb6_;\n vec3 mb7_;\n};\nlayout(std140) uniform type_block_0Fragment { uvec3 _group_0_binding_0_fs; };\n\nlayout(std140) uniform MarchParams_block_1Fragment { MarchParams _group_1_binding_1_fs; };\n\nvec4 popostTexel = vec4(0.0);\n\nout vec4 _fs2p_location0;\n\nvec3 rotateVec3_(vec3 v, RotStruct rot) {\n float x1_ = ((v.x * rot.cy) + (v.z * rot.sy));\n float z1_ = ((v.z * rot.cy) - (v.x * rot.sy));\n float y2_ = ((v.y * rot.cx) - (z1_ * rot.sx));\n float z2_ = ((v.y * rot.sx) + (z1_ * rot.cx));\n float x3_ = ((x1_ * rot.cz) - (y2_ * rot.sz));\n float y3_ = ((x1_ * rot.sz) + (y2_ * rot.cz));\n return vec3(x3_, y3_, z2_);\n}\n\nfloat sdSphere(vec3 p, float r) {\n return (length(p) - r);\n}\n\nfloat sdfFn(vec3 p_1) {\n float _e3 = _group_1_binding_1_fs.pA;\n float _e4 = sdSphere(p_1, _e3);\n return _e4;\n}\n\nvec4 raymarchedField(vec2 fuv, RotStruct rot_1, float rBound) {\n float t = 0.0;\n float tPrev = 0.0;\n float minD = 10.0;\n float hit = 0.0;\n int i = 0;\n float fieldVal = 0.0;\n float patternU = 0.0;\n float patternV = 0.0;\n float viewDepth = 0.0;\n float eLo = 0.0;\n float eHi = 0.0;\n int i_1 = 0;\n float tExit = 0.0;\n float s = 0.0;\n float sPrev = 0.0;\n int i_2 = 0;\n float xLo = 0.0;\n float xHi = 0.0;\n int i_3 = 0;\n vec3 ro0_ = vec3((fuv.x - 0.5), (0.5 - fuv.y), -1.2);\n vec3 rd0_ = vec3(0.0, 0.0, 1.0);\n vec3 _e15 = rotateVec3_(ro0_, rot_1);\n vec3 _e16 = rotateVec3_(rd0_, rot_1);\n int steps = int(clamp((rBound * 220.0), 96.0, 384.0));\n float b = dot(_e15, _e16);\n float perp = sqrt(max((dot(_e15, _e15) - (b * b)), 0.0));\n float halfSpan = sqrt(max(((rBound * rBound) - (perp * perp)), 0.0));\n float tStart = max(((b * -1.0) - halfSpan), 0.0);\n float tEnd = (((b * -1.0) + halfSpan) + 0.01);\n t = tStart;\n tPrev = tStart;\n bool loop_init = true;\n while(true) {\n if (!loop_init) {\n int _e73 = i;\n i = (_e73 + 1);\n }\n loop_init = false;\n int _e54 = i;\n if ((_e54 \u003c steps)) {\n } else {\n break;\n }\n {\n float _e56 = t;\n vec3 p_2 = (_e15 + (_e16 * _e56));\n float _e59 = sdfFn(p_2);\n float _e60 = minD;\n minD = min(_e60, _e59);\n if ((_e59 \u003c 0.0)) {\n hit = 1.0;\n break;\n }\n float _e65 = t;\n if ((_e65 > tEnd)) {\n break;\n }\n float _e67 = t;\n tPrev = _e67;\n float _e68 = t;\n t = (_e68 + max(_e59, 0.002));\n }\n }\n float _e75 = minD;\n fieldVal = _e75;\n viewDepth = (tEnd + 0.4);\n float _e84 = hit;\n if ((_e84 > 0.5)) {\n float _e87 = tPrev;\n eLo = _e87;\n float _e89 = t;\n eHi = _e89;\n bool loop_init_1 = true;\n while(true) {\n if (!loop_init_1) {\n int _e107 = i_1;\n i_1 = (_e107 + 1);\n }\n loop_init_1 = false;\n int _e93 = i_1;\n if ((_e93 \u003c 10)) {\n } else {\n break;\n }\n {\n float _e96 = eLo;\n float _e97 = eHi;\n float mid = ((_e96 + _e97) * 0.5);\n float _e103 = sdfFn((_e15 + (_e16 * mid)));\n if ((_e103 > 0.0)) {\n eLo = mid;\n } else {\n eHi = mid;\n }\n }\n }\n float _e109 = eLo;\n float _e110 = eHi;\n float tEnter = ((_e109 + _e110) * 0.5);\n tExit = tEnter;\n {\n vec3 roB = (_e15 + (_e16 * tEnd));\n float span = ((tEnd - tStart) + 0.01);\n bool loop_init_2 = true;\n while(true) {\n if (!loop_init_2) {\n int _e142 = i_2;\n i_2 = (_e142 + 1);\n }\n loop_init_2 = false;\n int _e126 = i_2;\n if ((_e126 \u003c steps)) {\n } else {\n break;\n }\n {\n float _e128 = s;\n vec3 p_3 = (roB - (_e16 * _e128));\n float _e131 = sdfFn(p_3);\n if ((_e131 \u003c 0.0)) {\n break;\n }\n float _e134 = s;\n if ((_e134 > span)) {\n break;\n }\n float _e136 = s;\n sPrev = _e136;\n float _e137 = s;\n s = (_e137 + max(_e131, 0.002));\n }\n }\n float _e144 = sPrev;\n xLo = _e144;\n float _e146 = s;\n xHi = _e146;\n bool loop_init_3 = true;\n while(true) {\n if (!loop_init_3) {\n int _e164 = i_3;\n i_3 = (_e164 + 1);\n }\n loop_init_3 = false;\n int _e150 = i_3;\n if ((_e150 \u003c 10)) {\n } else {\n break;\n }\n {\n float _e153 = xLo;\n float _e154 = xHi;\n float mid_1 = ((_e153 + _e154) * 0.5);\n float _e160 = sdfFn((roB - (_e16 * mid_1)));\n if ((_e160 > 0.0)) {\n xLo = mid_1;\n } else {\n xHi = mid_1;\n }\n }\n }\n float _e166 = xLo;\n float _e167 = xHi;\n tExit = (tEnd - ((_e166 + _e167) * 0.5));\n }\n float _e172 = tExit;\n float halfChord = (max((_e172 - tEnter), 0.0) * 0.5);\n fieldVal = (halfChord * -1.0);\n viewDepth = tEnter;\n {\n vec3 hp = (_e15 + (_e16 * tEnter));\n patternU = (hp.x + (hp.z * 0.7));\n patternV = (hp.y + (hp.z * 0.5));\n }\n }\n float _e192 = fieldVal;\n float _e193 = patternU;\n float _e194 = patternV;\n float _e195 = viewDepth;\n return vec4(_e192, _e193, _e194, _e195);\n}\n\nvoid popostStore(uvec2 at, vec4 texel) {\n popostTexel = texel;\n return;\n}\n\nvoid volumetricFieldMarch(uint cx, uint cy) {\n uint _e4 = _group_1_binding_1_fs.activeRes;\n float activeResF = float(_e4);\n float _e7 = _group_1_binding_1_fs.originX;\n float _e13 = _group_1_binding_1_fs.spanX;\n float _e17 = _group_1_binding_1_fs.originY;\n float _e23 = _group_1_binding_1_fs.spanY;\n vec2 uv = vec2((_e7 + (((float(cx) + 0.5) / activeResF) * _e13)), (_e17 + (((float(cy) + 0.5) / activeResF) * _e23)));\n RotStruct _e28 = _group_1_binding_1_fs.rot;\n float _e30 = _group_1_binding_1_fs.rBound;\n vec4 _e31 = raymarchedField(uv, _e28, _e30);\n popostStore(uvec2(cx, cy), _e31);\n return;\n}\n\nvoid wrappedCallback(uint cx_1, uint cy_1, uint _arg_2_) {\n volumetricFieldMarch(cx_1, cy_1);\n return;\n}\n\nvoid popostCompute(uvec3 id) {\n uvec3 _e2 = _group_0_binding_0_fs;\n if (any(greaterThanEqual(id, _e2))) {\n return;\n }\n wrappedCallback(id.x, id.y, id.z);\n return;\n}\n\nvoid main() {\n vec4 popostPixel = gl_FragCoord;\n popostCompute(uvec3(uint(popostPixel.x), uint(popostPixel.y), 0u));\n vec4 _e8 = popostTexel;\n _fs2p_location0 = _e8;\n return;\n}\n\n","uniforms":[{"block":"MarchParams_block_1Fragment","bytes":"AACAPwAAAAAAAIA/AAAAAAAAgD8AAAAAAAAAAAAAAACkcL0+PQpXPz0KVz8K16M9CtejPQAEAAAzM7M+mpmZPpqZmT4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="},{"block":"type_block_0Fragment","bytes":"AAQAAAAEAAABAAAA"}]}]}</script>
|
|
171
|
+
<script>
|
|
172
|
+
/* popost: the WebGPU shader of the original, translated to WebGL2 and drawn from the scene's time. */
|
|
173
|
+
(function () {
|
|
174
|
+
var data = JSON.parse(document.getElementById('popost-shader').textContent);
|
|
175
|
+
var canvas = document.querySelector('canvas[data-shader]');
|
|
176
|
+
var gl = canvas.getContext('webgl2', { antialias: false, premultipliedAlpha: true, preserveDrawingBuffer: true });
|
|
177
|
+
if (!gl) throw new Error('This scene needs WebGL2.');
|
|
178
|
+
var program = function (frag) {
|
|
179
|
+
var p = gl.createProgram();
|
|
180
|
+
[[gl.VERTEX_SHADER, data.vert], [gl.FRAGMENT_SHADER, frag]].forEach(function (stage) {
|
|
181
|
+
var sh = gl.createShader(stage[0]);
|
|
182
|
+
gl.shaderSource(sh, stage[1]);
|
|
183
|
+
gl.compileShader(sh);
|
|
184
|
+
if (!gl.getShaderParameter(sh, gl.COMPILE_STATUS)) throw new Error('shader: ' + gl.getShaderInfoLog(sh));
|
|
185
|
+
gl.attachShader(p, sh);
|
|
186
|
+
});
|
|
187
|
+
gl.linkProgram(p);
|
|
188
|
+
if (!gl.getProgramParameter(p, gl.LINK_STATUS)) throw new Error('shader: ' + gl.getProgramInfoLog(p));
|
|
189
|
+
return p;
|
|
190
|
+
};
|
|
191
|
+
var binding = 0;
|
|
192
|
+
var blocks = function (p, list) {
|
|
193
|
+
return list.map(function (u) {
|
|
194
|
+
var raw = atob(u.bytes), index = gl.getUniformBlockIndex(p, u.block);
|
|
195
|
+
var size = Math.max(raw.length, gl.getActiveUniformBlockParameter(p, index, gl.UNIFORM_BLOCK_DATA_SIZE));
|
|
196
|
+
var bytes = new Uint8Array((size + 15) & ~15);
|
|
197
|
+
for (var i = 0; i < raw.length; i++) bytes[i] = raw.charCodeAt(i);
|
|
198
|
+
var b = { at: binding++, buffer: gl.createBuffer(), bytes: bytes, floats: new Float32Array(bytes.buffer), u: u };
|
|
199
|
+
gl.uniformBlockBinding(p, index, b.at);
|
|
200
|
+
gl.bindBuffer(gl.UNIFORM_BUFFER, b.buffer);
|
|
201
|
+
gl.bufferData(gl.UNIFORM_BUFFER, bytes, gl.DYNAMIC_DRAW);
|
|
202
|
+
return b;
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
var bind = function (list) { list.forEach(function (b) { gl.bindBufferBase(gl.UNIFORM_BUFFER, b.at, b.buffer); }); };
|
|
206
|
+
var textures = data.textures.map(function (t) {
|
|
207
|
+
if (!gl.getExtension('EXT_color_buffer_float')) throw new Error('This scene needs float textures (EXT_color_buffer_float).');
|
|
208
|
+
var tex = gl.createTexture();
|
|
209
|
+
gl.bindTexture(gl.TEXTURE_2D, tex);
|
|
210
|
+
gl.texStorage2D(gl.TEXTURE_2D, 1, gl.RGBA32F, t.size[0], t.size[1]);
|
|
211
|
+
[gl.TEXTURE_MIN_FILTER, gl.TEXTURE_MAG_FILTER].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.NEAREST); });
|
|
212
|
+
[gl.TEXTURE_WRAP_S, gl.TEXTURE_WRAP_T].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.CLAMP_TO_EDGE); });
|
|
213
|
+
var fb = gl.createFramebuffer();
|
|
214
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
|
|
215
|
+
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0);
|
|
216
|
+
var p = program(t.frag), own = blocks(p, t.uniforms);
|
|
217
|
+
gl.viewport(0, 0, t.size[0], t.size[1]);
|
|
218
|
+
gl.useProgram(p);
|
|
219
|
+
bind(own);
|
|
220
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
221
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, null);
|
|
222
|
+
return { sampler: t.sampler, texture: tex };
|
|
223
|
+
});
|
|
224
|
+
var main = program(data.frag), uniforms = blocks(main, data.uniforms);
|
|
225
|
+
// Drawn at the size it is shown: the composition's size scaled as the scene's canvas fits it (as the shim does).
|
|
226
|
+
var fit = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
|
|
227
|
+
var params = document.getElementById('popost-params'), cover = params && (JSON.parse(params.textContent).values || {}).fit === 'cover';
|
|
228
|
+
var k = Math.min(1, (cover ? Math.max : Math.min)(Number(fit[1]) / canvas.width, Number(fit[2]) / canvas.height));
|
|
229
|
+
canvas.width = Math.max(1, Math.round(canvas.width * k));
|
|
230
|
+
canvas.height = Math.max(1, Math.round(canvas.height * k));
|
|
231
|
+
uniforms.forEach(function (b) { (b.u.viewport || []).forEach(function (o) { b.floats[o / 4] = canvas.width; b.floats[o / 4 + 1] = canvas.height; }); });
|
|
232
|
+
var draw = function (seconds) {
|
|
233
|
+
uniforms.forEach(function (b) {
|
|
234
|
+
(b.u.lines || []).forEach(function (l) { b.floats[l[0] / 4] = l[1] + l[2] * seconds; });
|
|
235
|
+
(b.u.sines || []).forEach(function (w) { b.floats[w[0] / 4] = w[1] + w[2] * Math.sin(w[3] * seconds + w[4]); });
|
|
236
|
+
gl.bindBuffer(gl.UNIFORM_BUFFER, b.buffer);
|
|
237
|
+
gl.bufferSubData(gl.UNIFORM_BUFFER, 0, b.bytes);
|
|
238
|
+
});
|
|
239
|
+
gl.useProgram(main);
|
|
240
|
+
bind(uniforms);
|
|
241
|
+
textures.forEach(function (t, i) {
|
|
242
|
+
gl.activeTexture(gl.TEXTURE0 + i);
|
|
243
|
+
gl.bindTexture(gl.TEXTURE_2D, t.texture);
|
|
244
|
+
gl.uniform1i(gl.getUniformLocation(main, t.sampler), i);
|
|
245
|
+
});
|
|
246
|
+
gl.viewport(0, 0, canvas.width, canvas.height);
|
|
247
|
+
gl.clearColor(0, 0, 0, 0);
|
|
248
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
249
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
250
|
+
};
|
|
251
|
+
window.addEventListener('hf-seek', function (e) { draw(e.detail.time); });
|
|
252
|
+
draw(0);
|
|
253
|
+
})();
|
|
254
|
+
</script>
|
|
255
|
+
</div>
|
|
256
|
+
<script>window.__popostFit();</script>
|
|
257
|
+
</body>
|
|
258
|
+
</html>
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/waveform, commit a8332860c396e9224d42b7ea2a9cc8f42918c961.
|
|
4
|
+
Copyright 2026 HeyGen, Inc. Licensed under the Apache License, Version 2.0; the licence text is in the popost
|
|
5
|
+
Skill's THIRD_PARTY_NOTICES. Changed for the popost Skill (tools/video/port-hyperframes.mjs): its comments removed; its WebGPU shader (Waveform, written at run time by the shaders library, MIT) translated to WebGL2 (tools/video/hyperframes-shaders.json) and drawn from the scene's time; GSAP loaded from the project (../lib/gsap.min.js) instead of a CDN; the 1920x1080 composition scaled into the scene's canvas (parameter "fit"); HyperFrames variables declared as parameters; its root-level clips laid out as HyperFrames lays them out; its clips shown and hidden from the scene's time; sound cues derived from its tweens.
|
|
6
|
+
-->
|
|
7
|
+
<html>
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="utf-8" />
|
|
10
|
+
<style>
|
|
11
|
+
[data-composition-id="waveform"] canvas[data-shader] {
|
|
12
|
+
position: absolute;
|
|
13
|
+
inset: 0;
|
|
14
|
+
width: 1920px;
|
|
15
|
+
height: 1080px;
|
|
16
|
+
display: block;
|
|
17
|
+
background: #000;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
<style id="popost-fit">
|
|
21
|
+
html, body { margin: 0 !important; width: 1280px; height: 720px; overflow: hidden !important; background: #000000; }
|
|
22
|
+
#popost-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; }
|
|
23
|
+
</style>
|
|
24
|
+
<script type="application/json" id="popost-params">
|
|
25
|
+
{
|
|
26
|
+
"about": "Equalizer bars in a blue to pink gradient pulse across the middle of the frame, like an audio visualizer. A WebGPU shader from the Shaders library (shaders.com, MIT).",
|
|
27
|
+
"class": "audio",
|
|
28
|
+
"tags": [
|
|
29
|
+
"webgpu",
|
|
30
|
+
"webgpu-shader",
|
|
31
|
+
"audio",
|
|
32
|
+
"music",
|
|
33
|
+
"visualizer",
|
|
34
|
+
"bars"
|
|
35
|
+
],
|
|
36
|
+
"seconds": 2,
|
|
37
|
+
"params": [
|
|
38
|
+
{
|
|
39
|
+
"name": "fit",
|
|
40
|
+
"type": "choice",
|
|
41
|
+
"default": "contain",
|
|
42
|
+
"options": [
|
|
43
|
+
"contain",
|
|
44
|
+
"cover"
|
|
45
|
+
],
|
|
46
|
+
"what": "how the 1920x1080 composition is fitted into the canvas: whole with bars, or filling it and cropped"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"values": {}
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
<script>
|
|
53
|
+
/* popost: the scene's parameters stand in for HyperFrames variables; random numbers are seeded; the composition is
|
|
54
|
+
scaled into the canvas; clips are shown and hidden from the scene's time. */
|
|
55
|
+
(function () {
|
|
56
|
+
var block = document.getElementById('popost-params');
|
|
57
|
+
var values = block ? (JSON.parse(block.textContent).values || {}) : {};
|
|
58
|
+
var vars = {};
|
|
59
|
+
Object.keys(values).forEach(function (k) { if (k !== 'fit') vars[k] = values[k] === 'true' ? true : values[k] === 'false' ? false : values[k]; });
|
|
60
|
+
window.__hyperframes = { getVariables: function () { return vars; } };
|
|
61
|
+
var seed = 20240229;
|
|
62
|
+
window.__popostRandom = function () { seed = (seed + 0x6d2b79f5) >>> 0; var t = seed; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
|
|
63
|
+
// HyperFrames variables as CSS custom properties (runtime/getVariables.ts, compositionLoader.ts). A mounted
|
|
64
|
+
// composition's host lists its variables (data-popost-variables, written by the port): before the composition's
|
|
65
|
+
// scripts run it gets those no rule gives it yet (an inherited value counts), and after them the rest; a value given
|
|
66
|
+
// by a parameter always wins.
|
|
67
|
+
var cssName = function (id) { return '--' + (String(id).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'node'); };
|
|
68
|
+
var givenId = function (n) { return Object.keys(values).filter(function (id) { return id !== 'fit' && cssName(id) === n; })[0]; };
|
|
69
|
+
var hostVars = function (h, early) {
|
|
70
|
+
(h.getAttribute('data-popost-variables') || '').split(';').forEach(function (d) {
|
|
71
|
+
var i = d.indexOf(':'), n = d.slice(0, i).trim(), k = givenId(n);
|
|
72
|
+
if (i < 0 || !n) return;
|
|
73
|
+
if (k !== undefined) h.style.setProperty(n, String(vars[k]));
|
|
74
|
+
else if (!(h.style.getPropertyValue(n) || (early ? getComputedStyle(h).getPropertyValue(n) : '')).trim()) h.style.setProperty(n, d.slice(i + 1).trim());
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
// Root-level clips laid out as HyperFrames lays them out (runtime/init.ts, applyCompositionSizing and applyClipLayout):
|
|
78
|
+
// its root composition (one marked data-root="true", else the first element with a data-composition-id, which is the
|
|
79
|
+
// page's <html> when that has one) gets its declared size, a position and overflow hidden; each child of it with a
|
|
80
|
+
// data-start is placed absolute unless it is absolute or fixed already, and given its declared size, or 100% where it
|
|
81
|
+
// measures 0. A composition box deeper in the page keeps the position its page gives it.
|
|
82
|
+
var layout = function () {
|
|
83
|
+
var hroot = document.querySelector('[data-composition-id][data-root="true"]') || document.querySelector('[data-composition-id]');
|
|
84
|
+
if (!hroot) return;
|
|
85
|
+
var px = function (v) { var n = parseFloat(v); return isFinite(n) && n > 0 ? n + 'px' : null; };
|
|
86
|
+
var rw = px(hroot.getAttribute('data-width')), rh = px(hroot.getAttribute('data-height'));
|
|
87
|
+
if (rw) { hroot.style.width = rw; hroot.style.setProperty('--comp-width', rw); }
|
|
88
|
+
if (rh) { hroot.style.height = rh; hroot.style.setProperty('--comp-height', rh); }
|
|
89
|
+
if (!hroot.style.position) hroot.style.position = 'relative';
|
|
90
|
+
hroot.style.overflow = 'hidden';
|
|
91
|
+
Array.prototype.forEach.call(hroot.children, function (el) {
|
|
92
|
+
if (/^(SCRIPT|STYLE|LINK|META)$/.test(el.tagName) || !el.hasAttribute('data-start')) return;
|
|
93
|
+
var none = el.style.getPropertyValue('display') === 'none', priority = el.style.getPropertyPriority('display');
|
|
94
|
+
if (none) el.style.removeProperty('display');
|
|
95
|
+
var cs = getComputedStyle(el);
|
|
96
|
+
if (cs.position !== 'absolute' && cs.position !== 'fixed') el.style.position = 'absolute';
|
|
97
|
+
if (el.tagName !== 'AUDIO') {
|
|
98
|
+
var byFile = /^(IMG|VIDEO)$/.test(el.tagName), fw = px(el.getAttribute('data-width')), fh = px(el.getAttribute('data-height'));
|
|
99
|
+
if (fw) { if (!el.style.width && (cs.width === '0px' || cs.width === 'auto')) el.style.width = fw; } else if (!byFile && !el.style.width && cs.width === '0px') el.style.width = '100%';
|
|
100
|
+
if (fh) { if (!el.style.height && (cs.height === '0px' || cs.height === 'auto')) el.style.height = fh; } else if (!byFile && !el.style.height && cs.height === '0px') el.style.height = '100%';
|
|
101
|
+
}
|
|
102
|
+
if (none) el.style.setProperty('display', 'none', priority);
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
// HyperFrames loads a mounted composition after it has laid out the page, so its scripts see the host placed: each
|
|
106
|
+
// script of a mounted composition calls this first (the port puts the call there).
|
|
107
|
+
window.__popostMount = function (script) {
|
|
108
|
+
var h = script && script.closest ? script.closest('[data-popost-host]') : null;
|
|
109
|
+
if (!h || h.__popostMounted) return;
|
|
110
|
+
h.__popostMounted = true;
|
|
111
|
+
layout();
|
|
112
|
+
hostVars(h, true);
|
|
113
|
+
};
|
|
114
|
+
window.__popostFit = function () {
|
|
115
|
+
// The canvas, from the size this file declares: a scene of a later shot loads in a layer that is not displayed, where the page measures 0.
|
|
116
|
+
var size = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
|
|
117
|
+
var W = 1920, H = 1080, s = document.getElementById('popost-stage'), cw = Number(size[1]), ch = Number(size[2]);
|
|
118
|
+
var k = (values.fit === 'cover' ? Math.max : Math.min)(cw / W, ch / H);
|
|
119
|
+
s.style.transform = 'translate(' + (cw - W * k) / 2 + 'px,' + (ch - H * k) / 2 + 'px) scale(' + k + ')';
|
|
120
|
+
// The page's own declared variables on its root element (runtime/getVariables.ts, injectCompositionCssVariables):
|
|
121
|
+
// each default where no rule defines its property, a value given by a parameter always.
|
|
122
|
+
Array.prototype.forEach.call(document.querySelectorAll('[data-popost-host]'), function (h) { hostVars(h, false); });
|
|
123
|
+
layout();
|
|
124
|
+
// Timed elements as HyperFrames has them (runtime/clipTree.ts, clipWindow.ts): every element with a data-start but the
|
|
125
|
+
// root composition, from its start plus the starts of the compositions it sits in, for its data-duration (a
|
|
126
|
+
// composition without one: its timeline's length); one that runs to the end of the root keeps its last frame.
|
|
127
|
+
var root = s.querySelector('[data-composition-id]');
|
|
128
|
+
var clips = Array.prototype.slice.call(s.querySelectorAll('[data-start]')).filter(function (c) { return (root ? c !== root : c.parentNode !== s) && !/^(SCRIPT|STYLE|LINK|META|TEMPLATE|NOSCRIPT)$/.test(c.tagName) && isFinite(parseFloat(c.getAttribute('data-start'))); });
|
|
129
|
+
var windows = clips.map(function (c) {
|
|
130
|
+
var a = parseFloat(c.getAttribute('data-start')), d = parseFloat(c.getAttribute('data-duration')), id = c.getAttribute('data-composition-id');
|
|
131
|
+
for (var p = c.parentElement; p && p !== s; p = p.parentElement) if (p !== root && p.hasAttribute('data-composition-id') && isFinite(parseFloat(p.getAttribute('data-start')))) a += parseFloat(p.getAttribute('data-start'));
|
|
132
|
+
var tl = !(d > 0) && id && window.__timelines && window.__timelines[id];
|
|
133
|
+
return [a, d > 0 ? d : tl && tl.duration ? tl.duration() : Infinity];
|
|
134
|
+
});
|
|
135
|
+
var rootLength = parseFloat(root && root.getAttribute('data-duration'));
|
|
136
|
+
// A mounted composition that starts later in its host runs on its own time.
|
|
137
|
+
[].forEach(function (m) {
|
|
138
|
+
var tl = window.__timelines && window.__timelines[m.id];
|
|
139
|
+
if (tl) window.__timelines[m.id] = { pause: function () { tl.pause(); }, seek: function (t) { tl.seek(Math.max(0, t - m.start)); }, duration: function () { return tl.duration() + m.start; } };
|
|
140
|
+
});
|
|
141
|
+
var scene = (window.__popostScene = window.__popostScene || {}), before = scene.render;
|
|
142
|
+
scene.render = function (seconds, fps) {
|
|
143
|
+
if (before) before(seconds, fps);
|
|
144
|
+
// A page that draws on the HyperFrames seek event gets it for every frame; what it waits for resolves before the frame is taken.
|
|
145
|
+
window.dispatchEvent(new CustomEvent('hf-seek', { detail: { time: seconds, waitUntil: function () {} } }));
|
|
146
|
+
for (var i = 0; i < clips.length; i++) {
|
|
147
|
+
var a = windows[i][0], end = a + windows[i][1];
|
|
148
|
+
clips[i].style.visibility = seconds >= a - 1e-6 && (seconds < end - 1e-6 || end >= rootLength - 1e-6) ? 'visible' : 'hidden';
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
})();
|
|
153
|
+
</script>
|
|
154
|
+
<script type="application/json" id="popost-cues">[{"at":0,"cue":"swish","gain":0.4}]</script>
|
|
155
|
+
</head>
|
|
156
|
+
<body>
|
|
157
|
+
<div id="popost-stage">
|
|
158
|
+
<div
|
|
159
|
+
data-composition-id="waveform"
|
|
160
|
+
data-start="0"
|
|
161
|
+
data-duration="2"
|
|
162
|
+
data-width="1920"
|
|
163
|
+
data-height="1080"
|
|
164
|
+
|
|
165
|
+
data-no-timeline
|
|
166
|
+
style="position: relative; width: 1920px; height: 1080px; overflow: hidden; background: #000"
|
|
167
|
+
>
|
|
168
|
+
<canvas data-shader="Waveform" width="1920" height="1080"></canvas>
|
|
169
|
+
</div>
|
|
170
|
+
<script type="application/json" id="popost-shader">{"vert":"#version 300 es\n\nprecision highp float;\nprecision highp int;\n\nstruct fullScreenTriangle_Output {\n vec4 pos;\n vec2 uv;\n};\nsmooth out vec2 _vs2fs_location0;\n\nvoid main() {\n uint vertexIndex = uint(gl_VertexID);\n fullScreenTriangle_Output _tmp_return = fullScreenTriangle_Output(vec4(vec2[3](vec2(-1.0, -1.0), vec2(3.0, -1.0), vec2(-1.0, 3.0))[vertexIndex], 0.0, 1.0), vec2[3](vec2(0.0, 1.0), vec2(2.0, 1.0), vec2(0.0, -1.0))[vertexIndex]);\n gl_Position = _tmp_return.pos;\n _vs2fs_location0 = _tmp_return.uv;\n return;\n}\n\n","frag":"#version 300 es\n\nprecision highp float;\nprecision highp int;\n\nstruct fullScreenTriangle_Output {\n vec4 pos;\n vec2 uv;\n};\nstruct padded {\n float _opacity;\n float _pad0_;\n float _pad1_;\n float _pad2_;\n};\nstruct struct_1_ {\n float style;\n vec4 colorA;\n vec4 colorB;\n vec4 colorsArray[8];\n vec4 positionsArray[2];\n vec3 convertedColorsArray[8];\n float stopCount;\n float colorSpace;\n vec2 from;\n vec2 to;\n float amplitude;\n float frequency;\n float height;\n float align;\n float count;\n float barWidth;\n float rounding;\n float dotSize;\n float lineWidth;\n float softness;\n float speed;\n float seed;\n float _opacity;\n float _animTime;\n};\nstruct struct_2_ {\n float time;\n vec2 viewportSize;\n vec2 logicalViewportSize;\n float aspect;\n vec2 pointer;\n float pointerActive;\n};\nstruct combined {\n padded n_root;\n struct_1_ n_fx;\n struct_2_ _sys;\n};\nstruct final_Input {\n vec2 uv;\n};\nlayout(std140) uniform combined_block_0Fragment { combined _group_0_binding_0_fs; };\n\nsmooth in vec2 _vs2fs_location0;\nout vec4 _fs2p_location0;\n\nvec3 p3ToSRGB(vec3 p3_) {\n float r = (((p3_.x * 1.2249401) - (p3_.y * 0.2249404)) - (p3_.z * 0.0));\n float g = (((p3_.x * -0.0420569) + (p3_.y * 1.0420572)) + (p3_.z * 0.0));\n float b_1 = (((p3_.x * -0.0196376) - (p3_.y * 0.0786361)) + (p3_.z * 1.0982735));\n return vec3(r, g, b_1);\n}\n\nvec3 rgbToOklab(vec3 rgb) {\n float r_1 = rgb.x;\n float g_1 = rgb.y;\n float b_2 = rgb.z;\n float l = (((r_1 * 0.41222146) + (g_1 * 0.53633255)) + (b_2 * 0.051445995));\n float m = ((r_1 * 0.2119035) + ((g_1 * 0.6806995) + (b_2 * 0.10739696)));\n float s = (((r_1 * 0.08830246) + (g_1 * 0.28171885)) + (b_2 * 0.6299787));\n float l_1 = (sign(l) * pow(abs(l), 0.33333334));\n float m_1 = (sign(m) * pow(abs(m), 0.33333334));\n float s_1 = (sign(s) * pow(abs(s), 0.33333334));\n return vec3((((l_1 * 0.21045426) + (m_1 * 0.7936178)) - (s_1 * 0.004072047)), (((l_1 * 1.9779985) - (m_1 * 2.4285922)) + (s_1 * 0.4505937)), (((l_1 * 0.025904037) + (m_1 * 0.78277177)) - (s_1 * 0.80867577)));\n}\n\nvec3 awMix(vec3 a, vec3 b, float wA, float wB, float sw) {\n return (((a * wA) + (b * wB)) / vec3(sw));\n}\n\nvec3 oklabToRgb(vec3 lab) {\n float L = lab.x;\n float a_1 = lab.y;\n float b_3 = lab.z;\n float l_2 = ((L + (a_1 * 0.39633778)) + (b_3 * 0.21580376));\n float m_2 = ((L - (a_1 * 0.105561346)) - (b_3 * 0.06385417));\n float s_2 = ((L - (a_1 * 0.08948418)) - (b_3 * 1.2914855));\n float l_3 = pow(l_2, 3.0);\n float m_3 = pow(m_2, 3.0);\n float s_3 = pow(s_2, 3.0);\n return vec3((((l_3 * 4.0767417) - (m_3 * 3.3077116)) + (s_3 * 0.23096994)), (((l_3 * -1.268438) + (m_3 * 2.6097574)) - (s_3 * 0.34131938)), (((l_3 * -0.0041960864) - (m_3 * 0.7034186)) + (s_3 * 1.7076147)));\n}\n\nvec3 sRGBToP3_(vec3 srgb) {\n float r_2 = (((srgb.x * 0.8224621) + (srgb.y * 0.177538)) + (srgb.z * 0.0));\n float g_2 = (((srgb.x * 0.0331941) + (srgb.y * 0.9668058)) + (srgb.z * 0.0));\n float b_4 = (((srgb.x * 0.0170826) + (srgb.y * 0.0723974)) + (srgb.z * 0.9105199));\n return vec3(r_2, g_2, b_4);\n}\n\nvec4 mixColors(vec4 colorA, vec4 colorB, float t) {\n float weightA = (colorA.w * (1.0 - t));\n float weightB = (colorB.w * t);\n float totalWeight = (weightA + weightB);\n float safeWeight = max(totalWeight, 0.001);\n vec3 _e13 = p3ToSRGB(colorA.xyz);\n vec3 _e14 = rgbToOklab(_e13);\n vec3 _e16 = p3ToSRGB(colorB.xyz);\n vec3 _e17 = rgbToOklab(_e16);\n vec3 _e18 = awMix(_e14, _e17, weightA, weightB, safeWeight);\n vec3 _e19 = oklabToRgb(_e18);\n vec3 _e20 = sRGBToP3_(_e19);\n return vec4(_e20, totalWeight);\n}\n\nfloat roundedRectSdf(float dx, float dy, float width, float height, float rounding) {\n float qx = ((abs(dx) - width) + rounding);\n float qy = ((abs(dy) - height) + rounding);\n float mqx = max(qx, 0.0);\n float mqy = max(qy, 0.0);\n float outerDist = sqrt(((mqx * mqx) + (mqy * mqy)));\n float innerDist = min(max(qx, qy), 0.0);\n return ((outerDist + innerDist) - rounding);\n}\n\nvec3 linearToSrgb(vec3 color) {\n vec3 a_2 = ((pow(color, vec3(0.41666)) * 1.055) - vec3(0.055));\n vec3 b_5 = (color * 12.92);\n bvec3 factor = lessThanEqual(color, vec3(0.0031308));\n return mix(a_2, b_5, factor);\n}\n\nvec3 tone_linear(vec3 color_1) {\n return vec3(color_1.x, color_1.y, color_1.z);\n}\n\nvoid main() {\n final_Input in_ = final_Input(_vs2fs_location0);\n vec2 uv = vec2(0.0);\n vec4 composed_18_ = vec4(0.0);\n uv = in_.uv;\n float _e7 = _group_0_binding_0_fs._sys.viewportSize.x;\n float _e12 = _group_0_binding_0_fs._sys.viewportSize.y;\n float aspect_4_ = (_e7 / _e12);\n float _e15 = uv.x;\n float _e21 = _group_0_binding_0_fs.n_fx.from.x;\n float _e25 = uv.y;\n float _e30 = _group_0_binding_0_fs.n_fx.from.y;\n vec2 rel_3_ = vec2(((_e15 * aspect_4_) - (_e21 * aspect_4_)), (_e25 - (1.0 - _e30)));\n float _e39 = _group_0_binding_0_fs.n_fx.to.x;\n float _e45 = _group_0_binding_0_fs.n_fx.from.x;\n float _e52 = _group_0_binding_0_fs.n_fx.to.y;\n float _e59 = _group_0_binding_0_fs.n_fx.from.y;\n vec2 toRel_6_ = vec2(((_e39 * aspect_4_) - (_e45 * aspect_4_)), ((1.0 - _e52) - (1.0 - _e59)));\n float segLen_7_ = max(length(toRel_6_), 0.0001);\n vec2 segDir_5_ = (toRel_6_ / vec2(segLen_7_));\n float along_2_ = dot(rel_3_, segDir_5_);\n float wfX_1_ = (along_2_ / segLen_7_);\n vec4 _e74 = _group_0_binding_0_fs.n_fx.colorA;\n vec4 _e78 = _group_0_binding_0_fs.n_fx.colorB;\n vec4 _e79 = mixColors(_e74, _e78, wfX_1_);\n float _e84 = _group_0_binding_0_fs._sys.viewportSize.y;\n float wfPx_8_ = (1.0 / _e84);\n float _e90 = _group_0_binding_0_fs.n_fx.count;\n float wfXCells_10_ = (wfX_1_ * _e90);\n float _e95 = _group_0_binding_0_fs.n_fx.count;\n float wfCell_11_ = (segLen_7_ / _e95);\n float wfColDx_9_ = ((fract(wfXCells_10_) - 0.5) * wfCell_11_);\n float wfDy_12_ = ((rel_3_.x * -(segDir_5_.y)) + (rel_3_.y * segDir_5_.x));\n float _e112 = _group_0_binding_0_fs.n_fx.barWidth;\n float wfHalfW_14_ = ((_e112 * wfCell_11_) * 0.5);\n float _e122 = _group_0_binding_0_fs.n_fx.count;\n float wfColX_16_ = ((floor(wfXCells_10_) + 0.5) / _e122);\n float _e127 = _group_0_binding_0_fs.n_fx._animTime;\n float _e131 = _group_0_binding_0_fs.n_fx.seed;\n float wfTime_17_ = (_e127 + _e131);\n float _e136 = _group_0_binding_0_fs.n_fx.frequency;\n float _e149 = _group_0_binding_0_fs.n_fx.frequency;\n float _e160 = _group_0_binding_0_fs.n_fx.frequency;\n float _e175 = _group_0_binding_0_fs.n_fx.frequency;\n float _e189 = _group_0_binding_0_fs.n_fx.frequency;\n float _e200 = _group_0_binding_0_fs.n_fx.frequency;\n float _e215 = _group_0_binding_0_fs.n_fx.frequency;\n float _e229 = _group_0_binding_0_fs.n_fx.frequency;\n float _e240 = _group_0_binding_0_fs.n_fx.frequency;\n float _e272 = _group_0_binding_0_fs.n_fx.amplitude;\n float _e280 = _group_0_binding_0_fs.n_fx.height;\n float wfExtent_15_ = max(((clamp((((0.45 + (((((((sin((((wfColX_16_ * _e136) * 5.1) + (wfTime_17_ * 1.3))) * 0.28) + ((sin((((wfColX_16_ * _e149) * 9.7) + (wfTime_17_ * -1.9))) * sin((((wfColX_16_ * _e160) * 1.7) + (wfTime_17_ * 0.6)))) * 0.24)) + (sin((((wfColX_16_ * _e175) * 17.3) + (wfTime_17_ * 2.7))) * 0.18)) + ((sin((((wfColX_16_ * _e189) * 31.9) + (wfTime_17_ * -3.4))) * sin((((wfColX_16_ * _e200) * 3.3) + (wfTime_17_ * -0.9)))) * 0.14)) + (sin((((wfColX_16_ * _e215) * 67.7) + (wfTime_17_ * 4.1))) * 0.09)) + ((sin((((wfColX_16_ * _e229) * 131.3) + (wfTime_17_ * -5.3))) * sin((((wfColX_16_ * _e240) * 7.9) + (wfTime_17_ * 1.1)))) * 0.07)) * 0.6)) * mix(0.4, 1.0, exp(-((((wfColX_16_ - 0.5) * (wfColX_16_ - 0.5)) * 4.0))))) * _e272), 0.0, 1.0) * _e280) * 0.5), wfHalfW_14_);\n float _e295 = _group_0_binding_0_fs.n_fx.rounding;\n float _e297 = roundedRectSdf(wfColDx_9_, wfDy_12_, wfHalfW_14_, wfExtent_15_, (_e295 * wfHalfW_14_));\n composed_18_ = vec4(_e79.xyz, ((_e79.w * (1.0 - smoothstep(-((wfPx_8_ * 0.5)), (wfPx_8_ * 0.5), _e297))) * (1.0 - smoothstep(-((wfPx_8_ * 0.5)), (wfPx_8_ * 0.5), max(-(along_2_), (along_2_ - segLen_7_))))));\n vec4 _e316 = composed_18_;\n vec3 _e318 = tone_linear(_e316.xyz);\n vec3 _e319 = linearToSrgb(_e318);\n float _e321 = composed_18_.w;\n float _e324 = composed_18_.w;\n _fs2p_location0 = vec4((_e319 * _e321), _e324);\n return;\n}\n\n","uniforms":[{"block":"combined_block_0Fragment","bytes":"AACAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACBIzM9K0HWPQAAgD8AAIA/AACAP4EjMz1Biyg/AACAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAD8AAIA/AAAAPwAAgD8AAIA/mpkZPwAAAAAAAABCmpkZPwAAgD8zMzM/ppvEOwAAAAAAAIA/AACAPwAAgD9vEoO8AAAAAAAAAAAAAPBEAACHRAAA8EQAAIdEOY7jPwAAAAAAACDBAAAgwQAAAAAAAAAA","lines":[[428,-0.0160000008,0.999999992],[432,0,1]],"viewport":[440,448]}],"textures":[]}</script>
|
|
171
|
+
<script>
|
|
172
|
+
/* popost: the WebGPU shader of the original, translated to WebGL2 and drawn from the scene's time. */
|
|
173
|
+
(function () {
|
|
174
|
+
var data = JSON.parse(document.getElementById('popost-shader').textContent);
|
|
175
|
+
var canvas = document.querySelector('canvas[data-shader]');
|
|
176
|
+
var gl = canvas.getContext('webgl2', { antialias: false, premultipliedAlpha: true, preserveDrawingBuffer: true });
|
|
177
|
+
if (!gl) throw new Error('This scene needs WebGL2.');
|
|
178
|
+
var program = function (frag) {
|
|
179
|
+
var p = gl.createProgram();
|
|
180
|
+
[[gl.VERTEX_SHADER, data.vert], [gl.FRAGMENT_SHADER, frag]].forEach(function (stage) {
|
|
181
|
+
var sh = gl.createShader(stage[0]);
|
|
182
|
+
gl.shaderSource(sh, stage[1]);
|
|
183
|
+
gl.compileShader(sh);
|
|
184
|
+
if (!gl.getShaderParameter(sh, gl.COMPILE_STATUS)) throw new Error('shader: ' + gl.getShaderInfoLog(sh));
|
|
185
|
+
gl.attachShader(p, sh);
|
|
186
|
+
});
|
|
187
|
+
gl.linkProgram(p);
|
|
188
|
+
if (!gl.getProgramParameter(p, gl.LINK_STATUS)) throw new Error('shader: ' + gl.getProgramInfoLog(p));
|
|
189
|
+
return p;
|
|
190
|
+
};
|
|
191
|
+
var binding = 0;
|
|
192
|
+
var blocks = function (p, list) {
|
|
193
|
+
return list.map(function (u) {
|
|
194
|
+
var raw = atob(u.bytes), index = gl.getUniformBlockIndex(p, u.block);
|
|
195
|
+
var size = Math.max(raw.length, gl.getActiveUniformBlockParameter(p, index, gl.UNIFORM_BLOCK_DATA_SIZE));
|
|
196
|
+
var bytes = new Uint8Array((size + 15) & ~15);
|
|
197
|
+
for (var i = 0; i < raw.length; i++) bytes[i] = raw.charCodeAt(i);
|
|
198
|
+
var b = { at: binding++, buffer: gl.createBuffer(), bytes: bytes, floats: new Float32Array(bytes.buffer), u: u };
|
|
199
|
+
gl.uniformBlockBinding(p, index, b.at);
|
|
200
|
+
gl.bindBuffer(gl.UNIFORM_BUFFER, b.buffer);
|
|
201
|
+
gl.bufferData(gl.UNIFORM_BUFFER, bytes, gl.DYNAMIC_DRAW);
|
|
202
|
+
return b;
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
var bind = function (list) { list.forEach(function (b) { gl.bindBufferBase(gl.UNIFORM_BUFFER, b.at, b.buffer); }); };
|
|
206
|
+
var textures = data.textures.map(function (t) {
|
|
207
|
+
if (!gl.getExtension('EXT_color_buffer_float')) throw new Error('This scene needs float textures (EXT_color_buffer_float).');
|
|
208
|
+
var tex = gl.createTexture();
|
|
209
|
+
gl.bindTexture(gl.TEXTURE_2D, tex);
|
|
210
|
+
gl.texStorage2D(gl.TEXTURE_2D, 1, gl.RGBA32F, t.size[0], t.size[1]);
|
|
211
|
+
[gl.TEXTURE_MIN_FILTER, gl.TEXTURE_MAG_FILTER].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.NEAREST); });
|
|
212
|
+
[gl.TEXTURE_WRAP_S, gl.TEXTURE_WRAP_T].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.CLAMP_TO_EDGE); });
|
|
213
|
+
var fb = gl.createFramebuffer();
|
|
214
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
|
|
215
|
+
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0);
|
|
216
|
+
var p = program(t.frag), own = blocks(p, t.uniforms);
|
|
217
|
+
gl.viewport(0, 0, t.size[0], t.size[1]);
|
|
218
|
+
gl.useProgram(p);
|
|
219
|
+
bind(own);
|
|
220
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
221
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, null);
|
|
222
|
+
return { sampler: t.sampler, texture: tex };
|
|
223
|
+
});
|
|
224
|
+
var main = program(data.frag), uniforms = blocks(main, data.uniforms);
|
|
225
|
+
// Drawn at the size it is shown: the composition's size scaled as the scene's canvas fits it (as the shim does).
|
|
226
|
+
var fit = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
|
|
227
|
+
var params = document.getElementById('popost-params'), cover = params && (JSON.parse(params.textContent).values || {}).fit === 'cover';
|
|
228
|
+
var k = Math.min(1, (cover ? Math.max : Math.min)(Number(fit[1]) / canvas.width, Number(fit[2]) / canvas.height));
|
|
229
|
+
canvas.width = Math.max(1, Math.round(canvas.width * k));
|
|
230
|
+
canvas.height = Math.max(1, Math.round(canvas.height * k));
|
|
231
|
+
uniforms.forEach(function (b) { (b.u.viewport || []).forEach(function (o) { b.floats[o / 4] = canvas.width; b.floats[o / 4 + 1] = canvas.height; }); });
|
|
232
|
+
var draw = function (seconds) {
|
|
233
|
+
uniforms.forEach(function (b) {
|
|
234
|
+
(b.u.lines || []).forEach(function (l) { b.floats[l[0] / 4] = l[1] + l[2] * seconds; });
|
|
235
|
+
(b.u.sines || []).forEach(function (w) { b.floats[w[0] / 4] = w[1] + w[2] * Math.sin(w[3] * seconds + w[4]); });
|
|
236
|
+
gl.bindBuffer(gl.UNIFORM_BUFFER, b.buffer);
|
|
237
|
+
gl.bufferSubData(gl.UNIFORM_BUFFER, 0, b.bytes);
|
|
238
|
+
});
|
|
239
|
+
gl.useProgram(main);
|
|
240
|
+
bind(uniforms);
|
|
241
|
+
textures.forEach(function (t, i) {
|
|
242
|
+
gl.activeTexture(gl.TEXTURE0 + i);
|
|
243
|
+
gl.bindTexture(gl.TEXTURE_2D, t.texture);
|
|
244
|
+
gl.uniform1i(gl.getUniformLocation(main, t.sampler), i);
|
|
245
|
+
});
|
|
246
|
+
gl.viewport(0, 0, canvas.width, canvas.height);
|
|
247
|
+
gl.clearColor(0, 0, 0, 0);
|
|
248
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
249
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
250
|
+
};
|
|
251
|
+
window.addEventListener('hf-seek', function (e) { draw(e.detail.time); });
|
|
252
|
+
draw(0);
|
|
253
|
+
})();
|
|
254
|
+
</script>
|
|
255
|
+
</div>
|
|
256
|
+
<script>window.__popostFit();</script>
|
|
257
|
+
</body>
|
|
258
|
+
</html>
|