Jump to content
Posted 31 October 2012 - 02:05 PM
Posted 31 October 2012 - 02:18 PM
Edited by caldiar, 31 October 2012 - 02:21 PM.
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.
Posted 31 October 2012 - 03:12 PM
Check out my book, Game Development with Unity, aimed at beginners who want to build fun games fast.
Also check out my personal website at bryanwagstaff.com, where I occasionally write about assorted stuff.
Posted 31 October 2012 - 03:26 PM
Hey, where I was looking at?
>> size = radius * 3
The width of a circle is twice its radius, not three times its radius.
Posted 31 October 2012 - 03:30 PM