当前位置:网站首页>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 .

边栏推荐
- AutoCAD - workspace settings
- #775 Div.1 C. Tyler and Strings 组合数学
- How can CIOs use business analysis to build business value?
- Observable time series data downsampling practice in Prometheus
- Autocad-- Real Time zoom
- Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套
- 2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
- The difference between bundle, chunk and module
- Decryption function calculates "task state and lifecycle management" of asynchronous task capability
- Detailed introduction of OSPF header message
猜你喜欢

【acwing】240. food chain

質量體系建設之路的分分合合

Emlog blog theme template source code simple good-looking responsive

2022 U.S. college students' mathematical modeling e problem ideas / 2022 U.S. game e problem analysis

2022-2028 global and Chinese equipment as a Service Market Research Report

【Leetcode】1352. 最后 K 个数的乘积

数论函数及其求和 待更新

Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
![[groovy] closure (closure call is associated with call method | call () method is defined in interface | call () method is defined in class | code example)](/img/03/329adb314606f29c8a4cb2260e84c8.jpg)
[groovy] closure (closure call is associated with call method | call () method is defined in interface | call () method is defined in class | code example)

Construction d'un Cluster redis sous Windows
随机推荐
Neural networks and deep learning Chapter 2: machine learning overview reading questions
Neural networks and deep learning Chapter 3: linear model reading questions
AutoCAD - graphic input and output
xss注入
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
Use assimp library to read MTL file data
English topic assignment (26)
AutoCAD - continuous annotation
windows下Redis-cluster集群搭建
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
The first topic of ape Anthropology
Uncover the seven quirky brain circuits necessary for technology leaders
Aperçu en direct | Services de conteneurs ACK flexible Prediction Best Practices
Neural networks and deep learning Chapter 6: Circular neural networks reading questions
[ideas] 2021 may day mathematical modeling competition / May Day mathematical modeling ideas + references + codes
[groovy] closure (closure as function parameter | code example)
JMeter -- distributed pressure measurement
Understand encodefloatrgba and decodefloatrgba
【acwing】837. Number of connected block points
MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP