Doraemon`s Face...
Hey everyone! Today I tried to make a Doraemon using python`s Turtle module. As I`m not a professional programmer, I made it in a normal way. I have posted the same source code below. Try to edit and execute it in your favorite IDE(Integrated Development Environment) or mobile application used for python programming.
Python Code:
import turtle
a = turtle.Screen()
a.bgcolor('lightblue')
d = turtle.Turtle()
d.color('black')
d.pensize(3)
d.speed(10)
d.penup()
d.fd(145)
d.pendown()
d.fd(10)
d.left(50)
d.circle(150,258)
d.left(51)
d.fd(10)
d.color('black','white')
d.begin_fill()
d.fd(212)
d.lt(50)
d.circle(125,100)
d.rt(55)
d.circle(35,180)
d.right(190)
d.circle(35,180)
d.rt(62)
d.circle(116,111)
d.lt(46)
d.end_fill()
d.color('red','red')
d.begin_fill()
d.fd(230)
d.rt(90)
d.fd(15)
d.rt(90)
d.fd(250)
d.rt(90)
d.fd(15)
d.rt(90)
d.fd(10)
d.lt(45)
d.end_fill()
d.penup()
d.fd(265)
d.rt(-45)
d.color('black','white')
d.begin_fill()
d.pendown()
d.circle(35,-180)
d.begin_fill()
d.circle(35)
d.end_fill()
d.lt(180)
d.circle(35,-180)
d.begin_fill()
d.circle(35)
d.end_fill()
d.penup()
d.fd(50)
d.lt(90)
d.fd(70)
d.color('black','#DD0004')
d.begin_fill()
d.pendown()
d.circle(15)
d.end_fill()
d.rt(90)
d.fd(100)
d.lt(85)
d.circle(95,70)
d.circle(95,-70)
d.lt(10)
d.circle(95,-65)
d.penup()
d.lt(78)
d.fd(120)
d.pendown()
d.fd(65)
d.penup()
d.bk(65)
d.rt(100)
d.fd(20)
d.lt(90)
d.pendown()
d.fd(65)
d.penup()
d.bk(65)
d.rt(100)
d.fd(20)
d.lt(90)
d.pendown()
d.fd(65)
d.penup()
d.bk(65)
d.lt(5)
d.bk(50)
d.lt(1)
d.pendown()
d.bk(63)
d.penup()
d.fd(63)
d.lt(85)
d.fd(20)
d.lt(90)
d.pendown()
d.fd(63)
d.penup()
d.bk(63)
d.rt(90)
d.fd(20)
d.lt(83)
d.pendown()
d.fd(63)
d.penup()
d.rt(140)
d.fd(80)
d.lt(50)
d.color('black')
d.pendown()
d.circle(10,180)
d.penup()
d.lt(100)
d.fd(75)
d.lt(90)
d.pendown()
d.circle(10,180)
d.penup()
d.rt(90)
d.fd(23)
d.lt(90)
d.fd(215)
d.lt(90)
d.color('black','gold')
d.begin_fill()
d.pendown()
d.circle(20)
d.lt(90)
d.fd(7)
d.rt(90)
d.circle(5)
d.end_fill()
d.penup()
d.lt(90)
d.fd(13)
d.rt(90)
d.pendown()
d.fd(20)
d.rt(1)
d.bk(40)
d.penup()
d.fd(20)
d.lt(90)
d.fd(7)
d.rt(90)
d.pendown()
d.fd(17)
d.bk(35)
d.penup()
d.fd(200)
turtle.done()
Comments
Post a Comment
If you have any doubts, Please let me know.