Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
Pragyanur authored Sep 19, 2024
1 parent aacb381 commit 2e39442
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/char.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ function characters() {
// main
function setup() {
video = createCapture(VIDEO);
let fac;
fac = windowWidth > windowHeight ? (windowHeight / video.height) : (windowWidth / video.width);
createCanvas(video.width * fac, video.height * fac);
//let fac;
//fac = windowWidth > windowHeight ? (windowHeight / video.height) : (windowWidth / video.width);
//createCanvas(video.width * fac, video.height * fac);
createCanvas(windowWidth, windowHeight);
video.size(width, height);
video.hide();
// noLoop();
Expand Down

0 comments on commit 2e39442

Please sign in to comment.