Pygame takes color values in the range 0 to 255 . Although you can't easily display the blending of three colors in a two-dimensional window, you can still explore the range between two of the color values with a program like this where the code you need to add the basic starter code is displayed in bold:
import pygame
pygame.init ()
screen_width $=1000$
screen_height $=800$
screen $=$ pygame.display.set_mode ((screen_width,
screen_height))
done $=\mathrm{False}$
while not done:
for event in pygame. event.get ():
if event. type == pygame.QUIT:
done $=$ True
for $y$ in range (800):
for $x$ in range $(1000)$ :
screen.set_at $((x, y)$,
pygame.Color(int (x/screen_width *255),
int (y/screen_height * 255), 255))
pygame. display . update ()
pygame.quit ()