xxxxxxxxxx
45
// first edit mel
// second edit em
// third edit matthis
// fourth edit daniel
// fifth edit william
function setup() {
createCanvas(400, 400);
background(240);
frameRate(9);
}
function draw() {
if (mouseIsPressed) {
brush(mouseX, mouseY);
}
if (keyIsPressed) {
background(240);
}
}
function brush(X, Y) {
let x = random(20,50);
let y = random(30,60);
fill(random(20,250),random(20,250),random(20,250), 80);
noStroke();
triangle(X, Y, 58, 60, 83, 75);
fill(random(0,0),random(0,250), random(0,0), 10);
rect(X, Y, 60, 170);
rect(X, Y, 180, 50);
fill(255,255,0,100);
ellipse(random(width-X),random(height-Y),random(20),20);
rotate(random(100,300));
rect(X, Y, 60, 170)
}
//Emily