I need to store a path drawn by user, along with the speed at any given point. Basically record how a line is drawn. I must be able to manipulate/edit the drawing (path and speed) afterwards.
Something like this but also with speed/velocity information:
http://paperjs.org/examples/path-simplification
I wonder how should I store the speed? Is there better way than store pointer place for example 10 times a second?