Python Turtle Graphics Drawing - Adobe CC Logo
Source code:
from turtle import *
red='#DA1F26'
setup(640, 640)
bgcolor('black')
color(red)
up()
fd(160)
down()
lt(90)
begin_fill()
circle(118)
end_fill()
lt(90)
up()
fd(22)
down()
rt(90)
begin_fill()
color('white')
circle(118-22)
end_fill()
lt(90)
up()
fd(22)
down()
rt(90)
begin_fill()
color(red)
circle(118-44)
end_fill()
up()
lt(90)
fd(76)
lt(90)
fd(18)
lt(180)
down()
begin_fill()
circle(100)
end_fill()
lt(90)
up()
fd(100)
rt(180-45)
fd(11)
lt(90)
color('white')
down()
begin_fill()
fd(3)
circle(11,180)
fd(62)
lt(90)
fd(22)
lt(90)
fd(59)
end_fill()
up()
lt(90)
fd(11)
lt(135)
fd(102)
lt(90)
fd(18)
lt(180)
fd(74)
down()
begin_fill()
fd(22)
lt(90)
circle(96,-45)
lt(90)
fd(22)
rt(90)
circle(74,45)
end_fill()
up()
lt(90)
fd(74)
lt(90)
fd(102)
lt(90)
fd(18)
fd(56)
fd(22)
lt(90)
down()
begin_fill()
circle(78,-(180+45))
bk(45)
circle(11,-180)
lt(180)
fd(45)
circle(56,180+45+10)
rt(53)
fd(31)
end_fill()
up()
hideturtle()
done()
No comments:
Post a Comment