
Based on the pressure curve control points sample a bezier curve and then look up the pressure at that point of the curve. We sample 256 points and do linear interpolation in between, this strikes a balance between having to calculate the point for all 8K pressure points a modern pen supports while still giving us reasonable detailed curves. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3158 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3399>