python 无脸男

  这是我们组画的无脸男
在画图过程中我们组对无脸男的脸型有不同的想法。于是产生了下面的视频O(∩_∩)O
欢迎大家观看!
https://www.bilibili.com/video/av35869775
#
胖胖版无脸男 import turtle import time turtle.screensize(800,800, "brown") turtle.hideturtle() turtle.speed(10) turtle.color("white","white") turtle.pu() turtle.forward(330) turtle.left(90) turtle.pd() turtle.begin_fill() turtle.circle(330) turtle.end_fill() turtle.circle(330,225) turtle.color("black","black") turtle.setheading(75) turtle.pensize(5) turtle.begin_fill() turtle.fd(300) turtle.left(180) a = 660*(2**0.5) - 300*((6**0.5)-(2**0.5)) r = a / ((6**0.5)+(2**0.5)) turtle.circle(r,-150) turtle.left(180) turtle.fd(300) turtle.right(60) turtle.left(180) turtle.circle(330,-90) turtle.end_fill() turtle.circle(330,15) turtle.begin_fill() turtle.right(90) turtle.circle(40) turtle.end_fill() turtle.left (90) turtle.circle(330,60) turtle.begin_fill() turtle.left (90) turtle.circle(40) turtle.end_fill() turtle.color('white','pink') turtle.pu() turtle.fd(330) turtle.setheading(90) #画圆脸 turtle.fd(125) turtle.pd() turtle.pensize(40) turtle.begin_fill() turtle.left(90) turtle.circle(120) turtle.end_fill() turtle.speed(50) turtle.pensize(5) turtle.circle(120,30) turtle.color('white','white') turtle.begin_fill() turtle.left(180) turtle.circle(-120,60) turtle.setheading(-90) turtle.fd(120*3**0.5) turtle.right(60) turtle.circle(-120,60) turtle.setheading(90) turtle.fd(120*3**0.5) turtle.end_fill() turtle.penup() turtle.left(120) turtle.circle(120,45) turtle.pd() turtle.begin_fill() turtle.circle(120,30) turtle.setheading(0) turtle.fd(60*(2**0.5+6**0.5)) turtle.left(75) turtle.circle(120,30) turtle.setheading(180) turtle.fd(60*(2**0.5+6**0.5)) turtle.end_fill() turtle.speed(10) turtle.penup() turtle.left(75) turtle.pensize(10) turtle.circle(120,90) turtle.pd() turtle.color('black','black') turtle.circle(120,30) turtle.penup() turtle.circle(120,85) turtle.setheading(180) turtle.fd(50) turtle.pd() turtle.begin_fill() turtle.circle(20) turtle.end_fill() turtle.penup() turtle.fd(140) turtle.pd() turtle.begin_fill() turtle.circle(20) turtle.end_fill() #瘦瘦版无脸男 import turtle import time turtle.speed(10) turtle.screensize(800,800, "brown") turtle.color("white","white") turtle.pu() turtle.forward(330) turtle.left(90) turtle.pd() '大圆' turtle.begin_fill() turtle.circle(330) turtle.end_fill() turtle.circle(330,225) '黑色身子' turtle.color("black","black") turtle.setheading(75) turtle.pensize(5) turtle.begin_fill() turtle.fd(300) turtle.left(180) a = 660*(2**0.5) - 300*((6**0.5)-(2**0.5)) r = a / ((6**0.5)+(2**0.5)) turtle.circle(r,-150) turtle.left(180) turtle.fd(300) turtle.right(60) turtle.left(180) turtle.circle(330,-90) turtle.end_fill() turtle.circle(330,15) turtle.begin_fill() turtle.right(90) '圆手' turtle.circle(40) turtle.end_fill() turtle.left (90) turtle.circle(330,60) turtle.begin_fill() turtle.left (90) turtle.circle(40) turtle.end_fill() turtle.color('white','pink') turtle.pu() turtle.fd(330) turtle.setheading(-90) #画圆脸 '''turtle.fd(125) turtle.pd() turtle.pensize(40) turtle.begin_fill() turtle.left(90) turtle.circle(120) turtle.end_fill() turtle.left(90) turtle.pensize(80) turtle.fd(240)''' #尖脸 turtle.fd(110) turtle.left(90) turtle.pd() turtle.pensize(105) a=1 for i in range(120): if 0<=i<30 or 60<=i<90: a=a+0.2 turtle.lt(3) turtle.fd(a) else: a=a-0.2 turtle.lt(3) turtle.fd(a) turtle.setheading(90) turtle.fd(100) turtle.pensize(20) turtle.setheading(-90) turtle.fd(80) turtle.left(90) '粉色胎记' turtle.color('pink','pink') turtle.begin_fill() a=1 for i in range(180): if 0<=i<45 or 90<=i<135: a=a+0.07 turtle.lt(2) turtle.fd(a) else: a=a-0.07 turtle.lt(2) turtle.fd(a) turtle.end_fill() turtle.color('white') turtle.setheading(90) turtle.pensize(50) turtle.fd(165) turtle.pensize(1) turtle.left(130) turtle.pu() turtle.fd(110) turtle.pd() turtle.setheading(0) turtle.fd(20) turtle.pensize(80) turtle.fd(120) turtle.pensize(9) turtle.pencolor('black') turtle.right(180) turtle.pu() turtle.fd(10) turtle.right(90) turtle.fd(10) turtle.left(90) turtle.pd() turtle.color('black','black') '眼睛' turtle.begin_fill() turtle.circle(14) turtle.pu() turtle.fd(85) turtle.pd() turtle.circle(14) turtle.pd() turtle.end_fill() turtle.left(90) turtle.pu() turtle.fd(130) turtle.left(50) turtle.fd(20) turtle.pd() '嘴巴' for i in range(30): if 0<=i<15 : a=a+0.05 turtle.lt(2) turtle.fd(a) else: a=a-0.05 turtle.left(2) turtle.fd(a) turtle.fd(8)

 

转载于:https://www.cnblogs.com/simbaa/p/9949586.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值