Replies: 1 comment 16 replies
-
Hi,
So you want to keep the screen on the upper left corner, right? What about modifying your Layout function to always return the outside size? |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The default wasm compliation creates the html, body and canvas with inline css style properties to a fixed 100% height. Is there a way to change those to a 100% width to allow for dynamically resizing the canvas? I'm currently using p5js embedded sketches in my dev blog and I can make the iframes resposive by changing the height after a resize event. But for ebiten that does not work because the height is set initially and the canvas will just center vertically instead of resizing to the upper left corner.
Beta Was this translation helpful? Give feedback.
All reactions