Saturday, August 28, 2021

Bell Ringer 1

//Bell Ringer 1 - mouseMoved
 // By Dave Ritter 
  function setup() {
  createCanvas(400, 400);
  background(220);
 }

 function draw() {
  noStroke();
 }

 function mouseMoved() {
  if (true) {
    r = random(255);
    g = random(255);
    b = random(255);
    fill(r, g, b, 150);
    ellipse(mouseX, mouseY,  random(60), random(60));
  } else {
    noFill();
  }
 }