Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

Pressure-sensitive drawing with pen tablets

Open Keavon opened this issue 2 years ago • 1 comments

We should extend our usage of the https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent API to include pressure, tilt, etc. and hook that up to the Brush tool.

Also consider implementing usage of this low-latency inking API:

  • https://blogs.windows.com/msedgedev/2021/08/18/enhancing-inking-on-the-web/
  • https://developer.mozilla.org/en-US/docs/Web/API/Ink_API

Keavon avatar Aug 28 '23 00:08 Keavon

the latest pen tablets have 8192 levels of pressure sensitivity. as far as I know WinTab API supports level 8192. the WinLnk API limits pressure sensitivity to a maximum level of 1024.

57382 avatar Oct 05 '23 05:10 57382