Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pygame not filled shapes (Python)

If I want to craw a circle, I use the regualr draw.circle but the problem is that I don't want it filled so I draw a smaller circle inside of it, it makes a circle with thickness.

Everything is good right? no. The background image inside that circle disappeared because the circles are filled.

Now my question is: There is a function that draws a circle (and other shapes[?]) that gets thick and not filling the whole inside of the shape?

EDIT: If you can give me the signature so I know how to use it.

like image 571
Some kid Avatar asked Nov 22 '25 15:11

Some kid


1 Answers

The command is pygame.draw.circle(Surface, color, pos, radius, width=0). The last argument of width can be changed to not fill the circle in. If it is zero, the circle is solid and if it is anything else it is with an edge thickness of whatever the parameter is.

like image 123
ThisIsAQuestion Avatar answered Nov 24 '25 04:11

ThisIsAQuestion



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!