xxxxxxxxxx
26
let r, g, b;
function setup() {
createCanvas(400, 400);
background(0, 0, 0);
r = random(255);
g = random(255);
b = random(255);
}
function draw() {
fill(r, g, b, 127);
noStroke();
arc(width / 2 - 50, 0, 100, 200, 0, PI, CHORD);
arc(width / 2 + 30, 00, 100, 200, 0, PI, CHORD);
}
//couldn't get mousePressed to work
//it generates a new colour each time you run it for now
function mousePressed() {
// Pick new random color values
r = random(255);
g = random(255);
b = random(255);
}