Drawing vegeta with python turtle | easy code| helpucode
do share it with others..
here is the source code
it took me too long to complete this project...please do share it with others..
from turtle import *
s=Screen()
v=Turtle()
v.speed(10)
v.pensize(3)
#face
v.begin_fill()
v.left(50)
v.forward(70)
v.right(75)
v.circle(-300,30)
v.right(90)
v.forward(10)
v.left(90)
v.forward(20)
v.left(140)
v.circle(300,-60)
v.circle(30,-40)
v.circle(300,-65)
v.right(90)
v.backward(20)
v.right(75)
v.forward(20)
v.right(55)
v.circle(-300,30)
v.right(70)
v.forward(127)
v.speed(1)
v.left(90)
v.forward(41)
v.color("papaya whip")
v.end_fill()
v.hideturtle()
hair=Turtle()
hair.penup()
hair.setposition(165,-70)
hair.pendown()
#hairs
hair.pensize(2)
hair.speed(10)
hair.begin_fill()
hair.left(60)
hair.forward(130)
hair.right(30)
hair.backward(45)
hair.left(33)
hair.forward(40)
hair.left(20)
hair.forward(130)
hair.right(30)
hair.backward(40)
hair.left(45)
hair.forward(50)
hair.left(30)
hair.forward(110)
hair.right(40)
hair.backward(60)
hair.left(20)
hair.forward(50)
hair.left(30)
hair.forward(150)
hair.right(65)
hair.backward(60)
hair.right(20)
hair.backward(160)
hair.left(30)
hair.backward(40)
hair.forward(30)
hair.left(10)
hair.forward(110)
hair.right(45)
hair.backward(80)
hair.left(30)
hair.backward(80)
hair.left(25)
hair.forward(70)
hair.right(60)
hair.backward(40)
hair.left(30)
hair.backward(70)
hair.left(30)
hair.forward(40)
hair.left(130)
hair.forward(50)
hair.left(30)
hair.forward(100)
hair.right(120)
hair.forward(40)
hair.right(20)
hair.backward(190)
hair.speed(10)
hair.right(30)
hair.forward(30)
hair.right(90)
hair.forward(20)
hair.left(120)
hair.forward(22)
hair.right(63)
hair.circle(-300,30.5)
hair.speed(10)
hair.right(70)
hair.forward(125)
hair.left(90)
hair.forward(110)
hair.right(75)
hair.circle(-300,30.5)
hair.right(90)
hair.forward(10)
hair.left(90)
hair.forward(20)
hair.color("yellow")
hair.end_fill()
#ears
hair.speed(10)
hair.begin_fill()
hair.color("black")
hair.left(115)
hair.forward(20)
hair.right(45)
hair.circle(-50,40)
hair.right(80)
hair.circle(-200,30)
hair.right(30)
hair.circle(-100,7)
hair.right(125)
hair.circle(150,35)
hair.color("papaya whip")
hair.end_fill()
ear=Turtle()
ear.pensize(2)
ear.penup()
ear.setposition(-233,-110)
ear.pendown()
ear.begin_fill()
ear.right(35)
ear.backward(30)
ear.left(30)
ear.circle(-50,-35)
ear.left(85)
ear.circle(-200,-25)
ear.left(30)
ear.backward(29)
ear.right(43)
ear.circle(-150,33)
ear.color("papaya whip")
ear.end_fill()
#eyes
eyes=Turtle()
eyes.pensize(2)
eyes.penup()
eyes.setposition(-70,-70)
eyes.pendown()
eyes.speed(10)
eyes.begin_fill()
eyes.right(20)
eyes.backward(50)
eyes.circle(-50,-80)
eyes.right(30)
eyes.circle(-50,45)
eyes.forward(65)
eyes.left(80)
eyes.forward(20)
eyes.color("black")
eyes.end_fill()
eyes.penup()
eyes.setposition(25,-70)
eyes.pendown()
eyes.speed(10)
eyes.begin_fill()
eyes.left(-40)
eyes.forward(50)
eyes.circle(-50,80)
eyes.left(30)
eyes.circle(-50,-45)
eyes.backward(65)
eyes.right(80)
eyes.backward(20)
eyes.color("black")
eyes.speed(10)
eyes.end_fill()
eyes.forward(30)
eyes.right(125)
eyes.begin_fill()
eyes.backward(60)
eyes.right(120)
eyes.forward(45)
eyes.right(75)
eyes.circle(-50,-45)
eyes.backward(55)
eyes.color("white")
eyes.end_fill()
eyes.forward(30)
eyes.begin_fill()
eyes.color("black")
eyes.circle(-10)
eyes.end_fill()
eyes.speed(10)
eyes.penup()
eyes.setposition(-70,-70)
eyes.pendown()
eyes.right(130)
eyes.forward(30)
eyes.begin_fill()
eyes.right(75)
eyes.forward(75)
eyes.right(50)
eyes.forward(35)
eyes.left(80)
eyes.circle(50,-45)
eyes.backward(60)
eyes.color("white")
eyes.end_fill()
eyes.color("black")
eyes.forward(20)
eyes.begin_fill()
eyes.circle(10)
eyes.end_fill()
#nose
nose=Turtle()
nose.speed(1)
nose.pensize(4)
nose.penup()
nose.setposition(-30,-150)
nose.pendown()
nose.left(-60)
nose.forward(20)
nose.left(-60)
nose.forward(30)
#
nose.penup()
nose.setposition(-10, -250)
nose.pendown()
nose.left(110)
nose.circle(150,-20)
nose.hideturtle()
Comments
Post a Comment