xxxxxxxxxx
15
let xAspect;
let yAspect;
function setup() {
createCanvas(480, 360);
}
function draw() {
translate(width/2,height/2);
background(220);
strokeWeight(5);
rectMode(CENTER);
noFill();
rect(0, 0, map(1080, 0, 2560, 0, width), map(1920, 0, 1440, 0, width));
}