// COMP1405/1005 - Day 07 // display mouse coordinates // at mouse location // mjh-2013 // variable declarations int x, y; // initialize program void setup() { size(600, 400); background(222, 222, 0); fill(0); textSize(40); } // main body of program void draw(){ background(222,222,0); text( "(" + mouseX + "," +mouseY+")", mouseX,mouseY); }