1 import pygame
2 pygame.init()
3 screen = pygame.display.set_mode((640,480))
4 # ------- background ---------
5 background = pygame.Surface(screen.get_size())
6 background.fill((255, 155, 155))     #fill the background white (red,green,blue)
7 screen.blit(background, (0,0))     #draw background on screen (overwriting all)
8 # --------- flip screen ------------------
9 pygame.display.flip()

 

相关文章:

  • 2021-07-15
  • 2021-11-27
  • 2021-06-10
  • 2021-12-03
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
猜你喜欢
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-02-19
相关资源
相似解决方案