用pygame画一个圆
2015-06-11 16:45
197 查看
import sys, random, math, pygame from pygame.locals import * from datetime import datetime, date, time pygame.init() screen = pygame.display.set_mode((600, 500)) pygame.display.set_caption("Analog Clock Demo") #screen.fill((0, 0, 100)) pos_x = 300 pos_y = 250 radius = 250 angle = 360 while True: for event in pygame.event.get(): if event.type in (QUIT, KEYDOWN): sys.exit() screen.fill((0, 0, 200)) color = 255, 255, 0 position = 300, 250 radius = 100 width = 10 pygame.draw.circle(screen, color, position, radius, width) pygame.display.update()
相关文章推荐
- RHEL7中防火墙firewalld的配置(1)
- Myclipse发布项目错误问题已解决
- URL编码
- 找不到git部署
- "重力锁屏"Beta版使用说明
- rowid 与 rownum 分页
- YUV422的旋转
- AndroidManifest.xml——activity(四)
- 指向指针的指针,彻底搞定C++指针
- 打破了中国电信华为无线路由猫(HG522-C)自己主动拨号+任意数量的计算机+iTV
- mysql复制表
- CentOS 运行ifconfig等命令, 提示command not foun
- Cookie/Session机制详解
- linux 中的几个命令
- 安装 CentOS 7 后必做的七件事
- 分享快速双边滤波matlab程序
- HDU 2036 改革春风吹满地(数学)
- SQLite学习笔记
- Oracle 11g 完美卸载
- 探索性测试--笔记二