jakubfiala / atrament

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

Add support for advanced `Touch` properties #92

Closed jakubfiala closed 8 months ago

jakubfiala commented 10 months ago

These include:

MAYBE:

jakubfiala commented 8 months ago

I've decided to only use the standard PointerEvent's pressure property for now. It's not completely clear to me that using the radius/rotation angle properties would lead to a particularly intuitive drawing experience. Software such as Procreate don't automatically map these properties to anything, althought they do allow such a mapping. It would be possible for developers using Atrament to create their own mappings by simply adding their own listeners to pointermove and adjusting Atrament's settings dynamically.