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

边栏推荐
- CUDA Programming atomic operation atomicadd reports error err:msb3721, return code 1
- 2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
- Introduction to JVM principle and process
- Special information | finance, accounting, audit - 22.1.23
- 775 Div.1 C. Tyler and strings combinatorial mathematics
- 中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
- 2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
- Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
- AutoCAD - graphic input and output
- Rk3399 platform development series explanation (network debugging) 7.29 summary of network performance tools
猜你喜欢

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

Label exchange experiment

SQL set operation

windows下Redis-cluster集群搭建

AutoCAD - Document Management

Live broadcast preview | container service ack elasticity prediction best practice

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

2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas

On-off and on-off of quality system construction

质量体系建设之路的分分合合
随机推荐
Download the details and sequence of the original data access from the ENA database in EBI
Special information | finance, accounting, audit - 22.1.23
2022-2028 global and Chinese FPGA prototype system Market Research Report
3 minutes learn to create Google account and email detailed tutorial!
MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP
Looking at Chinese science and technology from the Winter Olympics: what is the mystery of the high-speed camera that the whole people thank?
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
【acwing】240. food chain
[crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
Reading and visualization of DICOM, MHD and raw files in medical imaging
Neural networks and deep learning Chapter 3: linear model reading questions
介绍汉明距离及计算示例
解密函数计算异步任务能力之「任务的状态及生命周期管理」
2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
QT Bluetooth: a class for searching Bluetooth devices -- qbluetooth devicediscoveryagent
AutoCAD - graphic input and output
PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
Neural networks and deep learning Chapter 2: machine learning overview reading questions
包 类 包的作用域
Label exchange experiment