Pinta icon indicating copy to clipboard operation
Pinta copied to clipboard

Brush strokes become jagged when zoomed In or drawing quickly

Open vvda12061999 opened this issue 10 months ago • 3 comments

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

  1. Open Pinta.
  2. Select the Paintbrush tool.
  3. Set a medium or large brush size.
  4. 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.
  5. 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.

Image

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

vvda12061999 avatar Feb 11 '25 10:02 vvda12061999

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

cameronwhite avatar Feb 13 '25 00:02 cameronwhite

GIMP also uses GTK and seems to not have problems with fast drawing.

NGSpace avatar Apr 01 '25 12:04 NGSpace

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.

not-pedka avatar Jun 26 '25 10:06 not-pedka