Instructions for the complete
production of games
Working with colors– Pygame
Book 4
Darker color is easy. Just multiply with a value between 0 and 1 If we take an orange color (221, 99, 20) and multiply each component to 0.5 (reduce by half) gains (110.5, 49.5, 10). But because components must be integers we take (110, 49, 10). ...