Jan-15-2020, 11:24 AM
Pygame draw rect does not use alpha. It will accept the color values. But it will always ignore alpha.
You can also darken colors with hsla.
You can also darken colors with hsla.
import pygame orange = pygame.Color("orange") print(orange) darken = orange.hsla darken = darken[0], darken[1], darken[2] - 5, darken[3] orange.hsla = darken print(orange)
99 percent of computer problems exists between chair and keyboard.