Python Turtle Graphics Drawing - Github Logo
Source code:
from turtle import *
setup(500,500)
up()
goto(0,25)
lt(9.61)
fd(16.71)
down()
begin_fill()
rt(7.51)
circle(47.77,34.6)
lt(2.42)
circle(34.94,43.9)
rt(3.54)
circle(52.84,24.17)
lt(2.5)
circle(32.28,27.43)
rt(62.44)
circle(32.88,42.04)
lt(61.25)
circle(20.28,23.32)
lt(0.28)
circle(62.13,16.79)
rt(49.84)
circle(85.57,29.96)
rt(47.33)
circle(91.67,11.61)
lt(7.42)
circle(32.07,14.14)
lt(66.62)
circle(37.06,20.33)
lt(1.3)
circle(31.16,20.39)
rt(61.04)
circle(36.25,46.08)
rt(5.8)
circle(41.76,42.48)
lt(2.35)
circle(35.93,30.13)
lt(0.7)
circle(87.34,9.21)
rt(128.5)
circle(18.17,41.72)
rt(60.65)
circle(-21.53,52.26)
rt(4.41)
circle(-17.78,32.96)
lt(8.54)
circle(30.33,19.25)
lt(4.62)
circle(12.71,45.5)
lt(0.19)
circle(1.31,135.2)
rt(25.38)
circle(10.91,32.29)
rt(18.51)
circle(-29.42,28.11)
lt(1.92)
circle(18,63.42)
rt(2.11)
circle(41.48,20.29)
rt(103.62)
fd(16.31)
lt(4.19)
circle(-4.45,127.22)
lt(14.51)
circle(-86.74,20.7)
rt(0.29)
circle(-91.15,22.1)
lt(0.34)
circle(-86.48,55.38)
lt(0.35)
circle(-90.49,47.21)
lt(0.38)
circle(-86.05,33.74)
rt(1.49)
circle(-97.67,28.82)
rt(1.53)
circle(-89.23,76.59)
rt(0.91)
circle(-93.05,32.62)
lt(15)
circle(-5.67,55.71)
lt(2.64)
circle(-4.45,82.54)
lt(9.42)
fd(26.93)
lt(5.43)
circle(22.32,37.03)
end_fill()
#G
up()
lt(81.32)
fd(158.78)
down()
begin_fill()
lt(146.22)
fd(27)
rt(90)
fd(39.5)
rt(59.65)
circle(-45.3,46.4)
lt(1.84)
circle(-26.79,52.95)
rt(3.86)
circle(-68.82,37.96)
rt(2.43)
circle(-26.57,63.62)
lt(2.25)
circle(-61.38,16.11)
lt(2.44)
circle(-30.31,21.54)
rt(74.64)
fd(14.19)
rt(98.86)
circle(39.54,24.82)
rt(4.54)
circle(17.57,53.39)
lt(12.22)
circle(41.04,51.22)
lt(9.11)
circle(15.01,61.36)
rt(5.11)
circle(34.99,11.64)
lt(77.39)
fd(14.85)
lt(90)
fd(10.77)
rt(90)
fd(14.56)
end_fill()
#i
up()
rt(78.53)
fd(35.2)
down()
begin_fill()
rt(11.47)
fd(16.5)
rt(90)
fd(51)
rt(90)
fd(16.5)
rt(90)
fd(51)
end_fill()
up()
rt(64.8)
fd(9.39)
down()
begin_fill()
rt(25.2)
circle(9)
end_fill()
#t
up()
lt(26.03)
fd(23.93)
down()
begin_fill()
rt(26.03)
fd(15.5)
rt(90)
fd(14.5)
lt(90)
fd(11.5)
rt(90)
fd(13.5)
rt(90)
fd(11.5)
lt(90)
fd(20)
rt(2.23)
circle(5.47,90.39)
rt(4.9)
circle(15.59,24.38)
rt(107.63)
fd(12.03)
rt(69.07)
circle(-26.88,41.86)
rt(5.24)
circle(-14.58,65.75)
lt(1.93)
fd(23.5)
lt(90)
fd(8.5)
rt(90)
fd(11)
rt(76.76)
fd(8.73)
lt(76.76)
fd(15)
end_fill()
#h
up()
rt(75.17)
fd(35.17)
down()
begin_fill()
rt(14.83)
fd(16)
rt(90)
fd(28)
lt(90)
fd(21.5)
lt(90)
fd(28)
rt(90)
fd(16)
rt(90)
fd(74.5)
rt(90)
fd(16)
rt(90)
fd(32)
lt(90)
fd(21.5)
lt(90)
fd(32)
rt(90)
fd(16)
rt(90)
fd(74.5)
end_fill()
#u
up()
rt(111.23)
fd(64.9)
down()
begin_fill()
lt(21.23)
fd(16)
rt(90)
fd(34)
lt(4.25)
circle(6.68,40.78)
lt(11.42)
circle(7.04,41.31)
rt(3.38)
circle(17.42,27.71)
lt(57.91)
fd(36.75)
rt(90)
fd(16)
rt(90)
fd(51)
rt(90)
fd(10.75)
rt(77.91)
fd(3.58)
lt(111.68)
circle(-28.63,21.51)
lt(0.36)
circle(-33.82,25.24)
rt(1.9)
circle(-13.84,67.91)
lt(4.15)
circle(-19.55,15.02)
lt(3.3)
fd(35)
end_fill()
#b
up()
rt(125.35)
fd(81.23)
down()
begin_fill()
rt(75.2)
fd(4.27)
rt(69.44)
fd(10.75)
rt(90)
fd(74.5)
rt(90)
fd(16)
rt(90)
fd(25.5)
lt(120.83)
circle(-24.74,33.15)
lt(4.76)
circle(-16.55,44.61)
lt(1.03)
circle(-16.2,32.53)
lt(0.82)
circle(-43.56,18.41)
lt(2.57)
circle(-52.14,16.79)
lt(3.42)
circle(-16.6,55.5)
rt(5.46)
circle(-28.27,33.61)
lt(1.49)
circle(-19.75,26.46)
end_fill()
color('white')
up()
rt(54.46)
fd(33.19)
down()
begin_fill()
rt(55)
circle(-18.59,23.08)
lt(2.72)
circle(-8.66,36.87)
rt(5.38)
circle(-7.78,38.49)
rt(3.6)
circle(-35.95,28.49)
lt(5.86)
circle(-5.36,59.48)
rt(4.88)
circle(-13.73,29.19)
lt(2.89)
circle(-14.13,23.49)
end_fill()
hideturtle()
done()
No comments:
Post a Comment