Advanced Processing Mouse Examples M. Meyer */ /** ******************** Variables: */ /** ******************** setup(): */ void setup() { size( 200, 200 ); } /** ******************** draw(): */ void draw() { // Note: What happens when you comment out the background line? background( #cccccc ); fill( #990000 ); rect( mouseX, mouseY, 20, 20 ); } /** ******************** Event Handlers:

Source code: FourthProgram

Built with Processing