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().
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()
.