Drawpile icon indicating copy to clipboard operation
Drawpile copied to clipboard

Pixel Brush: Pixel perfect drawing

Open notfood opened this issue 6 years ago • 4 comments

Drawpile currently uses a pixel perfect snap in approach to paint the pixels, some users are having difficulty as the cursor bounces to places they don't expect and get the feeling the brush is clunky.

Drawpile should offer the option to disable the snap into pixels and try to use an aproximation method to select where to paint the pixels.

Refer to Aseprite Pixel Perfect toogle option.

notfood avatar Apr 15 '18 06:04 notfood

Is this what you mean: https://github.com/aseprite/aseprite/issues/315 ? If so, I'm going to need a description of the algorithm. Asesprite is not Free software so, for my own protection, I'm not going to even look at its source code.

callaa avatar Apr 15 '18 06:04 callaa

I understand your concern, the relevant code is licenced GPLv2 with future clause. No need to look at it though.

The algorithm is quite simple, it merely removes the pixel created on L corners after sampling a few pixels. Nothing else.

example

It's very visible in the flash applet, merely move the mouse slowly. Take notice how many pixels are sampled on the left top corner.

It's also very visible in Aseprite as well. I attach a video where the pixels moving can be seen. Drawpile Issue #602

Honestly it wasn't what I was expecting as it's not aproximating anything but some users voiced me this complain and kept comparing it to Aseprite brush.

Drawpile being a painter application first than a pixel application could benefit a lot from this.

notfood avatar Apr 16 '18 00:04 notfood

Version 2.0.5 didn't have this snapping cursor.

pachuco avatar Oct 28 '18 14:10 pachuco

This came up in the Krita IRC, here's some links courtesy of katnova. There appears to be an algorithm description in the second link.

https://krita-artists.org/t/pixel-perfect-line-setting-for-pixel-art-brushes/42629

https://rickyhan.com/jekyll/update/2018/11/22/pixel-art-algorithm-pixel-perfect.html

askmeaboutlo0m avatar Dec 11 '23 05:12 askmeaboutlo0m