xxxxxxxxxx
31
//Butt Generator
//Write a program that uses arcs or Bézier curves to generate images of one or more butts.
let randomColour
function setup() {
createCanvas(400, 400);
makeRandomColour();
}
function makeRandomColour(){
randomColour = color(random(255),random(255),random(255));
}
function draw() {
background(220);
fill(randomColour)
arc(60, 55, 200, 150, 84, HALF_PI, CHORD);
arc(00, 55, 200, 150, 80, HALF_PI,OPEN);
}
function mouseReleased(){
makeRandomColour();
fill(randomColour)
arc(60, 55, 200, 150, 84, HALF_PI, CHORD);
arc(00, 55, 200, 150, 80, HALF_PI,OPEN);
}