pixelkind / p5canvas

An interactive preview for writing p5js code in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=garrit.p5canvas
Other
39 stars 4 forks source link

Rescaling canvas by size of window #58

Open barbarerik opened 2 years ago

barbarerik commented 2 years ago

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

pixelkind commented 2 years ago

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

barbarerik commented 2 years ago

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.