changed min rgp value from 0 to 32 to prevent too dark of colors

This commit is contained in:
Nicholas Dyer 2024-11-07 14:29:58 -05:00
parent d565333edd
commit afe503bee4
Signed by: ndyer
GPG Key ID: B4FEDEE7298D2503

View File

@ -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.