当前位置:网站首页>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 .
边栏推荐
- JVM 原理和流程简介
- AutoCAD - stretching
- 【acwing】240. food chain
- Manually implement heap sorting -838 Heap sort
- [PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
- What are the building energy-saving software
- Stage experience
- 数论函数及其求和 待更新
- CSDN body auto generate directory
- Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
猜你喜欢
windows下Redis-cluster集群搭建
Autocad-- Real Time zoom
windows下Redis-cluster集群搭建
AutoCAD - stretching
Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
Invalid bound statement (not found) in idea -- problem solving
2022 thinking of Mathematical Modeling B problem of American college students / analysis of 2022 American competition B problem
介绍汉明距离及计算示例
2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
Use assimp library to read MTL file data
随机推荐
Variable category (automatic, static, register, external)
猿人学第一题
Is there a sudden failure on the line? How to make emergency diagnosis, troubleshooting and recovery
Inline built-in function
Flutter 小技巧之 ListView 和 PageView 的各种花式嵌套
669. 修剪二叉搜索树 ●●
An article takes you to thoroughly understand descriptors
Observable time series data downsampling practice in Prometheus
Live broadcast preview | container service ack elasticity prediction best practice
XSS injection
You Li takes you to talk about C language 7 (define constants and macros)
775 Div.1 B. integral array mathematics
flutter 对象和列表
Managed service network: application architecture evolution in the cloud native Era
[groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
10 programming habits that web developers should develop
AutoCAD - lengthening
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
The first topic of ape Anthropology