Python Turtle Graphics Drawing - Mixue Logo
Source code:
from turtle import *
setup(650,650)
bgcolor('#E40057')
color('black')
up()
rt(171.4)
fd(107.2)
down()
begin_fill()
rt(127.6)
circle(-54.9,29.1)
lt(29)
circle(-55.2,28.9)
lt(99.1)
circle(-97.9,84)
lt(0.4)
circle(-115.6,31.3)
lt(89.5)
fd(33.2)
lt(47.2)
circle(-18.8,254.5)
lt(52.7)
fd(10.6)
lt(103.3)
fd(8.6)
lt(72)
circle(-18.8,249.2)
lt(63.7)
fd(11.7)
lt(108.4)
fd(9.2)
lt(54.4)
circle(-19.1,254.1)
lt(40.6)
fd(29.7)
lt(99.1)
circle(-103.3,118.7)
lt(100.6)
circle(-32.7,60.1)
lt(42.6)
circle(-91.1,19.1)
lt(22)
circle(-186.4,22.4)
rt(4.4)
circle(-70.8,44)
lt(37.9)
fd(46.3)
lt(6.2)
circle(-27.3,84.5)
lt(1.1)
circle(-240.4,20.9)
lt(24.5)
circle(-186.8,59.3)
lt(26.3)
circle(-293.7,9.9)
lt(107)
fd(14)
rt(3)
circle(-13.8,165.3)
rt(9.2)
fd(26.2)
lt(69.8)
circle(-31.5,97.4)
lt(4.4)
fd(41.8)
lt(24.9)
fd(76.8)
lt(48.1)
circle(-61.3,50.7)
rt(2.7)
circle(-28.6,71.2)
lt(73.1)
fd(12)
lt(54)
circle(-18.7,77.6)
lt(70.6)
circle(-21.5,70.9)
lt(39.5)
fd(86.4)
lt(24.7)
fd(9.9)
rt(45)
fd(8)
lt(40.2)
circle(-27,86.7)
lt(58)
circle(-33.6,63)
lt(69.4)
circle(-36.4,97.3)
lt(4.7)
circle(-5.7,120.5)
rt(0.8)
circle(8.6,110.6)
rt(25)
circle(-30.1,80.8)
lt(69.4)
circle(-26,66.8)
lt(62.8)
circle(-21.9,79.3)
lt(39.8)
circle(-21.7,43.6)
lt(23.1)
fd(88.5)
lt(38.5)
circle(-20.4,65.3)
lt(63.4)
circle(-21,66.5)
lt(40.2)
fd(26.1)
lt(58.1)
circle(62,27.8)
end_fill()
color('white')
up()
lt(117.7)
fd(225.5)
down()
begin_fill()
lt(107.6)
circle(15.3,134.5)
rt(6)
circle(124,30.8)
lt(14.8)
circle(8.6,108.5)
lt(61.2)
circle(-9.7,69.4)
rt(98.1)
circle(16.5,104.7)
lt(89.1)
circle(-5.7,187.5)
lt(5.1)
circle(16.4,104.2)
lt(7.8)
circle(-25.6,57.8)
lt(103.3)
circle(27.7,83)
rt(88.9)
circle(21.9,120.7)
rt(106.4)
circle(-13.6,62.7)
end_fill()
up()
rt(155.4)
fd(211.1)
down()
begin_fill()
rt(14.8)
circle(146.5,26.8)
lt(83.7)
fd(8.1)
rt(29.6)
fd(31.4)
rt(79.3)
circle(8.9,321.7)
rt(68.8)
circle(-37.1,41.5)
rt(45.5)
circle(-28.4,63.1)
rt(66.4)
circle(8.4,310.7)
rt(64.6)
circle(-27,66.7)
rt(44.2)
circle(-34.8,46.8)
rt(63)
circle(8.9,321.8)
rt(85.2)
fd(31.3)
rt(10.4)
fd(9.1)
end_fill()
up()
rt(45.7)
fd(260)
down()
begin_fill()
lt(46.2)
fd(42.3)
rt(128.5)
circle(-27,103)
end_fill()
up()
lt(4.1)
fd(248.9)
down()
begin_fill()
rt(62)
circle(171.4,26.6)
rt(26.5)
circle(-98.2,78.8)
rt(12.7)
circle(-113.4,77)
lt(3.9)
circle(-115.9,82.6)
rt(12.6)
circle(-93.4,77)
end_fill()
up()
rt(133.8)
fd(237.7)
down()
begin_fill()
lt(102.9)
circle(81.2,33)
rt(37.6)
circle(106.2,57.6)
rt(46.1)
circle(86.7,29.4)
rt(51.7)
circle(121.9,50.4)
rt(48.6)
circle(-106.8,53.5)
lt(3.5)
circle(-22.9,86.4)
rt(112.1)
circle(75.9,40.4)
rt(21.1)
circle(3.7,198.3)
rt(11)
circle(-128.4,70.3)
rt(4.4)
circle(-177.9,58.9)
rt(2.6)
circle(-125.8,87.2)
lt(6)
circle(3.8,180)
rt(21.6)
circle(45.3,20.1)
rt(50.2)
circle(-14.1,62.3)
rt(34.8)
fd(49.5)
end_fill()
color('#FAC032')
up()
lt(14.7)
fd(183.3)
down()
begin_fill()
rt(123.3)
circle(120.8,32.9)
rt(118.6)
fd(82.5)
rt(16.7)
circle(-17,78.6)
rt(1)
fd(9.2)
rt(57)
fd(88.6)
end_fill()
up()
lt(177.6)
fd(99.9)
down()
begin_fill()
lt(55.2)
circle(35.1,49.2)
rt(118.9)
circle(-14.7,171.4)
end_fill()
up()
rt(179.3)
fd(22.6)
down()
begin_fill()
lt(69.7)
circle(54,28.1)
rt(111.2)
circle(-13.2,165.7)
end_fill()
up()
rt(163.6)
fd(22)
down()
begin_fill()
lt(59.9)
fd(11)
rt(83.5)
fd(264.7)
rt(5.7)
circle(-4.1,167.3)
rt(6.3)
fd(266.1)
end_fill()
color('#E80014')
up()
rt(116.6)
fd(72.1)
down()
begin_fill()
lt(69.6)
circle(-27.8,34.8)
lt(52.8)
circle(-35.5,43.2)
rt(67.9)
circle(122.4,30.5)
rt(143.4)
circle(-104,50.7)
end_fill()
up()
rt(153.7)
fd(165)
down()
begin_fill()
lt(12.3)
circle(109.4,33.3)
rt(71.7)
circle(-25.8,72.3)
lt(69.4)
circle(-38.4,26.6)
rt(109.4)
circle(-116.2,41.6)
end_fill()
up()
lt(63.6)
fd(273.8)
down()
begin_fill()
lt(60.8)
fd(39.3)
rt(134.5)
circle(-27.6,90.9)
end_fill()
up()
rt(91.6)
fd(84.5)
down()
begin_fill()
rt(149.7)
fd(30.4)
rt(73.4)
fd(48.4)
rt(168.5)
circle(119.3,31.1)
end_fill()
up()
lt(41)
fd(230)
down()
begin_fill()
lt(46.8)
circle(156.7,29.3)
rt(83)
circle(20.8,51.3)
rt(122.2)
fd(35.9)
lt(0.3)
circle(-22,86.2)
lt(6.6)
circle(-244.7,11.6)
end_fill()
color('#0C308E')
up()
rt(75.9)
fd(353.8)
down()
begin_fill()
lt(16.7)
circle(-30.3,85.3)
rt(7.1)
circle(-17,80.5)
rt(12.9)
fd(10)
rt(55.3)
fd(3.2)
rt(90)
fd(3.2)
rt(30.4)
fd(10.6)
lt(152.9)
fd(12.4)
rt(59)
fd(8.5)
lt(111.8)
fd(7.6)
rt(58.8)
circle(-23.1,51.1)
rt(0.2)
circle(-9.7,101.1)
end_fill()
up()
rt(123.2)
fd(71.1)
down()
begin_fill()
lt(116.9)
circle(-33.6,55)
lt(1.8)
circle(-15.2,119.1)
rt(3.3)
fd(7.2)
rt(60.3)
fd(2.2)
rt(63.4)
fd(2)
rt(48.8)
fd(10.6)
lt(157.2)
fd(12.6)
rt(68.6)
fd(7.8)
lt(110.4)
fd(8.1)
rt(60.6)
circle(-27,41.8)
rt(64.2)
fd(17.7)
end_fill()
up()
lt(88.3)
fd(57.9)
down()
begin_fill()
lt(108.7)
circle(58.7,52)
lt(12.6)
circle(-4.8,194.3)
lt(1.1)
circle(-70.4,50.8)
rt(0)
circle(-101.6,43.9)
lt(0.1)
circle(-5,184.7)
lt(2.5)
circle(86.2,47)
end_fill()
color('#F19601')
up()
lt(87.9)
fd(25)
down()
begin_fill()
lt(85.9)
circle(-20.1,171.9)
lt(0.1)
circle(-20.6,45.2)
lt(14.6)
circle(67.7,29.7)
rt(7.6)
circle(-4.3,143.1)
lt(17.9)
circle(-56.6,57.9)
end_fill()
color('#E60011')
up()
lt(26.3)
fd(52.8)
down()
begin_fill()
rt(9.4)
circle(-38.3,68.2)
rt(0.6)
circle(-16.2,106.3)
lt(3.2)
circle(-14.9,82.9)
rt(11.7)
circle(203.7,10.1)
end_fill()
color('#F29500')
pensize(5)
up()
rt(139)
fd(213)
down()
rt(161.4)
circle(130.5,23.5)
up()
rt(99)
fd(7.1)
down()
rt(56.2)
circle(-187.5,15.9)
up()
rt(96.8)
fd(21.2)
down()
rt(142.1)
circle(141.4,19.9)
up()
lt(171.8)
fd(47.2)
down()
rt(123)
fd(22.2)
rt(55.5)
fd(29.7)
up()
rt(70.3)
fd(18)
down()
rt(54.3)
fd(39.4)
up()
rt(97.4)
fd(14.8)
down()
rt(136.7)
fd(37.9)
up()
rt(63.4)
fd(7.1)
down()
rt(64.4)
fd(25.2)
up()
rt(97.1)
fd(11.2)
down()
rt(137.4)
fd(22.5)
hideturtle()
done()
No comments:
Post a Comment