xxxxxxxxxx
22
function setup() {
createCanvas(500, 500);
frameRate(1);
background(220);
}
function draw() {
var randomValue = random();
if (randomValue < 0.5) {
//text("Heads", 25,55);
noStroke();
fill(random(0, height), 200, 200,200);
ellipse(random(0, 200), random(0, height), 50);
} else {
noStroke();
//text("Tails", 125,255);
fill(255, random(0, height), 255,200);
rect(random(200, 400), random(0, height), 150, 50);
}
}