效果图
代码
// An highlighted block
#Ge号
import turtle,time
turtle.bgcolor("black")
turtle.pencolor("black")#笔颜色
turtle.pensize(3)#字号
turtle.speed(4)#速度
turtle.setup(0.99,0.9,0.8,0.8)#画布大小
#三体图左
turtle.pensize(2)
turtle.penup()
turtle.goto(-500,280)
turtle.pendown()
turtle.fillcolor("white")
turtle.begin_fill()
turtle.pencolor("white")
turtle.right(120)
turtle.forward(30)
turtle.right(120)
turtle.forward(30)
turtle.right(120)
turtle.forward(30)
turtle.fillcolor("white")
turtle.end_fill()
#三体图中
turtle.penup()
turtle.goto(-435,240)
turtle.pendown()
turtle.fillcolor("white")
turtle.begin_fill()
turtle.pencolor("white")
turtle.right(240)
turtle.forward(80)
turtle.right(240)
turtle.forward(80)
turtle.right(240)
turtle.forward(80)
turtle.end_fill()
turtle.penup()
turtle.goto(-485,290)
turtle.pendown()
turtle.pencolor("black")
turtle.forward(20)
turtle.penup()
turtle.goto(-502,260)
turtle.pendown()
turtle.pencolor("black")
turtle.right(60)
turtle.forward(22)
turtle.seth(0)
turtle.penup()
turtle.goto(-448,260)
turtle.pendown()
turtle.pencolor("black")
turtle.right(120)
turtle.forward(22)
turtle.seth(0)
#三体图右
turtle.penup()
turtle.goto(-420,280)
turtle.pendown()
turtle.fillcolor("white")
turtle.begin_fill()
turtle.pencolor("white")
turtle.right(120)
turtle.forward(30)
turtle.right(120)
turtle.forward(30)
turtle.right(120)
turtle.forward(30)
turtle.end_fill()
#三体图下
turtle.penup()
turtle.goto(-460,235)
turtle.pendown()
turtle.fillcolor("white")
turtle.begin_fill()
turtle.pencolor("white")
turtle.right(120)
turtle.forward(30)
turtle.right(120)
turtle.forward(30)
turtle.right(120)
turtle.forward(30)
turtle.end_fill()
#三体字
turtle.penup()
turtle.goto(-490,256)
turtle.pendown()
turtle.pencolor("black")
turtle.write('三体',font=("SimHei", 12, "bold"))
#地球
turtle.pensize(3)
turtle.penup()
turtle.goto(500,-300)
turtle.pendown()
turtle.fillcolor("Navy")
turtle.begin_fill()
turtle.pencolor("Navy")
turtle.circle(60)
turtle.end_fill()
#地球版图
turtle.penup()
turtle.goto(470,-190)
turtle.pendown()
turtle.fillcolor("SeaGreen")
turtle.begin_fill()
turtle.pencolor("Green")
turtle.right(10)
turtle.forward(35)
turtle.circle(10,40)
turtle.right(-10)
turtle.forward(10)
turtle.right(60)
turtle.forward(10)
turtle.end_fill()
turtle.seth(0)
turtle.penup()
turtle.goto(525,-200)
turtle.pendown()
turtle.fillcolor("Green")
turtle.begin_fill()
turtle.pencolor("Green")
turtle.right(30)
turtle.forward(20)
turtle.right(10)
turtle.forward(3)
turtle.right(70)
turtle.forward(10)
turtle.circle(20,80)
turtle.end_fill()
turtle.seth(0)
turtle.penup()
turtle.goto(470,-210)
turtle.pendown()
turtle.fillcolor("SeaGreen")
turtle.begin_fill()
turtle.pencolor("Green")
turtle.right(30)
turtle.forward(15)
turtle.right(10)
turtle.forward(3)
turtle.right(130)
turtle.forward(15)
turtle.circle(20,40)
turtle.right(20)
turtle.forward(15)
turtle.end_fill()
turtle.seth(0)
turtle.penup()
turtle.goto(480,-280)
turtle.pendown()
turtle.fillcolor("black")
turtle.begin_fill()
turtle.pencolor("black")
turtle.right(45)
turtle.circle(10, steps=3)
turtle.end_fill()
turtle.seth(0)
turtle.penup()
turtle.goto(480,-280)
turtle.pendown()
turtle.fillcolor("black")
turtle.begin_fill()
turtle.pencolor("black")
turtle.right(45)
turtle.circle(20, steps=3)
turtle.end_fill()
turtle.seth(0)
turtle.penup()
turtle.goto(480,-280)
turtle.pendown()
turtle.fillcolor("black")
turtle.begin_fill()
turtle.pencolor("black")
turtle.right(45)
turtle.circle(30, steps=3)
turtle.end_fill()
turtle.seth(0)
#主火箭
turtle.penup()
turtle.goto(0, (-250))
turtle.pendown()
turtle.fillcolor("white")
turtle.begin_fill()
turtle.pencolor("Blue")
turtle.forward(44)
turtle.right(90)
turtle.forward(10)
turtle.right(90)
turtle.forward(44)
turtle.right(90)
turtle.forward(400)
turtle.right(14)
turtle.forward(80)
#逃逸塔
turtle.right(-14)
turtle.forward(50)
turtle.right(-90)
turtle.forward(-5)
turtle.right(-90)
turtle.forward(50)
turtle.right(-14)
turtle.forward(80)
turtle.right(14)
turtle.forward(390)
turtle.penup()
turtle.right(270)
turtle.pendown()
turtle.end_fill()
#右侧翼
turtle.fillcolor("white")
turtle.begin_fill()
turtle.forward(3)
turtle.right(-90)
turtle.forward(100)
turtle.right(10)
turtle.forward(60)
turtle.right(160)
turtle.forward(60)
turtle.right(10)
turtle.forward(100)
turtle.right(90)
turtle.forward(21)
turtle.right(-90)
turtle.forward(10)
turtle.right(-90)
turtle.forward(21)
turtle.right(-90)
turtle.forward(10)
turtle.end_fill()
#左侧翼
turtle.penup()
turtle.goto(-24, (-250))
turtle.pendown()
turtle.fillcolor("white")
turtle.begin_fill()
turtle.right(90)
turtle.right(-90)
turtle.forward(100)
turtle.right(10)
turtle.forward(60)
turtle.right(160)
turtle.forward(60)
turtle.right(10)
turtle.forward(100)
turtle.right(90)
turtle.forward(21)
turtle.right(-90)
turtle.forward(10)
turtle.right(-90)
turtle.forward(21)
turtle.right(-90)
turtle.forward(10)
turtle.right(90)
turtle.forward(3)
turtle.end_fill()
#描线
turtle.pencolor("Blue")
turtle.penup()
turtle.goto(20, (218))
turtle.pendown()
turtle.forward(5)
#描线
turtle.penup()
turtle.goto(0, (140))
turtle.pendown()
turtle.forward(44)
#描线
turtle.penup()
turtle.goto(-23, (-150))
turtle.pendown()
turtle.forward(20)
#描线
turtle.penup()
turtle.goto(48, (-150))
turtle.pendown()
turtle.forward(20)
#主火箭喷射
turtle.penup()
turtle.goto(20, (-260))
turtle.pendown()
turtle.pencolor("Brown")
turtle.fillcolor("Brown")
turtle.begin_fill()
turtle.left(220)
turtle.forward(25)
turtle.left(140)
turtle.forward(40)
turtle.left(140)
turtle.forward(25)
turtle.end_fill()
#左侧火箭喷射
turtle.penup()
turtle.goto(-18, (-260))
turtle.pendown()
turtle.pencolor("Brown")
turtle.fillcolor("Brown")
turtle.begin_fill()
turtle.left(80)
turtle.forward(15)
turtle.left(140)
turtle.forward(30)
turtle.left(140)
turtle.forward(15)
turtle.end_fill()
#右侧火箭喷射
turtle.penup()
turtle.goto(53, (-260))
turtle.pendown()
turtle.pencolor("Brown")
turtle.fillcolor("Brown")
turtle.begin_fill()
turtle.left(80)
turtle.forward(15)
turtle.left(140)
turtle.forward(30)
turtle.left(140)
turtle.forward(15)
turtle.end_fill()
#主火焰1
turtle.penup()
turtle.goto(20, (-280))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(15)
turtle.left(90)
turtle.forward(15)
turtle.left(90)
turtle.forward(15)
turtle.left(90)
turtle.forward(15)
turtle.end_fill()
#主火焰2
turtle.penup()
turtle.goto(20, (-310))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(10)
turtle.left(90)
turtle.forward(10)
turtle.left(90)
turtle.forward(10)
turtle.left(90)
turtle.forward(10)
turtle.end_fill()
#主火焰3
turtle.penup()
turtle.goto(20, (-330))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(5)
turtle.left(90)
turtle.forward(5)
turtle.left(90)
turtle.forward(5)
turtle.left(90)
turtle.forward(5)
turtle.end_fill()
#左火焰1
turtle.penup()
turtle.goto(-15, (-278))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(14)
turtle.left(90)
turtle.forward(14)
turtle.left(90)
turtle.forward(14)
turtle.left(90)
turtle.forward(14)
turtle.end_fill()
#左火焰2
turtle.penup()
turtle.goto(-15, (-305))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(8)
turtle.left(90)
turtle.forward(8)
turtle.left(90)
turtle.forward(8)
turtle.left(90)
turtle.forward(8)
turtle.end_fill()
#左火焰3
turtle.penup()
turtle.goto(-15, (-327))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(4)
turtle.left(90)
turtle.forward(4)
turtle.left(90)
turtle.forward(4)
turtle.left(90)
turtle.forward(4)
turtle.end_fill()
#右火焰1
turtle.penup()
turtle.goto(56, (-278))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(14)
turtle.left(90)
turtle.forward(14)
turtle.left(90)
turtle.forward(14)
turtle.left(90)
turtle.forward(14)
turtle.end_fill()
#右火焰2
turtle.penup()
turtle.goto(56, (-305))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(8)
turtle.left(90)
turtle.forward(8)
turtle.left(90)
turtle.forward(8)
turtle.left(90)
turtle.forward(8)
turtle.end_fill()
#右火焰3
turtle.penup()
turtle.goto(56, (-327))
turtle.pendown()
turtle.fillcolor("Gold")
turtle.begin_fill()
turtle.pencolor("Gold")
turtle.left(90)
turtle.forward(4)
turtle.left(90)
turtle.forward(4)
turtle.left(90)
turtle.forward(4)
turtle.left(90)
turtle.forward(4)
turtle.end_fill()
#歌尔LOGO
turtle.penup()
turtle.goto(6,130)
turtle.pendown()
turtle.fillcolor("LawnGreen")
turtle.begin_fill()
turtle.pencolor("white")
turtle.right(140)
turtle.forward(34)
turtle.right(90)
turtle.forward(22)
turtle.right(90)
turtle.forward(34)
turtle.right(90)
turtle.forward(22)
turtle.penup()
turtle.goto(13,110)
turtle.pendown()
turtle.write('Ge',font=("YAHEI", 15, "bold"))
turtle.end_fill()
#中国歌尔
turtle.penup()
turtle.goto(12,70)
turtle.pencolor("black")
turtle.pendown()
turtle.write('中',font=("YAHEI", 18, "bold"))
turtle.penup()
turtle.goto(12,30)
turtle.pendown()
turtle.write('国',font=("YAHEI", 18, "bold"))
turtle.penup()
turtle.goto(12,-10)
turtle.pendown()
turtle.write('歌',font=("YAHEI", 18, "bold"))
turtle.penup()
turtle.goto(12,-50)
turtle.pendown()
turtle.write('尔',font=("YAHEI", 18, "bold"))
turtle.penup()
turtle.goto(20,-80)
turtle.pendown()
turtle.write('G',font=("YAHEI", 10, "bold"))
turtle.penup()
turtle.goto(20,-95)
turtle.pendown()
turtle.write('e',font=("YAHEI", 10, "bold"))
turtle.penup()
turtle.goto(20,-110)
turtle.pendown()
turtle.write('|',font=("YAHEI", 10, "bold"))
turtle.penup()
turtle.goto(20,-125)
turtle.pendown()
turtle.write('2',font=("YAHEI", 10, "bold"))
turtle.penup()
turtle.goto(20,-140)
turtle.pendown()
turtle.write('0',font=("YAHEI", 10, "bold"))
#歌尔介绍边框
turtle.penup()
turtle.goto(260,300)
turtle.pendown()
turtle.fillcolor("black")
turtle.begin_fill()
turtle.pencolor("white")
turtle.right(90)
turtle.forward(350)
turtle.right(90)
turtle.forward(180)
turtle.right(90)
turtle.forward(350)
turtle.right(90)
turtle.forward(180)
turtle.end_fill()
#歌尔介绍
turtle.hideturtle()#隐藏画笔
turtle.penup()
turtle.goto(290,270)
turtle.pencolor("white")
turtle.pendown()
turtle.write('Ge—20:为拦截三体舰队自主设计制造',font=("YAHEI", 12, "bold"))
turtle.penup()
turtle.goto(290,240)
turtle.pencolor("white")
turtle.pendown()
turtle.write('Ge技术:光学 声学 无线 天线',font=("YAHEI", 12, "bold"))
turtle.penup()
turtle.goto(290,210)
turtle.pencolor("white")
turtle.pendown()
turtle.write('Ge能力:系统集成 垂直整合 精密制造',font=("YAHEI", 12, "bold"))
turtle.penup()
turtle.goto(290,180)
turtle.pencolor("white")
turtle.pendown()
turtle.write('Ge使命:科技创造健康·美',font=("YAHEI", 12, "bold"))
turtle.penup()
turtle.goto(290,150)
turtle.pencolor("white")
turtle.pendown()
turtle.write('Ge口号:一起创造 一起分享 一起成长',font=("YAHEI", 12, "bold"))
turtle.done()