freehand: split out, add pressure/tilt interp
authorAndrew Chadwick <andrewc-git@piffle.org>
Wed, 30 Oct 2013 04:27:36 +0000 (04:27 +0000)
committerAndrew Chadwick <andrewc-git@piffle.org>
Wed, 30 Oct 2013 04:27:36 +0000 (04:27 +0000)
commite9cf05a00da0977572ff07c0f9e14664a5a4c029
tree79664c887eb918e6153373ad867f85e33f461ad1
parent107cbff87e709731f4b71ee4e708e12a44bf318a
freehand: split out, add pressure/tilt interp

Split out freehand mode class: it's getting way too complex to keep around
in the base module.

Events gathered by the eventhack code do not have pressure or tilt
information. Infer this information from surrounding motion-notify events
using a cubic spline to ensure a smoother fit.

Handle mouse button-releases as zero-pressure events for consistency, and
explicitly handle transitions from zero to nonzero pressure and vice versa
to avoid "hook" artefacts.
gui/brushiconeditor.py
gui/canvasevent.py
gui/freehand.py [new file with mode: 0644]
gui/tileddrawwidget.py