xxxxxxxxxx
// Alison Yang
// Assignment 1
var r,g,b;
function setup() {
createCanvas(windowWidth, windowHeight);
}
// set background back to white when press mouse
function mousePressed(){
background(255);
}
function draw() {
// draw random partly-transparent dots on the background
// to create splash-like canvas
r = random(255);
g = random(255);
b = random(255);
fill(r,g,b,20);
noStroke();
circle(random(width),random(height),random(50));
// draw with the movement of the mouse
// fill color referring to nyu violet
noStroke();
fill('#56058c');
square(mouseX,mouseY,20);
}