用Python画白云VIP@ZheJiang
来源:互联网 发布:淘宝店装饰素材 编辑:程序博客网 时间:2024/04/30 00:46
Chapter 5: Introduction to Graphics
教程:http://programarcadegames.com/index.php?chapter=introduction_to_graphics&lang=zh#section_5
选色网站:
http://www.colorpicker.com/
pygame.draw
http://www.pygame.org/docs/ref/draw.html
import pygame#define colorwhite = (255,255,255)black = (0,0,0)red = (255,0,0)green = (0,255,0)blue = (0,0,255)yellow = (255,255,50)pi = 3.141592653pygame.init()size = [700,500]screen = pygame.display.set_mode(size)pygame.display.set_caption('songjiao')done = Falseclock = pygame.time.Clock()while done == False: for event in pygame.event.get(): if event.type == pygame.QUIT: done = True screen.fill(white) pygame.draw.line(screen,blue,[5,5],[105,5],3) pygame.draw.line(screen,blue,[355,5],[500,5],3) pygame.draw.line(screen,blue,[5,5],[5,125],3) pygame.draw.line(screen,blue,[500,5],[500,125],3) pygame.draw.line(screen,blue,[5,125],[500,125],3) font = pygame.font.Font(None,25) text1 = font.render("BYHH.ZheJiang.VIP Card",True,red) screen.blit(text1,[120,0]) text2 = font.render("BYID:",True,black) screen.blit(text2,[20,35]) text5 = font.render("jiaoshengha",True,green) screen.blit(text5,[80,35]) text3 = font.render("NO:",True,black) screen.blit(text3,[35,55]) text6 = font.render("9527",True,red) screen.blit(text6,[80,55]) text4 = font.render("From:",True,black) screen.blit(text4,[150,85]) text7 = font.render(" ZheJiang@District8",True,red) screen.blit(text7,[200,85]) pygame.display.flip() clock.tick(20)pygame.quit()
- 用Python画白云VIP@ZheJiang
- python 白云黄鹤十大
- vip
- VIP
- 白云寄语
- 蓝天白云
- 白云深处
- 化作白云
- 白云大侠
- 白云黑土
- 蓝天白云
- 白云诗
- Python新手,优酷VIP账号练手
- 明星python编程视频VIP教程
- Zhejiang southeast
- zhejiang Seeding
- 【备忘】2017麦子学院python编程视频VIP教程
- 蓝天白云图
- cocos2dx-2.2 创建Android工程
- 【D3.js数据可视化系列教程】(二十七)--径向树
- PowerDesigner导入MySql步骤和解决问题Non SQL Error : Could not load class com.mysql.jdbc.Driver
- HOG行人检测 如何制作样品
- 校园网如何翻过网关访问外网?
- 用Python画白云VIP@ZheJiang
- Sizeof与strlen的区别与联系
- 基于Java实现的《yakoo5.matcher》实用匹配器小工具
- 码农阿三- 为什么不去做?
- Visual Studio 2012中编写C程序
- Codeforces-15C Industrial Nim
- 使用kotlin来开发android
- MYSQL登录错误:mysqladmin: connect to server at 'localhost' failed
- 国内从事CV相关的企业