xxxxxxxxxx
29
function setup() {
createCanvas(400, 400);
frameRate(5);
}
function draw() {
let r = random(50, 255);
let g = random(0, 255);
let b = random(30, 255);
//background(random(100,200))
// background(r,g,b);
background(220);
fill(200, 200, 220);
// rotate(PI/3.0);
//rect(236, 145, 140, 40);
rect(230, 170, 100, 60,20, 25, 25, 5);
rect(68, 170, 100, 60,25, 15, 10, 25);
stroke(80);
// strokeWeight(4);
fill(50);
ellipse(200, 200, 200, 200);
fill(80);
ellipse(200, 200, 140, 140);
text("(" + mouseX + ", " + mouseY + ")", mouseX, mouseY);
}