changed min rgp value from 0 to 32 to prevent too dark of colors
This commit is contained in:
parent
d565333edd
commit
afe503bee4
@ -57,9 +57,9 @@ class DVDLogo(pygame.sprite.Sprite):
|
|||||||
color_surface = pygame.Surface(self.image.get_size(), pygame.SRCALPHA)
|
color_surface = pygame.Surface(self.image.get_size(), pygame.SRCALPHA)
|
||||||
|
|
||||||
# Generate random RGB values and fill the color surface accordingly.
|
# Generate random RGB values and fill the color surface accordingly.
|
||||||
new_color = (random.randint(0, 255),
|
new_color = (random.randint(32, 255),
|
||||||
random.randint(0, 255),
|
random.randint(32, 255),
|
||||||
random.randint(0, 255))
|
random.randint(32, 255))
|
||||||
color_surface.fill(new_color)
|
color_surface.fill(new_color)
|
||||||
|
|
||||||
# Replace the drawn image with a copy of the base image and apply the randomly generated color.
|
# Replace the drawn image with a copy of the base image and apply the randomly generated color.
|
||||||
|
Loading…
Reference in New Issue
Block a user