Tut­o­r­i­a­l week 11

by Brittany Klaassens

follow the mouse

  • Show Sketch
/** @peep sketchcode */
void setup() {
  size(500, 500);
  background(0);
  smooth();
}
 
void draw() {
  stroke(234);
  strokeWeight(5);
  point(mouseX, mouseY, pmouseX, pmouseY);
  if(mousePressed) {
    background(0);
  }
}

Comments

Nobody has said anything yet.