Processing.js

MouseOver and MouseOut

Mouse over the sketch, then mouse out. The background color should change for each.

Processing.js only

// written by Chris Lonnen
// Issue 670 

// Mouse over the window. Then move the mouse out.
// Does the background change color?

void setup() {
  size(200,200);
  background(10);
}

void draw() {}

void mouseOut() {
  background(140,50,80);
}

void mouseOver() {
  background(50,80,140);
}