‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

> I don't remember noticing this behavior before, but it seems that the lines' 
> widths are chosen so that the ends, which are also axis-aligned, are the 
> given width. Thus, the lines can be up to about 29% thinner than one would 
> expect.

Pygame does not have a kind of brush for this but instead draws many single 
lines closely next to each other. Therefore, in some edge cases it can even 
happen that your line has few pixel "holes" in them.
I think that's good enough for practical use in many cases, but that's because 
it's actually simpler this way - and faster than "more correct" approaches. 
Whenever I actually need a wide line "done right", I'd instead go outline the 
area and fill it or something. 

cheers!
mar77i


​Sent with ProtonMail Secure Email.​


Reply via email to