How wazzaps/fingerpaint works
FingerPaint is a small Linux touchpad drawing utility. The user draws on a Tk canvas; touchpad events are normalized into strokes, rendered both on screen and into a PNG, then written to a file or stdout. The README documents X11 and GNOME Wayland support and key/click completion. The implementation is concentrated in one file; the excerpt omits some wiring, so uncertain control-flow links are left out.
Main entry points: fingerpaint.py Drawing canvas
Components 8
Other components
- User
- Touchpad
- Device discovery
fingerpaint/fingerpaint.py - Event sampling
fingerpaint/fingerpaint.py - Drawing canvas
fingerpaint/fingerpaint.py - PNG output
fingerpaint/fingerpaint.py - Session support
fingerpaint/fingerpaint.py - Output destination
Connections 7
- User → Touchpad: draws on
README.md - Device discovery → Touchpad: opens device
fingerpaint/fingerpaint.py - Event sampling → Touchpad: reads events
fingerpaint/fingerpaint.py - User → Drawing canvas: finishes with key or click
README.md - Drawing canvas → PNG output: renders strokes
fingerpaint/fingerpaint.py - PNG output → Output destination: writes PNG
fingerpaint/fingerpaint.py - Session support → Touchpad: supports X11 and Wayland
README.md