feat(gallery): transition to and from the nds

This commit is contained in:
2026-01-04 20:53:52 +01:00
parent 1f61eee93a
commit 18f91981ec
13 changed files with 253 additions and 14 deletions

View File

@@ -0,0 +1,21 @@
<script setup lang="ts">
const { onRender } = useScreen();
const store = useGalleryStore();
const { assets } = useAssets();
onRender((ctx) => {
ctx.drawImage(assets.home.bottomScreen.background, 0, 0);
ctx.fillStyle = "#000000";
ctx.globalAlpha = store.isIntro
? store.intro.fadeOpacity
: store.isOutro
? store.outro.fadeOpacity
: 0;
ctx.fillRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
});
</script>
<template>
<div />
</template>