Jump to content

1px wide circles are asymmetrical


Recommended Posts

I noticed that drawing low-res circles (for pixelart) with the shapes tool results in deformed circles on almost every radius if using a width of 1.

Using something like https://donatstudios.com/PixelCircleGenerator shows how it should scale up.

First circle in each set is the one done by hand and the second is the one made by the shapes tool.

Screenshot 2021-01-06 181230.png

-- Formerly known as Vlader. --

Link to post
Share on other sites

It's a long-standing issue that I just haven't addressed yet. It's more complicated than you'd think because the Shape rendering code has to handle floating point, not just integer, coordinates, as well as arbitrary 3x2 matrix transforms. Detecting that a pixel-aligned circle is being drawn isn't as straightforward as I'd hoped.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to post
Share on other sites
On 1/7/2021 at 6:21 PM, Rick Brewster said:

It's a long-standing issue that I just haven't addressed yet. It's more complicated than you'd think because the Shape rendering code has to handle floating point, not just integer, coordinates, as well as arbitrary 3x2 matrix transforms. Detecting that a pixel-aligned circle is being drawn isn't as straightforward as I'd hoped.

I think i get what you mean. Would having an edge case check when the user selects 1px shape drawing and treat it as just integers help in this case? Edge cases isn't really what you want to add in but i imagine it would be acceptable for at least a temporary fix. I thankfully needed to create only a handful of pixelated circles, but i can see other users using this a lot more than i in their regular workflow and this would help immensely.

-- Formerly known as Vlader. --

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...