xxxxxxxxxx
26
function setup() {
createCanvas(400, 400);
background(220);
noLoop()
}
function draw() {
noFill()
strokeWeight(2)
let xPos = width/2
let yPos = height/2
let circWidth = 1
let circHeight = 1
let startpoint = 1
let endpoint = 1
for (let i = 0; i < 24; i++) {
arc(xPos, //constant origin at center of canvas
yPos, //constant origin at center of canvas
circWidth*random(width), // variable width
circWidth*random(width), // variable height
startpoint*random(360), // start at random point on circle
radians(endpoint)*random(360)) // end at random point on circle
}
}