当前位置:网站首页>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 .
边栏推荐
- Reading and visualization of DICOM, MHD and raw files in medical imaging
- Observable time series data downsampling practice in Prometheus
- Minor spanning tree
- Official announcement! The third cloud native programming challenge is officially launched!
- 2021 electrician Cup - high speed rail traction power supply system operation data analysis and equivalent modeling ideas + code
- Setting up redis cluster cluster under Windows
- Introduce Hamming distance and calculation examples
- Thinking of 2022 American College Students' mathematical modeling competition
- AutoCAD - Zoom previous
- JVM 原理和流程简介
猜你喜欢
质量体系建设之路的分分合合
54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
[groovy] closure (closure call is associated with call method | call () method is defined in interface | call () method is defined in class | code example)
Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
AutoCAD - feature matching
AutoCAD - stretching
Minor spanning tree
Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
AutoCAD - command repetition, undo and redo
PostgreSQL 超越 MySQL,“世界上最好的编程语言”薪水偏低
随机推荐
Leetcode hot topic Hot 100 day 33: "subset"
Practice | mobile end practice
Interface joint commissioning test script optimization V5.0 (end)
Leetcode 222 number of nodes of complete binary tree
Neural networks and deep learning Chapter 6: Circular neural networks reading questions
AutoCAD - stretching
[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator
Rip notes [rip message security authentication, increase of rip interface measurement]
The first topic of ape Anthropology
jmeter -- 分布式压测
Aperçu en direct | Services de conteneurs ACK flexible Prediction Best Practices
[Chongqing Guangdong education] National Open University 2047t commercial bank operation and management reference test in autumn 2018
#775 Div.1 B. Integral Array 数学
Scope of package class package
质量体系建设之路的分分合合
Special information | finance, accounting, audit - 22.1.23
Hypothesis testing -- learning notes of Chapter 8 of probability theory and mathematical statistics
[groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)
The 22nd Spring Festival Gala, an immersive stage for the yuan universe to shine into reality
Cookie learning diary 1