feat: animate home screen buttons on click
This commit is contained in:
@@ -4,6 +4,7 @@ const props = defineProps<{
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
opacity: number;
|
||||
}>();
|
||||
|
||||
const cornerImage = useTemplateRef("cornerImage");
|
||||
@@ -45,6 +46,8 @@ useRender((ctx) => {
|
||||
const w = Math.floor(currentWidth);
|
||||
const h = Math.floor(currentHeight);
|
||||
|
||||
ctx.globalAlpha = props.opacity / 100;
|
||||
|
||||
ctx.drawImage(cornerImage.value, x, y);
|
||||
|
||||
ctx.save();
|
||||
|
||||
Reference in New Issue
Block a user