onmousemove
Whenever the mouse mouse moves while inside of the Spork canvas the functio
onmousemove() is executed. At each motion, the
mouseX and
mouseY variables are set to the coordinates of the mouse.
In the example below, a circle is draw around the location of the mouse each time the mouse is moved.
function onmousemove(){
circle(mouseX,mouseY,20);
}