[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] using alpha for a circle



You could draw to a surface, then set the alpha value for that image:

s = pygame.Surface((CircleDiameter,CircleDiameter))
pygame.draw.circle(s,color,(CircleDiameter/2,CircleDiameter/2),CircleDiameter/2,width)
s.set_alpha(transparency)

Ian