Sunday, December 18, 2022

Python Turtle Graphics Drawing - Gopher

Python Turtle Graphics Drawing - Gopher

Youtube



Source code:

from turtle import *
setup(500,500)

BLU = '#74CEDD'
BRO = '#F7D3A2'
pensize(4)

up()
rt(57.8)
fd(181.3)
down()
pencolor('black')
fillcolor(BRO)
begin_fill()
lt(14.7)
fd(13.5)
rt(5.4)
fd(12.6)
rt(14.5)
fd(7.6)
rt(28.4)
fd(4.8)
rt(32.2)
fd(6.6)
rt(21.1)
fd(7.7)
rt(36.5)
fd(5.4)
rt(33)
fd(10.3)
rt(16.6)
fd(9.3)
lt(9.3)
fd(8.7)
rt(1.8)
fd(9.1)
rt(101.6)
fd(26.1)
end_fill()
up()
rt(104.2)
fd(25.9)
down()
lt(14.7)
fd(6.3)
rt(14.4)
fd(8.2)

up()
rt(115.4)
fd(181.5)
down()
begin_fill()
lt(11.4)
fd(8.8)
lt(19.7)
fd(10.1)
lt(11.6)
fd(11.5)
lt(2)
fd(6.6)
rt(15.4)
fd(6.4)
rt(20.8)
fd(4.9)
rt(40.9)
fd(4.7)
rt(26)
fd(3.5)
lt(58.7)
fd(1.8)
rt(49.9)
fd(4.6)
rt(30.2)
fd(4.7)
rt(19.8)
fd(6.2)
rt(28.6)
fd(11.3)
rt(10)
fd(17.7)
rt(70.8)
fd(35.5)
end_fill()

up()
rt(144.1)
fd(40.6)
down()
lt(58.1)
fd(6)
rt(9.1)
fd(5.2)
lt(17.7)
fd(3.1)
up()
lt(151.7)
fd(322.1)
down()
begin_fill()
rt(42.7)
fd(11)
rt(17.6)
fd(9.2)
rt(14.7)
fd(6.7)
rt(17.4)
fd(7.2)
rt(26.6)
fd(4.4)
rt(60.1)
fd(4.1)
lt(44.8)
fd(3.7)
rt(34.3)
fd(3.8)
rt(36.4)
fd(4.8)
rt(29.2)
fd(5.8)
rt(16.5)
fd(7.8)
lt(9.9)
fd(9.1)
rt(71.8)
fd(19.5)
end_fill()
up()
rt(125.6)
fd(27.8)
down()
rt(5.7)
fd(3.7)
lt(34.4)
fd(2.8)

up()
rt(175.2)
fd(277.6)
down()
begin_fill()
rt(1.4)
fd(9.7)
lt(16.7)
fd(9.8)
lt(18.3)
fd(10.3)
lt(16.7)
fd(6.1)
lt(28.2)
fd(4.7)
lt(49.2)
fd(5)
rt(21.7)
fd(4)
lt(27.1)
fd(4.5)
lt(47.7)
fd(4.8)
lt(19.9)
fd(5.9)
lt(16.1)
fd(9.2)
rt(20.1)
fd(8.2)
lt(74)
fd(18.5)
end_fill()
up()
lt(125.4)
fd(30.6)
down()
lt(10.8)
fd(2.6)
rt(21.5)
fd(3.3)

up()
rt(161.8)
fd(315.1)
down()
fillcolor(BLU)
begin_fill()
lt(14.1)
circle(-27.8,93.7)
lt(4.3)
circle(-30.6,54.2)
rt(3.5)
circle(-27,72.7)
rt(67.8)
fd(55.2)
end_fill()
up()
rt(153.7)
fd(16.7)
down()
fillcolor('black')
begin_fill()
lt(58.7)
circle(-10,175.2)

up()
rt(92.4)
fd(20)
down()
lt(180)
fd(20)
end_fill()

up()
rt(129.6)
fd(210.9)
down()
fillcolor(BLU)
begin_fill()
rt(37.4)
circle(30.3,86)
rt(3.9)
circle(27.8,56.1)
rt(0.2)
circle(25.3,79)
lt(64.4)
fd(55.3)
end_fill()

up()
lt(152.2)
fd(23.1)
down()
fillcolor('black')
begin_fill()
rt(64.8)
circle(9.4,180.7)
rt(3.4)
fd(3.8)
lt(27.8)
fd(5.7)
lt(67.6)
fd(15.3)
lt(70.2)
fd(5.8)
lt(22.4)
fd(2.9)
end_fill()

up()
rt(129.8)
fd(124.2)
down()
fillcolor(BLU)
begin_fill()
rt(20.7)
circle(-200.6,19.5)
rt(3.4)
circle(-90.3,55)
lt(0.5)
circle(-324.4,13.6)
lt(0.5)
circle(2316.4,3.4)
lt(0.8)
circle(-136.8,43.7)
rt(10)
circle(-160.4,80.8)
rt(7.9)
circle(-105.7,51.9)
lt(2.6)
circle(546.9,16)
rt(1.9)
circle(-168.1,36.9)
rt(17.1)
circle(-155.8,44.3)
end_fill()

up()
rt(89.2)
fd(120.6)
down()
fillcolor('white')
begin_fill()
rt(2.9)
fd(15.4)
lt(3.2)
fd(9.7)
rt(48.3)
fd(8.8)
rt(36.4)
fd(4.4)
rt(41.3)
fd(6.2)
rt(32.9)
fd(7.9)
rt(18.6)
fd(8.3)
rt(10.9)
fd(9.4)
rt(73.4)
fd(18.9)
end_fill()

up()
rt(14.5)
fd(16.1)
down()
begin_fill()
rt(82.3)
fd(13.8)
rt(0.8)
fd(10.9)
rt(47.5)
fd(5.9)
rt(22.9)
fd(4.4)
rt(42)
fd(5.1)
rt(26)
fd(5.6)
rt(34.6)
fd(11.3)
rt(11.8)
fd(12.4)
rt(71.3)
fd(11)
rt(32.5)
fd(6.7)
end_fill()

up()
lt(163.1)
fd(35.3)
down()
fillcolor(BRO)
begin_fill()
lt(36.7)
fd(7.7)
lt(37.3)
fd(8.3)
lt(4.8)
circle(13,96.3)
lt(18)
fd(4.4)
lt(31.3)
fd(8.2)
lt(12.2)
fd(4.9)
lt(3.4)
circle(-23.9,50.8)
rt(13.6)
circle(14.3,78.4)
lt(1.3)
circle(10.5,94.1)
rt(4)
circle(32.3,34.7)
lt(19.5)
fd(26.4)
end_fill()

up()
rt(107.1)
fd(12.9)
down()
fillcolor('black')
begin_fill()
rt(49.4)
circle(-21.7,62.5)
lt(4.8)
circle(-8.7,84.3)
rt(25.3)
circle(-28.4,37.6)
lt(0.5)
circle(-23.2,40.7)
rt(17.4)
circle(-8.2,74.8)
lt(5)
circle(-12,36.1)
end_fill()

up()
lt(41.9)
fd(66.5)
down()
fillcolor('white')
begin_fill()
rt(25)
circle(-42.1,77.8)
rt(2.4)
circle(-37.3,81)
rt(6.1)
circle(-45.7,57.6)
lt(3.1)
circle(-36.5,73.1)
rt(2.2)
circle(-37.2,65.4)
end_fill()

up()
lt(150)
fd(51.2)
down()
begin_fill()
rt(37)
circle(44.1,67.7)
lt(0.4)
circle(37.3,72.1)
lt(0.9)
circle(36.3,78.4)
rt(7.4)
circle(40,66.7)
lt(3.3)
circle(37.8,73.8)
end_fill()

up()
rt(165.6)
fd(50.9)
down()
fillcolor('black')
begin_fill()
lt(71.8)
circle(-10.6,99.1)
lt(3.9)
circle(-12.8,90.1)
lt(1.5)
circle(-10.5,85.9)
rt(0.8)
circle(-13.6,88.3)
end_fill()

up()
lt(131.9)
fd(83.8)
down()
begin_fill()
rt(47.1)
circle(11.2,91.4)
lt(2.6)
circle(13.8,88.5)
lt(3.2)
circle(11.3,76.2)
lt(3.5)
circle(13.6,93.4)
end_fill()

up()
rt(139.8)
fd(100.6)
down()
pensize(2)
color('white')
begin_fill()
lt(60.3)
circle(3.3)
end_fill()

up()
lt(127.1)
fd(99.3)
down()
begin_fill()
rt(95.1)
circle(3.4)
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 (...