how to change the window colour in pygame

Solutions on MaxInterview for how to change the window colour in pygame by the best coders in the world

showing results for - "how to change the window colour in pygame"
Milan
06 May 2019
1import pygame
2pygame.init() #initialize pygame
3SCREEN_WIDTH = 600 # width (in px)
4SCREEN_HEIGHT = 800 # height (in px)
5
6WIN = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) # creates a screen of 600px X 800px
7RED_VALUE = 255 # should be from 0 - 255
8GREEN_VALUE = 255 # should be from 0 - 255
9BLUE_VALUE = 255 # should be from 0 - 255
10while True:
11	pygame.display.update() # updates the screen
12    WIN.fill(RED_VALUE,GREEN_VALUE,BLUE_VALUE) # this is going to be white in color
queries leading to this page
pygame change colorchange color pygamepygame menu color changehow to change window color in python pygamehow to change my pygame window colourhow to change screen color in pygamehow to change the color of an image in pygamepygame background colorpygame fill backgroundcolor chaning basckground in pygamepygame change colourhow to change background color in pygamehow to change background color of window pygamehow to change color of an object in pygamechange window colour pygamechange colour of screen pygamehow to set color of pygame display set modeset a pixel color in pygame windowpygame window colorhow to change the colour of your pygame screenhow to change color in pygamepygame color the window framehow to set background color in pygamepygame change window colorhow do i make a window color in pygame windowgame fillpygame set window colorhow to change pygame window colorhow to update color in pygamebackground color pygamehow to change the color of something in pygamepygame bg colorchange draw color pygameset window color pygamechange png color in pygamepygame window background color codehow to change the window colour in pygamepygame set background colorhow do i make a window color in pygamepygame change image colorpygame change background colorhow to make window red pygamewhite background in pygame screenpygame color changechange pygame display colorpygame change image colourhow to vhange the color of a pygame winowhow to change color of window header pygamehow to change window color in pygameadd color to pygame windowhow to change the window colour in pygame