[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] pygame.transform noob question
Hi Pygame List,
I'm new and excited about possibilities with Pygame.
So far, I'm going through the docs trying things out but I'm stuck on
In one of my first experiments, I'm drawing (and redrawing) randomly
placed circles on the screen (code below).
I'd like to apply a rotozoom but can't figure out where it goes or maybe
the result of pygame.draw.cirle needs to go to some other surface (not
the main screen) and that is what needs to be rotozoomed?
Any advice would be appreciated!
Thanks and best,
from pygame.locals import *
screen = pygame.display.set_mode((320,240))
points = 
for i in range(100):
xi = random.random() * 1000
yi = random.random() * 1000
pointi = (xi,yi)
for i in range(50):
for p in points:
randR = random.randint(0,255)
randG = random.randint(0,255)
randB = random.randint(0,255)
radius = random.randint(1,30)