Spork Mouse Events

onclick

The onclick() function is executed every time the mouse is clicked inside the Spork canvas. At each click, the mouseX and mouseY variables are set to the coordinates of the click. In the example below, a circle is draw around the location of each mouse click.
function onclick(){
  circle(mouseX,mouseY,20);
}