I'm trying to draw a semi-transparent circle in Pygame. Here is my code:
import pygame
pygame.init()
clock = pygame.time.Clock()
screen=pygame.display.set_mode((width,height))
while True:
msElapsed = clock.tick(100)
screen.fill((0,0,0,255))
pygame.draw.circle(screen,(30,224,33,100),(250,100),10)
pygame.display.update()
for event in pygame.event.get():
if event.type==pygame.QUIT:
exit()
I want to use RGBA as circle color. But the circle is fully colored. What's the problem with my code?