xxxxxxxxxx
36
let hue = 0;
let saturation = 100;
let brightness = 0;
function setup() {
background(0,0,100);
createCanvas(400, 400);
colorMode(HSB);
}
function draw() {
background (0,0,100);
stroke(0);
strokeWeight(8);
noFill();
circle(200,200,350);
line(130,150,170,150);
line(230,150,270,150);
line(100, 275, 300, 275);
if (mouseIsPressed) {
brightness = random (0,100)
hue = random (0,300)
saturation = random (0,100)
background (hue, saturation, brightness)
rect(100, 250, 200, 50);
ellipse(150, 150, 40, 40);
ellipse(250, 150, 40, 40);
}
}