xxxxxxxxxx
31
function setup() {
createCanvas(windowWidth, windowHeight);
frameRate(5);
}
function draw() {
background(255, 90);
noFill();
let minSize = min(width, height);
let stuff = minSize / 3;
for (let i = 1; i < stuff/i*2; i++) {
let x = random(width / 2 - stuff, width / 2 + stuff);
let y = random(height / 2 - stuff, height / 2 + stuff);
circle(x, y, stuff/2);
strokeWeight(i/100)
//noLoop();
}
}
function mousePressed() {
//loop();
}
//resize the canvas and rerun the tile design if window is resized
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
makeTileDesign();
}