Please refer to https://github.com/Wacom-Developer/wacom-device-kit-web for a simple web app.
The open source samples at https://github.com/w3c/pointerevents demonstrate the whole set of pen and touch features:
- touch point position
- pen point position
- pen pressure
- pen tilt x
- pen tilt y
- translate tilt to azimuth and altitude
- pen side switches
This sample code is licensed under the MIT License: https://choosealicense.com/licenses/mit/