Jan Filip Tristan wrote:
Hi,
It seems to be an easy question but  I don't know the answer.
How to set an alpha value to the color of a circle?

TIA
blenderkid

First make sure the surface you draw to has source alpha:

s = pygame.Surface(size, pygame.SRCALPHA, 32)

Second use a four component color. The last component is the alpha:

pygame.draw.circle(s, (r, g, b, alpha), pos, radius)

--
Lenard Lindstrom
<[EMAIL PROTECTED]>

Reply via email to