A work in progress mouse gesture recognition sprite. Black lines represent the position of the mouse while the blue lines represent the velocity (the first derivative). Green lines indicate clockwise rotation, while red lines indicate anti-clockwise rotation. For example,there should be green lines if you draw an arc in the clockwise direction but red lines if you draw an arc in the anti-clockwise direction. The sampling rate can be changed with the slider, but you will need to restart the project.
Nowhere near complete, but I decided to share what I have so far because it looks cool (and because calculus). There are still those random spikes that I need to fix. Eventually, I want it to be able to distinguish between basic shapes, such as a circle, triangle and line. Inspired by Tesla Tech's Shape Recogition project http://scratch.mit.edu/projects/26536202/