import pygame
from pygame.locals import *
from sys import exit
from random import *
pygame.init()
screen = pygame.display.set_mode((640, 480), 0, 32)
while True:
for event in pygame.event.get():
if event.type == QUIT:
exit()
random_color = (randint(0, 255), randint(0, 255), randint(0, 255))
random_pos = (randint(0, 639), randint(0, 479))
random_radius = randint(1,200)
pygame.draw.circle(screen, random_color, random_pos, random_radius)
pygame.display.update()
I lookup the the pygame circle function and found it needed five arguments, not four a listed here. And how am I to know of what data type these arguments should be? There is the pygame circle function.
def circle():
""" pygame.draw.circle(Surface, color, pos, radius, width=0): return Rect
draw a circle around a point """
pass