xxxxxxxxxx
26
function setup () {
createCanvas(windowWidth, windowHeight);
}
function draw(){
background(255);
noFill();
strokeJoin(ROUND);
stroke(0);
let size = windowHeight/2;
strokeWeight(size * 0.05);
let x = width / 2;
let y = height / 2;
rectMode(CENTER);
rect(x, y, size, size);
}
function windowResized () {
resizeCanvas(windowWidth, windowHeight);
}