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

边栏推荐
- CSDN正文自动生成目录
- xss注入
- [crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
- Neural networks and deep learning Chapter 3: linear model reading questions
- MD5绕过
- AutoCAD - feature matching
- 自动语音识别(ASR)研究综述
- Séparation et combinaison de la construction du système qualité
- Advanced length of redis -- deletion strategy, master-slave replication, sentinel mode
- Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
猜你喜欢
![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]

【acwing】836. Merge sets

2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
![[Business Research Report] top ten trends of science and technology and it in 2022 - with download link](/img/9f/4fc63fa7b0e9afc5dd638d4b599b2c.jpg)
[Business Research Report] top ten trends of science and technology and it in 2022 - with download link

Hypothesis testing -- learning notes of Chapter 8 of probability theory and mathematical statistics

AutoCAD - feature matching

Flutter tips: various fancy nesting of listview and pageview

Pointer function (basic)

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

AutoCAD - command repetition, undo and redo
随机推荐
程序员应该怎么学数学
Thinking of 2022 American College Students' mathematical modeling competition
Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
AutoCAD - stretching
Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
2022 thinking of mathematical modeling a problem of American college students / analysis of 2022 American competition a problem
Stage experience
【acwing】837. Number of connected block points
Inline built-in function
Hypothesis testing -- learning notes of Chapter 8 of probability theory and mathematical statistics
取余操作是一个哈希函数
A survey of automatic speech recognition (ASR) research
Error statuslogger log4j2 could not find a logging implementation
Raki's notes on reading paper: code and named entity recognition in stackoverflow
History of web page requests
775 Div.1 B. integral array mathematics
中国艾草行业研究与投资前景预测报告(2022版)
2022-2028 global and Chinese equipment as a Service Market Research Report
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
Detailed introduction of OSPF header message