Canvas based sketch board, with force touch and real-time Bezier curves.
3D Touch / Force Touch API Demo
A canvas demo featuring:
In vanilla JS. Tested in Safari & Google Chrome on iOS 9.3.
Help me test on Android/Windows/macOS devices and leave an issue please!
API | Capability (Apple devices with iOS 9) | Capability (Apple devices with iOS 13) |
---|---|---|
force | ✅ | ✅ |
radiusX | ❌ | ✅ |
radiusY | ❌ | ✅ |
rotationAngle | ❌ | ❓ |
touchType | ❓ | ✅ |
altitudeAngle | ❓ | ✅ |
azimuthAngle | ❓ | ✅ |
To visualize altitudeAngle
and azimuthAngle
(source: Apple):
Touch
Object on MDNradiusX