Brush strokes become jagged when zoomed In or drawing quickly
Description When using the brush tool in Pinta, strokes appear smooth at normal zoom levels and slow drawing speeds. However, when zoomed in or drawing quickly, strokes become jagged, uneven, or disconnected. This issue affects both freehand strokes and continuous curves.
To Reproduce
- Open Pinta.
- Select the Paintbrush tool.
- Set a medium or large brush size.
- Test 1 (Zoom Issue): • Zoom in to 400% or higher. • Draw a smooth curve. • Observe that the stroke appears jagged compared to drawing at 100% zoom.
- Test 2 (Fast Drawing Issue): • Keep the zoom level at 100%. • Quickly draw a curved or wavy line. • Observe that gaps or sharp corners appear in the stroke instead of a smooth, continuous line.
Additional Info • The issue seems related to how stroke points are placed and interpolated. • Cairo’s rendering might not be interpolating points well when drawing fast.
Version • Operating System: MacOS, Window 10, Window 11 • Pinta Version: newest of github master branch: sha: d6b4a7939422286a76741d146379a946ce69b455
For the fast drawing, I think the first thing to look into would be whether we're getting enough intermediate mouse events from GTK. The brush tool itself just uses Cairo to draw lines between the previous point and current point
GIMP also uses GTK and seems to not have problems with fast drawing.
I have the same issue. I have to use Krita, but I'd really like to use a more GNOME native app like Pinta. I hope this gets fixed.