当前位置:网站首页>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 .
边栏推荐
- [Business Research Report] Research Report on male consumption trends in other economic times -- with download link
- Introduce Hamming distance and calculation examples
- Flutter tips: various fancy nesting of listview and pageview
- AutoCAD - continuous annotation
- [crampon programming] lintcode decoding Encyclopedia - 872 termination process
- JMeter -- distributed pressure measurement
- 49 pictures and 26 questions explain in detail what is WiFi?
- CSDN正文自动生成目录
- [groovy] closure (closure parameter list rule | default parameter list | do not receive parameters | receive custom parameters)
- AutoCAD - Center zoom
猜你喜欢
XSS injection
Use assimp library to read MTL file data
2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem
Raki's notes on reading paper: soft gazetteers for low resource named entity recognition
CSDN body auto generate directory
2022 thinking of Mathematical Modeling B problem of American college students / analysis of 2022 American competition B problem
【acwing】836. Merge sets
介绍汉明距离及计算示例
How can CIOs use business analysis to build business value?
How should programmers learn mathematics
随机推荐
669. 修剪二叉搜索树 ●●
Is $20billion a little less? Cisco is interested in Splunk?
English topic assignment (27)
Download the details and sequence of the original data access from the ENA database in EBI
Debug insights
中国金刚烷行业研究与投资预测报告(2022版)
2021 electrician Cup - high speed rail traction power supply system operation data analysis and equivalent modeling ideas + code
AutoCAD - feature matching
[groovy] closure (closure as function parameter | code example)
49 pictures and 26 questions explain in detail what is WiFi?
The first topic of ape Anthropology
MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP
Séparation et combinaison de la construction du système qualité
Reading and visualization of DICOM, MHD and raw files in medical imaging
Variable category (automatic, static, register, external)
Introduction to JVM principle and process
Mode in BST (binary tree & Notes on question brushing)
jmeter -- 分布式压测
Neural networks and deep learning Chapter 5: convolutional neural networks reading questions
Number theoretic function and its summation to be updated