title: Javascript step event with mouse
body: <p>I am a novice in canvas and I was wondering how can I get a "step" event (e.g. execute every half a second) while able to reference to the mouse position, for example if I want to draw something at the mouse position every 0.5 second independent of the mouse movement.</p>