pygame bg color

Solutions on MaxInterview for pygame bg color by the best coders in the world

showing results for - "pygame bg color"
Genna
24 Jun 2017
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
Leni
17 Jan 2019
1while running:
2    for i in pygame.event.get():
3        if i.type == pygame.QUIT:
4            running = False
5            pygame.quit()
6
7    screen.fill(currentColor) # Fill the screen with whatever the stored color is. 
8
9    pygame.display.update() # Refresh the screen, needed whatever the color is, so don't remove this
10
queries leading to this page
background color pygamechange window colour pygamepygame color imagehow to set color of pygame display set modechange pygame display colorpygame font colorpygame colorhow to change the colour of your pygame screenadd color to pygame windowchange pygame background colorhow to change color of title background in pygamewhite background in pygame screenhow to make window red pygamehow to change window color in pygamehow to change the background colour in pygamehow to change screen color in pygamehow to change window color in python pygamepygame color changepygame colour for fontpygame menu color changepygame colourshow to change color of an object in pygamehow to define colour in pygamehow to vhange the color of a pygame winowhow to change color of window header pygamechange png color in pygameset window color pygamepygame change colourcolor in pygamehow to change background color in pygamepygame background colour pygame make color for backgroundhow to use a colour in pygame backgroundchange colour of screen pygamehow to ste colour of background pygamepygame change colorhow to change the color of something in pygamehow to change my pygame window colourbg color pygamepygame background colorhow do i make a window color in pygamepygame function colorhow to change the color of an image in pygamechange color of text pygamehow to change pygame window colorpygame set window colorpygame colour codespygame change window colorpygame set background colorpygame set color keyhow to update color in pygamepygame colorspygame bg colorset a pixel color in pygame windowpygame window background color codepygame change background colorhow to change the window colour in pygamepygame window colorpygame color the window framecolor bg pygamechange draw color pygameset background color pygamepygame fill backgroundhow to set background color in pygamepygame draw colorhow do i make a window color in pygame windowgame fillpygame colorhow to change background color of window pygamehow to change color in pygamechange color pygamepygame change image colourpygame change image colorcolor chaning basckground in pygamepygame bg color