kasaframe 0.1.1 → 0.1.4
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/NOTICE +10 -8
- package/README.md +16 -1
- package/app/server/engine.ts +133 -15
- package/app/server/main.ts +7 -3
- package/app/web/main.ts +218 -36
- package/app/web/style.css +37 -4
- package/bin/hooks.mjs +14 -1
- package/bin/kf.mjs +20 -2
- package/docs/AGENTS.md +64 -16
- package/music/README.md +31 -7
- package/package.json +2 -2
- package/packages/adapters/src/project.ts +5 -1
- package/packages/adapters/src/texture.ts +94 -0
- package/packages/check/src/check.ts +10 -3
- package/packages/check/src/rules/assets.ts +4 -1
- package/packages/check/src/rules/frames.ts +2 -1
- package/packages/check/src/rules/layout.ts +30 -6
- package/packages/cli/package.json +2 -1
- package/packages/cli/src/blur.ts +15 -3
- package/packages/cli/src/cells.ts +227 -0
- package/packages/cli/src/commands/bench.ts +123 -0
- package/packages/cli/src/commands/blender.ts +72 -49
- package/packages/cli/src/commands/direct.ts +210 -0
- package/packages/cli/src/commands/doctor.ts +9 -1
- package/packages/cli/src/commands/look.ts +9 -2
- package/packages/cli/src/commands/lyrics.ts +47 -1
- package/packages/cli/src/commands/make.ts +797 -150
- package/packages/cli/src/commands/music.ts +78 -0
- package/packages/cli/src/commands/narrate.ts +238 -0
- package/packages/cli/src/commands/new.ts +15 -6
- package/packages/cli/src/commands/render.ts +94 -60
- package/packages/cli/src/commands/series.ts +110 -0
- package/packages/cli/src/commands/setup.ts +42 -3
- package/packages/cli/src/commands/theme.ts +222 -4
- package/packages/cli/src/deps.ts +6 -6
- package/packages/cli/src/kf.ts +14 -3
- package/packages/cli/src/lock.ts +8 -6
- package/packages/cli/src/mix.ts +131 -0
- package/packages/cli/src/pick.ts +110 -0
- package/packages/cli/src/pool.ts +34 -0
- package/packages/cli/src/segments.ts +402 -0
- package/packages/cli/src/vary.ts +124 -0
- package/packages/core/src/index.ts +1 -1
- package/packages/core/src/project.ts +26 -0
- package/packages/director/package.json +23 -0
- package/packages/director/src/assemble.ts +364 -0
- package/packages/director/src/brief.ts +122 -0
- package/packages/director/src/catalog.ts +49 -0
- package/packages/director/src/content.ts +343 -0
- package/packages/director/src/fallback.ts +58 -0
- package/packages/director/src/index.ts +13 -0
- package/packages/director/src/pattern.ts +90 -0
- package/packages/director/src/patterns/fill/cells.ts +115 -0
- package/packages/director/src/patterns/formula/stack.ts +93 -0
- package/packages/director/src/patterns/util.ts +58 -0
- package/packages/director/src/scene.ts +62 -0
- package/packages/director/src/select.ts +163 -0
- package/packages/director/src/transitions.ts +115 -0
- package/packages/gen/PROVIDERS.md +39 -4
- package/packages/gen/src/ask.ts +132 -0
- package/packages/gen/src/audio.ts +91 -0
- package/packages/gen/src/blender.ts +54 -0
- package/packages/gen/src/capabilities.ts +151 -0
- package/packages/gen/src/generate.ts +4 -2
- package/packages/gen/src/image/codex.ts +117 -0
- package/packages/gen/src/index.ts +10 -2
- package/packages/gen/src/keys.ts +26 -0
- package/packages/gen/src/music/elevenlabs.ts +41 -0
- package/packages/gen/src/music/index.ts +120 -0
- package/packages/gen/src/music/library.ts +73 -0
- package/packages/gen/src/music/lyria.ts +52 -0
- package/packages/gen/src/music/types.ts +28 -0
- package/packages/gen/src/registry.ts +6 -3
- package/packages/gen/src/tts/dashscope.ts +64 -0
- package/packages/gen/src/tts/elevenlabs.ts +84 -0
- package/packages/gen/src/tts/gemini.ts +73 -0
- package/packages/gen/src/tts/index.ts +241 -0
- package/packages/gen/src/tts/local.ts +42 -0
- package/packages/gen/src/tts/types.ts +44 -0
- package/packages/gen/src/types.ts +4 -0
- package/packages/gen/src/video/h3.ts +5 -0
- package/packages/gen/src/video/http.ts +1 -1
- package/packages/jizura/src/index.ts +2 -2
- package/packages/jizura/src/install.ts +198 -155
- package/packages/jizura/src/layer.ts +75 -32
- package/packages/jizura/src/pin.ts +4 -1
- package/packages/jizura/src/vendor.ts +140 -0
- package/packages/jizura/src/vite.ts +34 -7
- package/packages/jizura/vendor/JIZURA_LICENSE.txt +21 -0
- package/packages/jizura/vendor/NOTICE +43 -0
- package/packages/jizura/vendor/engine.json +47 -0
- package/packages/jizura/vendor/fonts/BlackHanSans-Regular.woff2 +0 -0
- package/packages/jizura/vendor/fonts/DotGothic16-Regular.woff2 +0 -0
- package/packages/jizura/vendor/fonts/GowunBatang-Bold.woff2 +0 -0
- package/packages/jizura/vendor/fonts/IBMPlexMono-Medium.ttf +0 -0
- package/packages/jizura/vendor/fonts/IBMPlexMono-SemiBold.ttf +0 -0
- package/packages/jizura/vendor/fonts/NotoSansKR-VF.woff2 +0 -0
- package/packages/jizura/vendor/fonts/NotoSerifKR-VF.woff2 +0 -0
- package/packages/jizura/vendor/fonts/OFL-blackhansans.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-dotgothic16.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-gowunbatang.txt +94 -0
- package/packages/jizura/vendor/fonts/OFL-ibmplexmono.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-notosanskr.txt +93 -0
- package/packages/jizura/vendor/fonts/OFL-notoserifkr.txt +94 -0
- package/packages/jizura/vendor/fonts/fonts.json +52 -0
- package/packages/jizura/vendor/jizura_engine.js +35024 -0
- package/packages/motion/README.md +11 -0
- package/packages/motion/package.json +1 -0
- package/packages/motion/src/captions.ts +32 -24
- package/packages/motion/src/moves/brushWipe.ts +14 -1
- package/packages/motion/src/moves/dress.ts +191 -0
- package/packages/motion/src/moves/echoStack.ts +3 -3
- package/packages/motion/src/moves/fit.ts +36 -0
- package/packages/motion/src/moves/ghostStack.ts +14 -5
- package/packages/motion/src/moves/imageSwarm.ts +8 -4
- package/packages/motion/src/moves/index.ts +23 -4
- package/packages/motion/src/moves/karaokeLine.ts +17 -3
- package/packages/motion/src/moves/menu.ts +139 -0
- package/packages/motion/src/moves/neonSign.ts +2 -1
- package/packages/motion/src/moves/slamWords.ts +14 -7
- package/packages/motion/src/moves/sparkTrail.ts +16 -0
- package/packages/motion/src/moves/splitFlap.ts +4 -2
- package/packages/motion/src/moves/stepWords.ts +19 -8
- package/packages/motion/src/moves/tickerRows.ts +13 -9
- package/packages/motion/src/moves/tokenPicker.ts +4 -3
- package/packages/motion/src/moves/wordWall.ts +23 -21
- package/packages/motion/src/moves/worldRoll.ts +2 -1
- package/packages/motion/src/transition3d/index.ts +10 -3
- package/packages/motion/src/transition3d/rig.ts +107 -9
- package/packages/motion/src/transition3d/shatter.ts +5 -2
- package/packages/motion/src/transition3d/space.ts +173 -0
- package/packages/motion/src/transition3d/whip.ts +19 -6
- package/packages/motion/src/transition3d/world.ts +54 -0
- package/packages/motion/src/transitions2d/catalog.ts +1 -1
- package/packages/patterns/package.json +15 -0
- package/packages/patterns/src/bars/rank.ts +119 -0
- package/packages/patterns/src/before-after/shrink.ts +127 -0
- package/packages/patterns/src/before-after/strike.ts +125 -0
- package/packages/patterns/src/code/terminal.ts +133 -0
- package/packages/patterns/src/compare/bars.ts +142 -0
- package/packages/patterns/src/compare/duel.ts +103 -0
- package/packages/patterns/src/end/lockup.ts +85 -0
- package/packages/patterns/src/end/slam.ts +91 -0
- package/packages/patterns/src/flow/graph.ts +250 -0
- package/packages/patterns/src/hook-number/counter.ts +101 -0
- package/packages/patterns/src/hook-number/roll.ts +179 -0
- package/packages/patterns/src/hook-number/slam.ts +91 -0
- package/packages/patterns/src/index.ts +38 -0
- package/packages/patterns/src/kit.ts +450 -0
- package/packages/patterns/src/limit/gauge.ts +117 -0
- package/packages/patterns/src/list/cards.ts +131 -0
- package/packages/patterns/src/list/cycle.ts +22 -0
- package/packages/patterns/src/media/panels.ts +100 -0
- package/packages/patterns/src/objects.ts +234 -0
- package/packages/patterns/src/quote/karaoke.ts +126 -0
- package/packages/patterns/src/quote/slam.ts +22 -0
- package/packages/patterns/src/screen/focus.ts +85 -0
- package/packages/patterns/src/steps/path.ts +137 -0
- package/packages/patterns/src/steps/stack.ts +111 -0
- package/packages/patterns/src/term-reveal/chips.ts +92 -0
- package/packages/patterns/src/term-reveal/expand.ts +127 -0
- package/packages/patterns/src/timeline/axis.ts +144 -0
- package/packages/patterns/src/title/mask.ts +85 -0
- package/packages/patterns/src/title/slam.ts +23 -0
- package/packages/patterns/src/toggle-sim/switch.ts +92 -0
- package/packages/patterns/src/trend/columns.ts +108 -0
- package/packages/patterns/src/trend/draw.ts +140 -0
- package/packages/patterns/src/types.ts +67 -0
- package/packages/patterns/src/words/moves.ts +42 -0
- package/packages/patterns/src/words/slam.ts +4 -0
- package/packages/plan/src/asks.ts +265 -0
- package/packages/plan/src/brief.ts +136 -7
- package/packages/plan/src/captions.ts +5 -2
- package/packages/plan/src/index.ts +7 -3
- package/packages/plan/src/llm.ts +64 -2
- package/packages/plan/src/look.ts +3 -1
- package/packages/plan/src/plan.ts +70 -14
- package/packages/plan/src/series.ts +76 -0
- package/packages/plan/src/themes.ts +65 -9
- package/packages/plan/src/types.ts +56 -2
- package/packages/themes/kit/THEME-MAKE.md +1 -0
- package/packages/themes/kit/fonts.json +743 -0
- package/packages/themes/package.json +10 -2
- package/packages/themes/src/color.ts +152 -0
- package/packages/themes/src/fx.ts +4 -2
- package/packages/themes/src/index.ts +74 -1
- package/packages/themes/src/look.ts +223 -0
- package/packages/themes/src/name.ts +9 -0
- package/packages/themes/src/palette.ts +194 -0
- package/packages/themes/src/slotkit.ts +92 -0
- package/packages/themes/src/slots.ts +61 -0
- package/packages/themes/src/stage3d.ts +20 -0
- package/packages/themes/src/types.ts +84 -0
- package/packages/themes/src/vary.ts +290 -0
- package/series/og-shorts.json +14 -0
- package/skills/kasaframe/SKILL.md +4 -3
- package/templates/_shared/project/lib/stage.ts +70 -50
- package/templates/_shared/scenes/default.ts +10 -7
- package/templates/_shared/scenes/drop.ts +11 -8
- package/templates/_shared/scenes/end.ts +9 -6
- package/templates/_shared/scenes/hook.ts +8 -6
- package/templates/_shared/scenes/step.ts +13 -4
- package/templates/ad/template.json +20 -1
- package/templates/demo/template.json +11 -0
- package/templates/explainer/template.json +54 -3
- package/templates/launch/template.json +34 -1
- package/templates/mv/scenes/default.ts +11 -8
- package/templates/mv/template.json +4 -2
- package/templates/promo/template.json +42 -1
- package/templates/shorts/scenes/hook.ts +8 -5
- package/templates/shorts/template.json +72 -3
- package/templates/square/template.json +21 -1
- package/themes/blueprint/THEME.md +64 -0
- package/themes/blueprint/effects.ts +570 -0
- package/themes/blueprint/sample/assets/og/logo.svg +12 -0
- package/themes/blueprint/sample/beats.json +1005 -0
- package/themes/blueprint/sample/index.html +11 -0
- package/themes/blueprint/sample/kf.json +59 -0
- package/themes/blueprint/sample/lib/facts.ts +29 -0
- package/themes/blueprint/sample/lib/sheet.ts +55 -0
- package/themes/blueprint/sample/main.ts +9 -0
- package/themes/blueprint/sample/scenes/end.ts +91 -0
- package/themes/blueprint/sample/scenes/gather.ts +75 -0
- package/themes/blueprint/sample/scenes/models.ts +117 -0
- package/themes/blueprint/sample/scenes/price.ts +94 -0
- package/themes/blueprint/sample/style.json +114 -0
- package/themes/blueprint/slots.ts +88 -0
- package/themes/blueprint/still.png +0 -0
- package/themes/blueprint/style.json +114 -0
- package/themes/blueprint/theme.json +137 -0
- package/themes/blueprint/variants/deep-rose-2.json +90 -0
- package/themes/blueprint/variants/deep-rose-suit.json +117 -0
- package/themes/blueprint/variants/deep-rose.json +117 -0
- package/themes/blueprint/variants/navy-coral-2.json +118 -0
- package/themes/blueprint/variants/navy-coral-suit.json +118 -0
- package/themes/blueprint/variants/navy-coral.json +128 -0
- package/themes/blueprint/variants/navy-orange-2.json +118 -0
- package/themes/blueprint/variants/navy-orange-3.json +91 -0
- package/themes/blueprint/variants/navy-orange-4.json +128 -0
- package/themes/blueprint/variants/navy-orange-mono.json +128 -0
- package/themes/blueprint/variants/navy-orange-plex.json +128 -0
- package/themes/blueprint/variants/navy-orange-suit.json +118 -0
- package/themes/blueprint/variants/navy-orange.json +118 -0
- package/themes/blueprint/variants/navy-rose-plex.json +127 -0
- package/themes/blueprint/variants/navy-rose.json +127 -0
- package/themes/cartography/THEME.md +61 -0
- package/themes/cartography/effects.ts +845 -0
- package/themes/cartography/sample/assets/og/logo.svg +12 -0
- package/themes/cartography/sample/beats.json +1005 -0
- package/themes/cartography/sample/index.html +11 -0
- package/themes/cartography/sample/kf.json +59 -0
- package/themes/cartography/sample/lib/facts.ts +29 -0
- package/themes/cartography/sample/lib/map.ts +39 -0
- package/themes/cartography/sample/main.ts +9 -0
- package/themes/cartography/sample/scenes/end.ts +56 -0
- package/themes/cartography/sample/scenes/gather.ts +46 -0
- package/themes/cartography/sample/scenes/models.ts +43 -0
- package/themes/cartography/sample/scenes/price.ts +73 -0
- package/themes/cartography/sample/style.json +103 -0
- package/themes/cartography/slots.ts +87 -0
- package/themes/cartography/still.png +0 -0
- package/themes/cartography/style.json +103 -0
- package/themes/cartography/theme.json +160 -0
- package/themes/cartography/variants/blush-amber.json +128 -0
- package/themes/cartography/variants/blush-indigo.json +128 -0
- package/themes/cartography/variants/blush-pink.json +136 -0
- package/themes/cartography/variants/chalk-plum.json +137 -0
- package/themes/cartography/variants/chalk-sky.json +100 -0
- package/themes/cartography/variants/cocoa-amber.json +128 -0
- package/themes/cartography/variants/deep-plum.json +125 -0
- package/themes/cartography/variants/dusk-coral.json +128 -0
- package/themes/cartography/variants/forest-lime.json +131 -0
- package/themes/cartography/variants/frost-teal.json +128 -0
- package/themes/cartography/variants/navy-green.json +131 -0
- package/themes/cartography/variants/navy-indigo.json +138 -0
- package/themes/cartography/variants/navy-sky.json +100 -0
- package/themes/cartography/variants/sage-green.json +127 -0
- package/themes/cartography/variants/wine-teal.json +128 -0
- package/themes/circuit-board/THEME.md +61 -0
- package/themes/circuit-board/effects.ts +576 -0
- package/themes/circuit-board/pcb.ts +103 -0
- package/themes/circuit-board/sample/assets/og/logo.svg +12 -0
- package/themes/circuit-board/sample/beats.json +1005 -0
- package/themes/circuit-board/sample/index.html +11 -0
- package/themes/circuit-board/sample/kf.json +59 -0
- package/themes/circuit-board/sample/lib/facts.ts +29 -0
- package/themes/circuit-board/sample/lib/kit.ts +45 -0
- package/themes/circuit-board/sample/main.ts +9 -0
- package/themes/circuit-board/sample/scenes/end.ts +102 -0
- package/themes/circuit-board/sample/scenes/gather.ts +76 -0
- package/themes/circuit-board/sample/scenes/models.ts +101 -0
- package/themes/circuit-board/sample/scenes/price.ts +109 -0
- package/themes/circuit-board/sample/style.json +104 -0
- package/themes/circuit-board/slots.ts +108 -0
- package/themes/circuit-board/still.png +0 -0
- package/themes/circuit-board/style.json +104 -0
- package/themes/circuit-board/theme.json +149 -0
- package/themes/circuit-board/variants/deep-gold-plex.json +133 -0
- package/themes/circuit-board/variants/deep-gold.json +123 -0
- package/themes/circuit-board/variants/dusk-gold-grain.json +138 -0
- package/themes/circuit-board/variants/dusk-gold-pretendard.json +118 -0
- package/themes/circuit-board/variants/dusk-gold.json +97 -0
- package/themes/circuit-board/variants/forest-gold-2.json +96 -0
- package/themes/circuit-board/variants/forest-gold-grain.json +129 -0
- package/themes/circuit-board/variants/forest-gold-mono.json +124 -0
- package/themes/circuit-board/variants/forest-gold.json +128 -0
- package/themes/circuit-board/variants/navy-gold-grain.json +124 -0
- package/themes/circuit-board/variants/navy-gold.json +101 -0
- package/themes/circuit-board/variants/wine-gold-grain.json +128 -0
- package/themes/circuit-board/variants/wine-gold-plex.json +133 -0
- package/themes/circuit-board/variants/wine-gold-pretendard.json +118 -0
- package/themes/circuit-board/variants/wine-gold.json +128 -0
- package/themes/clay-toy/THEME.md +73 -0
- package/themes/clay-toy/effects.ts +643 -0
- package/themes/clay-toy/glyphs.ts +32 -0
- package/themes/clay-toy/sample/assets/og/logo.svg +12 -0
- package/themes/clay-toy/sample/beats.json +1005 -0
- package/themes/clay-toy/sample/index.html +11 -0
- package/themes/clay-toy/sample/kf.json +59 -0
- package/themes/clay-toy/sample/lib/clay.ts +20 -0
- package/themes/clay-toy/sample/lib/facts.ts +29 -0
- package/themes/clay-toy/sample/main.ts +9 -0
- package/themes/clay-toy/sample/scenes/end.ts +81 -0
- package/themes/clay-toy/sample/scenes/gather.ts +53 -0
- package/themes/clay-toy/sample/scenes/models.ts +77 -0
- package/themes/clay-toy/sample/scenes/price.ts +91 -0
- package/themes/clay-toy/sample/style.json +101 -0
- package/themes/clay-toy/slots.ts +132 -0
- package/themes/clay-toy/still.png +0 -0
- package/themes/clay-toy/style.json +101 -0
- package/themes/clay-toy/theme.json +146 -0
- package/themes/clay-toy/variants/blush-coral-grain.json +126 -0
- package/themes/clay-toy/variants/blush-coral.json +123 -0
- package/themes/clay-toy/variants/chalk-indigo.json +97 -0
- package/themes/clay-toy/variants/chalk-jade.json +125 -0
- package/themes/clay-toy/variants/chalk-teal.json +120 -0
- package/themes/clay-toy/variants/frost-orange.json +125 -0
- package/themes/clay-toy/variants/frost-sky-grain.json +126 -0
- package/themes/clay-toy/variants/frost-sky.json +121 -0
- package/themes/clay-toy/variants/frost-teal.json +120 -0
- package/themes/clay-toy/variants/lilac-green.json +120 -0
- package/themes/clay-toy/variants/lilac-plum-round.json +120 -0
- package/themes/clay-toy/variants/lilac-plum.json +124 -0
- package/themes/clay-toy/variants/sage-indigo.json +125 -0
- package/themes/clay-toy/variants/sage-magenta.json +119 -0
- package/themes/clay-toy/variants/sand-amber.json +125 -0
- package/themes/conveyor-factory/THEME.md +71 -0
- package/themes/conveyor-factory/effects.ts +744 -0
- package/themes/conveyor-factory/sample/assets/og/logo.svg +12 -0
- package/themes/conveyor-factory/sample/beats.json +1005 -0
- package/themes/conveyor-factory/sample/index.html +11 -0
- package/themes/conveyor-factory/sample/kf.json +59 -0
- package/themes/conveyor-factory/sample/lib/factory.ts +48 -0
- package/themes/conveyor-factory/sample/lib/facts.ts +29 -0
- package/themes/conveyor-factory/sample/main.ts +9 -0
- package/themes/conveyor-factory/sample/scenes/end.ts +44 -0
- package/themes/conveyor-factory/sample/scenes/gather.ts +47 -0
- package/themes/conveyor-factory/sample/scenes/models.ts +91 -0
- package/themes/conveyor-factory/sample/scenes/price.ts +77 -0
- package/themes/conveyor-factory/sample/style.json +107 -0
- package/themes/conveyor-factory/slots.ts +121 -0
- package/themes/conveyor-factory/still.png +0 -0
- package/themes/conveyor-factory/style.json +107 -0
- package/themes/conveyor-factory/theme.json +142 -0
- package/themes/conveyor-factory/variants/cocoa-gold.json +125 -0
- package/themes/conveyor-factory/variants/dusk-gold.json +135 -0
- package/themes/conveyor-factory/variants/forest-gold.json +135 -0
- package/themes/conveyor-factory/variants/navy-amber.json +93 -0
- package/themes/conveyor-factory/variants/navy-gold.json +120 -0
- package/themes/conveyor-factory/variants/slate-amber-2.json +120 -0
- package/themes/conveyor-factory/variants/slate-amber-grain.json +125 -0
- package/themes/conveyor-factory/variants/slate-amber-suit.json +120 -0
- package/themes/conveyor-factory/variants/slate-amber.json +125 -0
- package/themes/conveyor-factory/variants/slate-gold-bold.json +120 -0
- package/themes/conveyor-factory/variants/slate-gold.json +120 -0
- package/themes/data-journal/THEME.md +74 -0
- package/themes/data-journal/effects.ts +570 -0
- package/themes/data-journal/sample/assets/og/logo.svg +12 -0
- package/themes/data-journal/sample/beats.json +1005 -0
- package/themes/data-journal/sample/index.html +11 -0
- package/themes/data-journal/sample/kf.json +59 -0
- package/themes/data-journal/sample/lib/facts.ts +29 -0
- package/themes/data-journal/sample/lib/page.ts +25 -0
- package/themes/data-journal/sample/main.ts +9 -0
- package/themes/data-journal/sample/scenes/end.ts +69 -0
- package/themes/data-journal/sample/scenes/gather.ts +58 -0
- package/themes/data-journal/sample/scenes/models.ts +51 -0
- package/themes/data-journal/sample/scenes/price.ts +73 -0
- package/themes/data-journal/sample/style.json +114 -0
- package/themes/data-journal/slots.ts +119 -0
- package/themes/data-journal/still.png +0 -0
- package/themes/data-journal/style.json +114 -0
- package/themes/data-journal/theme.json +140 -0
- package/themes/data-journal/variants/blush-green.json +129 -0
- package/themes/data-journal/variants/chalk-magenta.json +138 -0
- package/themes/data-journal/variants/cocoa-amber.json +140 -0
- package/themes/data-journal/variants/cocoa-sky.json +130 -0
- package/themes/data-journal/variants/deep-coral.json +135 -0
- package/themes/data-journal/variants/dusk-plum.json +132 -0
- package/themes/data-journal/variants/forest-green.json +138 -0
- package/themes/data-journal/variants/frost-indigo.json +141 -0
- package/themes/data-journal/variants/lilac-amber.json +141 -0
- package/themes/data-journal/variants/navy-indigo.json +131 -0
- package/themes/data-journal/variants/navy-lime.json +128 -0
- package/themes/data-journal/variants/snow-sky.json +125 -0
- package/themes/data-journal/variants/wine-indigo.json +129 -0
- package/themes/data-journal/variants/wine-magenta.json +138 -0
- package/themes/data-journal/variants/wine-teal.json +97 -0
- package/themes/debug-hud/slots.ts +99 -0
- package/themes/debug-hud/theme.json +56 -0
- package/themes/debug-hud/variants/cocoa-gold.json +113 -0
- package/themes/debug-hud/variants/cocoa-teal.json +119 -0
- package/themes/debug-hud/variants/deep-cyan.json +85 -0
- package/themes/debug-hud/variants/deep-teal-scan.json +118 -0
- package/themes/debug-hud/variants/deep-teal.json +112 -0
- package/themes/debug-hud/variants/dusk-plum.json +116 -0
- package/themes/debug-hud/variants/dusk-violet.json +112 -0
- package/themes/debug-hud/variants/forest-amber.json +86 -0
- package/themes/debug-hud/variants/forest-lime.json +117 -0
- package/themes/debug-hud/variants/forest-magenta.json +111 -0
- package/themes/debug-hud/variants/navy-jade.json +79 -0
- package/themes/debug-hud/variants/slate-green.json +112 -0
- package/themes/debug-hud/variants/wine-gold.json +119 -0
- package/themes/debug-hud/variants/wine-jade.json +83 -0
- package/themes/debug-hud/variants/wine-sky.json +112 -0
- package/themes/depth-flight/THEME.md +54 -0
- package/themes/depth-flight/effects.ts +396 -0
- package/themes/depth-flight/sample/assets/og/logo.svg +12 -0
- package/themes/depth-flight/sample/beats.json +1005 -0
- package/themes/depth-flight/sample/index.html +11 -0
- package/themes/depth-flight/sample/kf.json +59 -0
- package/themes/depth-flight/sample/lib/facts.ts +29 -0
- package/themes/depth-flight/sample/lib/fly.ts +15 -0
- package/themes/depth-flight/sample/main.ts +9 -0
- package/themes/depth-flight/sample/scenes/end.ts +51 -0
- package/themes/depth-flight/sample/scenes/gather.ts +40 -0
- package/themes/depth-flight/sample/scenes/models.ts +75 -0
- package/themes/depth-flight/sample/scenes/price.ts +50 -0
- package/themes/depth-flight/sample/style.json +94 -0
- package/themes/depth-flight/slots.ts +196 -0
- package/themes/depth-flight/still.png +0 -0
- package/themes/depth-flight/style.json +94 -0
- package/themes/depth-flight/theme.json +119 -0
- package/themes/depth-flight/variants/cocoa-cyan.json +121 -0
- package/themes/depth-flight/variants/cocoa-indigo.json +121 -0
- package/themes/depth-flight/variants/cocoa-violet.json +122 -0
- package/themes/depth-flight/variants/deep-sky.json +126 -0
- package/themes/depth-flight/variants/dusk-violet-bold.json +117 -0
- package/themes/depth-flight/variants/dusk-violet.json +132 -0
- package/themes/depth-flight/variants/forest-blue.json +116 -0
- package/themes/depth-flight/variants/forest-cyan.json +122 -0
- package/themes/depth-flight/variants/navy-sky-grain.json +122 -0
- package/themes/depth-flight/variants/navy-sky.json +116 -0
- package/themes/depth-flight/variants/night-teal.json +116 -0
- package/themes/depth-flight/variants/slate-cyan.json +127 -0
- package/themes/depth-flight/variants/slate-indigo.json +116 -0
- package/themes/depth-flight/variants/slate-sky.json +94 -0
- package/themes/depth-flight/variants/slate-violet.json +121 -0
- package/themes/film-reel/THEME.md +60 -0
- package/themes/film-reel/effects.ts +477 -0
- package/themes/film-reel/sample/assets/og/logo.svg +12 -0
- package/themes/film-reel/sample/beats.json +1005 -0
- package/themes/film-reel/sample/index.html +11 -0
- package/themes/film-reel/sample/kf.json +59 -0
- package/themes/film-reel/sample/lib/facts.ts +29 -0
- package/themes/film-reel/sample/lib/reel.ts +9 -0
- package/themes/film-reel/sample/main.ts +9 -0
- package/themes/film-reel/sample/scenes/end.ts +31 -0
- package/themes/film-reel/sample/scenes/gather.ts +40 -0
- package/themes/film-reel/sample/scenes/models.ts +37 -0
- package/themes/film-reel/sample/scenes/price.ts +63 -0
- package/themes/film-reel/sample/style.json +103 -0
- package/themes/film-reel/slots.ts +75 -0
- package/themes/film-reel/still.png +0 -0
- package/themes/film-reel/style.json +103 -0
- package/themes/film-reel/theme.json +142 -0
- package/themes/film-reel/variants/chalk-amber.json +124 -0
- package/themes/film-reel/variants/chalk-pink.json +123 -0
- package/themes/film-reel/variants/cream-violet.json +121 -0
- package/themes/film-reel/variants/frost-blue.json +126 -0
- package/themes/film-reel/variants/frost-green.json +123 -0
- package/themes/film-reel/variants/frost-indigo.json +121 -0
- package/themes/film-reel/variants/frost-jade.json +120 -0
- package/themes/film-reel/variants/frost-plum.json +120 -0
- package/themes/film-reel/variants/frost-teal.json +93 -0
- package/themes/film-reel/variants/lilac-gold.json +120 -0
- package/themes/film-reel/variants/lilac-jade.json +123 -0
- package/themes/film-reel/variants/lilac-magenta.json +125 -0
- package/themes/film-reel/variants/lilac-violet.json +122 -0
- package/themes/film-reel/variants/sand-cyan.json +124 -0
- package/themes/film-reel/variants/sand-lime.json +96 -0
- package/themes/glass-light/THEME.md +55 -0
- package/themes/glass-light/effects.ts +433 -0
- package/themes/glass-light/sample/assets/og/logo.svg +12 -0
- package/themes/glass-light/sample/beats.json +1005 -0
- package/themes/glass-light/sample/index.html +11 -0
- package/themes/glass-light/sample/kf.json +59 -0
- package/themes/glass-light/sample/lib/facts.ts +29 -0
- package/themes/glass-light/sample/lib/glass.ts +81 -0
- package/themes/glass-light/sample/main.ts +9 -0
- package/themes/glass-light/sample/scenes/end.ts +43 -0
- package/themes/glass-light/sample/scenes/gather.ts +38 -0
- package/themes/glass-light/sample/scenes/models.ts +46 -0
- package/themes/glass-light/sample/scenes/price.ts +46 -0
- package/themes/glass-light/sample/style.json +94 -0
- package/themes/glass-light/slots.ts +198 -0
- package/themes/glass-light/still.png +0 -0
- package/themes/glass-light/style.json +94 -0
- package/themes/glass-light/theme.json +119 -0
- package/themes/glass-light/variants/blush-coral.json +116 -0
- package/themes/glass-light/variants/blush-orange.json +115 -0
- package/themes/glass-light/variants/blush-pink.json +119 -0
- package/themes/glass-light/variants/blush-plum.json +115 -0
- package/themes/glass-light/variants/blush-teal.json +115 -0
- package/themes/glass-light/variants/cream-blue.json +125 -0
- package/themes/glass-light/variants/cream-pink.json +87 -0
- package/themes/glass-light/variants/cream-violet.json +119 -0
- package/themes/glass-light/variants/frost-green.json +115 -0
- package/themes/glass-light/variants/frost-sky-suit.json +115 -0
- package/themes/glass-light/variants/frost-sky.json +121 -0
- package/themes/glass-light/variants/lilac-gold.json +126 -0
- package/themes/glass-light/variants/lilac-plum.json +114 -0
- package/themes/glass-light/variants/sage-green.json +119 -0
- package/themes/glass-light/variants/sage-rose.json +114 -0
- package/themes/ink-wash/THEME.md +59 -0
- package/themes/ink-wash/effects.ts +574 -0
- package/themes/ink-wash/sample/assets/og/logo.svg +12 -0
- package/themes/ink-wash/sample/beats.json +1005 -0
- package/themes/ink-wash/sample/index.html +11 -0
- package/themes/ink-wash/sample/kf.json +59 -0
- package/themes/ink-wash/sample/lib/facts.ts +29 -0
- package/themes/ink-wash/sample/lib/ink.ts +35 -0
- package/themes/ink-wash/sample/main.ts +9 -0
- package/themes/ink-wash/sample/scenes/end.ts +72 -0
- package/themes/ink-wash/sample/scenes/gather.ts +53 -0
- package/themes/ink-wash/sample/scenes/models.ts +58 -0
- package/themes/ink-wash/sample/scenes/price.ts +85 -0
- package/themes/ink-wash/sample/style.json +108 -0
- package/themes/ink-wash/slots.ts +150 -0
- package/themes/ink-wash/still.png +0 -0
- package/themes/ink-wash/style.json +108 -0
- package/themes/ink-wash/theme.json +131 -0
- package/themes/ink-wash/variants/blush-orange.json +125 -0
- package/themes/ink-wash/variants/blush-rose.json +124 -0
- package/themes/ink-wash/variants/chalk-coral-grain.json +125 -0
- package/themes/ink-wash/variants/chalk-coral-serif.json +118 -0
- package/themes/ink-wash/variants/chalk-coral.json +120 -0
- package/themes/ink-wash/variants/chalk-orange-grain.json +97 -0
- package/themes/ink-wash/variants/chalk-orange-serif.json +120 -0
- package/themes/ink-wash/variants/chalk-orange.json +120 -0
- package/themes/ink-wash/variants/frost-coral.json +119 -0
- package/themes/ink-wash/variants/frost-rose.json +91 -0
- package/themes/ink-wash/variants/lilac-coral.json +96 -0
- package/themes/ink-wash/variants/sage-coral.json +119 -0
- package/themes/ink-wash/variants/sage-rose.json +119 -0
- package/themes/ink-wash/variants/sand-coral.json +125 -0
- package/themes/ink-wash/variants/sand-orange.json +120 -0
- package/themes/iso-diorama/THEME.md +54 -0
- package/themes/iso-diorama/effects.ts +374 -0
- package/themes/iso-diorama/sample/assets/og/logo.svg +12 -0
- package/themes/iso-diorama/sample/beats.json +1005 -0
- package/themes/iso-diorama/sample/index.html +11 -0
- package/themes/iso-diorama/sample/kf.json +59 -0
- package/themes/iso-diorama/sample/lib/facts.ts +29 -0
- package/themes/iso-diorama/sample/lib/iso.ts +22 -0
- package/themes/iso-diorama/sample/main.ts +9 -0
- package/themes/iso-diorama/sample/scenes/end.ts +41 -0
- package/themes/iso-diorama/sample/scenes/gather.ts +39 -0
- package/themes/iso-diorama/sample/scenes/models.ts +55 -0
- package/themes/iso-diorama/sample/scenes/price.ts +49 -0
- package/themes/iso-diorama/sample/style.json +98 -0
- package/themes/iso-diorama/slots.ts +222 -0
- package/themes/iso-diorama/still.png +0 -0
- package/themes/iso-diorama/style.json +98 -0
- package/themes/iso-diorama/theme.json +131 -0
- package/themes/iso-diorama/variants/chalk-plum.json +121 -0
- package/themes/iso-diorama/variants/cocoa-gold.json +93 -0
- package/themes/iso-diorama/variants/cocoa-indigo.json +122 -0
- package/themes/iso-diorama/variants/cocoa-rose.json +125 -0
- package/themes/iso-diorama/variants/deep-green.json +125 -0
- package/themes/iso-diorama/variants/deep-plum.json +120 -0
- package/themes/iso-diorama/variants/dusk-blue.json +126 -0
- package/themes/iso-diorama/variants/dusk-coral.json +122 -0
- package/themes/iso-diorama/variants/dusk-jade.json +121 -0
- package/themes/iso-diorama/variants/forest-cyan.json +127 -0
- package/themes/iso-diorama/variants/frost-blue.json +126 -0
- package/themes/iso-diorama/variants/frost-green.json +126 -0
- package/themes/iso-diorama/variants/frost-orange.json +125 -0
- package/themes/iso-diorama/variants/frost-teal.json +123 -0
- package/themes/iso-diorama/variants/navy-amber.json +125 -0
- package/themes/isotype/THEME.md +58 -0
- package/themes/isotype/effects.ts +297 -0
- package/themes/isotype/kit.ts +102 -0
- package/themes/isotype/sample/assets/og/logo.svg +12 -0
- package/themes/isotype/sample/beats.json +1005 -0
- package/themes/isotype/sample/index.html +11 -0
- package/themes/isotype/sample/kf.json +59 -0
- package/themes/isotype/sample/lib/chart.ts +47 -0
- package/themes/isotype/sample/lib/facts.ts +29 -0
- package/themes/isotype/sample/main.ts +9 -0
- package/themes/isotype/sample/scenes/end.ts +80 -0
- package/themes/isotype/sample/scenes/gather.ts +65 -0
- package/themes/isotype/sample/scenes/models.ts +75 -0
- package/themes/isotype/sample/scenes/price.ts +90 -0
- package/themes/isotype/sample/style.json +101 -0
- package/themes/isotype/slots.ts +74 -0
- package/themes/isotype/still.png +0 -0
- package/themes/isotype/style.json +101 -0
- package/themes/isotype/theme.json +140 -0
- package/themes/isotype/variants/blush-rose.json +127 -0
- package/themes/isotype/variants/chalk-amber.json +123 -0
- package/themes/isotype/variants/chalk-coral-bold.json +118 -0
- package/themes/isotype/variants/chalk-coral.json +117 -0
- package/themes/isotype/variants/chalk-orange.json +128 -0
- package/themes/isotype/variants/frost-amber-plex.json +128 -0
- package/themes/isotype/variants/frost-amber.json +123 -0
- package/themes/isotype/variants/frost-coral-grain.json +95 -0
- package/themes/isotype/variants/frost-coral.json +123 -0
- package/themes/isotype/variants/frost-orange.json +123 -0
- package/themes/isotype/variants/lilac-rose.json +127 -0
- package/themes/isotype/variants/sage-coral.json +90 -0
- package/themes/isotype/variants/sand-amber.json +118 -0
- package/themes/isotype/variants/sand-orange.json +128 -0
- package/themes/kawaii-sticker/THEME.md +44 -0
- package/themes/kawaii-sticker/effects.ts +412 -0
- package/themes/kawaii-sticker/sample/assets/stickers/bolt.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/bubble.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/clock.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/coin.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/moon.png +0 -0
- package/themes/kawaii-sticker/sample/assets/stickers/og-logo.svg +12 -0
- package/themes/kawaii-sticker/sample/assets/stickers/server.png +0 -0
- package/themes/kawaii-sticker/sample/beats.json +1 -0
- package/themes/kawaii-sticker/sample/index.html +11 -0
- package/themes/kawaii-sticker/sample/kf.json +66 -0
- package/themes/kawaii-sticker/sample/lib/og.ts +54 -0
- package/themes/kawaii-sticker/sample/main.ts +9 -0
- package/themes/kawaii-sticker/sample/scenes/end.ts +37 -0
- package/themes/kawaii-sticker/sample/scenes/gather.ts +50 -0
- package/themes/kawaii-sticker/sample/scenes/models.ts +43 -0
- package/themes/kawaii-sticker/sample/scenes/one.ts +45 -0
- package/themes/kawaii-sticker/sample/scenes/price.ts +47 -0
- package/themes/kawaii-sticker/sample/style.json +99 -0
- package/themes/kawaii-sticker/slots.ts +95 -0
- package/themes/kawaii-sticker/still.png +0 -0
- package/themes/kawaii-sticker/style.json +99 -0
- package/themes/kawaii-sticker/theme.json +145 -0
- package/themes/kawaii-sticker/variants/blush-coral.json +134 -0
- package/themes/kawaii-sticker/variants/blush-teal.json +129 -0
- package/themes/kawaii-sticker/variants/blush-violet.json +134 -0
- package/themes/kawaii-sticker/variants/cream-gold.json +135 -0
- package/themes/kawaii-sticker/variants/deep-jade.json +134 -0
- package/themes/kawaii-sticker/variants/dusk-green.json +134 -0
- package/themes/kawaii-sticker/variants/dusk-indigo.json +130 -0
- package/themes/kawaii-sticker/variants/dusk-sky.json +135 -0
- package/themes/kawaii-sticker/variants/dusk-teal.json +134 -0
- package/themes/kawaii-sticker/variants/frost-blue.json +135 -0
- package/themes/kawaii-sticker/variants/frost-plum.json +133 -0
- package/themes/kawaii-sticker/variants/lilac-violet.json +133 -0
- package/themes/kawaii-sticker/variants/navy-gold.json +134 -0
- package/themes/kawaii-sticker/variants/navy-plum.json +134 -0
- package/themes/kawaii-sticker/variants/sage-sky.json +107 -0
- package/themes/lab-notebook/THEME.md +56 -0
- package/themes/lab-notebook/effects.ts +423 -0
- package/themes/lab-notebook/kit.ts +84 -0
- package/themes/lab-notebook/sample/assets/og/logo.svg +12 -0
- package/themes/lab-notebook/sample/beats.json +1005 -0
- package/themes/lab-notebook/sample/index.html +11 -0
- package/themes/lab-notebook/sample/kf.json +59 -0
- package/themes/lab-notebook/sample/lib/facts.ts +29 -0
- package/themes/lab-notebook/sample/lib/note.ts +53 -0
- package/themes/lab-notebook/sample/main.ts +9 -0
- package/themes/lab-notebook/sample/scenes/end.ts +127 -0
- package/themes/lab-notebook/sample/scenes/gather.ts +83 -0
- package/themes/lab-notebook/sample/scenes/models.ts +73 -0
- package/themes/lab-notebook/sample/scenes/price.ts +89 -0
- package/themes/lab-notebook/sample/style.json +109 -0
- package/themes/lab-notebook/slots.ts +75 -0
- package/themes/lab-notebook/still.png +0 -0
- package/themes/lab-notebook/style.json +109 -0
- package/themes/lab-notebook/theme.json +141 -0
- package/themes/lab-notebook/variants/blush-orange.json +125 -0
- package/themes/lab-notebook/variants/chalk-coral.json +126 -0
- package/themes/lab-notebook/variants/chalk-orange.json +129 -0
- package/themes/lab-notebook/variants/chalk-rose-2.json +96 -0
- package/themes/lab-notebook/variants/chalk-rose.json +125 -0
- package/themes/lab-notebook/variants/frost-orange.json +101 -0
- package/themes/lab-notebook/variants/frost-rose-grain.json +101 -0
- package/themes/lab-notebook/variants/frost-rose.json +96 -0
- package/themes/lab-notebook/variants/lilac-rose-2.json +96 -0
- package/themes/lab-notebook/variants/lilac-rose.json +128 -0
- package/themes/lab-notebook/variants/sage-rose.json +124 -0
- package/themes/lab-notebook/variants/sand-orange-grain.json +101 -0
- package/themes/lab-notebook/variants/sand-orange.json +129 -0
- package/themes/lab-notebook/variants/snow-orange.json +129 -0
- package/themes/lab-notebook/variants/snow-rose.json +124 -0
- package/themes/manga-panel/THEME.md +60 -0
- package/themes/manga-panel/effects.ts +791 -0
- package/themes/manga-panel/sample/assets/og/logo.svg +12 -0
- package/themes/manga-panel/sample/beats.json +1005 -0
- package/themes/manga-panel/sample/index.html +11 -0
- package/themes/manga-panel/sample/kf.json +59 -0
- package/themes/manga-panel/sample/lib/facts.ts +29 -0
- package/themes/manga-panel/sample/lib/manga.ts +58 -0
- package/themes/manga-panel/sample/main.ts +9 -0
- package/themes/manga-panel/sample/scenes/end.ts +96 -0
- package/themes/manga-panel/sample/scenes/gather.ts +100 -0
- package/themes/manga-panel/sample/scenes/models.ts +96 -0
- package/themes/manga-panel/sample/scenes/price.ts +154 -0
- package/themes/manga-panel/sample/style.json +105 -0
- package/themes/manga-panel/slots.ts +127 -0
- package/themes/manga-panel/still.png +0 -0
- package/themes/manga-panel/style.json +105 -0
- package/themes/manga-panel/theme.json +148 -0
- package/themes/manga-panel/variants/chalk-cyan-dots.json +122 -0
- package/themes/manga-panel/variants/chalk-cyan.json +122 -0
- package/themes/manga-panel/variants/chalk-magenta.json +121 -0
- package/themes/manga-panel/variants/chalk-orange-bold.json +117 -0
- package/themes/manga-panel/variants/chalk-orange.json +122 -0
- package/themes/manga-panel/variants/chalk-rose-dots.json +121 -0
- package/themes/manga-panel/variants/chalk-rose.json +116 -0
- package/themes/manga-panel/variants/chalk-sky-bold.json +117 -0
- package/themes/manga-panel/variants/chalk-sky.json +117 -0
- package/themes/manga-panel/variants/snow-cyan.json +117 -0
- package/themes/manga-panel/variants/snow-magenta-dots.json +121 -0
- package/themes/manga-panel/variants/snow-magenta.json +116 -0
- package/themes/manga-panel/variants/snow-rose-dots.json +121 -0
- package/themes/manga-panel/variants/snow-rose.json +116 -0
- package/themes/manga-panel/variants/snow-sky.json +95 -0
- package/themes/marble-run/THEME.md +73 -0
- package/themes/marble-run/effects.ts +678 -0
- package/themes/marble-run/sample/assets/og/logo.svg +12 -0
- package/themes/marble-run/sample/beats.json +1005 -0
- package/themes/marble-run/sample/index.html +11 -0
- package/themes/marble-run/sample/kf.json +59 -0
- package/themes/marble-run/sample/lib/facts.ts +29 -0
- package/themes/marble-run/sample/lib/run.ts +30 -0
- package/themes/marble-run/sample/main.ts +9 -0
- package/themes/marble-run/sample/scenes/end.ts +58 -0
- package/themes/marble-run/sample/scenes/gather.ts +51 -0
- package/themes/marble-run/sample/scenes/models.ts +73 -0
- package/themes/marble-run/sample/scenes/price.ts +51 -0
- package/themes/marble-run/sample/style.json +109 -0
- package/themes/marble-run/slots.ts +116 -0
- package/themes/marble-run/still.png +0 -0
- package/themes/marble-run/style.json +109 -0
- package/themes/marble-run/theme.json +145 -0
- package/themes/marble-run/variants/cocoa-amber.json +128 -0
- package/themes/marble-run/variants/cocoa-orange.json +142 -0
- package/themes/marble-run/variants/dusk-orange.json +133 -0
- package/themes/marble-run/variants/forest-gold.json +128 -0
- package/themes/marble-run/variants/navy-gold.json +137 -0
- package/themes/marble-run/variants/night-gold-grain.json +105 -0
- package/themes/marble-run/variants/night-gold.json +137 -0
- package/themes/marble-run/variants/slate-gold-grain.json +133 -0
- package/themes/marble-run/variants/slate-gold.json +133 -0
- package/themes/marble-run/variants/slate-orange-grain.json +105 -0
- package/themes/marble-run/variants/slate-orange-mono.json +128 -0
- package/themes/marble-run/variants/slate-orange-serif.json +128 -0
- package/themes/marble-run/variants/slate-orange.json +131 -0
- package/themes/neon-sign/THEME.md +59 -0
- package/themes/neon-sign/effects.ts +424 -0
- package/themes/neon-sign/sample/assets/og/logo.svg +12 -0
- package/themes/neon-sign/sample/beats.json +1005 -0
- package/themes/neon-sign/sample/index.html +11 -0
- package/themes/neon-sign/sample/kf.json +59 -0
- package/themes/neon-sign/sample/lib/facts.ts +29 -0
- package/themes/neon-sign/sample/lib/neon.ts +50 -0
- package/themes/neon-sign/sample/main.ts +9 -0
- package/themes/neon-sign/sample/scenes/end.ts +62 -0
- package/themes/neon-sign/sample/scenes/gather.ts +59 -0
- package/themes/neon-sign/sample/scenes/models.ts +63 -0
- package/themes/neon-sign/sample/scenes/price.ts +74 -0
- package/themes/neon-sign/sample/style.json +104 -0
- package/themes/neon-sign/slots.ts +110 -0
- package/themes/neon-sign/still.png +0 -0
- package/themes/neon-sign/style.json +104 -0
- package/themes/neon-sign/theme.json +136 -0
- package/themes/neon-sign/variants/deep-plum.json +121 -0
- package/themes/neon-sign/variants/deep-violet.json +121 -0
- package/themes/neon-sign/variants/dusk-plum.json +121 -0
- package/themes/neon-sign/variants/forest-magenta.json +126 -0
- package/themes/neon-sign/variants/forest-plum.json +98 -0
- package/themes/neon-sign/variants/night-coral.json +122 -0
- package/themes/neon-sign/variants/night-magenta-round.json +121 -0
- package/themes/neon-sign/variants/night-magenta.json +126 -0
- package/themes/neon-sign/variants/night-pink.json +125 -0
- package/themes/neon-sign/variants/night-violet.json +126 -0
- package/themes/neon-sign/variants/slate-plum.json +120 -0
- package/themes/neon-sign/variants/slate-violet.json +127 -0
- package/themes/neon-sign/variants/wine-coral.json +127 -0
- package/themes/neon-sign/variants/wine-pink.json +125 -0
- package/themes/neon-sign/variants/wine-plum.json +126 -0
- package/themes/newspaper/THEME.md +67 -0
- package/themes/newspaper/effects.ts +347 -0
- package/themes/newspaper/sample/assets/og/logo.svg +12 -0
- package/themes/newspaper/sample/beats.json +1005 -0
- package/themes/newspaper/sample/index.html +11 -0
- package/themes/newspaper/sample/kf.json +59 -0
- package/themes/newspaper/sample/lib/facts.ts +29 -0
- package/themes/newspaper/sample/lib/page.ts +27 -0
- package/themes/newspaper/sample/main.ts +9 -0
- package/themes/newspaper/sample/scenes/end.ts +62 -0
- package/themes/newspaper/sample/scenes/gather.ts +66 -0
- package/themes/newspaper/sample/scenes/models.ts +61 -0
- package/themes/newspaper/sample/scenes/price.ts +103 -0
- package/themes/newspaper/sample/style.json +100 -0
- package/themes/newspaper/slots.ts +73 -0
- package/themes/newspaper/still.png +0 -0
- package/themes/newspaper/style.json +100 -0
- package/themes/newspaper/theme.json +140 -0
- package/themes/newspaper/variants/blush-amber.json +123 -0
- package/themes/newspaper/variants/blush-orange.json +125 -0
- package/themes/newspaper/variants/chalk-cyan.json +119 -0
- package/themes/newspaper/variants/chalk-indigo.json +124 -0
- package/themes/newspaper/variants/chalk-jade.json +95 -0
- package/themes/newspaper/variants/chalk-magenta.json +127 -0
- package/themes/newspaper/variants/frost-plum.json +123 -0
- package/themes/newspaper/variants/frost-sky.json +129 -0
- package/themes/newspaper/variants/frost-violet.json +96 -0
- package/themes/newspaper/variants/lilac-coral.json +124 -0
- package/themes/newspaper/variants/lilac-green.json +127 -0
- package/themes/newspaper/variants/sage-blue.json +124 -0
- package/themes/newspaper/variants/sage-lime.json +117 -0
- package/themes/newspaper/variants/sand-gold.json +124 -0
- package/themes/newspaper/variants/sand-jade.json +123 -0
- package/themes/og-measure/slots.ts +88 -0
- package/themes/og-measure/theme.json +62 -0
- package/themes/og-measure/variants/chalk-orange.json +102 -0
- package/themes/og-measure/variants/cocoa-amber.json +138 -0
- package/themes/og-measure/variants/cocoa-cyan.json +138 -0
- package/themes/og-measure/variants/cocoa-gold.json +129 -0
- package/themes/og-measure/variants/cream-lime.json +137 -0
- package/themes/og-measure/variants/deep-jade.json +100 -0
- package/themes/og-measure/variants/dusk-violet.json +133 -0
- package/themes/og-measure/variants/forest-cyan.json +123 -0
- package/themes/og-measure/variants/frost-amber.json +129 -0
- package/themes/og-measure/variants/frost-cyan.json +133 -0
- package/themes/og-measure/variants/lilac-plum.json +127 -0
- package/themes/og-measure/variants/lilac-violet.json +139 -0
- package/themes/og-measure/variants/sage-green.json +137 -0
- package/themes/og-measure/variants/wine-jade.json +127 -0
- package/themes/og-measure/variants/wine-plum.json +127 -0
- package/themes/orbit-system/THEME.md +77 -0
- package/themes/orbit-system/effects.ts +665 -0
- package/themes/orbit-system/sample/assets/og/logo.svg +12 -0
- package/themes/orbit-system/sample/beats.json +1005 -0
- package/themes/orbit-system/sample/index.html +11 -0
- package/themes/orbit-system/sample/kf.json +59 -0
- package/themes/orbit-system/sample/lib/facts.ts +29 -0
- package/themes/orbit-system/sample/lib/orbit.ts +84 -0
- package/themes/orbit-system/sample/main.ts +9 -0
- package/themes/orbit-system/sample/scenes/end.ts +50 -0
- package/themes/orbit-system/sample/scenes/gather.ts +35 -0
- package/themes/orbit-system/sample/scenes/models.ts +49 -0
- package/themes/orbit-system/sample/scenes/price.ts +57 -0
- package/themes/orbit-system/sample/style.json +108 -0
- package/themes/orbit-system/slots.ts +174 -0
- package/themes/orbit-system/still.png +0 -0
- package/themes/orbit-system/style.json +108 -0
- package/themes/orbit-system/theme.json +142 -0
- package/themes/orbit-system/variants/cocoa-amber.json +122 -0
- package/themes/orbit-system/variants/cocoa-coral.json +127 -0
- package/themes/orbit-system/variants/cocoa-cyan.json +127 -0
- package/themes/orbit-system/variants/deep-cyan.json +132 -0
- package/themes/orbit-system/variants/deep-sky.json +122 -0
- package/themes/orbit-system/variants/dusk-magenta.json +121 -0
- package/themes/orbit-system/variants/dusk-plum-pretendard.json +121 -0
- package/themes/orbit-system/variants/dusk-plum.json +127 -0
- package/themes/orbit-system/variants/dusk-violet.json +122 -0
- package/themes/orbit-system/variants/forest-coral.json +126 -0
- package/themes/orbit-system/variants/forest-plum.json +94 -0
- package/themes/orbit-system/variants/navy-amber.json +127 -0
- package/themes/orbit-system/variants/wine-amber.json +127 -0
- package/themes/orbit-system/variants/wine-coral.json +123 -0
- package/themes/orbit-system/variants/wine-magenta.json +126 -0
- package/themes/origami-fold/THEME.md +74 -0
- package/themes/origami-fold/effects.ts +535 -0
- package/themes/origami-fold/sample/assets/og/logo.svg +12 -0
- package/themes/origami-fold/sample/beats.json +1005 -0
- package/themes/origami-fold/sample/index.html +11 -0
- package/themes/origami-fold/sample/kf.json +59 -0
- package/themes/origami-fold/sample/lib/facts.ts +29 -0
- package/themes/origami-fold/sample/lib/fold.ts +53 -0
- package/themes/origami-fold/sample/main.ts +9 -0
- package/themes/origami-fold/sample/scenes/end.ts +51 -0
- package/themes/origami-fold/sample/scenes/gather.ts +37 -0
- package/themes/origami-fold/sample/scenes/models.ts +46 -0
- package/themes/origami-fold/sample/scenes/price.ts +54 -0
- package/themes/origami-fold/sample/style.json +108 -0
- package/themes/origami-fold/slots.ts +176 -0
- package/themes/origami-fold/still.png +0 -0
- package/themes/origami-fold/style.json +108 -0
- package/themes/origami-fold/theme.json +123 -0
- package/themes/origami-fold/variants/deep-amber-sunflower.json +122 -0
- package/themes/origami-fold/variants/deep-amber.json +122 -0
- package/themes/origami-fold/variants/deep-orange.json +128 -0
- package/themes/origami-fold/variants/forest-coral.json +127 -0
- package/themes/origami-fold/variants/forest-pink.json +123 -0
- package/themes/origami-fold/variants/forest-rose.json +100 -0
- package/themes/origami-fold/variants/frost-amber-grain.json +127 -0
- package/themes/origami-fold/variants/frost-amber-paper.json +128 -0
- package/themes/origami-fold/variants/frost-amber.json +95 -0
- package/themes/origami-fold/variants/sage-coral-grain.json +100 -0
- package/themes/origami-fold/variants/sage-coral-sunflower.json +122 -0
- package/themes/origami-fold/variants/sage-coral.json +128 -0
- package/themes/origami-fold/variants/sage-pink-grain.json +127 -0
- package/themes/origami-fold/variants/sage-pink-round.json +124 -0
- package/themes/origami-fold/variants/sage-pink.json +127 -0
- package/themes/paper-cutout/THEME.md +63 -0
- package/themes/paper-cutout/effects.ts +609 -0
- package/themes/paper-cutout/sample/assets/og/logo.svg +12 -0
- package/themes/paper-cutout/sample/beats.json +1005 -0
- package/themes/paper-cutout/sample/index.html +11 -0
- package/themes/paper-cutout/sample/kf.json +59 -0
- package/themes/paper-cutout/sample/lib/facts.ts +29 -0
- package/themes/paper-cutout/sample/lib/paper.ts +91 -0
- package/themes/paper-cutout/sample/main.ts +9 -0
- package/themes/paper-cutout/sample/scenes/end.ts +54 -0
- package/themes/paper-cutout/sample/scenes/gather.ts +63 -0
- package/themes/paper-cutout/sample/scenes/models.ts +93 -0
- package/themes/paper-cutout/sample/scenes/price.ts +100 -0
- package/themes/paper-cutout/sample/style.json +104 -0
- package/themes/paper-cutout/slots.ts +87 -0
- package/themes/paper-cutout/still.png +0 -0
- package/themes/paper-cutout/style.json +104 -0
- package/themes/paper-cutout/theme.json +144 -0
- package/themes/paper-cutout/variants/blush-coral.json +122 -0
- package/themes/paper-cutout/variants/blush-violet.json +122 -0
- package/themes/paper-cutout/variants/chalk-teal.json +122 -0
- package/themes/paper-cutout/variants/cream-gold.json +122 -0
- package/themes/paper-cutout/variants/frost-blue.json +123 -0
- package/themes/paper-cutout/variants/frost-lime.json +121 -0
- package/themes/paper-cutout/variants/frost-plum.json +122 -0
- package/themes/paper-cutout/variants/lilac-blue.json +123 -0
- package/themes/paper-cutout/variants/lilac-gold.json +122 -0
- package/themes/paper-cutout/variants/sage-cyan.json +122 -0
- package/themes/paper-cutout/variants/sage-green.json +122 -0
- package/themes/paper-cutout/variants/sage-pink.json +122 -0
- package/themes/paper-cutout/variants/sand-blue.json +123 -0
- package/themes/paper-cutout/variants/sand-green.json +121 -0
- package/themes/paper-cutout/variants/sand-plum.json +120 -0
- package/themes/pixel-quest/THEME.md +57 -0
- package/themes/pixel-quest/effects.ts +491 -0
- package/themes/pixel-quest/kit.ts +232 -0
- package/themes/pixel-quest/sample/assets/og/logo.svg +12 -0
- package/themes/pixel-quest/sample/beats.json +1005 -0
- package/themes/pixel-quest/sample/index.html +11 -0
- package/themes/pixel-quest/sample/kf.json +59 -0
- package/themes/pixel-quest/sample/lib/facts.ts +29 -0
- package/themes/pixel-quest/sample/lib/game.ts +71 -0
- package/themes/pixel-quest/sample/lib/logo.ts +51 -0
- package/themes/pixel-quest/sample/main.ts +9 -0
- package/themes/pixel-quest/sample/scenes/end.ts +75 -0
- package/themes/pixel-quest/sample/scenes/gather.ts +65 -0
- package/themes/pixel-quest/sample/scenes/models.ts +104 -0
- package/themes/pixel-quest/sample/scenes/price.ts +118 -0
- package/themes/pixel-quest/sample/style.json +115 -0
- package/themes/pixel-quest/slots.ts +94 -0
- package/themes/pixel-quest/still.png +0 -0
- package/themes/pixel-quest/style.json +115 -0
- package/themes/pixel-quest/theme.json +143 -0
- package/themes/pixel-quest/variants/navy-gold-2.json +98 -0
- package/themes/pixel-quest/variants/navy-gold-3.json +127 -0
- package/themes/pixel-quest/variants/navy-gold-4.json +95 -0
- package/themes/pixel-quest/variants/navy-gold-pixel.json +132 -0
- package/themes/pixel-quest/variants/navy-gold-scan.json +99 -0
- package/themes/pixel-quest/variants/navy-gold.json +131 -0
- package/themes/pixel-quest/variants/navy-lime-2.json +93 -0
- package/themes/pixel-quest/variants/navy-lime-3.json +124 -0
- package/themes/pixel-quest/variants/navy-lime-pixel.json +126 -0
- package/themes/pixel-quest/variants/navy-lime-scan.json +97 -0
- package/themes/pixel-quest/variants/navy-lime.json +130 -0
- package/themes/receipt/THEME.md +72 -0
- package/themes/receipt/effects.ts +257 -0
- package/themes/receipt/sample/assets/og/logo.svg +12 -0
- package/themes/receipt/sample/beats.json +1005 -0
- package/themes/receipt/sample/index.html +11 -0
- package/themes/receipt/sample/kf.json +59 -0
- package/themes/receipt/sample/lib/facts.ts +29 -0
- package/themes/receipt/sample/lib/sheet.ts +52 -0
- package/themes/receipt/sample/main.ts +9 -0
- package/themes/receipt/sample/scenes/end.ts +44 -0
- package/themes/receipt/sample/scenes/gather.ts +57 -0
- package/themes/receipt/sample/scenes/models.ts +48 -0
- package/themes/receipt/sample/scenes/price.ts +64 -0
- package/themes/receipt/sample/style.json +104 -0
- package/themes/receipt/slots.ts +89 -0
- package/themes/receipt/still.png +0 -0
- package/themes/receipt/style.json +104 -0
- package/themes/receipt/theme.json +133 -0
- package/themes/receipt/variants/blush-coral.json +89 -0
- package/themes/receipt/variants/sand-coral-2.json +89 -0
- package/themes/receipt/variants/sand-coral-3.json +89 -0
- package/themes/receipt/variants/sand-coral-4.json +90 -0
- package/themes/receipt/variants/sand-coral-5.json +89 -0
- package/themes/receipt/variants/sand-coral-6.json +88 -0
- package/themes/receipt/variants/sand-coral-7.json +88 -0
- package/themes/receipt/variants/sand-coral-8.json +89 -0
- package/themes/receipt/variants/sand-coral-9.json +89 -0
- package/themes/receipt/variants/sand-coral.json +88 -0
- package/themes/receipt/variants/sand-orange-2.json +89 -0
- package/themes/receipt/variants/sand-orange-3.json +90 -0
- package/themes/receipt/variants/sand-orange-4.json +89 -0
- package/themes/receipt/variants/sand-orange-5.json +89 -0
- package/themes/receipt/variants/sand-orange.json +89 -0
- package/themes/riso-zine/slots.ts +81 -0
- package/themes/riso-zine/theme.json +66 -0
- package/themes/riso-zine/variants/blush-coral.json +120 -0
- package/themes/riso-zine/variants/blush-gold.json +120 -0
- package/themes/riso-zine/variants/blush-pink.json +115 -0
- package/themes/riso-zine/variants/chalk-cyan.json +120 -0
- package/themes/riso-zine/variants/chalk-lime.json +119 -0
- package/themes/riso-zine/variants/cream-amber.json +89 -0
- package/themes/riso-zine/variants/frost-blue.json +119 -0
- package/themes/riso-zine/variants/frost-coral.json +118 -0
- package/themes/riso-zine/variants/frost-cyan.json +120 -0
- package/themes/riso-zine/variants/frost-green.json +120 -0
- package/themes/riso-zine/variants/lilac-plum.json +118 -0
- package/themes/riso-zine/variants/lilac-violet.json +123 -0
- package/themes/riso-zine/variants/sage-green.json +119 -0
- package/themes/riso-zine/variants/sand-jade.json +120 -0
- package/themes/riso-zine/variants/sand-plum.json +113 -0
- package/themes/server-hall/THEME.md +58 -0
- package/themes/server-hall/effects.ts +455 -0
- package/themes/server-hall/kit.ts +138 -0
- package/themes/server-hall/sample/assets/og/logo.svg +12 -0
- package/themes/server-hall/sample/beats.json +1005 -0
- package/themes/server-hall/sample/index.html +11 -0
- package/themes/server-hall/sample/kf.json +59 -0
- package/themes/server-hall/sample/lib/facts.ts +29 -0
- package/themes/server-hall/sample/lib/hall.ts +81 -0
- package/themes/server-hall/sample/main.ts +9 -0
- package/themes/server-hall/sample/scenes/end.ts +57 -0
- package/themes/server-hall/sample/scenes/gather.ts +38 -0
- package/themes/server-hall/sample/scenes/models.ts +49 -0
- package/themes/server-hall/sample/scenes/price.ts +65 -0
- package/themes/server-hall/sample/style.json +107 -0
- package/themes/server-hall/slots.ts +106 -0
- package/themes/server-hall/still.png +0 -0
- package/themes/server-hall/style.json +107 -0
- package/themes/server-hall/theme.json +143 -0
- package/themes/server-hall/variants/navy-indigo.json +140 -0
- package/themes/server-hall/variants/night-indigo.json +120 -0
- package/themes/server-hall/variants/wine-plum.json +130 -0
- package/themes/server-hall/variants/wine-violet.json +103 -0
- package/themes/subway-map/THEME.md +64 -0
- package/themes/subway-map/effects.ts +662 -0
- package/themes/subway-map/sample/assets/og/logo.svg +12 -0
- package/themes/subway-map/sample/beats.json +1005 -0
- package/themes/subway-map/sample/index.html +11 -0
- package/themes/subway-map/sample/kf.json +59 -0
- package/themes/subway-map/sample/lib/facts.ts +29 -0
- package/themes/subway-map/sample/lib/map.ts +58 -0
- package/themes/subway-map/sample/main.ts +9 -0
- package/themes/subway-map/sample/scenes/end.ts +94 -0
- package/themes/subway-map/sample/scenes/gather.ts +64 -0
- package/themes/subway-map/sample/scenes/models.ts +117 -0
- package/themes/subway-map/sample/scenes/price.ts +119 -0
- package/themes/subway-map/sample/style.json +108 -0
- package/themes/subway-map/slots.ts +66 -0
- package/themes/subway-map/still.png +0 -0
- package/themes/subway-map/style.json +108 -0
- package/themes/subway-map/theme.json +161 -0
- package/themes/subway-map/variants/blush-jade.json +131 -0
- package/themes/subway-map/variants/chalk-jade.json +141 -0
- package/themes/subway-map/variants/deep-green.json +131 -0
- package/themes/subway-map/variants/deep-teal.json +132 -0
- package/themes/subway-map/variants/dusk-teal-bold.json +132 -0
- package/themes/subway-map/variants/dusk-teal.json +105 -0
- package/themes/subway-map/variants/forest-green.json +141 -0
- package/themes/subway-map/variants/forest-jade.json +131 -0
- package/themes/subway-map/variants/frost-jade.json +131 -0
- package/themes/subway-map/variants/frost-teal.json +137 -0
- package/themes/subway-map/variants/sage-teal.json +132 -0
- package/themes/subway-map/variants/slate-green.json +136 -0
- package/themes/subway-map/variants/slate-jade.json +131 -0
- package/themes/subway-map/variants/snow-jade.json +136 -0
- package/themes/subway-map/variants/wine-green.json +104 -0
- package/themes/swiss-poster/THEME.md +59 -0
- package/themes/swiss-poster/effects.ts +339 -0
- package/themes/swiss-poster/grid.ts +35 -0
- package/themes/swiss-poster/sample/assets/og/logo.svg +12 -0
- package/themes/swiss-poster/sample/beats.json +1005 -0
- package/themes/swiss-poster/sample/index.html +11 -0
- package/themes/swiss-poster/sample/kf.json +59 -0
- package/themes/swiss-poster/sample/lib/facts.ts +29 -0
- package/themes/swiss-poster/sample/lib/poster.ts +36 -0
- package/themes/swiss-poster/sample/main.ts +9 -0
- package/themes/swiss-poster/sample/scenes/end.ts +70 -0
- package/themes/swiss-poster/sample/scenes/gather.ts +68 -0
- package/themes/swiss-poster/sample/scenes/models.ts +63 -0
- package/themes/swiss-poster/sample/scenes/price.ts +74 -0
- package/themes/swiss-poster/sample/style.json +100 -0
- package/themes/swiss-poster/slots.ts +69 -0
- package/themes/swiss-poster/still.png +0 -0
- package/themes/swiss-poster/style.json +100 -0
- package/themes/swiss-poster/theme.json +131 -0
- package/themes/swiss-poster/variants/blush-green.json +116 -0
- package/themes/swiss-poster/variants/chalk-plum.json +121 -0
- package/themes/swiss-poster/variants/chalk-sky.json +90 -0
- package/themes/swiss-poster/variants/cocoa-cyan.json +117 -0
- package/themes/swiss-poster/variants/dusk-coral.json +89 -0
- package/themes/swiss-poster/variants/dusk-magenta.json +117 -0
- package/themes/swiss-poster/variants/forest-amber.json +127 -0
- package/themes/swiss-poster/variants/forest-blue.json +118 -0
- package/themes/swiss-poster/variants/forest-jade.json +89 -0
- package/themes/swiss-poster/variants/frost-gold.json +128 -0
- package/themes/swiss-poster/variants/frost-indigo.json +117 -0
- package/themes/swiss-poster/variants/sand-magenta.json +126 -0
- package/themes/swiss-poster/variants/slate-orange.json +122 -0
- package/themes/swiss-poster/variants/slate-pink.json +126 -0
- package/themes/swiss-poster/variants/slate-violet.json +89 -0
- package/themes/water-works/THEME.md +61 -0
- package/themes/water-works/effects.ts +609 -0
- package/themes/water-works/sample/assets/og/logo.svg +12 -0
- package/themes/water-works/sample/beats.json +1005 -0
- package/themes/water-works/sample/index.html +11 -0
- package/themes/water-works/sample/kf.json +59 -0
- package/themes/water-works/sample/lib/facts.ts +29 -0
- package/themes/water-works/sample/lib/hall.ts +22 -0
- package/themes/water-works/sample/main.ts +9 -0
- package/themes/water-works/sample/scenes/end.ts +55 -0
- package/themes/water-works/sample/scenes/gather.ts +42 -0
- package/themes/water-works/sample/scenes/models.ts +51 -0
- package/themes/water-works/sample/scenes/price.ts +66 -0
- package/themes/water-works/sample/style.json +105 -0
- package/themes/water-works/slots.ts +140 -0
- package/themes/water-works/still.png +0 -0
- package/themes/water-works/style.json +105 -0
- package/themes/water-works/theme.json +138 -0
- package/themes/water-works/variants/blush-rose.json +123 -0
- package/themes/water-works/variants/chalk-blue.json +124 -0
- package/themes/water-works/variants/chalk-cyan-2.json +96 -0
- package/themes/water-works/variants/chalk-cyan.json +123 -0
- package/themes/water-works/variants/chalk-gold-mono.json +122 -0
- package/themes/water-works/variants/chalk-gold.json +123 -0
- package/themes/water-works/variants/chalk-green.json +123 -0
- package/themes/water-works/variants/frost-indigo.json +123 -0
- package/themes/water-works/variants/frost-rose.json +132 -0
- package/themes/water-works/variants/lilac-violet-mono.json +124 -0
- package/themes/water-works/variants/lilac-violet.json +133 -0
- package/themes/water-works/variants/sage-amber.json +133 -0
- package/themes/water-works/variants/sage-green.json +133 -0
- package/themes/water-works/variants/sand-amber.json +123 -0
- package/themes/water-works/variants/sand-plum.json +121 -0
- package/themes/whiteboard/THEME.md +78 -0
- package/themes/whiteboard/effects.ts +561 -0
- package/themes/whiteboard/sample/assets/og/logo.svg +12 -0
- package/themes/whiteboard/sample/beats.json +1005 -0
- package/themes/whiteboard/sample/index.html +11 -0
- package/themes/whiteboard/sample/kf.json +59 -0
- package/themes/whiteboard/sample/lib/board.ts +93 -0
- package/themes/whiteboard/sample/lib/facts.ts +29 -0
- package/themes/whiteboard/sample/main.ts +9 -0
- package/themes/whiteboard/sample/scenes/end.ts +59 -0
- package/themes/whiteboard/sample/scenes/gather.ts +50 -0
- package/themes/whiteboard/sample/scenes/models.ts +56 -0
- package/themes/whiteboard/sample/scenes/price.ts +79 -0
- package/themes/whiteboard/sample/style.json +106 -0
- package/themes/whiteboard/slots.ts +152 -0
- package/themes/whiteboard/still.png +0 -0
- package/themes/whiteboard/style.json +106 -0
- package/themes/whiteboard/theme.json +143 -0
- package/themes/whiteboard/variants/chalk-coral-do.json +126 -0
- package/themes/whiteboard/variants/chalk-coral.json +132 -0
- package/themes/whiteboard/variants/cream-lime.json +131 -0
- package/themes/whiteboard/variants/cream-plum.json +103 -0
- package/themes/whiteboard/variants/frost-teal-do.json +127 -0
- package/themes/whiteboard/variants/frost-teal.json +127 -0
- package/themes/whiteboard/variants/lilac-indigo.json +132 -0
- package/themes/whiteboard/variants/lilac-jade.json +103 -0
- package/themes/whiteboard/variants/sage-green.json +130 -0
- package/themes/whiteboard/variants/sage-plum.json +126 -0
- package/themes/whiteboard/variants/snow-amber.json +99 -0
- package/themes/whiteboard/variants/snow-cyan.json +132 -0
- package/themes/whiteboard/variants/snow-green.json +126 -0
- package/themes/whiteboard/variants/snow-magenta.json +126 -0
- package/themes/whiteboard/variants/snow-plum.json +130 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { clamp, ease, rand, toEase, type EaseName, type SceneCtx } from "@kasaframe/core";
|
|
2
|
+
import { dropBurst } from "@kasaframe/motion";
|
|
3
|
+
import { roundRectShape, stage3d, THREE, type Stage3D } from "@kasaframe/themes/stage3d";
|
|
4
|
+
|
|
5
|
+
type V3 = [number, number, number];
|
|
6
|
+
const color = (ctx: SceneCtx, k: string) => new THREE.Color(ctx.style.colors[k] ?? k);
|
|
7
|
+
const settle = (t: number, at: number, dur = 0.42) => (t < at ? 0 : ease.outCubic(clamp((t - at) / dur)));
|
|
8
|
+
|
|
9
|
+
export interface CamKey {
|
|
10
|
+
t: number;
|
|
11
|
+
pos: V3;
|
|
12
|
+
look: V3;
|
|
13
|
+
/** 앞 키에서 이 키로 오는 이징 — 박에 떠나 박에 내려앉는다. 기본 inOutCubic */
|
|
14
|
+
ease?: EaseName;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface Shot {
|
|
18
|
+
from: number;
|
|
19
|
+
to: number;
|
|
20
|
+
/** 카메라 키 — 키 사이는 곧게 움직이고 키에서 선다. 같은 자리 키를 이으면 그동안 서 있다 */
|
|
21
|
+
keys: CamKey[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const mix3 = (a: V3, b: V3, u: number): V3 => [a[0] + (b[0] - a[0]) * u, a[1] + (b[1] - a[1]) * u, a[2] + (b[2] - a[2]) * u];
|
|
25
|
+
// 카메라는 이유가 있을 때만 — 키 하나가 움직임 하나(다가가기·물러나기·올려 보기), 그 사이는 선다. 쉬지 않는 몫은 커스틱·떠 있는 판이 진다
|
|
26
|
+
function camAt(t: number, keys: CamKey[]): { pos: V3; look: V3 } {
|
|
27
|
+
const ks = [...keys].sort((a, b) => a.t - b.t);
|
|
28
|
+
if (t <= ks[0].t) return ks[0];
|
|
29
|
+
for (let i = 1; i < ks.length; i++) {
|
|
30
|
+
if (t >= ks[i].t) continue;
|
|
31
|
+
const [a, b] = [ks[i - 1], ks[i]];
|
|
32
|
+
const u = toEase(b.ease ?? "inOutCubic")((t - a.t) / Math.max(1e-6, b.t - a.t));
|
|
33
|
+
return { pos: mix3(a.pos, b.pos, u), look: mix3(a.look, b.look, u) };
|
|
34
|
+
}
|
|
35
|
+
return ks[ks.length - 1];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** 유리 스튜디오 — 밝은 무대, 방 빛 환경 맵(유리가 비칠 것), 부드러운 그림자 바닥, 파랑·분홍 테두리 빛이 천천히 돈다. 카메라는 박에 맞춘 키로만 움직인다 */
|
|
39
|
+
export function glassStudio(el: HTMLElement, o: { ctx: SceneCtx; shots: Shot[]; fov?: number }): ((t: number) => void) & Stage3D {
|
|
40
|
+
const { ctx } = o;
|
|
41
|
+
const shots = [...o.shots].sort((a, b) => a.from - b.from);
|
|
42
|
+
const stage = stage3d(el, {
|
|
43
|
+
ctx,
|
|
44
|
+
fov: o.fov ?? 38,
|
|
45
|
+
env: true,
|
|
46
|
+
exposure: 1.05,
|
|
47
|
+
shot(t, cam) {
|
|
48
|
+
const s = shots.find((x) => t >= x.from && t < x.to) ?? shots[shots.length - 1];
|
|
49
|
+
const p = camAt(t, s.keys);
|
|
50
|
+
cam.position.set(...p.pos);
|
|
51
|
+
cam.lookAt(...p.look);
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
stage.scene.add(stage.camera);
|
|
55
|
+
const floor = new THREE.Mesh(new THREE.PlaneGeometry(400, 400), new THREE.MeshStandardMaterial({ color: color(ctx, "surface"), roughness: 0.9 }));
|
|
56
|
+
floor.rotation.x = -Math.PI / 2;
|
|
57
|
+
floor.receiveShadow = true;
|
|
58
|
+
stage.scene.add(floor);
|
|
59
|
+
const key = new THREE.DirectionalLight(0xffffff, 1.6);
|
|
60
|
+
key.position.set(6, 14, 10);
|
|
61
|
+
key.castShadow = true;
|
|
62
|
+
key.shadow.mapSize.set(1024, 1024);
|
|
63
|
+
Object.assign(key.shadow.camera, { left: -20, right: 20, top: 20, bottom: -20, near: 1, far: 60 });
|
|
64
|
+
stage.scene.add(key);
|
|
65
|
+
const rimA = new THREE.PointLight(color(ctx, "rim"), 60, 40);
|
|
66
|
+
const rimB = new THREE.PointLight(color(ctx, "warm"), 40, 40);
|
|
67
|
+
stage.scene.add(rimA, rimB);
|
|
68
|
+
// 뒤 벽의 색 빛 — 유리는 뒤에 굽힐 색이 있어야 유리로 읽힌다(흰 벽 앞의 투과 유리는 회색 판으로 보인다)
|
|
69
|
+
const wall = new THREE.Mesh(new THREE.PlaneGeometry(96, 36), new THREE.MeshBasicMaterial({ map: wallTexture(ctx), toneMapped: false, fog: false }));
|
|
70
|
+
stage.scene.add(wall);
|
|
71
|
+
return Object.assign((t: number) => {
|
|
72
|
+
// 빛과 그림자 상자가 지금 컷의 세트를 따라간다
|
|
73
|
+
const s = shots.find((x) => t >= x.from && t < x.to) ?? shots[shots.length - 1];
|
|
74
|
+
const [lx, , lz] = s.keys[0].look;
|
|
75
|
+
floor.position.set(lx, 0, lz);
|
|
76
|
+
key.position.set(lx + 6, 14, lz + 10);
|
|
77
|
+
key.target.position.set(lx, 0, lz);
|
|
78
|
+
key.target.updateMatrixWorld();
|
|
79
|
+
wall.position.set(lx, 16, lz - 18);
|
|
80
|
+
rimA.position.set(lx - 7, 4, lz + 3);
|
|
81
|
+
rimB.position.set(lx + 7, 3.5, lz - 2);
|
|
82
|
+
stage.paint(t);
|
|
83
|
+
}, stage);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function wallTexture(ctx: SceneCtx): THREE.CanvasTexture {
|
|
87
|
+
const c = document.createElement("canvas");
|
|
88
|
+
c.width = 1536;
|
|
89
|
+
c.height = 576;
|
|
90
|
+
const g = c.getContext("2d")!;
|
|
91
|
+
const W = c.width;
|
|
92
|
+
const H = c.height;
|
|
93
|
+
g.fillStyle = ctx.style.colors.bg;
|
|
94
|
+
g.fillRect(0, 0, W, H);
|
|
95
|
+
const blob = (x: number, y: number, r: number, col: string, a: number) => {
|
|
96
|
+
const grad = g.createRadialGradient(x * W, y * H, 0, x * W, y * H, r * W);
|
|
97
|
+
grad.addColorStop(0, col + Math.round(a * 255).toString(16).padStart(2, "0"));
|
|
98
|
+
grad.addColorStop(1, col + "00");
|
|
99
|
+
g.fillStyle = grad;
|
|
100
|
+
g.fillRect(0, 0, W, H);
|
|
101
|
+
};
|
|
102
|
+
blob(0.24, 0.62, 0.34, ctx.style.colors.rim, 0.85);
|
|
103
|
+
blob(0.5, 0.75, 0.22, ctx.style.colors.accent, 0.35);
|
|
104
|
+
blob(0.79, 0.55, 0.3, ctx.style.colors.warm, 0.7);
|
|
105
|
+
// 소프트박스 — 가로 한 줄과 세로 둘. 판 너머로 휘어 보여야 유리가 유리로 읽힌다
|
|
106
|
+
g.filter = "blur(14px)";
|
|
107
|
+
g.fillStyle = "rgba(255,255,255,0.95)";
|
|
108
|
+
g.fillRect(W * 0.1, H * 0.48, W * 0.8, H * 0.05);
|
|
109
|
+
g.fillStyle = "rgba(255,255,255,0.8)";
|
|
110
|
+
for (const x of [0.34, 0.66]) g.fillRect(W * x - W * 0.012, H * 0.3, W * 0.024, H * 0.5);
|
|
111
|
+
g.filter = "none";
|
|
112
|
+
const floor = g.createLinearGradient(0, H * 0.78, 0, H);
|
|
113
|
+
floor.addColorStop(0, ctx.style.colors.bg + "00");
|
|
114
|
+
floor.addColorStop(1, ctx.style.colors.surface);
|
|
115
|
+
g.fillStyle = floor;
|
|
116
|
+
g.fillRect(0, H * 0.78, W, H * 0.22);
|
|
117
|
+
// 옆으로 비낀 카메라에 벽 끝이 잘린 판으로 보이지 않게 양 끝을 바탕색으로 녹인다
|
|
118
|
+
for (const [x0, x1] of [[0, 0.14], [1, 0.86]]) {
|
|
119
|
+
const side = g.createLinearGradient(x0 * W, 0, x1 * W, 0);
|
|
120
|
+
side.addColorStop(0, ctx.style.colors.bg);
|
|
121
|
+
side.addColorStop(1, ctx.style.colors.bg + "00");
|
|
122
|
+
g.fillStyle = side;
|
|
123
|
+
g.fillRect(Math.min(x0, x1) * W, 0, 0.14 * W, H);
|
|
124
|
+
}
|
|
125
|
+
const tex = new THREE.CanvasTexture(c);
|
|
126
|
+
tex.colorSpace = THREE.SRGBColorSpace;
|
|
127
|
+
return tex;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** 바닥 커스틱 — 유리가 모은 빛이 바닥에 그리는 무늬. 유리가 앉을 때마다(moves) 빛이 다시 모여 무늬가 옮겨 가고, 그 사이엔 선다 */
|
|
131
|
+
export function causticFloor(stage: Stage3D, o: { ctx: SceneCtx; pos: V3; size?: number; strength?: number; moves?: number[] }): (t: number) => void {
|
|
132
|
+
const uni = { uTime: { value: 0 }, uColor: { value: color(o.ctx, "rim") }, uWarm: { value: color(o.ctx, "warm") }, uStrength: { value: o.strength ?? 0.55 } };
|
|
133
|
+
const mat = new THREE.ShaderMaterial({
|
|
134
|
+
uniforms: uni,
|
|
135
|
+
transparent: true,
|
|
136
|
+
depthWrite: false,
|
|
137
|
+
blending: THREE.AdditiveBlending,
|
|
138
|
+
vertexShader: "varying vec2 vUv; void main(){ vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position,1.0); }",
|
|
139
|
+
fragmentShader: `uniform float uTime; uniform vec3 uColor; uniform vec3 uWarm; uniform float uStrength; varying vec2 vUv;
|
|
140
|
+
float c(vec2 p, float t){ float v = 0.0; for (int i = 0; i < 4; i++){ float fi = float(i); p += vec2(sin(p.y*1.7 + t*0.9 + fi), cos(p.x*1.3 - t*0.7 + fi*1.7)) * 0.6; v += sin(p.x + p.y); } return v; }
|
|
141
|
+
void main(){ vec2 p = (vUv - 0.5) * 9.0; float v = c(p, uTime); float l = pow(clamp(1.0 - abs(v) * 0.42, 0.0, 1.0), 6.0);
|
|
142
|
+
float fade = smoothstep(0.5, 0.15, length(vUv - 0.5)); vec3 col = mix(uColor, uWarm, 0.5 + 0.5*sin(p.x*0.4 + uTime*0.3));
|
|
143
|
+
gl_FragColor = vec4(col * l * uStrength * fade, 1.0); }`,
|
|
144
|
+
});
|
|
145
|
+
const s = o.size ?? 16;
|
|
146
|
+
const m = new THREE.Mesh(new THREE.PlaneGeometry(s, s), mat);
|
|
147
|
+
m.rotation.x = -Math.PI / 2;
|
|
148
|
+
m.position.set(o.pos[0], o.pos[1] + 0.01, o.pos[2]);
|
|
149
|
+
stage.scene.add(m);
|
|
150
|
+
return (t) => {
|
|
151
|
+
let shift = 0;
|
|
152
|
+
for (const m of o.moves ?? []) shift += 1.1 * ease.outCubic(clamp((t - m) / 0.7));
|
|
153
|
+
uni.uTime.value = shift;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function glassMaterial(ctx: SceneCtx, o: { rough?: number; tint?: string; dispersion?: number; thickness?: number } = {}) {
|
|
158
|
+
return new THREE.MeshPhysicalMaterial({
|
|
159
|
+
color: color(ctx, o.tint ?? "glass"),
|
|
160
|
+
metalness: 0,
|
|
161
|
+
roughness: o.rough ?? 0.07,
|
|
162
|
+
transmission: 1,
|
|
163
|
+
thickness: o.thickness ?? 0.8,
|
|
164
|
+
ior: 1.5,
|
|
165
|
+
dispersion: o.dispersion ?? 0.6,
|
|
166
|
+
// 박막 무지개 — 비스듬한 면에만 돈다. 무지개를 잉크로 쓰지 않고 빛이 갈라지는 자리에만 두는 방법
|
|
167
|
+
iridescence: 0.55,
|
|
168
|
+
iridescenceIOR: 1.3,
|
|
169
|
+
iridescenceThicknessRange: [180, 520],
|
|
170
|
+
clearcoat: 1,
|
|
171
|
+
clearcoatRoughness: 0.08,
|
|
172
|
+
attenuationColor: color(ctx, "rim"),
|
|
173
|
+
attenuationDistance: 3.5,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** 유리 앞면에 박는 글 판. 투명 재질이라 유리 투과 계산(불투명 물체만 담는다)에 안 끼어 굴절된 그림자가 안 생긴다. text 가 함수면 바뀔 때만 다시 그린다 */
|
|
178
|
+
function printPlate(ctx: SceneCtx, o: { text: string | ((t: number) => string); w: number; h: number; font?: "sans" | "display" | "mono"; color?: string }) {
|
|
179
|
+
const px = 200;
|
|
180
|
+
const sample = typeof o.text === "function" ? o.text(1e9) : o.text;
|
|
181
|
+
const family = ctx.style.fonts[o.font ?? "display"];
|
|
182
|
+
const weight = o.font === "mono" ? 700 : ctx.style.type.weightDisplay;
|
|
183
|
+
const c = document.createElement("canvas");
|
|
184
|
+
c.width = Math.round((o.w / o.h) * px * 1.6);
|
|
185
|
+
c.height = Math.round(px * 1.6);
|
|
186
|
+
const tex = new THREE.CanvasTexture(c);
|
|
187
|
+
tex.colorSpace = THREE.SRGBColorSpace;
|
|
188
|
+
tex.anisotropy = 4;
|
|
189
|
+
let last = "";
|
|
190
|
+
// 바뀌는 글(함수)은 매번 그린다 — 같은 t 를 두 번 그릴 때 둘째에 fillText 가 빠지면 검사가 다른 화면으로 본다
|
|
191
|
+
const draw = (s: string, again = false) => {
|
|
192
|
+
if (s === last && !again) return;
|
|
193
|
+
last = s;
|
|
194
|
+
const g = c.getContext("2d")!;
|
|
195
|
+
g.clearRect(0, 0, c.width, c.height);
|
|
196
|
+
let size = px;
|
|
197
|
+
g.font = `${weight} ${size}px ${family}`;
|
|
198
|
+
const wMax = c.width * 0.86;
|
|
199
|
+
const mw = g.measureText(sample.length > s.length ? sample : s).width;
|
|
200
|
+
if (mw > wMax) size *= wMax / mw;
|
|
201
|
+
g.font = `${weight} ${size}px ${family}`;
|
|
202
|
+
g.fillStyle = ctx.style.colors[o.color ?? "ink"] ?? o.color ?? "#000";
|
|
203
|
+
g.textAlign = "center";
|
|
204
|
+
g.textBaseline = "middle";
|
|
205
|
+
g.fillText(s, c.width / 2, c.height / 2);
|
|
206
|
+
tex.needsUpdate = true;
|
|
207
|
+
};
|
|
208
|
+
const mesh = new THREE.Mesh(new THREE.PlaneGeometry(o.w, o.h), new THREE.MeshBasicMaterial({ map: tex, transparent: true, depthWrite: false, toneMapped: false }));
|
|
209
|
+
mesh.renderOrder = 2;
|
|
210
|
+
return { mesh, draw };
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** 유리 타일 — 둥근 서리 유리판이 공중에서 미끄러져 와 기울며 서고, 앞면에 글이 맺힌다. focus 구간엔 앞으로 나와 커진다 */
|
|
214
|
+
export function glassTile(
|
|
215
|
+
stage: Stage3D,
|
|
216
|
+
o: { ctx: SceneCtx; text?: string | ((t: number) => string); pos: V3; size?: [number, number]; depth?: number; at?: number; until?: number; from?: V3; font?: "sans" | "display" | "mono"; color?: string; rough?: number; seed?: string; grow?: boolean; focus?: [number, number][] },
|
|
217
|
+
): (t: number) => void {
|
|
218
|
+
const { ctx } = o;
|
|
219
|
+
const [w, h] = o.size ?? [2.4, 2.4];
|
|
220
|
+
const d = o.depth ?? 0.5;
|
|
221
|
+
// 모서리를 크게 굴린다 — 굴절은 곡면에서 일어난다
|
|
222
|
+
const bev = Math.min(0.16, Math.min(w, h) * 0.12, d * 0.45);
|
|
223
|
+
const geo = new THREE.ExtrudeGeometry(roundRectShape(w - bev * 2, h - bev * 2, Math.max(0.02, Math.min(w, h) * 0.18 - bev)), { depth: d, bevelEnabled: true, bevelThickness: bev, bevelSize: bev, bevelSegments: 4, curveSegments: 8 });
|
|
224
|
+
geo.translate(0, 0, -d / 2);
|
|
225
|
+
const slab = new THREE.Mesh(geo, glassMaterial(ctx, { rough: o.rough }));
|
|
226
|
+
slab.castShadow = true;
|
|
227
|
+
const group = new THREE.Group();
|
|
228
|
+
group.add(slab);
|
|
229
|
+
const print = o.text !== undefined ? printPlate(ctx, { text: o.text, w: w * 0.9, h: Math.min(h * 0.6, w * 0.32), font: o.font, color: o.color }) : null;
|
|
230
|
+
if (print) {
|
|
231
|
+
print.mesh.position.z = d / 2 + bev + 0.03;
|
|
232
|
+
group.add(print.mesh);
|
|
233
|
+
}
|
|
234
|
+
stage.scene.add(group);
|
|
235
|
+
const seed = o.seed ?? `${o.pos.join(",")}`;
|
|
236
|
+
const from = o.from ?? [o.pos[0] + (rand(seed, 1) - 0.5) * 6, o.pos[1] + 5, o.pos[2] - 4];
|
|
237
|
+
return (t) => {
|
|
238
|
+
const at = o.at ?? -1;
|
|
239
|
+
const on = t >= at && (o.until === undefined || t < o.until);
|
|
240
|
+
group.visible = on;
|
|
241
|
+
if (!on) return;
|
|
242
|
+
const a = settle(t, at);
|
|
243
|
+
if (o.grow) {
|
|
244
|
+
group.position.set(o.pos[0], o.pos[1], o.pos[2]);
|
|
245
|
+
group.scale.set(1, Math.max(0.001, a), 1);
|
|
246
|
+
} else {
|
|
247
|
+
group.position.set(from[0] + (o.pos[0] - from[0]) * a, from[1] + (o.pos[1] - from[1]) * a, from[2] + (o.pos[2] - from[2]) * a);
|
|
248
|
+
group.scale.setScalar(1);
|
|
249
|
+
}
|
|
250
|
+
group.rotation.set((1 - a) * 0.9, (1 - a) * -0.7, (1 - a) * 0.3);
|
|
251
|
+
// focus 동안 판이 앞으로 나와 커진다 — 렌즈가 머무는 글
|
|
252
|
+
let f = 0;
|
|
253
|
+
for (const [f0, f1] of o.focus ?? []) f = Math.max(f, Math.min(ease.outCubic(clamp((t - f0) / 0.25)), 1 - ease.inCubic(clamp((t - f1) / 0.25))));
|
|
254
|
+
if (f > 0) {
|
|
255
|
+
group.position.z += 1.2 * f;
|
|
256
|
+
group.scale.multiplyScalar(1 + 0.14 * f);
|
|
257
|
+
}
|
|
258
|
+
if (print) print.draw(typeof o.text === "function" ? o.text(t) : (o.text ?? ""), typeof o.text === "function");
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/** 프리즘 빛 — 흰 빛 한 줄기가 삼각 유리를 지나 여러 색으로 갈라진다(reverse 면 여러 색이 모여 한 줄기). 빛은 늘 일렁인다 */
|
|
263
|
+
export function prismBeam(stage: Stage3D, o: { ctx: SceneCtx; pos: V3; at?: number; fan?: number; reverse?: boolean; length?: number }): (t: number) => void {
|
|
264
|
+
const { ctx } = o;
|
|
265
|
+
const prismGeo = new THREE.CylinderGeometry(1.4, 1.4, 2.6, 3, 1);
|
|
266
|
+
const prism = new THREE.Mesh(prismGeo, glassMaterial(ctx, { rough: 0.05, dispersion: 1.2, thickness: 1.6 }));
|
|
267
|
+
prism.rotation.x = Math.PI / 2;
|
|
268
|
+
prism.position.set(...o.pos);
|
|
269
|
+
prism.castShadow = true;
|
|
270
|
+
stage.scene.add(prism);
|
|
271
|
+
const L = o.length ?? 9;
|
|
272
|
+
const beam = (col: THREE.Color, width: number) => {
|
|
273
|
+
const m = new THREE.Mesh(new THREE.PlaneGeometry(L, width), new THREE.MeshBasicMaterial({ color: col, transparent: true, opacity: 0, blending: THREE.AdditiveBlending, depthWrite: false, side: THREE.DoubleSide, toneMapped: false }));
|
|
274
|
+
stage.scene.add(m);
|
|
275
|
+
return m;
|
|
276
|
+
};
|
|
277
|
+
const white = beam(new THREE.Color(0xffffff), 0.22);
|
|
278
|
+
const hues = [0, 0.08, 0.16, 0.33, 0.55, 0.66, 0.78];
|
|
279
|
+
const rays = hues.map((hu) => beam(new THREE.Color().setHSL(hu, 0.9, 0.55), 0.16));
|
|
280
|
+
const side = o.reverse ? 1 : -1;
|
|
281
|
+
return (t) => {
|
|
282
|
+
const a = settle(t, o.at ?? -1, 0.5);
|
|
283
|
+
prism.visible = a > 0;
|
|
284
|
+
prism.rotation.y = (1 - a) * 1.6;
|
|
285
|
+
white.position.set(o.pos[0] + side * (L / 2 + 0.6), o.pos[1], o.pos[2]);
|
|
286
|
+
(white.material as THREE.MeshBasicMaterial).opacity = 0.9 * a;
|
|
287
|
+
rays.forEach((r, i) => {
|
|
288
|
+
const spread = ((i - (rays.length - 1) / 2) / rays.length) * (o.fan ?? 0.5) * a;
|
|
289
|
+
r.position.set(o.pos[0] - side * (L / 2 + 0.6) * Math.cos(spread), o.pos[1] + (L / 2) * Math.sin(spread) * a, o.pos[2]);
|
|
290
|
+
r.rotation.z = spread;
|
|
291
|
+
(r.material as THREE.MeshBasicMaterial).opacity = 0.75 * a;
|
|
292
|
+
});
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/** 렌즈 — 둥근 유리 테가 박마다 다음 글 판으로 옮겨 그 판을 감싼다. 글 판은 투과 계산에서 빠져 있어 속이 찬 유리면 글을 가린다 — 판보다 큰 빈 테와 옅은 빛 판만 두고, 키우는 일은 그 글 판의 focus 가 맡는다 */
|
|
297
|
+
export function lensSweep(stage: Stage3D, o: { ctx: SceneCtx; stops: { t: number; pos: V3 }[]; size: [number, number]; at?: number }): (t: number) => void {
|
|
298
|
+
const [w, h] = o.size;
|
|
299
|
+
const r = Math.min(w, h) * 0.32;
|
|
300
|
+
const geo = new THREE.ExtrudeGeometry(roundRectShape(w, h, r, 0.14), { depth: 0.12, bevelEnabled: true, bevelThickness: 0.05, bevelSize: 0.05, bevelSegments: 3, curveSegments: 10 });
|
|
301
|
+
geo.translate(0, 0, -0.06);
|
|
302
|
+
const rim = new THREE.Mesh(geo, glassMaterial(o.ctx, { rough: 0.03, dispersion: 1.2, thickness: 0.5, tint: "accentSoft" }));
|
|
303
|
+
rim.castShadow = true;
|
|
304
|
+
const glow = new THREE.Mesh(new THREE.PlaneGeometry(w, h), new THREE.MeshBasicMaterial({ color: color(o.ctx, "rim"), transparent: true, opacity: 0.12, blending: THREE.AdditiveBlending, depthWrite: false, toneMapped: false }));
|
|
305
|
+
glow.position.z = -0.2;
|
|
306
|
+
const lens = new THREE.Group();
|
|
307
|
+
lens.add(rim, glow);
|
|
308
|
+
stage.scene.add(lens);
|
|
309
|
+
const stops = [...o.stops].sort((a, b) => a.t - b.t);
|
|
310
|
+
return (t) => {
|
|
311
|
+
const on = t >= (o.at ?? stops[0]?.t ?? 0);
|
|
312
|
+
lens.visible = on && stops.length > 0;
|
|
313
|
+
if (!lens.visible) return;
|
|
314
|
+
let i = 0;
|
|
315
|
+
while (i + 1 < stops.length && stops[i + 1].t <= t) i++;
|
|
316
|
+
const a = stops[Math.max(0, i - 1)];
|
|
317
|
+
const b = stops[i];
|
|
318
|
+
const u = i === 0 ? ease.outCubic(clamp((t - b.t) / 0.28)) : ease.outCubic(clamp((t - b.t) / 0.25));
|
|
319
|
+
const from = i === 0 ? [b.pos[0], b.pos[1] + 1.5, b.pos[2] + 2] : a.pos;
|
|
320
|
+
lens.position.set(from[0] + (b.pos[0] - from[0]) * u, from[1] + (b.pos[1] - from[1]) * u, from[2] + (b.pos[2] - from[2]) * u);
|
|
321
|
+
lens.scale.setScalar(0.9 + 0.1 * u);
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/** 빛 고리 — 유리 큐브 24 개가 하루를 두른다. 밤 창(00–10시) 큐브는 파랗게 빛나다가 정한 시각에 빛이 -90% 로 잦아든다 */
|
|
326
|
+
export function lightRing(stage: Stage3D, o: { ctx: SceneCtx; pos: V3; radius?: number; at?: number; drop: number; window?: [number, number] }): (t: number) => void {
|
|
327
|
+
const { ctx } = o;
|
|
328
|
+
const r = o.radius ?? 4;
|
|
329
|
+
const [h0, h1] = o.window ?? [0, 10];
|
|
330
|
+
const group = new THREE.Group();
|
|
331
|
+
group.position.set(...o.pos);
|
|
332
|
+
stage.scene.add(group);
|
|
333
|
+
// 바닥에 고이는 빛 — 밤 창 쪽만 파랗게. 고리와 함께 돌아 밤 창 아래를 늘 비춘다
|
|
334
|
+
const pool = (() => {
|
|
335
|
+
const c = document.createElement("canvas");
|
|
336
|
+
c.width = c.height = 512;
|
|
337
|
+
const g = c.getContext("2d")!;
|
|
338
|
+
const grad = g.createRadialGradient(256, 256, 256 * 0.55, 256, 256, 256);
|
|
339
|
+
grad.addColorStop(0, "rgba(255,255,255,0)");
|
|
340
|
+
grad.addColorStop(0.45, "rgba(255,255,255,1)");
|
|
341
|
+
grad.addColorStop(1, "rgba(255,255,255,0)");
|
|
342
|
+
g.fillStyle = grad;
|
|
343
|
+
g.beginPath();
|
|
344
|
+
g.moveTo(256, 256);
|
|
345
|
+
// 00시가 -z(고리 맨 위) — 캔버스 위쪽에서 시계 방향으로 밤 창만큼
|
|
346
|
+
g.arc(256, 256, 256, -Math.PI / 2 + ((h0 - 0.5) / 24) * Math.PI * 2, -Math.PI / 2 + ((h1 - 0.5) / 24) * Math.PI * 2);
|
|
347
|
+
g.closePath();
|
|
348
|
+
g.fill();
|
|
349
|
+
const tex = new THREE.CanvasTexture(c);
|
|
350
|
+
const m = new THREE.Mesh(new THREE.PlaneGeometry(r * 2.6, r * 2.6), new THREE.MeshBasicMaterial({ map: tex, color: color(ctx, "accent"), transparent: true, opacity: 0, blending: THREE.AdditiveBlending, depthWrite: false, toneMapped: false }));
|
|
351
|
+
m.rotation.x = -Math.PI / 2;
|
|
352
|
+
m.position.y = 0.03;
|
|
353
|
+
group.add(m);
|
|
354
|
+
return m;
|
|
355
|
+
})();
|
|
356
|
+
const cubes = Array.from({ length: 24 }, (_, h) => {
|
|
357
|
+
const night = h >= h0 && h < h1;
|
|
358
|
+
const mat = night ? new THREE.MeshStandardMaterial({ color: color(ctx, "accent"), emissive: color(ctx, "accent"), emissiveIntensity: 1.6, roughness: 0.2 }) : glassMaterial(ctx, { rough: 0.12, dispersion: 0.4 });
|
|
359
|
+
const m = new THREE.Mesh(new THREE.BoxGeometry(0.7, 0.7, 0.7), mat);
|
|
360
|
+
const a = (h / 24) * Math.PI * 2;
|
|
361
|
+
m.position.set(Math.sin(a) * r, 0.6, -Math.cos(a) * r);
|
|
362
|
+
m.rotation.y = -a;
|
|
363
|
+
m.castShadow = true;
|
|
364
|
+
group.add(m);
|
|
365
|
+
return { m, night, h, mat };
|
|
366
|
+
});
|
|
367
|
+
return (t) => {
|
|
368
|
+
group.rotation.y = t * 0.3;
|
|
369
|
+
pool.material.opacity = settle(t, o.at ?? -1, 0.5) * (1 - 0.75 * ease.outCubic(clamp((t - o.drop) / 0.3)));
|
|
370
|
+
for (const c of cubes) {
|
|
371
|
+
const a = settle(t, (o.at ?? -1) + c.h * 0.012, 0.3);
|
|
372
|
+
c.m.visible = a > 0;
|
|
373
|
+
c.m.position.y = 0.6 + (1 - a) * 3;
|
|
374
|
+
if (c.night) {
|
|
375
|
+
const dim = 1 - 0.9 * ease.outCubic(clamp((t - o.drop) / 0.3));
|
|
376
|
+
(c.mat as THREE.MeshStandardMaterial).emissiveIntensity = 1.6 * dim;
|
|
377
|
+
c.m.scale.y = 0.3 + 0.7 * dim;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
};
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/** 유리 로고 — 모양(Shape) 들을 두께 있는 유리로 밀어내 무지개 분산으로 빛나게, 천천히 돈다 */
|
|
384
|
+
export function glassLogo(stage: Stage3D, o: { ctx: SceneCtx; shapes: THREE.Shape[]; pos: V3; width?: number; at?: number; depth?: number }): (t: number) => void {
|
|
385
|
+
const geo = new THREE.ExtrudeGeometry(o.shapes, { depth: o.depth ?? 0.12, bevelEnabled: true, bevelThickness: 0.03, bevelSize: 0.02, bevelSegments: 3, curveSegments: 10 });
|
|
386
|
+
geo.center();
|
|
387
|
+
const mesh = new THREE.Mesh(geo, glassMaterial(o.ctx, { rough: 0.06, dispersion: 1.4, thickness: 1.4, tint: "accentSoft" }));
|
|
388
|
+
mesh.castShadow = true;
|
|
389
|
+
const k = o.width ?? 6;
|
|
390
|
+
mesh.scale.setScalar(k);
|
|
391
|
+
mesh.position.set(...o.pos);
|
|
392
|
+
stage.scene.add(mesh);
|
|
393
|
+
return (t) => {
|
|
394
|
+
const a = settle(t, o.at ?? -1, 0.6);
|
|
395
|
+
mesh.visible = a > 0;
|
|
396
|
+
mesh.scale.setScalar(k * (0.7 + 0.3 * a));
|
|
397
|
+
mesh.rotation.set((1 - a) * 1.2, (1 - a) * 1.6, 0);
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/** 드롭 — 하얀 섬광과 함께 유리 조각이 사방으로 튄다(닫힌 식). 흔들림은 dropBurst 로 */
|
|
402
|
+
export function shatterFlash(stage: Stage3D, o: { ctx: SceneCtx; pos: V3; drop?: number; count?: number; seed?: string }): (t: number) => void {
|
|
403
|
+
const { ctx } = o;
|
|
404
|
+
const seed = o.seed ?? "shard";
|
|
405
|
+
const n = o.count ?? 40;
|
|
406
|
+
const shardGeo = new THREE.TetrahedronGeometry(0.28);
|
|
407
|
+
const mat = glassMaterial(ctx, { rough: 0.05, dispersion: 1, thickness: 0.4 });
|
|
408
|
+
const shards = Array.from({ length: n }, (_, i) => {
|
|
409
|
+
const m = new THREE.Mesh(shardGeo, mat);
|
|
410
|
+
stage.scene.add(m);
|
|
411
|
+
const th = rand(seed, i) * Math.PI * 2;
|
|
412
|
+
const ph = (rand(seed, i + 77) - 0.3) * Math.PI * 0.8;
|
|
413
|
+
const sp = 4 + rand(seed, i + 155) * 6;
|
|
414
|
+
return { m, v: [Math.cos(th) * Math.cos(ph) * sp, Math.sin(ph) * sp + 3, Math.sin(th) * Math.cos(ph) * sp] as V3, spin: 4 + rand(seed, i + 233) * 10 };
|
|
415
|
+
});
|
|
416
|
+
const flash = document.createElement("div");
|
|
417
|
+
flash.style.cssText = "position:absolute;inset:0;background:#FFFFFF;opacity:0;pointer-events:none;";
|
|
418
|
+
stage.el.append(flash);
|
|
419
|
+
return (t) => {
|
|
420
|
+
const s = dropBurst(t, { beats: ctx.beats, drop: o.drop ?? 0, rules: ctx.style.motion, scene: ctx.id, source: "shatterFlash" });
|
|
421
|
+
flash.style.opacity = String(Math.round(s.flash * 85) / 100);
|
|
422
|
+
const local = t - ctx.beats.drop(o.drop ?? 0);
|
|
423
|
+
for (const sh of shards) {
|
|
424
|
+
const on = local >= 0 && local < 1.4;
|
|
425
|
+
sh.m.visible = on;
|
|
426
|
+
if (!on) continue;
|
|
427
|
+
sh.m.position.set(o.pos[0] + sh.v[0] * local, Math.max(0.2, o.pos[1] + sh.v[1] * local - 4.9 * local * local), o.pos[2] + sh.v[2] * local);
|
|
428
|
+
sh.m.rotation.set(sh.spin * local, sh.spin * local * 0.6, 0);
|
|
429
|
+
}
|
|
430
|
+
stage.camera.position.x += (s.shake.x ?? 0) * 0.012;
|
|
431
|
+
stage.camera.position.y += (s.shake.y ?? 0) * 0.012;
|
|
432
|
+
};
|
|
433
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1140 650" width="1140" height="650" fill="none" role="img" aria-label="OpenGateway">
|
|
2
|
+
<title>OpenGateway</title>
|
|
3
|
+
<g id="logo" stroke="currentColor" fill="currentColor">
|
|
4
|
+
<rect id="node-in" x="36" y="36" width="420" height="578" rx="89" fill="none" stroke-width="72"/>
|
|
5
|
+
<rect id="bar-in" x="72" y="272" width="277" height="106" stroke="none"/>
|
|
6
|
+
<path id="node-out" d="M684 213 L684 125 A89 89 0 0 1 773 36 L1015 36 A89 89 0 0 1 1104 125 L1104 525 A89 89 0 0 1 1015 614 L773 614 A89 89 0 0 1 684 525 L684 436" fill="none" stroke-width="72" stroke-linecap="butt"/>
|
|
7
|
+
<g id="arrow">
|
|
8
|
+
<rect id="arrow-shaft" x="420" y="272" width="394" height="106" stroke="none"/>
|
|
9
|
+
<path id="arrow-head" d="M833 220 L970 325 L833 430 Z" stroke-width="38" stroke-linejoin="round"/>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|