基本图形绘制,及其探索。
from turtle import *
setup(1000,1000,50,50)
penup()
goto(50,50)
pendown()
pensize(2)
pencolor('black')
for iin range(6):
circle(100,30)
left(60)
circle(50,90)
left(90)
penup()
goto(50,-100)
pendown()
pensize(2)
pencolor('olive')
for iin range(6):
circle(40,120)
left(60)
circle(20,30)
left(60)
penup()
goto(150,-100)
pendown()
pensize(2)
pencolor('lime')
for iin range(12):
circle(40,60)
left(60)
circle(20,30)
left(60)
penup()
goto(250,-100)
pendown()
pensize(2)
pencolor('deepskyblue')
for iin range(4):
circle(40,30)
left(30)
circle(20,90)
left(120)
penup()
goto(-150,-100)
pendown()
pensize(2)
pencolor('lime')
for iin range(2):
forward(40)
left(60)
forward(20)
left(120)
penup()
goto(-250,-100)
pendown()
pensize(2)
pencolor('orchid')
for iin range(4):
forward(40)
left(45)
forward(20)
left(45)
penup()
goto(-350,-100)
pendown()
pensize(2)
pencolor('thistle')
for iin range(2):
forward(40)
left(90)
forward(20)
left(90)
penup()
goto(-450,-100)
pendown()
pensize(2)
pencolor('red')
for iin range(3):
forward(60)
left(120)
penup()
goto(-400,100)
pendown()
pensize(2)
pencolor('red')
color('red')
begin_fill()
circle(60)
end_fill()
penup()
goto(-200,100)
pendown()
pensize(2)
color('aqua')
begin_fill()
circle(60)
end_fill()
penup()
goto(-230,190)
pensize(5)
pendown()
color('black')
begin_fill()
circle(15)
end_fill
penup()
goto(-170,190)
pensize(5)
pendown()
color('black')
begin_fill()
circle(15)
end_fill
penup()
goto(-230,130)
pensize(5)
pendown()
color('black')
begin_fill()
seth(-60)
circle(30,120)
end_fill
penup()
goto(-180,160)
pensize(5)
pendown()
color('black')
begin_fill()
circle(2)
end_fill
penup()
goto(-220,160)
pensize(5)
pendown()
color('black')
begin_fill()
circle(2)
end_fill
penup()
goto(400,400)
done()
下方为基本图形绘制
基本图形的探索
网友评论