colors there are three primary colors of lightredgreen and blue (redblueand yellow are the primary colors for paints and pigmentsbut the computer monitor uses lightnot paint by combining different amounts of these three colors you can form any other color in pygamewe represent colors with tuples of three integers the first value in the tuple is how much red is in the color an integer value of means there is no red in this colorand value of means there is the maximum amount of red in the color the second value is for green and the third value is for blue these tuples of three integers used to represent color are often called rgb values because you can use any combination of to for each of the three primary colorsthis means pygame can draw , , different colors (that is colorshoweverif try to use number larger than or negative numberyou will get an error that looks like --valueerrorinvalid color argument|for examplewe will create the tuple ( and store it in variable named black with no amount of redgreenor bluethe resulting color is completely black the color black is the absence of any color the tuple ( for maximum amount of redgreenand blue to result in white the color white is the full combination of redgreenand blue the tuple ( represents the maximum amount of red but no amount of green and blueso the resulting color is red similarly( is green and ( is blue you can mix the amount of redgreenand blue to form other colors here are the rgb values for few common colorscolor aqua black blue fuchsia gray green lime maroon navy blue olive purple red silver teal white yellow rgb values ( ( ( ( ( ( ( ( ( email questions to the authoral@inventwithpython com