This commit is contained in:
abe- 2017-06-17 16:38:17 +02:00
parent a260bcab63
commit 87c9d001e4
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ function preload() {
function setup() {
pg = createGraphics(800, 519);
var as = 519. / 800.;
var w = document.querySelectorAll(".video-container").offsetWidth;
var w = windowWidth;
var h = windowWidth*as;
createCanvas(w,h);