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,491 @@
|
|
|
1
|
+
import { clamp, rand, type SceneCtx, type Style } from "@kasaframe/core";
|
|
2
|
+
import { dropBurst, type DropBurstState } from "@kasaframe/motion";
|
|
3
|
+
import { type Bitmap, color, drawBitmap, drawWindow, framesOf, pixelCanvas, snap, SPRITES, unitOf } from "./kit.ts";
|
|
4
|
+
|
|
5
|
+
// 게임기는 그림을 칸 단위로 옮기고 장을 넘겨 움직인다 — 60fps 로 미끄러지면 게임 화면이 아니라 영상이 된다.
|
|
6
|
+
// 위치는 한 게임 픽셀(unitOf)씩, 장 넘김은 초당 12장, 논리 틱은 초당 30번
|
|
7
|
+
const ANIM = 12;
|
|
8
|
+
const TICK = 30;
|
|
9
|
+
|
|
10
|
+
const tick = (t: number, fps = TICK): number => Math.floor(t * fps + 1e-6) / fps;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 스프라이트 걸음 — from 에서 to 로 한 칸씩 뚝뚝 옮긴다(초당 30틱). hop 이면 그 높이(px)로 한 번 뛰어 넘는다.
|
|
14
|
+
* at 전엔 from, at+dur 뒤엔 to 에 선다
|
|
15
|
+
*/
|
|
16
|
+
export function pixelMove(t: number, o: { ctx: SceneCtx; from: [number, number]; to: [number, number]; at?: number; dur?: number; hop?: number }): Style {
|
|
17
|
+
const u = unitOf(o.ctx);
|
|
18
|
+
const p = clamp(tick(t - (o.at ?? 0)) / Math.max(1e-3, o.dur ?? 0.5));
|
|
19
|
+
const x = o.from[0] + (o.to[0] - o.from[0]) * p;
|
|
20
|
+
const y = o.from[1] + (o.to[1] - o.from[1]) * p - (o.hop ?? 0) * 4 * p * (1 - p);
|
|
21
|
+
return { x: snap(x, u), y: snap(y, u) };
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface SpriteOpts {
|
|
25
|
+
ctx: SceneCtx;
|
|
26
|
+
/** SPRITES 이름(hero·coin·heart·chest·chestOpen·gem·cursor·star·sun·moon)이나 직접 그린 장 */
|
|
27
|
+
art: string | Bitmap | Bitmap[];
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
/** 스프라이트 한 칸이 게임 픽셀 몇 개인가(정수) */
|
|
31
|
+
scale?: number;
|
|
32
|
+
fps?: number;
|
|
33
|
+
/** 이 시각부터 보이고(장이 돈다), until 에 사라진다 */
|
|
34
|
+
at?: number;
|
|
35
|
+
until?: number;
|
|
36
|
+
/** 이 구간에서만 장이 돈다 — 없으면 늘 */
|
|
37
|
+
animate?: [number, number];
|
|
38
|
+
flip?: boolean;
|
|
39
|
+
/** 팔레트 글자 → 색 칸(보석 색 바꾸기 따위) */
|
|
40
|
+
swap?: Record<string, string>;
|
|
41
|
+
/** 자리 옮김 — pixelMove 를 그대로 */
|
|
42
|
+
move?(t: number): Style;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** 픽셀 스프라이트 한 장 — 장을 초당 12장으로 넘기고, 자리는 한 칸 격자에 붙는다 */
|
|
46
|
+
export function sprite(el: HTMLElement, o: SpriteOpts): (t: number) => void {
|
|
47
|
+
const u = unitOf(o.ctx) * (o.scale ?? 1);
|
|
48
|
+
const frames = framesOf(o.art);
|
|
49
|
+
const w = (frames[0][0]?.length ?? 1) * u;
|
|
50
|
+
const h = frames[0].length * u;
|
|
51
|
+
const { c, g } = pixelCanvas(el, o.x, o.y, w, h);
|
|
52
|
+
g.setTransform(1, 0, 0, 1, 0, 0);
|
|
53
|
+
let last = -1;
|
|
54
|
+
return (t) => {
|
|
55
|
+
// 부르는 쪽이 숨기려면 -Infinity 를 넘긴다
|
|
56
|
+
const on = Number.isFinite(t) && t >= (o.at ?? -Infinity) && t < (o.until ?? Infinity);
|
|
57
|
+
c.style.display = on ? "" : "none";
|
|
58
|
+
if (!on) return;
|
|
59
|
+
const [a, b] = o.animate ?? [-Infinity, Infinity];
|
|
60
|
+
const k = Math.floor(clamp(t, a, b) * (o.fps ?? ANIM) + 1e-6);
|
|
61
|
+
const f = ((k % frames.length) + frames.length) % frames.length;
|
|
62
|
+
if (f !== last) {
|
|
63
|
+
g.clearRect(0, 0, w, h);
|
|
64
|
+
drawBitmap(g, o.ctx, frames[f], 0, 0, u, { flip: o.flip, swap: o.swap });
|
|
65
|
+
last = f;
|
|
66
|
+
}
|
|
67
|
+
const m = o.move?.(t) ?? {};
|
|
68
|
+
c.style.transform = `translate(${m.x ?? 0}px, ${m.y ?? 0}px)`;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface WindowOpts {
|
|
73
|
+
ctx: SceneCtx;
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
w: number;
|
|
77
|
+
h: number;
|
|
78
|
+
/** 줄마다 한 자씩 찍는다 — 짧은 낱말·주소·숫자 */
|
|
79
|
+
lines?: string[];
|
|
80
|
+
at?: number;
|
|
81
|
+
/** 초당 글자 */
|
|
82
|
+
cps?: number;
|
|
83
|
+
/** 창이 위에서부터 열리는 시간 */
|
|
84
|
+
open?: number;
|
|
85
|
+
size?: number;
|
|
86
|
+
font?: "sans" | "display" | "mono";
|
|
87
|
+
/** 줄마다 색 칸 */
|
|
88
|
+
tones?: string[];
|
|
89
|
+
/** 다 찍으면 가운데 아래 ▼ */
|
|
90
|
+
more?: boolean;
|
|
91
|
+
until?: number;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** 대화창 — 검정 면 흰 계단 테두리 창이 위에서부터 열리고, 줄이 한 자씩 찍힌다(드래곤 퀘스트). 다 찍으면 ▼ */
|
|
95
|
+
export function questWindow(el: HTMLElement, o: WindowOpts): (t: number) => void {
|
|
96
|
+
const { ctx } = o;
|
|
97
|
+
const u = unitOf(ctx);
|
|
98
|
+
const x = snap(o.x, u);
|
|
99
|
+
const y = snap(o.y, u);
|
|
100
|
+
const w = snap(o.w, u);
|
|
101
|
+
const h = snap(o.h, u);
|
|
102
|
+
const box = el.ownerDocument.createElement("div");
|
|
103
|
+
box.style.cssText = "position:absolute;inset:0;pointer-events:none;";
|
|
104
|
+
el.append(box);
|
|
105
|
+
const { g, clear } = pixelCanvas(box, x, y, w, h);
|
|
106
|
+
const size = o.size ?? 48;
|
|
107
|
+
const lines = (o.lines ?? []).map((text, i) => {
|
|
108
|
+
const d = el.ownerDocument.createElement("div");
|
|
109
|
+
d.style.cssText = `position:absolute;left:${x + u * 6}px;top:${y + u * 5 + i * Math.round(size * 1.35)}px;font:400 ${size}px ${ctx.style.fonts[o.font ?? "sans"]};line-height:1.2;white-space:pre;color:${color(ctx, o.tones?.[i] ?? "ink")};`;
|
|
110
|
+
box.append(d);
|
|
111
|
+
return { d, text };
|
|
112
|
+
});
|
|
113
|
+
const more = sprite(box, { ctx, art: ["kkkkkkk", ".kwwwk.", "..kwk..", "...k..."], x: x + w / 2 - u * 3.5, y: y + h - u * 6 });
|
|
114
|
+
const at = o.at ?? 0;
|
|
115
|
+
const openDur = o.open ?? 0.12;
|
|
116
|
+
const cps = o.cps ?? 30;
|
|
117
|
+
const starts: number[] = [];
|
|
118
|
+
let acc = at + openDur;
|
|
119
|
+
for (const l of lines) {
|
|
120
|
+
starts.push(acc);
|
|
121
|
+
acc += [...l.text].length / cps + 0.05;
|
|
122
|
+
}
|
|
123
|
+
const done = acc;
|
|
124
|
+
let lastOpen = -1;
|
|
125
|
+
return (t) => {
|
|
126
|
+
const on = t >= at && t < (o.until ?? Infinity);
|
|
127
|
+
box.style.display = on ? "" : "none";
|
|
128
|
+
if (!on) return;
|
|
129
|
+
// 창은 네 줄에 나눠 끊어 열린다
|
|
130
|
+
const open = Math.ceil(clamp((t - at) / openDur) * 4) / 4;
|
|
131
|
+
if (open !== lastOpen) {
|
|
132
|
+
clear();
|
|
133
|
+
drawWindow(g, ctx, x, y, w, h, u, { open });
|
|
134
|
+
lastOpen = open;
|
|
135
|
+
}
|
|
136
|
+
lines.forEach((l, i) => {
|
|
137
|
+
const n = Math.floor(clamp((t - starts[i]) * cps, 0, [...l.text].length) + 1e-6);
|
|
138
|
+
l.d.textContent = open < 1 ? "" : [...l.text].slice(0, n).join("");
|
|
139
|
+
});
|
|
140
|
+
more(o.more && t >= done && Math.floor((t - done) * 4) % 2 === 0 ? t : -Infinity);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface MenuOpts {
|
|
145
|
+
ctx: SceneCtx;
|
|
146
|
+
items: string[];
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
size?: number;
|
|
150
|
+
/** 줄 간격(px) */
|
|
151
|
+
gap?: number;
|
|
152
|
+
/** 커서가 i 번째 줄로 옮겨 가는 시각들 — stops[i] 에 i 번째 줄을 고른다 */
|
|
153
|
+
stops: number[];
|
|
154
|
+
at?: number;
|
|
155
|
+
font?: "sans" | "display" | "mono";
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** 명령 메뉴 — ▶ 커서가 박마다 다음 줄로 뛰고, 고른 줄이 한 번 뒤집혀 깜빡인 뒤 노랑으로 남는다 */
|
|
159
|
+
export function menuCursor(el: HTMLElement, o: MenuOpts): (t: number) => void {
|
|
160
|
+
const { ctx } = o;
|
|
161
|
+
const u = unitOf(ctx);
|
|
162
|
+
const size = o.size ?? 48;
|
|
163
|
+
const gap = o.gap ?? Math.round(size * 1.4);
|
|
164
|
+
const x = snap(o.x, u);
|
|
165
|
+
const y = snap(o.y, u);
|
|
166
|
+
const rows = o.items.map((text, i) => {
|
|
167
|
+
const d = el.ownerDocument.createElement("div");
|
|
168
|
+
d.textContent = text;
|
|
169
|
+
d.style.cssText = `position:absolute;left:${x + u * 10}px;top:${y + i * gap}px;font:400 ${size}px ${ctx.style.fonts[o.font ?? "sans"]};line-height:1.2;white-space:pre;padding:0 ${u}px;`;
|
|
170
|
+
el.append(d);
|
|
171
|
+
return d;
|
|
172
|
+
});
|
|
173
|
+
const cy = (i: number) => y + i * gap + Math.round((size * 1.2 - 7 * u) / 2);
|
|
174
|
+
let target = 0;
|
|
175
|
+
const cur = sprite(el, { ctx, art: "cursor", x, y: cy(0), move: (t) => {
|
|
176
|
+
const i = target;
|
|
177
|
+
const from = i > 0 ? cy(i - 1) : cy(0);
|
|
178
|
+
return pixelMove(t, { ctx, from: [0, from - cy(0)], to: [0, cy(i) - cy(0)], at: o.stops[i], dur: 0.07 });
|
|
179
|
+
} });
|
|
180
|
+
const at = o.at ?? 0;
|
|
181
|
+
return (t) => {
|
|
182
|
+
const on = t >= at;
|
|
183
|
+
let i = -1;
|
|
184
|
+
for (let k = 0; k < o.stops.length; k++) if (t >= o.stops[k]) i = k;
|
|
185
|
+
target = Math.max(0, i);
|
|
186
|
+
rows.forEach((d, k) => {
|
|
187
|
+
d.style.display = on ? "" : "none";
|
|
188
|
+
const picked = k === i;
|
|
189
|
+
// 고르는 순간 0.1초 뒤집힘(창 색 ↔ 글 색) — 깜빡임 한 번이 「눌렀다」
|
|
190
|
+
const flash = picked && t - o.stops[k] < 0.1;
|
|
191
|
+
d.style.background = flash ? color(ctx, "ink") : "transparent";
|
|
192
|
+
d.style.color = flash ? color(ctx, "surface") : picked ? color(ctx, "accent") : k < i ? color(ctx, "dim") : color(ctx, "ink");
|
|
193
|
+
});
|
|
194
|
+
cur(on && i >= 0 ? t : -Infinity);
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface CounterOpts {
|
|
199
|
+
ctx: SceneCtx;
|
|
200
|
+
x: number;
|
|
201
|
+
y: number;
|
|
202
|
+
size?: number;
|
|
203
|
+
from?: number;
|
|
204
|
+
to: number;
|
|
205
|
+
at?: number;
|
|
206
|
+
dur?: number;
|
|
207
|
+
/** 숫자 → 글. 없으면 정수 */
|
|
208
|
+
format?(v: number): string;
|
|
209
|
+
/** 숫자 앞 아이콘 — coin(비용)·heart(한도)·gem(모델)·none */
|
|
210
|
+
icon?: "coin" | "heart" | "gem" | "none";
|
|
211
|
+
tone?: string;
|
|
212
|
+
/** 아이콘과 숫자 사이 × */
|
|
213
|
+
times?: boolean;
|
|
214
|
+
font?: "sans" | "display" | "mono";
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/** HUD 카운터 — 아이콘 × 숫자. 숫자는 초당 30틱으로 한 칸씩 올라가거나 내려가고, 도는 동안 코인이 돈다(비용 정산) */
|
|
218
|
+
export function coinCounter(el: HTMLElement, o: CounterOpts): (t: number) => void {
|
|
219
|
+
const { ctx } = o;
|
|
220
|
+
const u = unitOf(ctx);
|
|
221
|
+
const size = o.size ?? 72;
|
|
222
|
+
const x = snap(o.x, u);
|
|
223
|
+
const y = snap(o.y, u);
|
|
224
|
+
const icon = o.icon ?? "coin";
|
|
225
|
+
const iconScale = Math.max(1, Math.round(size / (12 * u)));
|
|
226
|
+
const iconW = icon === "none" ? 0 : (icon === "heart" ? 11 : 10) * u * iconScale;
|
|
227
|
+
const at = o.at ?? 0;
|
|
228
|
+
const dur = o.dur ?? 0.6;
|
|
229
|
+
const ico =
|
|
230
|
+
icon === "none"
|
|
231
|
+
? null
|
|
232
|
+
: sprite(el, { ctx, art: icon, x, y: y + Math.round((size * 1.2 - (icon === "coin" ? 12 : icon === "gem" ? 8 : 10) * u * iconScale) / 2), scale: iconScale, animate: [at, at + dur] });
|
|
233
|
+
const d = el.ownerDocument.createElement("div");
|
|
234
|
+
d.style.cssText = `position:absolute;left:${x + iconW + (icon === "none" ? 0 : u * 3)}px;top:${y}px;font:400 ${size}px ${ctx.style.fonts[o.font ?? "display"]};line-height:1.2;white-space:pre;color:${color(ctx, o.tone ?? "ink")};`;
|
|
235
|
+
el.append(d);
|
|
236
|
+
const fmt = o.format ?? ((v: number) => String(Math.round(v)));
|
|
237
|
+
const from = o.from ?? 0;
|
|
238
|
+
return (t) => {
|
|
239
|
+
const on = t >= at;
|
|
240
|
+
d.style.display = on ? "" : "none";
|
|
241
|
+
ico?.(on ? t : -Infinity);
|
|
242
|
+
if (!on) return;
|
|
243
|
+
const p = clamp(tick(t - at) / Math.max(1e-3, dur));
|
|
244
|
+
d.textContent = `${o.times === false || icon === "none" ? "" : "×"}${fmt(from + (o.to - from) * p)}`;
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface GaugeOpts {
|
|
249
|
+
ctx: SceneCtx;
|
|
250
|
+
x: number;
|
|
251
|
+
y: number;
|
|
252
|
+
/** 칸 수 */
|
|
253
|
+
max: number;
|
|
254
|
+
/** [시각, 남은 칸] — 그 시각에 칸이 바뀐다. 바뀌는 칸은 0.25초 깜빡이고 바뀐다 */
|
|
255
|
+
steps: [number, number][];
|
|
256
|
+
at?: number;
|
|
257
|
+
scale?: number;
|
|
258
|
+
/** hearts: 하트 칸 · bar: 마디 막대(한 칸 = 한 마디) */
|
|
259
|
+
mode?: "hearts" | "bar";
|
|
260
|
+
tone?: string;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/** 한도 게이지 — 하트(또는 마디 막대)가 한 칸씩 차고 깎인다. 깎이는 칸은 깜빡인 뒤 빈 칸이 된다 */
|
|
264
|
+
export function heartGauge(el: HTMLElement, o: GaugeOpts): (t: number) => void {
|
|
265
|
+
const { ctx } = o;
|
|
266
|
+
const u = unitOf(ctx) * (o.scale ?? 1);
|
|
267
|
+
const mode = o.mode ?? "hearts";
|
|
268
|
+
const cw = mode === "hearts" ? 12 * u : 8 * u;
|
|
269
|
+
const ch = mode === "hearts" ? 10 * u : 6 * u;
|
|
270
|
+
const W = o.max * cw + (mode === "bar" ? 2 * u : 0);
|
|
271
|
+
const H = ch + (mode === "bar" ? 2 * u : 0);
|
|
272
|
+
const { g, clear } = pixelCanvas(el, o.x, o.y, W, H);
|
|
273
|
+
const at = o.at ?? 0;
|
|
274
|
+
const empty = (SPRITES.heart as readonly string[]).map((r) => r.replace(/[rw]/g, "d"));
|
|
275
|
+
let key = "";
|
|
276
|
+
return (t) => {
|
|
277
|
+
if (t < at) {
|
|
278
|
+
if (key !== "off") clear();
|
|
279
|
+
key = "off";
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
let n = o.steps[0]?.[1] ?? o.max;
|
|
283
|
+
let prev = n;
|
|
284
|
+
let since = Infinity;
|
|
285
|
+
for (const [s, v] of o.steps) {
|
|
286
|
+
if (t < s) break;
|
|
287
|
+
prev = n;
|
|
288
|
+
n = v;
|
|
289
|
+
since = t - s;
|
|
290
|
+
}
|
|
291
|
+
const blink = since < 0.25 && Math.floor(since * ANIM) % 2 === 0;
|
|
292
|
+
const shown = blink ? prev : n;
|
|
293
|
+
const k = `${shown}`;
|
|
294
|
+
if (k === key) return;
|
|
295
|
+
key = k;
|
|
296
|
+
clear();
|
|
297
|
+
for (let i = 0; i < o.max; i++) {
|
|
298
|
+
const full = i < shown;
|
|
299
|
+
if (mode === "hearts") {
|
|
300
|
+
drawBitmap(g, ctx, full ? SPRITES.heart : empty, o.x + i * cw, o.y, u, { swap: o.tone ? { r: o.tone } : undefined });
|
|
301
|
+
} else {
|
|
302
|
+
g.fillStyle = color(ctx, "surface");
|
|
303
|
+
g.fillRect(o.x + i * cw, o.y, cw + 2 * u, H);
|
|
304
|
+
g.fillStyle = color(ctx, full ? (o.tone ?? "heart") : "raised");
|
|
305
|
+
g.fillRect(o.x + i * cw + u * 1.5, o.y + u, cw - u, ch);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/** 화면 바꿈 — 검정 타일이 한 장씩 깔려 화면을 덮거나(cover) 걷힌다(reveal). 순서는 대각·줄·소용돌이 */
|
|
312
|
+
export function tileWipe(el: HTMLElement, o: { ctx: SceneCtx; at: number; dur?: number; mode?: "cover" | "reveal"; order?: "diagonal" | "rows" | "spiral"; tile?: number; tone?: string }): (t: number) => void {
|
|
313
|
+
const { ctx } = o;
|
|
314
|
+
const u = unitOf(ctx);
|
|
315
|
+
const s = (o.tile ?? 16) * u;
|
|
316
|
+
const W = ctx.meta.width;
|
|
317
|
+
const H = ctx.meta.height;
|
|
318
|
+
const cols = Math.ceil(W / s);
|
|
319
|
+
const rows = Math.ceil(H / s);
|
|
320
|
+
const { c, g, clear } = pixelCanvas(el, 0, 0, W, H);
|
|
321
|
+
const cells: { x: number; y: number; k: number }[] = [];
|
|
322
|
+
for (let j = 0; j < rows; j++) for (let i = 0; i < cols; i++) cells.push({ x: i, y: j, k: 0 });
|
|
323
|
+
const order = o.order ?? "diagonal";
|
|
324
|
+
if (order === "diagonal") for (const q of cells) q.k = q.x + q.y;
|
|
325
|
+
else if (order === "rows") for (const q of cells) q.k = q.y * cols + (q.y % 2 ? cols - 1 - q.x : q.x);
|
|
326
|
+
else {
|
|
327
|
+
const cx = (cols - 1) / 2;
|
|
328
|
+
const cy = (rows - 1) / 2;
|
|
329
|
+
for (const q of cells) q.k = Math.max(Math.abs(q.x - cx), Math.abs(q.y - cy)) * 64 + ((Math.atan2(q.y - cy, q.x - cx) + Math.PI) / (2 * Math.PI)) * 63;
|
|
330
|
+
// 바깥에서 안으로 감긴다
|
|
331
|
+
const top = Math.max(...cells.map((q) => q.k));
|
|
332
|
+
for (const q of cells) q.k = top - q.k;
|
|
333
|
+
}
|
|
334
|
+
const kmax = Math.max(...cells.map((q) => q.k)) + 1;
|
|
335
|
+
const dur = o.dur ?? 0.3;
|
|
336
|
+
let lastP = -1;
|
|
337
|
+
return (t) => {
|
|
338
|
+
const p = clamp(tick(t - o.at) / dur);
|
|
339
|
+
const cover = (o.mode ?? "cover") === "cover";
|
|
340
|
+
const amount = cover ? p : 1 - p;
|
|
341
|
+
const visible = t >= o.at && amount > 0;
|
|
342
|
+
c.style.display = visible ? "" : "none";
|
|
343
|
+
if (!visible || amount === lastP) return;
|
|
344
|
+
lastP = amount;
|
|
345
|
+
clear();
|
|
346
|
+
g.fillStyle = color(ctx, o.tone ?? "surface");
|
|
347
|
+
const lim = amount * kmax;
|
|
348
|
+
for (const q of cells) if (cover ? q.k < lim : q.k >= kmax - lim) g.fillRect(q.x * s, q.y * s, s, s);
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* 드롭 — 레벨 업. 화면 팔레트가 흰색 → 노랑으로 한 번 번쩍이고(빨강 전체 섬광은 쓰지 않는다), 별 열여섯이 여덟 방향으로 칸 단위로 튀어 나간다.
|
|
354
|
+
* 흔들림은 한 칸 격자에 붙여 돌려준다 — 내용 틀에 건다
|
|
355
|
+
*/
|
|
356
|
+
export function levelUp(el: HTMLElement, o: { ctx: SceneCtx; drop?: number; origin?: [number, number] }): (t: number) => DropBurstState {
|
|
357
|
+
const { ctx } = o;
|
|
358
|
+
const u = unitOf(ctx);
|
|
359
|
+
const W = ctx.meta.width;
|
|
360
|
+
const H = ctx.meta.height;
|
|
361
|
+
const flood = el.ownerDocument.createElement("div");
|
|
362
|
+
flood.style.cssText = "position:absolute;inset:0;pointer-events:none;display:none;";
|
|
363
|
+
el.append(flood);
|
|
364
|
+
const { c, g, clear } = pixelCanvas(el, 0, 0, W, H);
|
|
365
|
+
const [ox, oy] = o.origin ?? [W / 2, H / 2];
|
|
366
|
+
const sparks = Array.from({ length: 16 }, (_, i) => ({ a: (i / 16) * Math.PI * 2 + rand(`${ctx.id}:lv`, i) * 0.2, v: 0.55 + rand(`${ctx.id}:lv`, i + 40) * 0.45, big: i % 2 === 0 }));
|
|
367
|
+
const far = Math.hypot(W, H) * 0.55;
|
|
368
|
+
return (t) => {
|
|
369
|
+
const s = dropBurst(t, { beats: ctx.beats, drop: o.drop ?? 0, rules: ctx.style.motion, scene: ctx.id, source: "levelUp" });
|
|
370
|
+
const local = t - ctx.beats.drop(o.drop ?? 0);
|
|
371
|
+
const tq = tick(local, ANIM);
|
|
372
|
+
// 화면 전체를 한 색으로 칠하면 어둠 → 흰 화면이 이어 붙는다 — 게임기 팔레트 깜빡임처럼 타일 반만 번갈아 칠한다
|
|
373
|
+
flood.style.display = local >= 0 && tq < 2 / ANIM ? "" : "none";
|
|
374
|
+
const a = color(ctx, tq < 1 / ANIM ? "ink" : "coin");
|
|
375
|
+
const tile = 16 * u;
|
|
376
|
+
flood.style.background = `repeating-conic-gradient(${a} 0 25%, transparent 0 50%) ${tq < 1 / ANIM ? 0 : tile}px 0 / ${tile * 2}px ${tile * 2}px`;
|
|
377
|
+
const shake = s.shake;
|
|
378
|
+
const out: DropBurstState = { ...s, shake: { ...shake, x: snap(shake.x ?? 0, u), y: snap(shake.y ?? 0, u), rotate: 0 }, punch: s.punch };
|
|
379
|
+
const live = local >= 0 && local < 0.75;
|
|
380
|
+
c.style.display = live ? "" : "none";
|
|
381
|
+
if (!live) return out;
|
|
382
|
+
clear();
|
|
383
|
+
const p = tick(local, TICK) / 0.75;
|
|
384
|
+
for (const q of sparks) {
|
|
385
|
+
const r = far * q.v * (1 - (1 - p) ** 2);
|
|
386
|
+
const x = snap(ox + Math.cos(q.a) * r, u);
|
|
387
|
+
const y = snap(oy + Math.sin(q.a) * r, u);
|
|
388
|
+
drawBitmap(g, ctx, SPRITES.star, x, y, u * (q.big ? 3 : 2));
|
|
389
|
+
}
|
|
390
|
+
return out;
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* 블록 쌓기 — 그림(칸 지도)이 블록 하나씩 위에서 떨어져 제자리에 앉는다(초당 30틱, 칸 단위). 로고·큰 기호를 칸으로 지을 때.
|
|
396
|
+
* cells 는 문자열 줄(# 이 블록) 이나 불 배열
|
|
397
|
+
*/
|
|
398
|
+
export function blockBuild(el: HTMLElement, o: { ctx: SceneCtx; cells: readonly (string | readonly boolean[])[]; x: number; y: number; cell: number; at?: number; dur?: number; fall?: number; tone?: string; edge?: string; order?: "rows-up" | "cols" | "scatter" }): (t: number) => void {
|
|
399
|
+
const { ctx } = o;
|
|
400
|
+
const u = unitOf(ctx);
|
|
401
|
+
const cell = Math.max(u, snap(o.cell, u));
|
|
402
|
+
const blocks: { i: number; j: number; k: number }[] = [];
|
|
403
|
+
const rowsN = o.cells.length;
|
|
404
|
+
o.cells.forEach((row, j) => {
|
|
405
|
+
const arr = typeof row === "string" ? [...row].map((ch) => ch === "#") : row;
|
|
406
|
+
arr.forEach((on, i) => {
|
|
407
|
+
if (on) blocks.push({ i, j, k: 0 });
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
const order = o.order ?? "rows-up";
|
|
411
|
+
for (const b of blocks) b.k = order === "rows-up" ? (rowsN - 1 - b.j) * 1000 + b.i : order === "cols" ? b.i * 1000 + (rowsN - 1 - b.j) : rand(`${ctx.id}:blk`, b.i * 977 + b.j);
|
|
412
|
+
const ranks = [...blocks].sort((a, b) => a.k - b.k);
|
|
413
|
+
ranks.forEach((b, r) => (b.k = r / Math.max(1, ranks.length - 1)));
|
|
414
|
+
const cols = Math.max(...o.cells.map((r) => r.length));
|
|
415
|
+
const fall = o.fall ?? cell * 6;
|
|
416
|
+
const { g, clear } = pixelCanvas(el, o.x, o.y - fall, cols * cell, rowsN * cell + fall);
|
|
417
|
+
const at = o.at ?? 0;
|
|
418
|
+
const dur = o.dur ?? 0.6;
|
|
419
|
+
const drop = 0.12;
|
|
420
|
+
const fill = color(ctx, o.tone ?? "ink");
|
|
421
|
+
const edge = color(ctx, o.edge ?? "surface");
|
|
422
|
+
let lastT = Number.NaN;
|
|
423
|
+
return (t) => {
|
|
424
|
+
const tq = tick(t);
|
|
425
|
+
if (tq === lastT) return;
|
|
426
|
+
lastT = tq;
|
|
427
|
+
clear();
|
|
428
|
+
for (const b of blocks) {
|
|
429
|
+
const start = at + b.k * Math.max(0, dur - drop);
|
|
430
|
+
if (tq < start) continue;
|
|
431
|
+
const p = clamp((tq - start) / drop);
|
|
432
|
+
const x = o.x + b.i * cell;
|
|
433
|
+
const y = snap(o.y + b.j * cell - fall * (1 - p) ** 2, u);
|
|
434
|
+
g.fillStyle = fill;
|
|
435
|
+
g.fillRect(x, y, cell, cell);
|
|
436
|
+
// 떨어지는 동안만 블록 금이 보이고, 앉으면 이웃과 한 면으로 붙는다
|
|
437
|
+
if (p < 1) {
|
|
438
|
+
g.fillStyle = edge;
|
|
439
|
+
g.fillRect(x + cell - u, y, u, cell);
|
|
440
|
+
g.fillRect(x, y + cell - u, cell, u);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* 바탕 — 서 있는 게임 화면. 짙은 파랑 하늘에 아래 땅 타일 줄(벽돌·풀), 원하면 위 HUD 검정 띠. 한 번 그리고 움직이지 않는다 —
|
|
448
|
+
* 움직임은 용사·코인·창이 진다
|
|
449
|
+
*/
|
|
450
|
+
export function tileField(el: HTMLElement, o: { ctx: SceneCtx; ground?: number; hud?: "top" | "bottom" | "none"; seed?: string }): (t: number) => void {
|
|
451
|
+
const { ctx } = o;
|
|
452
|
+
const u = unitOf(ctx);
|
|
453
|
+
const W = ctx.meta.width;
|
|
454
|
+
const H = ctx.meta.height;
|
|
455
|
+
const { g } = pixelCanvas(el, 0, 0, W, H);
|
|
456
|
+
const rows = o.ground ?? 2;
|
|
457
|
+
const tile = 16 * u;
|
|
458
|
+
g.fillStyle = color(ctx, "bg");
|
|
459
|
+
g.fillRect(0, 0, W, H);
|
|
460
|
+
// 하늘의 별 몇 개 — 한 칸짜리 점, 서 있다
|
|
461
|
+
const seed = o.seed ?? `${ctx.id}:field`;
|
|
462
|
+
g.fillStyle = color(ctx, "dim");
|
|
463
|
+
for (let i = 0; i < 26; i++) g.fillRect(snap(rand(seed, i) * W, u), snap(rand(seed, i + 100) * (H - rows * tile - tile * 2), u) + tile, u, u);
|
|
464
|
+
const top = H - rows * tile;
|
|
465
|
+
for (let j = 0; j < rows; j++) {
|
|
466
|
+
for (let i = 0; i * tile < W; i++) {
|
|
467
|
+
const x = i * tile;
|
|
468
|
+
const y = top + j * tile;
|
|
469
|
+
if (j === 0) {
|
|
470
|
+
g.fillStyle = color(ctx, "leaf");
|
|
471
|
+
g.fillRect(x, y, tile, tile);
|
|
472
|
+
g.fillStyle = color(ctx, "success");
|
|
473
|
+
g.fillRect(x, y, tile, u * 3);
|
|
474
|
+
for (let k = 0; k < 4; k++) g.fillRect(x + (k * 4 + 1) * u, y + u * 3, u * 2, u);
|
|
475
|
+
} else {
|
|
476
|
+
g.fillStyle = color(ctx, "brick");
|
|
477
|
+
g.fillRect(x, y, tile, tile);
|
|
478
|
+
g.fillStyle = color(ctx, "surface");
|
|
479
|
+
g.fillRect(x, y, tile, u);
|
|
480
|
+
g.fillRect(x, y + tile / 2, tile, u);
|
|
481
|
+
g.fillRect(x + ((j % 2) * tile) / 2, y, u, tile / 2);
|
|
482
|
+
g.fillRect(x + ((j % 2 ? 0 : 1) * tile) / 2, y + tile / 2, u, tile / 2);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
if ((o.hud ?? "none") !== "none") {
|
|
487
|
+
g.fillStyle = color(ctx, "surface");
|
|
488
|
+
g.fillRect(0, o.hud === "top" ? 0 : H - tile * 1.5, W, tile * 1.5);
|
|
489
|
+
}
|
|
490
|
+
return () => {};
|
|
491
|
+
}
|