You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would expect something to appear at the center top of the canvas, but instead it happens somewhere in the top left. This is because width and height have their default value of 150 during the execution of setup(), and Paysage’s auto-sizing to the window only happens between setup() and draw().
The text was updated successfully, but these errors were encountered:
Without this, the code in setup() ran with the default canvas size of 150x150,
causing sketches that captured width and height in setup() to be confined to
the top left of the screen.
Fixes#68.
Given a sketch like this:
One would expect something to appear at the center top of the canvas, but instead it happens somewhere in the top left. This is because
width
andheight
have their default value of 150 during the execution ofsetup()
, and Paysage’s auto-sizing to the window only happens betweensetup()
anddraw()
.The text was updated successfully, but these errors were encountered: