1. 程式人生 > >用turtle畫的onepiece標誌

用turtle畫的onepiece標誌

這不是安和白的第一次合作了o(* ̄▽ ̄*)ブ,什麼家罩餅??智商和時間有限,只能選一張簡潔的圖,選別的怕是要畫到入土。

點選開始偉大航路

心有多大,屏有多大,畫就有多大

import turtle as t
t.setup(width=1.0,height=1.0)
t.screensize(1500,1500,"white")
t.hideturtle()
t.colormode(255)
t.pensize(5)
t.speed(10)


#======骨
t.color("black","white")
t.pu()
t.goto(-175,242)
t.pd()
t.begin_fill()
t.seth(
321) t.fd(600) t.seth(51) t.circle(-30,270) t.seth(321) t.circle(-30,270) t.seth(141) t.fd(750) t.seth(231) t.circle(-30,270) t.seth(141) t.circle(-30,270) t.seth(321) t.fd(200) t.end_fill() t.pu() t.goto(175,242) t.pd() t.begin_fill() t.seth(218) t.fd(600) t.seth(128) t.circle(30,270) t.seth(218) t.circle(30,270) t.seth(
38) t.fd(750) t.seth(308) t.circle(30,270) t.seth(38) t.circle(30,270) t.seth(218) t.fd(200) t.end_fill() #=======帽檐 t.seth(0) t.pu() t.goto(-300,150) t.color("black",(255,193,37)) t.pd() t.begin_fill() t.forward(600) t.circle(10,180) t.forward(600) t.circle(10,180) t.end_fill() #========上半臉 t.color("black",(255,255,255)) t.begin_fill() t.pu() t.forward(
100) t.seth(275) t.pd() t.circle(200,170) t.end_fill() #========帽子 t.fillcolor(255,193,37) t.seth(90) t.pu() t.fd(20) t.pd() t.begin_fill() t.seth(95) t.circle(200,170) t.end_fill() #=======紅絲帶 t.fillcolor(230,0,0) t.pu() t.right(180) t.pd() t.begin_fill() t.circle(-200,15) t.seth(0) t.fd(375) t.end_fill() t.pu() t.goto(-198,170) t.seth(0) t.pd() t.begin_fill() t.fd(398) t.seth(95) t.circle(198,15) t.seth(180) t.fd(375) t.end_fill() #=======眼睛 t.pu() t.goto(-80,135) t.pd() t.fillcolor("black") t.begin_fill() t.circle(50) t.end_fill() t.pu() t.goto(80,135) t.pd() t.fillcolor("black") t.begin_fill() t.circle(50) t.end_fill() #========鼻子 t.pu() t.goto(0,30) t.pd() t.begin_fill() t.circle(20) t.end_fill() #========下巴 t.pu() t.goto(-120,8) t.pd() t.seth(244) t.fillcolor("white") t.begin_fill() t.circle(400,10) t.circle(150,212) t.circle(400,10) t.seth(217) t.circle(-200,73) t.end_fill() #=======牙 t.pu() t.goto(-136,-38) t.pd() t.seth(323) t.circle(225,73) t.pu() t.goto(-146,-88) t.pd() t.seth(325) t.circle(255,70) #=======齒 t.pu() t.goto(-60,-23) t.pd() t.goto(-80,-118) t.pu() t.goto(0,-32) t.pd() t.goto(0,-130) t.pu() t.goto(60,-23) t.pd() t.goto(80,-118) t.hideturtle() t.screensize(1500,1500,"black") t.exitonclick()