processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

window size not correct with createCanvas and WEBGL argument #230

Closed lmccart closed 8 years ago

lmccart commented 8 years ago

From @annechpostma (https://github.com/processing/p5.js/issues/1345)

When I create a 2D canvas using createCanvas([width], [height]), the window that gets created is properly resizing to the width and size of the canvas.

When I create a WebGL canvas using createCanvas([width], [height], WEBGL), the window size is not resizing to the width and height of the WebGL canvas.

To be consistent (and not having me to manually resize) the windows I'd love it if the functionality for the WebGL canvas would work the same as the normal canvas.