见过用turtle画表情包的吗!
我竟然用python画了个表情包!
点击此处查看视频
欢迎大家投一票给我们 #手动滑稽#
以下是源代码
from turtle import * setup(900,1000,200,200) pensize(2) seth(90)seth(90) penup()fd(120)circle(-300,10) pendown() circle(-300,10) seth(160) circle(-80,120) seth(30) circle(-120,60) seth(320) circle(-80,120) seth(290) circle(-300,10) penup() circle(-300,10)right(90) fd(20) right(90) fd(220) left(90) fd(10) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill() #eye penup() left(180) fd(80) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill()penup() right(90) fd(60) left(90) fd(30) pendown() pensize(4) fd(30)penup() left(90) fd(110)right(270) fd(120) left(180) pendown() pensize(5)for i in range(6):pendown()fd(1)penup()fd(40)home() #2 backward(200) pendown() pensize(2) seth(90)circle(-300,10) seth(160) circle(-80,120) seth(30) circle(-120,60) seth(320) circle(-80,120) seth(290) circle(-300,10) seth(180)penup() right(90)fd(170) left(90) fd(20) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill()penup() left(180) fd(80) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill()penup() right(90) fd(55) left(90) fd(25) pendown() fd(30) right(90) fd(6) circle(-15,180) fd(6)penup() home() #3 fd(250) pendown() pensize(2) seth(90)circle(-300,10) seth(160) circle(-80,120) seth(30) circle(-120,60) seth(320) circle(-80,120) seth(290) circle(-300,10) seth(180)penup() right(90)fd(170) left(90) fd(20) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill()penup() left(180) fd(80) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill()penup() right(90) fd(55) left(90) fd(25) pendown() fd(30) right(90) fd(6) circle(-15,180) fd(6)penup() home()#4 right(90) fd(360) pendown() pensize(2) seth(90)circle(-300,10) seth(160) circle(-80,120) seth(30) circle(-120,60) seth(320) circle(-80,120) seth(290) circle(-300,10) seth(180)penup() right(90)fd(170) left(90) fd(20) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill()penup() left(180) fd(80) pendown()circle(10,180) fd(18) circle(10,180) fd(18) left(180) fd(11) fillcolor('black') begin_fill() circle(-10,360) end_fill()penup() right(90) fd(55) left(90) fd(40) pendown() left(30) circle(-90,10) circle(-5,180) fd(15) seth(-30) circle(-90,10) circle(-5,180) fd(22) penup()seth(0) fd(120) seth(-15) pendown() pensize(2) pencolor('red') fillcolor('red') begin_fill() left(45) fd(50) circle(25, 180) right(90) circle(25, 180) fd(50)end_fill() penup() home()# pencolor('black') pensize(3) colormode(255) right(90) fd(30) left(90) fd(60)circle(100,30) pendown() circle(100,20)circle(80,55) circle(100,100) circle(180,3) circle(190,5) circle(80,65)circle(90,30) circle(80,35) # 左下脑袋 seth(-155) fd(60) circle(5,180) seth(10) fd(55) seth(-90) fd(40) seth(-15) pencolor('red') circle(180,28) # 内裤弧度 pencolor('black') seth(90) fd(45) seth(-10) fd(60) seth(10) circle(5,165) seth(158) fd(59)penup()seth(180) # 左侧身体 fd(90) seth(-90) fd(65) pendown() pencolor('red') fd(25) # 短裤 seth(0) circle(65,45) penup() seth(0) fd(38) seth(90) pendown() fd(2) seth(-90) fd(25) seth(175) circle(-65,46) pencolor('black')penup() seth(180) fd(37) seth(-90) pendown() fd(40) circle(8,180) fd(25)penup() seth(0) fd(64) seth(-90) pendown() fd(28) circle(-8,180) fd(23)penup() fd(195) seth(30) fd(30) seth(210)pendown() # 右眼 fd(35) seth(-15) fd(35)penup() # 左眼 seth(180) fd(155) seth(30) fd(35) pendown() seth(-15) fd(35) seth(210) fd(35)penup() seth(0) fd(41) seth(-90) fd(30)pendown() # 嘴巴 seth(-65) fd(30) circle(5,165) seth(75) fd(30)penup() # 右胸 seth(-90) fd(97) seth(0) fd(19) pendown() circle(1,360)seth(-180) penup() fd(50) pendown() circle(1,360)penup() seth(-90) fd(39) seth(-180) fd(4) pendown() pencolor('red') pensize('6') circle(2,360) penup() seth(-19) fd(15) pendown() circle(2,360)penup() seth(2) fd(35) pendown() circle(2,360) penup() seth(0) fd(20) pendown() circle(2,360)
转载于:https://www.cnblogs.com/a23187/p/9928577.html
见过用turtle画表情包的吗!相关推荐
- python turtle画表情包
之前在GitHub上有看到有用turtle画玫瑰的,csdn上也有很多类似的代码,挑了一个画表情包代码留存.(因为是我平常最喜欢用的表情包) 使用海龟绘图可以编写重复执行简单动作的程序画出精细复杂的形 ...
- python turtle 绘图表情包_Python|turtle|画表情包
今天依然来熟悉一下python中的turtle模块,在这之前我们来看一条段子,也是我无意间get到的,胆小者勿看,因为太wu了.段子是:嫦娥的兔子生病了,于是嫦娥把兔子抱到月老那里.月老看了看兔子说: ...
- python turtle画表情包--牛bi
翻到了以前用python写的一个画牛逼的表情包,觉得还挺有趣的,自己也一直在用,今天发出来分享给大家,大家还可以在这个基础上自己魔改一下.首先看看效果: 下面是代码: from turtle impo ...
- python turtle画表情包--不可以色色
闲来无事,翻到以前的一个代码,将它魔改一下,不可以色色,先看看运行结果图: 代码如下,小伙伴们可以根据自己的需要进行更改: import turtle as tif __name__ == '__ma ...
- 使用python的turtle库画表情包
使用python的turtle库画表情包 话不多说,先上效果图,然后是代码 代码如下: import turtleturtle.penup() turtle.goto(-80,20) turtle.c ...
- lesson5画表情包
lesson5画表情包 1.课堂笔记 2.知识点 t.setheading(0) t.circle(200) #画一个半径200的圆 t.circle(a,b) #以a为半径画b段弧 #b为正,顺着当 ...
- 用python画微笑脸表情_python画表情包
python绘表情包 表情包有部分不完美,请读者自行修改! from turtle import* speed(1) pensize(3) setup(400,400) pu() goto(-100, ...
- php代码画表情包,canvas绘制表情包的示例代码
本文介绍了canvas绘制表情包的示例代码,分享给大家,具体如下: 绘制卡通笑脸 var canvas = document.getElementById('canvas'); var context ...
- 用python turtle绘制表情包_使用python的turtle函数绘制一个滑稽表情
Turtle库是Python语言中一个很流行的绘制图像的函数库,想象一个小乌龟,在一个横轴为x.纵轴为y的坐标系原点,(0,0)位置开始,它根据一组函数指令的控制,在这个平面坐标系中移动,从而在它爬行 ...
最新文章
- DNS RR字段含义
- 微信小程序-01-项目组成文件介绍(入门篇)
- u盘重置后计算机不显示了,u盘不显示盘符怎么办
- HDU - Reversi(dfs+水题)
- ldd /usr/bin/mysql_mysql客户端登录时报mysql: relocation error错误
- 垃圾回收:引用计数与分代收集机制
- python wx模块下choice列表框值怎么更新_wx python
- mysql索引的使用及优化方法_MySQL中索引和优化的用法总结
- 一些难懂的笑话,看看你懂得多少? [转帖]
- 索尼发布工业设备用SWIR图像传感器 采用5微米像素尺寸
- 今天你的网站被攻击了吗?
- c# 计算时间间隔的方法(转)
- Bex5登陆端口异常
- minikube 部署
- 目标:安全纯净互联网 软件升级报38期
- 大白话云计算,大数据,人工智能
- 资深行业专家王煜全的演讲:“移动互联网中的产品创新机会”
- 浅谈二叉搜索树(BST)
- c语言的真假,C语言丨还没搞懂逻辑运算符?一篇文章教你区分“真假”!
- 计算机科学选AP课,乱花渐欲迷人眼,AP课程如何选 之 理科
热门文章
- java IP转换为国家省份城市
- WPF 从 dotnet core 3 到 dotnet 5 的变更
- scratch传说之下素材_《故事新编》:在古老传说和寓言故事上丰富情节和赋予意义...
- 苹果怎么下第二个微信_封面苹果手机微信聊天记录怎么恢复?
- android百度地图定位跳转中心点,百度地图,拖动地图,定位marker固定在屏幕中心位置...
- 【JAVA Reference】Finalizer 剖析 (六)
- 15、JVM监控及诊断工具-GUI篇
- 2016年最新苹果开发者账号注册流程详解(公司账号篇)
- what this book can do for you ?
- 光模块第一节之模块的制作和测试环境搭建