p5canvas icon indicating copy to clipboard operation
p5canvas copied to clipboard

Rescaling canvas by size of window

Open barbarerik opened this issue 3 years ago • 2 comments

Hello Is it possible to rescale canvas to fill the editor window? Now i see mostly only 400pix of the canvas on 4k monitor.

thanks

barbarerik avatar Feb 27 '22 11:02 barbarerik

Hej @barbarerik,

Do you have some example code for me? If you don't use any setup function the canvas will have automatically the full width and height. If you want to keep your own p5 setup function, you can use the width/height variables from p5 to automatically use the available width and height.

Best regards, Garrit

pixelkind avatar Mar 07 '22 13:03 pixelkind

Hi I probably wanted to have opportunity rescale canvas so i can see whole space zoomed out... i know its not pixel precise but for test it would be nice option.

barbarerik avatar Apr 07 '22 21:04 barbarerik