Colours In Pygame

Vishal Rashmika published on
1 min, 27 words

Categories: Pygame

There are two types of colours in pygame:

  1. RGB
  2. hexadecimal

1. RGB

rgb_color = (red, green, blue)
red_color = (255, 0, 0)

hexadecimal

hex_color = #rrggbb
box_color = #c0e8ec