Guys can somebody help im not being able to figure this out
So i created a method which enables to make a circle transparent:
trans_surface = pygame.Surface(self.rect, pygame.SRCALPHA)
pygame.draw.circle(surface= trans_surface,
center= self.center,
color= self.color,
radius= self.radius)
self.screen.blit(trans_surface, (0 ```
Now i made another method which basically creates bigger circle each iteration and the alpha value which i set as self.color[3]
so it decreases and it should make the circle as it gets biggers the less the alpha value
```def outer_glow(self):
alpha_value = self.color[3]
for i in range(10):
if self.radius < 300:
self.radius += 2
if alpha_value > 0:
alpha_value -= 20
print(alpha_value)
self.trans_circle()
self.trans_circle() ```
but when i run in my main file it runs but the bigger circle doesnt appear to transparent or the fade effect is missing
for clarity this is a class Circle and receives the following arguments
```self.circle = Circle(rect= self.rect,
center= self.center,
color= [252, 166, 28, 255],
radius= 150,
screen= self.screen) ```
can anybody help me whats wrong with this logic
My plan was to make a base circle with radius 150 and as more circles are iterated circles will get larger and alpha decreases giving in a fade out kind of glow