Skip to main content
100%

momentum

✓ Published0🌍 Public
Aabernier
Last edited Apr 22, 2012
Created on Apr 21, 2012

On mouse press, the page displays a real-time, animated scatterplot of mouse velocity, computed as the distance between successive mouse positions divided by the elapsed time between frames. The animation runs continuously while the button is held, logging each velocity sample to the browser console. The visualization uses a custom `Loop` class built on `requestAnimFrame` (Paul Irish’s shim), with mouse coordinates tracked via jQuery’s `mousemove` event. A blue grid background, drawn with CSS gradients, provides visual reference.

AI-generated description

Similar vizzes