Created Rect is bigger then circle in it, why?
Members - Reputation: 701
Posted 31 October 2012 - 02:18 PM
However I can't be 100% positive that this is the case. It helps to be a bit more verbose with what you expect, what actually happened, and what you tried to do in order to fix it. Relevant code doesn't hurt either ;)
Hopefully it's just that you need to trim the image to fit the circle better.
EDIT: I'm making more assumptions than I usually do. I'm assuming you're making a rect with the same dimensions as your image which you want to use.
Edited by caldiar, 31 October 2012 - 02:21 PM.
Members - Reputation: 349
Posted 31 October 2012 - 02:22 PM
Sorry, I thought there is a reson for it beside my erronous code
A link to your code would be useful.
def draw_circle(radius, color): size = radius * 3 pict = pygame.Surface((size, size)) pygame.draw.circle( pict, color, (radius, radius), radius) return pict, pict.get_rect()
Edited by Zed McJack, 31 October 2012 - 02:51 PM.