Skip to content

Commit

Permalink
fix: fixing eslint build error
Browse files Browse the repository at this point in the history
  • Loading branch information
brnovasco committed Mar 20, 2024
1 parent 05f2602 commit c7fdfd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/pianno/components/canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ const Bunny = () => {
const screenAspectRatio = app.screen.width / app.screen.height;

if (screenAspectRatio < textureAspectRatio) {
return (2/3) * (app.screen.width / texture.width);
return (2 / 3) * (app.screen.width / texture.width);
}
return (2/3) * (app.screen.height / texture.height);
}
return (2 / 3) * (app.screen.height / texture.height);
};

return (
<Sprite
anchor={0.5}
texture={texture}
scale={calcScale()}
texture={texture}
x={app.screen.width / 2}
y={app.screen.height / 2 + Math.sin(theta) * 15}
// rotation={Math.cos(theta) * 0.98}
Expand Down

0 comments on commit c7fdfd3

Please sign in to comment.