Sunday, December 11, 2022

Python Turtle Graphics Drawing - Python Logo

Python Turtle Graphics Drawing - Python Logo

Youtube


Source code:

from turtle import *

speed('slowest')
pensize(2)
shape('turtle')
setup(500,500)
bgcolor('#E6E6E6')

pencolor('#174163')
fillcolor('#306998')
up()
lt(121.83)
fd(170.66)
down()

begin_fill()
rt(31.83)
fd(51)
rt(11.76)
circle(-36.87,70.3)
lt(4.13)
circle(-271.31,25.12)
rt(12.3)
circle(-60.97,39.31)
rt(25.35)
fd(92)
lt(9.17)
circle(-46.58,99.2)
lt(0.02)
fd(87)
rt(1.15)
circle(52.94,90.15)
lt(1.01)
fd(44)
rt(90)
fd(37)
rt(6.43)
circle(-50.8,67.01)
lt(2.46)
circle(-165.66,38.05)
rt(1.35)
circle(-58.31,68.98)
rt(0.65)
fd(125)
lt(90)
fd(10)
lt(90)
fd(90)
end_fill()

fillcolor('white')
up()
rt(144.94)
fd(69.63)
down()
lt(54.94)
begin_fill()
circle(17.5)
end_fill()

pencolor('#65551C')
fillcolor('#FFD43B')
up()
rt(110.22)
fd(141.74)
down()
begin_fill()
lt(20.22)
fd(41)
rt(11.04)
circle(-41.77,67.92)
lt(10.44)
circle(-158.41,42.96)
lt(9.23)
circle(-44.61,73.13)
rt(4.62)
fd(134)
lt(90)
fd(10)
lt(90)
fd(88)
rt(90)
fd(38)
rt(1.65)
circle(-38.32,58.11)
rt(2.2)
circle(-146.74,56.1)
lt(1.43)
circle(-38.15,60.22)
rt(3.17)
fd(96)
rt(9.27)
circle(-45.63,74.39)
rt(6.34)
fd(94)
lt(3.98)
circle(63.4,68.35)
lt(17.67)
fd(54)
end_fill()
fillcolor('white')
up()
lt(171.73)
fd(236.46)
down()
rt(171.73)
begin_fill()
circle(16)
end_fill()

pencolor('#A0A0A0')
fillcolor('#BEBEBE')
up()
lt(141.17)
fd(105.26)
down()
begin_fill()
lt(126.75)
fd(55.04)
rt(6.45)
fd(40.45)
rt(12.03)
fd(25.63)
rt(18.1)
fd(6.4)
rt(51.34)
fd(5)
rt(51.34)
fd(6.4)
rt(18.1)
fd(25.63)
rt(12.03)
fd(40.45)
rt(6.45)
fd(55.04)
rt(5.26)
fd(54.08)
rt(4.95)
fd(35.36)
rt(13.24)
fd(24.7)
rt(23.63)
fd(5.66)
rt(45)
fd(4)
rt(45)
fd(5.66)
rt(23.63)
fd(24.7)
rt(13.24)
fd(35.36)
rt(3.89)
fd(54.15)
end_fill()
hideturtle()
done()

No comments:

Post a Comment

Python Turtle Graphics Drawing - Gigabyte

 Python Turtle Graphics Drawing - Gigabyte Youtube Source code: from turtle import * setup ( 600 , 600 ) color ( '#2D68AE' ) up (...