当前位置:网站首页>Create a pyGame window with a blue background
Create a pyGame window with a blue background
2022-07-05 04:49:00 【Prosperity comes to an end and the city is ruined 891】
import pygame
# The import module pygame
pygame.init()
# Call function pygame.init Initialize background settings .
screen = pygame.display.set_mode((800,600))
# Call function pygame.display.set_mode, Enter the pixels that define the width and height of the game window . Assign this to screen.
screen.fill((0,0,255))
# use RGB Value as the fill background color .
pygame.display.flip()
# Make the recently drawn screen visible .

边栏推荐
- 2022 thinking of Mathematical Modeling B problem of American college students / analysis of 2022 American competition B problem
- 質量體系建設之路的分分合合
- #775 Div.1 B. Integral Array 数学
- Official announcement! The third cloud native programming challenge is officially launched!
- Neural networks and deep learning Chapter 6: Circular neural networks reading questions
- CSDN body auto generate directory
- flutter 对象和列表
- #775 Div.1 C. Tyler and Strings 组合数学
- The difference between bundle, chunk and module
- AutoCAD - isometric annotation
猜你喜欢

Official announcement! The third cloud native programming challenge is officially launched!

Number theoretic function and its summation to be updated
![Rip notes [rip message security authentication, increase of rip interface measurement]](/img/89/f70af97676496d7b9aa867be89f11d.jpg)
Rip notes [rip message security authentication, increase of rip interface measurement]

AutoCAD -- dimension break

QT Bluetooth: a class for searching Bluetooth devices -- qbluetooth devicediscoveryagent

Invalid bound statement (not found) in idea -- problem solving

Wan broadband access technology V EPON Technology

Decryption function calculates "task state and lifecycle management" of asynchronous task capability

2022 thinking of mathematical modeling a problem of American college students / analysis of 2022 American competition a problem

Matplotlib draws three-dimensional scatter and surface graphs
随机推荐
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
Mode in BST (binary tree & Notes on question brushing)
XSS injection
[groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)
Setting up redis cluster cluster under Windows
Discussion on the dimension of confrontation subspace
Interface joint commissioning test script optimization V5.0 (end)
Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
2021 electrician cup (the 12th "China Society of electrical engineering Cup" National Undergraduate electrician mathematical modeling) detailed ideas + codes + references
Key review route of probability theory and mathematical statistics examination
10 programming habits that web developers should develop
Fluent objects and lists
Is $20billion a little less? Cisco is interested in Splunk?
[crampon game] MC tutorial - first day of survival
2021 huashubei mathematical modeling idea + reference + paper
You Li takes you to talk about C language 7 (define constants and macros)
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
AutoCAD -- dimension break
AutoCAD - isometric annotation