popost 4.6.1 → 4.6.7
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 +20 -7
- package/SKILL.md +48 -131
- package/THIRD_PARTY_NOTICES +524 -0
- package/agents/openai.yaml +2 -2
- 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 +16335 -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/list-cards.html +155 -0
- package/assets/video/examples/motion-blur-streak.html +119 -0
- package/assets/video/examples/object-reveal.html +107 -0
- package/assets/video/examples/page-flip.html +163 -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/assets/video/times.js +59 -0
- package/dist/cli.js +36667 -2526
- package/dist/index.js +36429 -2459
- package/dist/types/args.d.ts +2 -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/cpu-budget.d.ts +43 -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/node-runtime.d.ts +6 -1
- package/dist/types/providers/api.d.ts +9 -0
- 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 +2 -1
- 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.d.ts +16 -1
- package/dist/types/providers/task.d.ts +43 -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-books.d.ts +2 -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 +52 -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-kept.d.ts +10 -0
- package/dist/types/video/eval/readback-run.d.ts +58 -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 +60 -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 +164 -0
- package/dist/types/video/page/css.d.ts +9 -0
- package/dist/types/video/page/dom.d.ts +56 -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/times.d.ts +31 -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 +49 -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 +18 -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 +57 -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/chunked.d.ts +29 -0
- package/dist/types/video/render/chunks.d.ts +39 -0
- package/dist/types/video/render/encode.d.ts +54 -0
- package/dist/types/video/render/index.d.ts +116 -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 +81 -0
- package/dist/types/video/render/shots.d.ts +11 -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/books.d.ts +64 -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 +168 -0
- package/dist/types/video/replication/retiming.d.ts +16 -0
- package/dist/types/video/replication/review.d.ts +50 -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 +5 -0
- package/dist/types/video/retarget/index.d.ts +256 -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 +43 -0
- package/dist/types/video/retarget/takes.d.ts +66 -0
- package/dist/types/video/retarget/tempo.d.ts +42 -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 +46 -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 +53 -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 +54 -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 +82 -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/cache.d.ts +10 -0
- package/dist/types/video/voice/create.d.ts +43 -0
- package/dist/types/video/voice/hosted.d.ts +42 -0
- package/dist/types/video/voice/index.d.ts +85 -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 +45 -0
- package/dist/types/video/work.d.ts +10 -0
- package/dist/types/workflow/post-bundle.d.ts +2 -2
- package/package.json +13 -4
- package/references/image-workflow.md +111 -0
- package/references/onboarding.md +50 -19
- package/references/post-bundle.md +1 -1
- package/references/providers.md +5 -2
- package/references/video-draft-export.md +13 -0
- package/references/video-editing.md +43 -0
- package/references/video-effects.md +613 -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 +96 -0
- package/references/video-project.md +65 -0
- package/references/video-replication.md +305 -0
- package/references/video-scenes.md +416 -0
- package/references/video-sfx.md +109 -0
- package/references/video-sound.md +222 -0
- package/references/video-step-0-machine.md +61 -0
- package/references/video-step-1-read.md +168 -0
- package/references/video-step-2-structure.md +24 -0
- package/references/video-step-3-content.md +117 -0
- package/references/video-step-4-lines.md +88 -0
- package/references/video-step-5-scenes.md +126 -0
- package/references/video-step-6-voice.md +53 -0
- package/references/video-step-7-deliver.md +92 -0
- package/references/video-templates.md +187 -0
- package/references/video-tools.md +562 -0
- package/references/video.md +140 -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,257 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/godrays, 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 (Godrays, 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="godrays"] 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": "Rays of light fan out from a corner and drift across a deep blue field. A WebGPU shader from the Shaders library (shaders.com, MIT).",
|
|
27
|
+
"class": "background",
|
|
28
|
+
"tags": [
|
|
29
|
+
"webgpu",
|
|
30
|
+
"webgpu-shader",
|
|
31
|
+
"background",
|
|
32
|
+
"light",
|
|
33
|
+
"rays"
|
|
34
|
+
],
|
|
35
|
+
"seconds": 2,
|
|
36
|
+
"params": [
|
|
37
|
+
{
|
|
38
|
+
"name": "fit",
|
|
39
|
+
"type": "choice",
|
|
40
|
+
"default": "contain",
|
|
41
|
+
"options": [
|
|
42
|
+
"contain",
|
|
43
|
+
"cover"
|
|
44
|
+
],
|
|
45
|
+
"what": "how the 1920x1080 composition is fitted into the canvas: whole with bars, or filling it and cropped"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"values": {}
|
|
49
|
+
}
|
|
50
|
+
</script>
|
|
51
|
+
<script>
|
|
52
|
+
/* popost: the scene's parameters stand in for HyperFrames variables; random numbers are seeded; the composition is
|
|
53
|
+
scaled into the canvas; clips are shown and hidden from the scene's time. */
|
|
54
|
+
(function () {
|
|
55
|
+
var block = document.getElementById('popost-params');
|
|
56
|
+
var values = block ? (JSON.parse(block.textContent).values || {}) : {};
|
|
57
|
+
var vars = {};
|
|
58
|
+
Object.keys(values).forEach(function (k) { if (k !== 'fit') vars[k] = values[k] === 'true' ? true : values[k] === 'false' ? false : values[k]; });
|
|
59
|
+
window.__hyperframes = { getVariables: function () { return vars; } };
|
|
60
|
+
var seed = 20240229;
|
|
61
|
+
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; };
|
|
62
|
+
// HyperFrames variables as CSS custom properties (runtime/getVariables.ts, compositionLoader.ts). A mounted
|
|
63
|
+
// composition's host lists its variables (data-popost-variables, written by the port): before the composition's
|
|
64
|
+
// scripts run it gets those no rule gives it yet (an inherited value counts), and after them the rest; a value given
|
|
65
|
+
// by a parameter always wins.
|
|
66
|
+
var cssName = function (id) { return '--' + (String(id).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'node'); };
|
|
67
|
+
var givenId = function (n) { return Object.keys(values).filter(function (id) { return id !== 'fit' && cssName(id) === n; })[0]; };
|
|
68
|
+
var hostVars = function (h, early) {
|
|
69
|
+
(h.getAttribute('data-popost-variables') || '').split(';').forEach(function (d) {
|
|
70
|
+
var i = d.indexOf(':'), n = d.slice(0, i).trim(), k = givenId(n);
|
|
71
|
+
if (i < 0 || !n) return;
|
|
72
|
+
if (k !== undefined) h.style.setProperty(n, String(vars[k]));
|
|
73
|
+
else if (!(h.style.getPropertyValue(n) || (early ? getComputedStyle(h).getPropertyValue(n) : '')).trim()) h.style.setProperty(n, d.slice(i + 1).trim());
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
// Root-level clips laid out as HyperFrames lays them out (runtime/init.ts, applyCompositionSizing and applyClipLayout):
|
|
77
|
+
// its root composition (one marked data-root="true", else the first element with a data-composition-id, which is the
|
|
78
|
+
// page's <html> when that has one) gets its declared size, a position and overflow hidden; each child of it with a
|
|
79
|
+
// data-start is placed absolute unless it is absolute or fixed already, and given its declared size, or 100% where it
|
|
80
|
+
// measures 0. A composition box deeper in the page keeps the position its page gives it.
|
|
81
|
+
var layout = function () {
|
|
82
|
+
var hroot = document.querySelector('[data-composition-id][data-root="true"]') || document.querySelector('[data-composition-id]');
|
|
83
|
+
if (!hroot) return;
|
|
84
|
+
var px = function (v) { var n = parseFloat(v); return isFinite(n) && n > 0 ? n + 'px' : null; };
|
|
85
|
+
var rw = px(hroot.getAttribute('data-width')), rh = px(hroot.getAttribute('data-height'));
|
|
86
|
+
if (rw) { hroot.style.width = rw; hroot.style.setProperty('--comp-width', rw); }
|
|
87
|
+
if (rh) { hroot.style.height = rh; hroot.style.setProperty('--comp-height', rh); }
|
|
88
|
+
if (!hroot.style.position) hroot.style.position = 'relative';
|
|
89
|
+
hroot.style.overflow = 'hidden';
|
|
90
|
+
Array.prototype.forEach.call(hroot.children, function (el) {
|
|
91
|
+
if (/^(SCRIPT|STYLE|LINK|META)$/.test(el.tagName) || !el.hasAttribute('data-start')) return;
|
|
92
|
+
var none = el.style.getPropertyValue('display') === 'none', priority = el.style.getPropertyPriority('display');
|
|
93
|
+
if (none) el.style.removeProperty('display');
|
|
94
|
+
var cs = getComputedStyle(el);
|
|
95
|
+
if (cs.position !== 'absolute' && cs.position !== 'fixed') el.style.position = 'absolute';
|
|
96
|
+
if (el.tagName !== 'AUDIO') {
|
|
97
|
+
var byFile = /^(IMG|VIDEO)$/.test(el.tagName), fw = px(el.getAttribute('data-width')), fh = px(el.getAttribute('data-height'));
|
|
98
|
+
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%';
|
|
99
|
+
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%';
|
|
100
|
+
}
|
|
101
|
+
if (none) el.style.setProperty('display', 'none', priority);
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
// HyperFrames loads a mounted composition after it has laid out the page, so its scripts see the host placed: each
|
|
105
|
+
// script of a mounted composition calls this first (the port puts the call there).
|
|
106
|
+
window.__popostMount = function (script) {
|
|
107
|
+
var h = script && script.closest ? script.closest('[data-popost-host]') : null;
|
|
108
|
+
if (!h || h.__popostMounted) return;
|
|
109
|
+
h.__popostMounted = true;
|
|
110
|
+
layout();
|
|
111
|
+
hostVars(h, true);
|
|
112
|
+
};
|
|
113
|
+
window.__popostFit = function () {
|
|
114
|
+
// 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.
|
|
115
|
+
var size = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
|
|
116
|
+
var W = 1920, H = 1080, s = document.getElementById('popost-stage'), cw = Number(size[1]), ch = Number(size[2]);
|
|
117
|
+
var k = (values.fit === 'cover' ? Math.max : Math.min)(cw / W, ch / H);
|
|
118
|
+
s.style.transform = 'translate(' + (cw - W * k) / 2 + 'px,' + (ch - H * k) / 2 + 'px) scale(' + k + ')';
|
|
119
|
+
// The page's own declared variables on its root element (runtime/getVariables.ts, injectCompositionCssVariables):
|
|
120
|
+
// each default where no rule defines its property, a value given by a parameter always.
|
|
121
|
+
Array.prototype.forEach.call(document.querySelectorAll('[data-popost-host]'), function (h) { hostVars(h, false); });
|
|
122
|
+
layout();
|
|
123
|
+
// Timed elements as HyperFrames has them (runtime/clipTree.ts, clipWindow.ts): every element with a data-start but the
|
|
124
|
+
// root composition, from its start plus the starts of the compositions it sits in, for its data-duration (a
|
|
125
|
+
// composition without one: its timeline's length); one that runs to the end of the root keeps its last frame.
|
|
126
|
+
var root = s.querySelector('[data-composition-id]');
|
|
127
|
+
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'))); });
|
|
128
|
+
var windows = clips.map(function (c) {
|
|
129
|
+
var a = parseFloat(c.getAttribute('data-start')), d = parseFloat(c.getAttribute('data-duration')), id = c.getAttribute('data-composition-id');
|
|
130
|
+
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'));
|
|
131
|
+
var tl = !(d > 0) && id && window.__timelines && window.__timelines[id];
|
|
132
|
+
return [a, d > 0 ? d : tl && tl.duration ? tl.duration() : Infinity];
|
|
133
|
+
});
|
|
134
|
+
var rootLength = parseFloat(root && root.getAttribute('data-duration'));
|
|
135
|
+
// A mounted composition that starts later in its host runs on its own time.
|
|
136
|
+
[].forEach(function (m) {
|
|
137
|
+
var tl = window.__timelines && window.__timelines[m.id];
|
|
138
|
+
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; } };
|
|
139
|
+
});
|
|
140
|
+
var scene = (window.__popostScene = window.__popostScene || {}), before = scene.render;
|
|
141
|
+
scene.render = function (seconds, fps) {
|
|
142
|
+
if (before) before(seconds, fps);
|
|
143
|
+
// A page that draws on the HyperFrames seek event gets it for every frame; what it waits for resolves before the frame is taken.
|
|
144
|
+
window.dispatchEvent(new CustomEvent('hf-seek', { detail: { time: seconds, waitUntil: function () {} } }));
|
|
145
|
+
for (var i = 0; i < clips.length; i++) {
|
|
146
|
+
var a = windows[i][0], end = a + windows[i][1];
|
|
147
|
+
clips[i].style.visibility = seconds >= a - 1e-6 && (seconds < end - 1e-6 || end >= rootLength - 1e-6) ? 'visible' : 'hidden';
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
})();
|
|
152
|
+
</script>
|
|
153
|
+
<script type="application/json" id="popost-cues">[]</script>
|
|
154
|
+
</head>
|
|
155
|
+
<body>
|
|
156
|
+
<div id="popost-stage">
|
|
157
|
+
<div
|
|
158
|
+
data-composition-id="godrays"
|
|
159
|
+
data-start="0"
|
|
160
|
+
data-duration="2"
|
|
161
|
+
data-width="1920"
|
|
162
|
+
data-height="1080"
|
|
163
|
+
|
|
164
|
+
data-no-timeline
|
|
165
|
+
style="position: relative; width: 1920px; height: 1080px; overflow: hidden; background: #000"
|
|
166
|
+
>
|
|
167
|
+
<canvas data-shader="Godrays" width="1920" height="1080"></canvas>
|
|
168
|
+
</div>
|
|
169
|
+
<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 density;\n float intensity;\n float spotty;\n float speed;\n vec4 rayColor;\n vec4 backgroundColor;\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\nvec4 coverageOver(vec4 rayColor, vec4 bgColor, float coverage) {\n float rayA = (coverage * rayColor.w);\n float finalAlpha = (rayA + (bgColor.w * (1.0 - rayA)));\n float safeAlpha = clamp(finalAlpha, 0.001, 1.0);\n vec3 rayContribution = (rayColor.xyz * rayA);\n vec3 bgContribution = ((bgColor.xyz * bgColor.w) * (1.0 - rayA));\n vec3 finalColor = ((rayContribution + bgContribution) / vec3(safeAlpha));\n return vec4(finalColor, finalAlpha);\n}\n\nuvec2 floatBitsToUint2_(vec2 v) {\n return floatBitsToUint(v);\n}\n\nfloat noise_hash12_(vec2 p) {\n uvec2 _e5 = floatBitsToUint2_((p * vec2(141421360.0, 2718281700.0)));\n return (float(((_e5.x ^ _e5.y) * 3141592653u)) / 4294967300.0);\n}\n\nfloat godraysHash(vec2 p_1) {\n float _e1 = noise_hash12_(p_1);\n return _e1;\n}\n\nfloat godraysValueNoise(vec2 st) {\n vec2 i = floor(st);\n vec2 f = fract(st);\n float _e3 = godraysHash(i);\n float _e9 = godraysHash(vec2((i.x + 1.0), i.y));\n float _e15 = godraysHash(vec2(i.x, (i.y + 1.0)));\n float _e23 = godraysHash(vec2((i.x + 1.0), (i.y + 1.0)));\n vec2 u = ((f * f) * ((f * -2.0) + vec2(3.0)));\n float x1_ = mix(_e3, _e9, u.x);\n float x2_ = mix(_e15, _e23, u.x);\n return mix(x1_, x2_, u.y);\n}\n\nfloat godraysRaysShape(float a, float aWrapped, float blend, float r, float freq, float intensity) {\n float _e8 = godraysValueNoise(vec2((a * freq), r));\n float nLeft = pow(_e8, intensity);\n float _e12 = godraysValueNoise(vec2((aWrapped * freq), r));\n float nRight = pow(_e12, intensity);\n return mix(nRight, nLeft, blend);\n}\n\nfloat godraysRayLayer(vec4 frame, float animTime, float spots, float intensityCalc, float dens, vec4 sched, vec2 freqs) {\n float rA = ((frame.w * sched.x) - (animTime * sched.y));\n float rB = (((frame.w * sched.z) * (1.0 + spots)) - (animTime * sched.w));\n float f_1 = (dens * freqs.x);\n float _e27 = godraysRaysShape(frame.x, frame.y, frame.z, rA, f_1, intensityCalc);\n float _e33 = godraysRaysShape(frame.x, frame.y, frame.z, rB, (f_1 * freqs.y), intensityCalc);\n return (_e27 * _e33);\n}\n\nfloat godraysRayStack(vec4 frame_1, float animTimeRaw, float density, float intensity_1, float spotty) {\n float animTime_1 = (animTimeRaw * 0.2);\n float spots_1 = (6.5 * abs(spotty));\n float intensityCalc_1 = (4.0 - (3.0 * clamp(intensity_1, 0.0, 1.0)));\n float dens_1 = (6.0 * density);\n float _e27 = godraysRayLayer(frame_1, animTime_1, spots_1, intensityCalc_1, dens_1, vec4(1.0, 3.0, 0.5, 2.0), vec2(5.0, 4.0));\n float _e36 = godraysRayLayer(frame_1, animTime_1, spots_1, intensityCalc_1, dens_1, vec4(1.4, 2.5, 0.7, 1.8), vec2(4.5, 3.5));\n return clamp((_e27 + (_e36 * 0.7)), 0.0, 1.0);\n}\n\nfloat geom_aspectOf(vec2 viewport) {\n return (viewport.x / max(viewport.y, 1e-6));\n}\n\nvec3 lightfields_seamlessAngularField(vec2 delta) {\n float angle = atan(delta.y, delta.x);\n float angleWrapped = (angle - (6.2831855 * floor((angle / 6.2831855))));\n float blend_1 = smoothstep(-0.15, 0.15, delta.x);\n return vec3(angle, angleWrapped, blend_1);\n}\n\nvec4 godraysFrame(vec2 uv_1, vec2 viewport_1, vec2 center) {\n float _e3 = geom_aspectOf(viewport_1);\n vec2 centerPos = vec2(center.x, (1.0 - center.y));\n vec2 delta_1 = (uv_1 - centerPos);\n vec2 shapeUV = vec2((delta_1.x * _e3), delta_1.y);\n vec3 _e14 = lightfields_seamlessAngularField(shapeUV);\n return vec4(_e14.x, _e14.y, _e14.z, length(shapeUV));\n}\n\nvec3 linearToSrgb(vec3 color) {\n vec3 a_1 = ((pow(color, vec3(0.41666)) * 1.055) - vec3(0.055));\n vec3 b = (color * 12.92);\n bvec3 factor = lessThanEqual(color, vec3(0.0031308));\n return mix(a_1, b, 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_0_ = vec4(0.0);\n uv = in_.uv;\n vec4 _e6 = _group_0_binding_0_fs.n_fx.rayColor;\n vec4 _e10 = _group_0_binding_0_fs.n_fx.backgroundColor;\n vec2 _e11 = uv;\n vec2 _e15 = _group_0_binding_0_fs._sys.viewportSize;\n vec2 _e19 = _group_0_binding_0_fs.n_fx.center;\n vec4 _e20 = godraysFrame(_e11, _e15, _e19);\n float _e24 = _group_0_binding_0_fs.n_fx._animTime;\n float _e28 = _group_0_binding_0_fs.n_fx.density;\n float _e32 = _group_0_binding_0_fs.n_fx.intensity;\n float _e36 = _group_0_binding_0_fs.n_fx.spotty;\n float _e37 = godraysRayStack(_e20, _e24, _e28, _e32, _e36);\n vec4 _e38 = coverageOver(_e6, _e10, _e37);\n composed_0_ = _e38;\n vec4 _e40 = composed_0_;\n vec3 _e42 = tone_linear(_e40.xyz);\n vec3 _e43 = linearToSrgb(_e42);\n float _e45 = composed_0_.w;\n float _e48 = composed_0_.w;\n _fs2p_location0 = vec4((_e43 * _e45), _e48);\n return;\n}\n\n","uniforms":[{"block":"combined_block_0Fragment","bytes":"AACAPwAAAAAAAAAAAAAAAAAAAAAAAIA/mpmZPs3MTD8AAIA/AAAAPwAAAAAAAAAAtiZfPb5paD6u9XY/AACAPwAAAAAAAAAAAAAAAAAAAAAAAIA/bxIDvAAAAAAAAAAAAAAAAAAAAAAAAPBEAACHRAAA8EQAAIdEOY7jPwAAAAAAACDBAAAgwQAAAAAAAAAA","lines":[[84,-0.00800000038,0.499999996],[96,0,1]],"viewport":[104,112]}],"textures":[]}</script>
|
|
170
|
+
<script>
|
|
171
|
+
/* popost: the WebGPU shader of the original, translated to WebGL2 and drawn from the scene's time. */
|
|
172
|
+
(function () {
|
|
173
|
+
var data = JSON.parse(document.getElementById('popost-shader').textContent);
|
|
174
|
+
var canvas = document.querySelector('canvas[data-shader]');
|
|
175
|
+
var gl = canvas.getContext('webgl2', { antialias: false, premultipliedAlpha: true, preserveDrawingBuffer: true });
|
|
176
|
+
if (!gl) throw new Error('This scene needs WebGL2.');
|
|
177
|
+
var program = function (frag) {
|
|
178
|
+
var p = gl.createProgram();
|
|
179
|
+
[[gl.VERTEX_SHADER, data.vert], [gl.FRAGMENT_SHADER, frag]].forEach(function (stage) {
|
|
180
|
+
var sh = gl.createShader(stage[0]);
|
|
181
|
+
gl.shaderSource(sh, stage[1]);
|
|
182
|
+
gl.compileShader(sh);
|
|
183
|
+
if (!gl.getShaderParameter(sh, gl.COMPILE_STATUS)) throw new Error('shader: ' + gl.getShaderInfoLog(sh));
|
|
184
|
+
gl.attachShader(p, sh);
|
|
185
|
+
});
|
|
186
|
+
gl.linkProgram(p);
|
|
187
|
+
if (!gl.getProgramParameter(p, gl.LINK_STATUS)) throw new Error('shader: ' + gl.getProgramInfoLog(p));
|
|
188
|
+
return p;
|
|
189
|
+
};
|
|
190
|
+
var binding = 0;
|
|
191
|
+
var blocks = function (p, list) {
|
|
192
|
+
return list.map(function (u) {
|
|
193
|
+
var raw = atob(u.bytes), index = gl.getUniformBlockIndex(p, u.block);
|
|
194
|
+
var size = Math.max(raw.length, gl.getActiveUniformBlockParameter(p, index, gl.UNIFORM_BLOCK_DATA_SIZE));
|
|
195
|
+
var bytes = new Uint8Array((size + 15) & ~15);
|
|
196
|
+
for (var i = 0; i < raw.length; i++) bytes[i] = raw.charCodeAt(i);
|
|
197
|
+
var b = { at: binding++, buffer: gl.createBuffer(), bytes: bytes, floats: new Float32Array(bytes.buffer), u: u };
|
|
198
|
+
gl.uniformBlockBinding(p, index, b.at);
|
|
199
|
+
gl.bindBuffer(gl.UNIFORM_BUFFER, b.buffer);
|
|
200
|
+
gl.bufferData(gl.UNIFORM_BUFFER, bytes, gl.DYNAMIC_DRAW);
|
|
201
|
+
return b;
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
var bind = function (list) { list.forEach(function (b) { gl.bindBufferBase(gl.UNIFORM_BUFFER, b.at, b.buffer); }); };
|
|
205
|
+
var textures = data.textures.map(function (t) {
|
|
206
|
+
if (!gl.getExtension('EXT_color_buffer_float')) throw new Error('This scene needs float textures (EXT_color_buffer_float).');
|
|
207
|
+
var tex = gl.createTexture();
|
|
208
|
+
gl.bindTexture(gl.TEXTURE_2D, tex);
|
|
209
|
+
gl.texStorage2D(gl.TEXTURE_2D, 1, gl.RGBA32F, t.size[0], t.size[1]);
|
|
210
|
+
[gl.TEXTURE_MIN_FILTER, gl.TEXTURE_MAG_FILTER].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.NEAREST); });
|
|
211
|
+
[gl.TEXTURE_WRAP_S, gl.TEXTURE_WRAP_T].forEach(function (k) { gl.texParameteri(gl.TEXTURE_2D, k, gl.CLAMP_TO_EDGE); });
|
|
212
|
+
var fb = gl.createFramebuffer();
|
|
213
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, fb);
|
|
214
|
+
gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, tex, 0);
|
|
215
|
+
var p = program(t.frag), own = blocks(p, t.uniforms);
|
|
216
|
+
gl.viewport(0, 0, t.size[0], t.size[1]);
|
|
217
|
+
gl.useProgram(p);
|
|
218
|
+
bind(own);
|
|
219
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
220
|
+
gl.bindFramebuffer(gl.FRAMEBUFFER, null);
|
|
221
|
+
return { sampler: t.sampler, texture: tex };
|
|
222
|
+
});
|
|
223
|
+
var main = program(data.frag), uniforms = blocks(main, data.uniforms);
|
|
224
|
+
// Drawn at the size it is shown: the composition's size scaled as the scene's canvas fits it (as the shim does).
|
|
225
|
+
var fit = /width: (\d+)px; height: (\d+)px;/.exec(document.getElementById('popost-fit').textContent);
|
|
226
|
+
var params = document.getElementById('popost-params'), cover = params && (JSON.parse(params.textContent).values || {}).fit === 'cover';
|
|
227
|
+
var k = Math.min(1, (cover ? Math.max : Math.min)(Number(fit[1]) / canvas.width, Number(fit[2]) / canvas.height));
|
|
228
|
+
canvas.width = Math.max(1, Math.round(canvas.width * k));
|
|
229
|
+
canvas.height = Math.max(1, Math.round(canvas.height * k));
|
|
230
|
+
uniforms.forEach(function (b) { (b.u.viewport || []).forEach(function (o) { b.floats[o / 4] = canvas.width; b.floats[o / 4 + 1] = canvas.height; }); });
|
|
231
|
+
var draw = function (seconds) {
|
|
232
|
+
uniforms.forEach(function (b) {
|
|
233
|
+
(b.u.lines || []).forEach(function (l) { b.floats[l[0] / 4] = l[1] + l[2] * seconds; });
|
|
234
|
+
(b.u.sines || []).forEach(function (w) { b.floats[w[0] / 4] = w[1] + w[2] * Math.sin(w[3] * seconds + w[4]); });
|
|
235
|
+
gl.bindBuffer(gl.UNIFORM_BUFFER, b.buffer);
|
|
236
|
+
gl.bufferSubData(gl.UNIFORM_BUFFER, 0, b.bytes);
|
|
237
|
+
});
|
|
238
|
+
gl.useProgram(main);
|
|
239
|
+
bind(uniforms);
|
|
240
|
+
textures.forEach(function (t, i) {
|
|
241
|
+
gl.activeTexture(gl.TEXTURE0 + i);
|
|
242
|
+
gl.bindTexture(gl.TEXTURE_2D, t.texture);
|
|
243
|
+
gl.uniform1i(gl.getUniformLocation(main, t.sampler), i);
|
|
244
|
+
});
|
|
245
|
+
gl.viewport(0, 0, canvas.width, canvas.height);
|
|
246
|
+
gl.clearColor(0, 0, 0, 0);
|
|
247
|
+
gl.clear(gl.COLOR_BUFFER_BIT);
|
|
248
|
+
gl.drawArrays(gl.TRIANGLES, 0, 3);
|
|
249
|
+
};
|
|
250
|
+
window.addEventListener('hf-seek', function (e) { draw(e.detail.time); });
|
|
251
|
+
draw(0);
|
|
252
|
+
})();
|
|
253
|
+
</script>
|
|
254
|
+
</div>
|
|
255
|
+
<script>window.__popostFit();</script>
|
|
256
|
+
</body>
|
|
257
|
+
</html>
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Adapted from HyperFrames (https://github.com/heygen-com/hyperframes), registry/blocks/goo, 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 (Goo, 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="goo"] 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 glossy green liquid ball whose surface bulges and ripples like wet goo, centred on black. A WebGPU shader from the Shaders library (shaders.com, MIT).",
|
|
27
|
+
"class": "shape",
|
|
28
|
+
"tags": [
|
|
29
|
+
"webgpu",
|
|
30
|
+
"webgpu-shader",
|
|
31
|
+
"liquid",
|
|
32
|
+
"3d",
|
|
33
|
+
"organic",
|
|
34
|
+
"orb"
|
|
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="goo"
|
|
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="Goo" 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 gooColor;\n float translucency;\n float absorb;\n float containment;\n float edgeSoftness;\n float blobScale;\n float spread;\n float merge;\n float bulge;\n float threshold;\n float lightAngle;\n float wetness;\n float fresnel;\n vec4 specColor;\n float ambient;\n float speed;\n float wobble;\n float breathe;\n float seed;\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 fieldSampleFastArg(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 maxT = (activeResF - 1.0);\n uint cx0_ = uint(clamp(x0_, 0.0, maxT));\n uint cx1_ = uint(clamp((x0_ + 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 vec4 t00_ = texelFetch(field, ivec2(uvec2(cx0_, cy0_)), 0);\n vec4 t10_ = texelFetch(field, ivec2(uvec2(cx1_, cy0_)), 0);\n vec4 t01_ = texelFetch(field, ivec2(uvec2(cx0_, cy1_)), 0);\n vec4 t11_ = texelFetch(field, ivec2(uvec2(cx1_, cy1_)), 0);\n vec4 bl = mix(mix(t00_, t10_, fx), mix(t01_, t11_, fx), fy);\n float rNear = (bl.x + 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, bl.w);\n}\n\nvec2 offsetUV(vec2 uv_3, float ox, float oy) {\n return vec2((uv_3.x + ox), (uv_3.y + oy));\n}\n\nvec4 fieldSampleArg(vec2 uv_4, 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_4.x, originX_1, (originX_1 + spanX_1));\n float uyc_1 = clamp(uv_4.y, originY_1, (originY_1 + spanY_1));\n float outsideDist_1 = length(vec2((uv_4.x - uxc_1), (uv_4.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 tx2_ = (fx_1 * fx_1);\n float tx3_ = (tx2_ * fx_1);\n float wx0_ = (((tx3_ * -0.5) + tx2_) - (fx_1 * 0.5));\n float wx1_ = (((tx3_ * 1.5) - (tx2_ * 2.5)) + 1.0);\n float wx2_ = (((tx3_ * -1.5) + (tx2_ * 2.0)) + (fx_1 * 0.5));\n float wx3_ = ((tx3_ * 0.5) - (tx2_ * 0.5));\n float ty2_ = (fy_1 * fy_1);\n float ty3_ = (ty2_ * fy_1);\n float wy0_ = (((ty3_ * -0.5) + ty2_) - (fy_1 * 0.5));\n float wy1_ = (((ty3_ * 1.5) - (ty2_ * 2.5)) + 1.0);\n float wy2_ = (((ty3_ * -1.5) + (ty2_ * 2.0)) + (fy_1 * 0.5));\n float wy3_ = ((ty3_ * 0.5) - (ty2_ * 0.5));\n float maxT_1 = (activeResF_1 - 1.0);\n uint cxm = uint(clamp((x0_1 - 1.0), 0.0, maxT_1));\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 cx2_ = uint(clamp((x0_1 + 2.0), 0.0, maxT_1));\n uint cym = uint(clamp((y0_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 uint cy2_ = uint(clamp((y0_1 + 2.0), 0.0, maxT_1));\n vec4 k00_ = texelFetch(field_1, ivec2(uvec2(cxm, cym)), 0);\n vec4 k01_ = texelFetch(field_1, ivec2(uvec2(cx0_1, cym)), 0);\n vec4 k02_ = texelFetch(field_1, ivec2(uvec2(cx1_1, cym)), 0);\n vec4 k03_ = texelFetch(field_1, ivec2(uvec2(cx2_, cym)), 0);\n vec4 k10_ = texelFetch(field_1, ivec2(uvec2(cxm, cy0_1)), 0);\n vec4 k11_ = texelFetch(field_1, ivec2(uvec2(cx0_1, cy0_1)), 0);\n vec4 k12_ = texelFetch(field_1, ivec2(uvec2(cx1_1, cy0_1)), 0);\n vec4 k13_ = texelFetch(field_1, ivec2(uvec2(cx2_, cy0_1)), 0);\n vec4 k20_ = texelFetch(field_1, ivec2(uvec2(cxm, cy1_1)), 0);\n vec4 k21_ = texelFetch(field_1, ivec2(uvec2(cx0_1, cy1_1)), 0);\n vec4 k22_ = texelFetch(field_1, ivec2(uvec2(cx1_1, cy1_1)), 0);\n vec4 k23_ = texelFetch(field_1, ivec2(uvec2(cx2_, cy1_1)), 0);\n vec4 k30_ = texelFetch(field_1, ivec2(uvec2(cxm, cy2_)), 0);\n vec4 k31_ = texelFetch(field_1, ivec2(uvec2(cx0_1, cy2_)), 0);\n vec4 k32_ = texelFetch(field_1, ivec2(uvec2(cx1_1, cy2_)), 0);\n vec4 k33_ = texelFetch(field_1, 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_1 = mix(mix(k11_, k12_, fx_1), mix(k21_, k22_, fx_1), fy_1);\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_1 = (clamp(rAcc, rMin, rMax) + outsideDist_1);\n float rCircle_1 = (length(vec2((uv_4.x - 0.5), (uv_4.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, aOut);\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\nvec3 linearToSrgb(vec3 color) {\n vec3 a = ((pow(color, vec3(0.41666)) * 1.055) - vec3(0.055));\n vec3 b = (color * 12.92);\n bvec3 factor = lessThanEqual(color, vec3(0.0031308));\n return mix(a, b, 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 goo_0_ = vec4(0.0, 0.0, 0.0, 0.0);\n vec4 composed_85_ = 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 px_1_ = (_e20.x - 0.5);\n float py_4_ = (_e20.y - 0.5);\n float _e30 = _group_0_binding_0_fs.n_fx.spread;\n float spread_5_ = (_e30 * 0.45);\n float _e36 = _group_0_binding_0_fs.n_fx.blobScale;\n float _e42 = _group_0_binding_0_fs.n_fx.merge;\n float baseR_6_ = ((_e36 * 0.38) * (0.65 + (_e42 * 0.7)));\n float breatheAmp_7_ = _group_0_binding_0_fs.n_fx.breathe;\n float _e55 = _group_0_binding_0_fs.n_fx.wobble;\n float driftAmp_8_ = (_e55 * 0.12);\n if ((sqrt(((px_1_ * px_1_) + (py_4_ * py_4_))) \u003c= (((spread_5_ + (baseR_6_ * (1.0 + breatheAmp_7_))) + driftAmp_8_) + 0.2))) {\n vec4 _e79 = _group_0_binding_0_fs.n_fx.gooColor;\n vec3 gooRgb_10_ = _e79.xyz;\n float _e84 = _group_0_binding_0_fs.n_fx._animTime;\n float _e88 = _group_0_binding_0_fs.n_fx.seed;\n float gooT_16_ = (_e84 + _e88);\n float cx0_15_ = ((0.26726124 * spread_5_) + (driftAmp_8_ * sin(((gooT_16_ * 1.4216903) + 0.35951236))));\n float dxx0_14_ = ((px_1_ + 0.004) - cx0_15_);\n float cy0_18_ = ((0.0 * spread_5_) + (driftAmp_8_ * cos(((gooT_16_ * 0.66558015) + 2.8492959))));\n float dcy0_17_ = (py_4_ - cy0_18_);\n float rVal0_20_ = (baseR_6_ * (1.0 + (breatheAmp_7_ * sin(((gooT_16_ * 1.4951718) + 3.390561)))));\n float invR2_0_19_ = (1.0 / max((rVal0_20_ * rVal0_20_), 0.0001));\n float cx1_22_ = ((-0.3413354 * spread_5_) + (driftAmp_8_ * sin(((gooT_16_ * 0.5572182) + 3.507416))));\n float dxx1_21_ = ((px_1_ + 0.004) - cx1_22_);\n float cy1_24_ = ((0.31269133 * spread_5_) + (driftAmp_8_ * cos(((gooT_16_ * 0.829111) + 3.9338193))));\n float dcy1_23_ = (py_4_ - cy1_24_);\n float rVal1_26_ = (baseR_6_ * (1.0 + (breatheAmp_7_ * sin(((gooT_16_ * 1.3160251) + 6.1041923)))));\n float invR2_1_25_ = (1.0 / max((rVal1_26_ * rVal1_26_), 0.0001));\n float cx2_28_ = ((0.05224659 * spread_5_) + (driftAmp_8_ * sin(((gooT_16_ * 1.0582225) + 2.3482382))));\n float dxx2_27_ = ((px_1_ + 0.004) - cx2_28_);\n float cy2_30_ = ((-0.59532607 * spread_5_) + (driftAmp_8_ * cos(((gooT_16_ * 1.0396246) + 1.0403706))));\n float dcy2_29_ = (py_4_ - cy2_30_);\n float rVal2_32_ = (baseR_6_ * (1.0 + (breatheAmp_7_ * sin(((gooT_16_ * 0.9418164) + 5.159686)))));\n float invR2_2_31_ = (1.0 / max((rVal2_32_ * rVal2_32_), 0.0001));\n float cx3_34_ = ((0.43023163 * spread_5_) + (driftAmp_8_ * sin(((gooT_16_ * 0.8737337) + 2.8492959))));\n float dxx3_33_ = ((px_1_ + 0.004) - cx3_34_);\n float cy3_36_ = ((0.56116015 * spread_5_) + (driftAmp_8_ * cos(((gooT_16_ * 1.4715123) + 2.0678651))));\n float dcy3_35_ = (py_4_ - cy3_36_);\n float rVal3_38_ = (baseR_6_ * (1.0 + (breatheAmp_7_ * sin(((gooT_16_ * 1.4268788) + 1.124965)))));\n float invR2_3_37_ = (1.0 / max((rVal3_38_ * rVal3_38_), 0.0001));\n float cx4_40_ = ((-0.78952736 * spread_5_) + (driftAmp_8_ * sin(((gooT_16_ * 0.9534795) + 3.9338193))));\n float dxx4_39_ = ((px_1_ + 0.004) - cx4_40_);\n float cy4_42_ = ((-0.13965553 * spread_5_) + (driftAmp_8_ * cos(((gooT_16_ * 1.3211895) + 3.390561))));\n float dcy4_41_ = (py_4_ - cy4_42_);\n float rVal4_44_ = (baseR_6_ * (1.0 + (breatheAmp_7_ * sin(((gooT_16_ * 0.93419564) + 6.2528486)))));\n float invR2_4_43_ = (1.0 / max((rVal4_44_ * rVal4_44_), 0.0001));\n float cx5_46_ = ((0.7479086 * spread_5_) + (driftAmp_8_ * sin(((gooT_16_ * 1.1260868) + 1.0403706))));\n float dxx5_45_ = ((px_1_ + 0.004) - cx5_46_);\n float cy5_48_ = ((-0.47575942 * spread_5_) + (driftAmp_8_ * cos(((gooT_16_ * 0.67904377) + 6.1041923))));\n float dcy5_47_ = (py_4_ - cy5_48_);\n float rVal5_50_ = (baseR_6_ * (1.0 + (breatheAmp_7_ * sin(((gooT_16_ * 1.1441863) + 5.1272373)))));\n float invR2_5_49_ = (1.0 / max((rVal5_50_ * rVal5_50_), 0.0001));\n float cx6_52_ = ((-0.25015968 * spread_5_) + (driftAmp_8_ * sin(((gooT_16_ * 0.66558015) + 2.0678651))));\n float dxx6_51_ = ((px_1_ + 0.004) - cx6_52_);\n float cy6_54_ = ((0.9305867 * spread_5_) + (driftAmp_8_ * cos(((gooT_16_ * 1.4951718) + 5.159686))));\n float dcy6_53_ = (py_4_ - cy6_54_);\n float rVal6_56_ = (baseR_6_ * (1.0 + (breatheAmp_7_ * sin(((gooT_16_ * 0.8226436) + 2.7760143)))));\n float invR2_6_55_ = (1.0 / max((rVal6_56_ * rVal6_56_), 0.0001));\n vec2 _e344 = offsetUV(_e20, 0.004, 0.0);\n float _e349 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e353 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e357 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e361 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e365 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e369 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e370 = fieldSampleFastArg(_e344, _group_1_binding_0_fs, _e349, _e353, _e357, _e361, _e365, _e369);\n float insideX_57_ = (1.0 - smoothstep(-0.06, 0.06, _e370.x));\n float _e435 = _group_0_binding_0_fs.n_fx.containment;\n float _e442 = _group_0_binding_0_fs.n_fx.containment;\n float Hx_13_ = ((((((((exp(((((dxx0_14_ * dxx0_14_) + (dcy0_17_ * dcy0_17_)) * invR2_0_19_) * -1.0)) + exp(((((dxx1_21_ * dxx1_21_) + (dcy1_23_ * dcy1_23_)) * invR2_1_25_) * -1.0))) + exp(((((dxx2_27_ * dxx2_27_) + (dcy2_29_ * dcy2_29_)) * invR2_2_31_) * -1.0))) + exp(((((dxx3_33_ * dxx3_33_) + (dcy3_35_ * dcy3_35_)) * invR2_3_37_) * -1.0))) + exp(((((dxx4_39_ * dxx4_39_) + (dcy4_41_ * dcy4_41_)) * invR2_4_43_) * -1.0))) + exp(((((dxx5_45_ * dxx5_45_) + (dcy5_47_ * dcy5_47_)) * invR2_5_49_) * -1.0))) + exp(((((dxx6_51_ * dxx6_51_) + (dcy6_53_ * dcy6_53_)) * invR2_6_55_) * -1.0))) * mix(1.0, insideX_57_, _e435)) + (insideX_57_ * _e442));\n float dcx0_59_ = (px_1_ - cx0_15_);\n float dcx1_60_ = (px_1_ - cx1_22_);\n float dcx2_61_ = (px_1_ - cx2_28_);\n float dcx3_62_ = (px_1_ - cx3_34_);\n float dcx4_63_ = (px_1_ - cx4_40_);\n float dcx5_64_ = (px_1_ - cx5_46_);\n float dcx6_65_ = (px_1_ - cx6_52_);\n float _e456 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e460 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e464 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e468 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e472 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e476 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e477 = fieldSampleArg(_e20, _group_1_binding_0_fs, _e456, _e460, _e464, _e468, _e472, _e476);\n float inside0_66_ = (1.0 - smoothstep(-0.06, 0.06, _e477.x));\n float _e542 = _group_0_binding_0_fs.n_fx.containment;\n float _e549 = _group_0_binding_0_fs.n_fx.containment;\n float H0_58_ = ((((((((exp(((((dcx0_59_ * dcx0_59_) + (dcy0_17_ * dcy0_17_)) * invR2_0_19_) * -1.0)) + exp(((((dcx1_60_ * dcx1_60_) + (dcy1_23_ * dcy1_23_)) * invR2_1_25_) * -1.0))) + exp(((((dcx2_61_ * dcx2_61_) + (dcy2_29_ * dcy2_29_)) * invR2_2_31_) * -1.0))) + exp(((((dcx3_62_ * dcx3_62_) + (dcy3_35_ * dcy3_35_)) * invR2_3_37_) * -1.0))) + exp(((((dcx4_63_ * dcx4_63_) + (dcy4_41_ * dcy4_41_)) * invR2_4_43_) * -1.0))) + exp(((((dcx5_64_ * dcx5_64_) + (dcy5_47_ * dcy5_47_)) * invR2_5_49_) * -1.0))) + exp(((((dcx6_65_ * dcx6_65_) + (dcy6_53_ * dcy6_53_)) * invR2_6_55_) * -1.0))) * mix(1.0, inside0_66_, _e542)) + (inside0_66_ * _e549));\n float _e555 = _group_0_binding_0_fs.n_fx.bulge;\n float metaSlope_68_ = ((_e555 * 0.12) + 0.03);\n vec2 _e562 = offsetUV(_e20, 0.0, 0.004);\n float _e567 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e571 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e575 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e579 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e583 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e587 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e588 = fieldSampleFastArg(_e562, _group_1_binding_0_fs, _e567, _e571, _e575, _e579, _e583, _e587);\n float insideY_70_ = (1.0 - smoothstep(-0.06, 0.06, _e588.x));\n float _e598 = _group_0_binding_0_fs.n_fx.containment;\n float shapeRelief_69_ = ((_e598 * 1.6) * min(min(inside0_66_, insideX_57_), insideY_70_));\n float dyy0_72_ = ((py_4_ + 0.004) - cy0_18_);\n float dyy1_73_ = ((py_4_ + 0.004) - cy1_24_);\n float dyy2_74_ = ((py_4_ + 0.004) - cy2_30_);\n float dyy3_75_ = ((py_4_ + 0.004) - cy3_36_);\n float dyy4_76_ = ((py_4_ + 0.004) - cy4_42_);\n float dyy5_77_ = ((py_4_ + 0.004) - cy5_48_);\n float dyy6_78_ = ((py_4_ + 0.004) - cy6_54_);\n float _e683 = _group_0_binding_0_fs.n_fx.containment;\n float _e690 = _group_0_binding_0_fs.n_fx.containment;\n float Hy_71_ = ((((((((exp(((((dcx0_59_ * dcx0_59_) + (dyy0_72_ * dyy0_72_)) * invR2_0_19_) * -1.0)) + exp(((((dcx1_60_ * dcx1_60_) + (dyy1_73_ * dyy1_73_)) * invR2_1_25_) * -1.0))) + exp(((((dcx2_61_ * dcx2_61_) + (dyy2_74_ * dyy2_74_)) * invR2_2_31_) * -1.0))) + exp(((((dcx3_62_ * dcx3_62_) + (dyy3_75_ * dyy3_75_)) * invR2_3_37_) * -1.0))) + exp(((((dcx4_63_ * dcx4_63_) + (dyy4_76_ * dyy4_76_)) * invR2_4_43_) * -1.0))) + exp(((((dcx5_64_ * dcx5_64_) + (dyy5_77_ * dyy5_77_)) * invR2_5_49_) * -1.0))) + exp(((((dcx6_65_ * dcx6_65_) + (dyy6_78_ * dyy6_78_)) * invR2_6_55_) * -1.0))) * mix(1.0, insideY_70_, _e683)) + (insideY_70_ * _e690));\n vec2 _e701 = offsetUV(_e20, 0.004, 0.0);\n float _e706 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e710 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e714 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e718 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e722 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e726 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e727 = fieldSampleFastArg(_e701, _group_1_binding_0_fs, _e706, _e710, _e714, _e718, _e722, _e726);\n vec2 _e746 = offsetUV(_e20, 0.0, 0.004);\n float _e751 = _group_0_binding_0_fs.n_fx._vfOriginX;\n float _e755 = _group_0_binding_0_fs.n_fx._vfOriginY;\n float _e759 = _group_0_binding_0_fs.n_fx._vfSpanX;\n float _e763 = _group_0_binding_0_fs.n_fx._vfSpanY;\n float _e767 = _group_0_binding_0_fs.n_fx._vfActiveRes;\n float _e771 = _group_0_binding_0_fs.n_fx._vfRBound;\n vec4 _e772 = fieldSampleFastArg(_e746, _group_1_binding_0_fs, _e751, _e755, _e759, _e763, _e767, _e771);\n vec3 n_12_ = normalize(vec3((((((Hx_13_ - H0_58_) / 0.004) * -1.0) * metaSlope_68_) + (clamp(((_e727.w - _e477.w) / 0.004), -6.0, 6.0) * shapeRelief_69_)), (((((Hy_71_ - H0_58_) / 0.004) * -1.0) * metaSlope_68_) + (clamp(((_e772.w - _e477.w) / 0.004), -6.0, 6.0) * shapeRelief_69_)), -1.0));\n float _e789 = _group_0_binding_0_fs.n_fx.lightAngle;\n float _e796 = _group_0_binding_0_fs.n_fx.lightAngle;\n vec2 light_80_ = vec2(cos((_e789 * 0.017453292)), sin((_e796 * 0.017453292)));\n KeyLight _e804 = keyLight(light_80_.x, light_80_.y, -0.8);\n float ndl_11_ = clamp(dot(n_12_, _e804.L), 0.0, 1.0);\n float _e813 = _group_0_binding_0_fs.n_fx.threshold;\n float _e821 = _group_0_binding_0_fs.n_fx.bulge;\n float _e831 = _group_0_binding_0_fs.n_fx.containment;\n float thick_81_ = clamp(((sqrt(max((H0_58_ - _e813), 0.0)) * _e821) + ((max((_e477.x * -1.0), 0.0) * _e831) * 1.2)), 0.0, 1.0);\n float ndh_82_ = clamp(dot(n_12_, _e804.H), 0.0, 1.0);\n float _e844 = grazingView(n_12_);\n float _e848 = _group_0_binding_0_fs.n_fx.ambient;\n float _e856 = _group_0_binding_0_fs.n_fx.translucency;\n float _e860 = _group_0_binding_0_fs.n_fx.absorb;\n vec4 _e878 = _group_0_binding_0_fs.n_fx.specColor;\n float _e900 = _group_0_binding_0_fs.n_fx.fresnel;\n float _e906 = _group_0_binding_0_fs.n_fx.wetness;\n vec3 gooOut_9_ = (((gooRgb_10_ * (_e848 + (ndl_11_ * 0.7))) + ((gooRgb_10_ * (_e856 * exp(((_e860 * -1.0) * (1.0 - thick_81_))))) * ((ndl_11_ * 0.5) + 0.5))) + (_e878.xyz * (((((pow(ndh_82_, 232.0) * 1.7) + (pow(ndh_82_, 32.0) * 0.25)) + (smoothstep(0.992, 0.999, ndh_82_) * 1.9)) + (pow(_e844, 5.0) * _e900)) * _e906)));\n float _e913 = _group_0_binding_0_fs.n_fx.edgeSoftness;\n float soft_84_ = max(_e913, 0.001);\n float _e919 = _group_0_binding_0_fs.n_fx.threshold;\n float _e924 = _group_0_binding_0_fs.n_fx.threshold;\n float _e931 = _group_0_binding_0_fs.n_fx.gooColor.w;\n goo_0_ = vec4(gooOut_9_, (smoothstep((_e919 - soft_84_), (_e924 + soft_84_), H0_58_) * _e931));\n }\n vec4 _e934 = goo_0_;\n composed_85_ = _e934;\n vec4 _e936 = composed_85_;\n vec3 _e938 = tone_linear(_e936.xyz);\n vec3 _e939 = linearToSrgb(_e938);\n float _e941 = composed_85_.w;\n float _e944 = composed_85_.w;\n _fs2p_location0 = vec4((_e939 * _e941), _e944);\n return;\n}\n\n","uniforms":[{"block":"combined_block_0Fragment","bytes":"AACAPwAAAAAAAAAAAAAAAAAAAD8AAAA/AACAPwAAAAAwfBw9KoYVPx1k0T0AAIA/mpkZPwAAAEBmZmY/j8J1PZqZmT4AAIA/mpkZPwAAgD8AAAA/AACWQwAAAEAAAIA+AACAPwAAgD8AAIA/AACAPwAAgD4AAAA/AAAAP5qZmT4AAIA/AACAP28SA7wK16M9CtejPT0KVz89Clc/AACARKRwvT4zM7M+AADAQAAAAADNzMw+AAAAAAAAgD7NzEw+AACHQwAAAAAAAAAAAAAAAAAAAAAAAAAAAADwRAAAh0QAAPBEAACHRDmO4z8AAAAAAAAgwQAAIMEAAAAAAAAAAA==","lines":[[136,-0.00800000038,0.499999996],[208,0,1]],"viewport":[216,224]}],"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 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 sInPrev = 0.0;\n float sIn = 0.0;\n int i_2 = 0;\n float fLo = 0.0;\n float fHi = 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 _e82 = hit;\n if ((_e82 > 0.5)) {\n float _e85 = tPrev;\n eLo = _e85;\n float _e87 = t;\n eHi = _e87;\n bool loop_init_1 = true;\n while(true) {\n if (!loop_init_1) {\n int _e105 = i_1;\n i_1 = (_e105 + 1);\n }\n loop_init_1 = false;\n int _e91 = i_1;\n if ((_e91 \u003c 10)) {\n } else {\n break;\n }\n {\n float _e94 = eLo;\n float _e95 = eHi;\n float mid = ((_e94 + _e95) * 0.5);\n float _e101 = sdfFn((_e15 + (_e16 * mid)));\n if ((_e101 > 0.0)) {\n eLo = mid;\n } else {\n eHi = mid;\n }\n }\n }\n float _e107 = eLo;\n float _e108 = eHi;\n float tEnter = ((_e107 + _e108) * 0.5);\n tExit = tEnter;\n {\n float _e113 = eHi;\n sInPrev = _e113;\n float _e115 = eHi;\n sIn = (_e115 + 0.002);\n bool loop_init_2 = true;\n while(true) {\n if (!loop_init_2) {\n int _e139 = i_2;\n i_2 = (_e139 + 1);\n }\n loop_init_2 = false;\n int _e121 = i_2;\n if ((_e121 \u003c steps)) {\n } else {\n break;\n }\n {\n float _e123 = sIn;\n float _e126 = sdfFn((_e15 + (_e16 * _e123)));\n if ((_e126 >= 0.0)) {\n break;\n }\n float _e129 = sIn;\n sInPrev = _e129;\n float _e130 = sIn;\n sIn = (_e130 + max((_e126 * -1.0), 0.002));\n float _e136 = sIn;\n if ((_e136 > tEnd)) {\n break;\n }\n }\n }\n float _e141 = sInPrev;\n fLo = _e141;\n float _e143 = sIn;\n fHi = _e143;\n bool loop_init_3 = true;\n while(true) {\n if (!loop_init_3) {\n int _e161 = i_3;\n i_3 = (_e161 + 1);\n }\n loop_init_3 = false;\n int _e147 = i_3;\n if ((_e147 \u003c 10)) {\n } else {\n break;\n }\n {\n float _e150 = fLo;\n float _e151 = fHi;\n float mid_1 = ((_e150 + _e151) * 0.5);\n float _e157 = sdfFn((_e15 + (_e16 * mid_1)));\n if ((_e157 \u003c 0.0)) {\n fLo = mid_1;\n } else {\n fHi = mid_1;\n }\n }\n }\n float _e163 = fLo;\n float _e164 = fHi;\n tExit = ((_e163 + _e164) * 0.5);\n }\n float _e168 = tExit;\n float halfChord = (max((_e168 - tEnter), 0.0) * 0.5);\n fieldVal = (halfChord * -1.0);\n viewDepth = tEnter;\n }\n float _e176 = fieldVal;\n float _e177 = viewDepth;\n return vec4(_e176, 0.0, 0.0, _e177);\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>
|