用Pygame绘制圆程序
来源:互联网 发布:淘宝被知识产权投诉 编辑:程序博客网 时间:2024/04/29 11:09
#Drawing Circles project
import pygame
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((600,500))
pygame.display.set_caption("Drawing Circles")
while True:
for event in pygame.event.get():
if event.type in (QUIT,KEYDOWN):
pygame.quit()
screen.fill((0,0,200))
#draw a circle
color = 255,255,0
position = 300,250
radius = 100
width = 10
pygame.draw.circle(screen,color,position,radius,width)
pygame.display.update()
0 0
- 用Pygame绘制圆程序
- 用Pygame绘制移动的矩形
- 【pygame入门】-- 绘制图形
- pygame绘制椭圆方法
- 用pygame画一个圆
- 第一个pygame程序
- Hello Pygame程序
- C程序绘制圆
- pygame中绘制弧线的方法
- pygame中绘制线条的方法
- Python(Pygame)入门程序
- 高速正圆绘制程序
- 用Pygame画线
- 用Pygame画弧线
- pygame
- pygame
- pygame
- 【pygame】
- CAN、I2C、SPI总线简介
- Arduino Uno资料简介
- spring mvc 请求转发和重定向
- tabcell居中
- Effective Java(Item: 23 to 37)
- 用Pygame绘制圆程序
- oracle 表结构和表操作
- service基本
- 软件工程(二)
- 信息熵到底是什么
- Struts2 拦截器的使用及配置
- 用Pygame绘制移动的矩形
- centos7升级python,yum出现问题“ImportError: No module named urlgrabber.grabber”
- CentOS 7 配置LAMP环境