jakubfiala / atrament

A small JS library for beautiful drawing and handwriting on the HTML Canvas.
http://fiala.space/atrament/demo
MIT License
1.55k stars 116 forks source link

Added timing information in recorded stroke #75

Closed panglesd closed 3 years ago

panglesd commented 3 years ago

Sometimes, not only you need to record the stroke, but also the timing of the stroke, such as for instance here.

I added support for this, and updated README.md and the demo. Now, stroke.points contains an array of object with properties point (the coordinate) and time the time from the beginning of the stroke.

Anyway, thanks for your great tool, which I use often!