Header Ads

Dell logo using python turtle

Dell logo using Python turtle


Let's Start


Video Tutorial 

You can visit our YouTube channel 'Mr. Code Box' and watch the video tutorial.




Source Code

from turtle import *

BLU = '#007EB9'
WHI = 'white'
setup(500,500)
color(BLU)
up()
fd(219)
down()
lt(90)
begin_fill()
circle(219)
end_fill()

color(WHI)
up()
lt(90)
fd(24)
down()
rt(90)
begin_fill()
circle(195)
end_fill()

color(BLU)
up()
lt(90)
fd(61)
down()
begin_fill()
lt(90)
fd(18)
lt(90)
fd(32.5)
rt(90)
fd(27)
rt(90)
fd(65.5)
rt(90)
fd(94)
rt(90)
fd(33)
rt(90)
fd(49)
end_fill()

up()
rt(90)
fd(74.5)
down()
begin_fill()
lt(90)
fd(18)
lt(90)
fd(33)
rt(90)
fd(27)
rt(90)
fd(65.5)
rt(90)
fd(32.5)
lt(128.2)
fd(68.7)
rt(76.4)
fd(63)
lt(103.9)
circle(-49.4,64)
rt(1.7)
fd(42.5)
rt(90)
fd(94)
rt(90)
fd(42.5)
rt(0.2)
circle(-47.1,67.8)
lt(106.3)
fd(63)
rt(77.1)
fd(23.1)
rt(102.9)
fd(57.3)
lt(104.3)
fd(10.7)
lt(75.7)
fd(57.3)
rt(76.4)
fd(23.5)
rt(103.6)
fd(57.3)
lt(102.3)
fd(11)
lt(77.4)
fd(57.7)
lt(52)
fd(33)
rt(90)
fd(32.5)
rt(90)
fd(49)
end_fill()

color(WHI)
up()
rt(96.9)
fd(183.3)
down()
begin_fill()
lt(6.9)
fd(8.5)
lt(90)
fd(40.5)
lt(90)
fd(8.5)
lt(1.9)
circle(20.3,176.1)
end_fill()
hideturtle()
done()

Output



No comments

Powered by Blogger.