thenickdude / chickenpaint

An HTML5 Port of the ChibiPaint multi-layer Oekaki painting tool
GNU General Public License v3.0
120 stars 21 forks source link

use pointer event's pressure value #22

Closed blurymind closed 3 years ago

blurymind commented 3 years ago

Some devices such as samsung galaxy note phones/tablets come with a pressure sensitive stylus. The stylus communicates the pressure to the browser by using the pointer event's pressure value

https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure

to enable pressure sensitivity to chickenpaint, in theory if it fails to get wacom drivers on chrome, this can be used instead

example canvas using it https://github.com/amoshydra/draw

blurymind commented 3 years ago

closing this since the app already supports pressure on samsung devices. Impressive! :+1: