Draw Goku in Python Turtle

Introduction

Are you a big fan of Dragon Ball? Are you a programmer or someone who loves coding? If so, perhaps this tutorial on how to draw Goku in Python Turtle will interest you.

If you’re an anime fan, you probably know that Goku is the main character of the popular show Dragon Ball Z. In this show, Goku is a superhero who often trains by climbing up high peaks and leaping off them, turning into a Super Saiyan whenever he needs to fight an opponent that poses a real threat.

Code to Draw Goku Using Python Turtle

#Draw Goku Using Python Turtle

#importing turtle module
import turtle

#setting the background color
turtle.bgcolor('#f0833a')

# Define title of program
turtle.title("Copy Assignment Turtle")

#Create a turtle screen
screen= turtle.Screen()
#Define height and width of screen
screen.setup(1200,600)


goku_hair = turtle.Turtle()
goku_hair.speed(20)
goku_hair.penup()
goku_hair.goto(-270,10)
start=goku_hair.pos()
goku_hair.pendown()
goku_hair.begin_fill()
goku_hair.right(-180)
goku_hair.circle(200,extent=45)
goku_hair.rt(160)
goku_hair.circle(-200,extent=45)
goku_hair.lt(115)
goku_hair.circle(200,extent=45)
goku_hair.rt(160)
goku_hair.circle(-200,extent=60)
goku_hair.rt(205)
goku_hair.circle(200,extent=85)
goku_hair.rt(155)
goku_hair.circle(-200,extent=110)
goku_hair.lt(90)
goku_hair.circle(-50,extent=70)
goku_hair.lt(130)
goku_hair.circle(-200,extent=75)
goku_hair.rt(150)
goku_hair.circle(200,extent=65)
goku_hair.lt(125)
goku_hair.circle(-200,extent=45)
goku_hair.rt(160)
goku_hair.circle(200,extent=45)
goku_hair.lt(80)
goku_hair.circle(-200,extent=35)
goku_hair.rt(160)
goku_hair.circle(200,extent=48)
goku_hair.penup()
goku_hair.goto(-270,10)
goku_hair.pendown()
goku_hair.rt(120)
goku_hair.circle(-200,extent=30)
goku_hair.rt(135)
goku_hair.circle(200,extent=20)
goku_hair.lt(145)
goku_hair.circle(-200,extent=30)
goku_hair.rt(150)
goku_hair.circle(200,extent=25)
goku_hair.lt(165)
goku_hair.circle(-200,extent=30)
goku_hair.rt(120)
goku_hair.circle(-200,extent=15)
goku_hair.lt(120)
goku_hair.circle(200,extent=20)
goku_hair.rt(160)
goku_hair.circle(200,extent=24)

goku_hair.hideturtle()

#Code for drawing right eye of Goku
goku_reye = turtle.Turtle()
goku_reye.speed(20)
goku_reye.penup()
goku_reye.goto(-180,-20)
goku_reye.pendown()
goku_reye.right(125)
goku_reye.forward(5)
e = goku_reye.pos()
goku_reye.rt(90)
goku_reye.begin_fill()
goku_reye.fd(60)
goku_reye.lt(70)
goku_reye.fd(10)
goku_reye.lt(115)
goku_reye.fd(17)
e1 = goku_reye.pos()
goku_reye.fd(40)
goku_reye.goto(e)
goku_reye.end_fill()
goku_reye.goto(e1)
goku_reye.color("black","white")
goku_reye.begin_fill()
goku_reye.rt(70)
goku_reye.fd(17)
goku_reye.lt(85)
goku_reye.fd(37)
goku_reye.end_fill()
goku_reye.begin_fill()
goku_reye.color("black")
goku_reye.circle(5)
goku_reye.end_fill()
goku_reye.hideturtle()

#Code for drawing left eye of Goku
goku_leye = turtle.Turtle()
goku_leye.speed(20)
goku_leye.penup()
goku_leye.goto(-150,-20)
goku_leye.pendown()
goku_leye.left(125)
goku_leye.backward(5)
e = goku_leye.pos()
goku_leye.lt(90)
goku_leye.begin_fill()
goku_leye.bk(60)
goku_leye.rt(70)
goku_leye.bk(10)
goku_leye.rt(115)
goku_leye.bk(17)
e1 = goku_leye.pos()
goku_leye.bk(40)
goku_leye.goto(e)
goku_leye.end_fill()
goku_leye.goto(e1)
goku_leye.color("black","white")
goku_leye.begin_fill()
goku_leye.lt(70)
goku_leye.bk(17)
goku_leye.rt(85)
goku_leye.bk(37)
goku_leye.end_fill()
goku_leye.begin_fill()
goku_leye.color("black")
goku_leye.circle(5)
goku_leye.end_fill()
goku_leye.hideturtle()


#face of goku
goku_face = turtle.Turtle()
goku_face.speed(20)
goku_face.penup()
goku_face.goto(-270,10)
goku_face.pendown()
goku_face.rt(65)
goku_face.fd(100)
goku_face.left(30)
goku_face.fd(80)
goku_face.lt(70)
goku_face.fd(80)
goku_face.left(30)
goku_face.fd(109)
goku_face.hideturtle()

#code for nose of goku
goku_nose = turtle.Turtle()
goku_nose.speed(20)
goku_nose.penup()
goku_nose.goto(-165,-50)
goku_nose.pendown()
goku_nose.right(90)
goku_nose.fd(15)
goku_nose.hideturtle()

#Code for smile of goku
goku_smile=turtle.Turtle()
goku_smile.speed(20)
goku_smile.penup()
goku_smile.goto(-185,-75)
goku_smile.pendown()
goku_smile.rt(55)
goku_smile.fd(10)
goku_smile.lt(60)
goku_smile.fd(30)
goku_smile.lt(60)
goku_smile.fd(10)
goku_smile.penup()
goku_smile.goto(-170,-90)
goku_smile.pendown()
goku_smile.rt(60)
goku_smile.fd(15)
goku_smile.hideturtle()

#code for the sword

#go to starting position
goku_sword = turtle.Turtle()
goku_sword.speed(20)
goku_sword.penup()
goku_sword.goto(270,-80)
goku_sword.right(90)
goku_sword.forward(150)
goku_sword.right(90)
goku_sword.forward(130)

#end of handle
goku_sword.pendown()
goku_sword.right(90)
goku_sword.forward(50)
goku_sword.right(90)
goku_sword.forward(50)
goku_sword.right(90)
goku_sword.forward(50)
goku_sword.right(90)
goku_sword.forward(50)
goku_sword.end_fill()

#right handle
goku_sword.right(180)
goku_sword.forward(50)
goku_sword.left(90)
goku_sword.forward(15)
goku_sword.right(45)
goku_sword.forward(75)
goku_sword.right(90)
goku_sword.forward(50)
goku_sword.left(45)
goku_sword.forward(75)
goku_sword.left(135)
goku_sword.forward(75)

#right blade
goku_sword.right(90)
goku_sword.forward(200)
goku_sword.left(45)
goku_sword.forward(75)

#left blade
goku_sword.left(90)
goku_sword.forward(75)
goku_sword.left(45)
goku_sword.forward(200)


#left handle
goku_sword.right(90)
goku_sword.forward(75)
goku_sword.left(135)
goku_sword.forward(75)
goku_sword.left(45)
goku_sword.forward(50)
goku_sword.right(90)
goku_sword.forward(75)

#decoration on end of handle
goku_sword.left(45)
goku_sword.penup()
goku_sword.forward(12)
goku_sword.right(90)
goku_sword.forward(3)
goku_sword.left(90)
goku_sword.pendown()
goku_sword.begin_fill()
goku_sword.fillcolor("#fcc201")
goku_sword.forward(25)
goku_sword.left(90)
goku_sword.forward(25)
goku_sword.left(90)
goku_sword.forward(25)
goku_sword.left(90)
goku_sword.forward(25)
goku_sword.left(90)
goku_sword.left(135)
goku_sword.end_fill()
#left decoration on handle

goku_sword.penup()
goku_sword.forward(100)
goku_sword.left(90)
goku_sword.forward(10)
goku_sword.pendown()
goku_sword.begin_fill()
goku_sword.fillcolor("red")
goku_sword.forward(45)
goku_sword.right(45)
goku_sword.forward(35)
goku_sword.right(135)
goku_sword.forward(45)
goku_sword.right(45)
goku_sword.forward(35)
goku_sword.end_fill()

#right decoration on handle
goku_sword.left(45)
goku_sword.penup()
goku_sword.forward(50)
goku_sword.pendown()
goku_sword.begin_fill()
goku_sword.fillcolor("red")
goku_sword.forward(45)
goku_sword.left(45)
goku_sword.forward(35)
goku_sword.left(135)
goku_sword.forward(45)
goku_sword.left(45)
goku_sword.forward(35)
goku_sword.end_fill()
goku_sword.penup()

#beginning of blade decoration
goku_sword.right(45)
goku_sword.forward(22)
goku_sword.right(90)

#blade decoration
goku_sword.pendown()

goku_sword.right(45)
goku_sword.forward(55)
goku_sword.left(45)
goku_sword.forward(195)
goku_sword.left(45)
goku_sword.forward(55)
goku_sword.left(90)
goku_sword.forward(55)
goku_sword.left(45)
goku_sword.forward(195)
goku_sword.left(45)
goku_sword.forward(55)
goku_sword.right(45)
goku_sword.penup()

#blade decoration 2
goku_sword.right(180)
goku_sword.forward(20)
goku_sword.pendown()
goku_sword.begin_fill()
goku_sword.fillcolor("#fcc201")
goku_sword.right(45)
goku_sword.forward(35)
goku_sword.left(45)
goku_sword.forward(185)
goku_sword.left(45)
goku_sword.forward(35)
goku_sword.left(90)
goku_sword.forward(35)
goku_sword.left(45)
goku_sword.forward(185)
goku_sword.left(45)
goku_sword.forward(35)
goku_sword.end_fill()
goku_sword.penup()
goku_sword.right(45)

#handle decoration middle
goku_sword.forward(35)
goku_sword.pendown()
goku_sword.begin_fill()
goku_sword.fillcolor("blue")
goku_sword.right(45)
goku_sword.forward(15)
goku_sword.left(45)
goku_sword.forward(35)
goku_sword.left(135)
goku_sword.forward(16)
goku_sword.right(90)
goku_sword.forward(16)
goku_sword.left(135)
goku_sword.forward(35)
goku_sword.left(45)
goku_sword.forward(15)
goku_sword.end_fill()
goku_sword.penup()
goku_sword.hideturtle()


#code for writing dragon ball z
def write(message,pos):
        x,y=pos
        # Define color of the text
        turtle.pencolor("yellow")
        turtle.penup()
        turtle.goto(x,y)
        # Defining font style and size
        style=('Verdana',30,'bold')
        turtle.write(message,font=style)

write('Dragon',(-330,-200))

def write(message,pos):
        x,y=pos
        # Define color of the text
        turtle.pencolor("red")
        turtle.penup()
        turtle.goto(x,y)
        # Defining font style and size
        style=('Verdana',30,'bold')
        turtle.write(message,font=style)

write('Ball',(-160,-200))

def write(message,pos):
        x,y=pos
        # Define color of the text
        turtle.pencolor("red")
        turtle.penup()
        turtle.goto(x,y)
        # Defining font style and size
        style=('Verdana',40,'bold')
        turtle.write(message,font=style)

write('Z',(-70,-205))

def write(message,pos):
        x,y=pos
        # Define color of the text
        turtle.pencolor("blue")
        turtle.penup()
        turtle.goto(x,y)
        # Defining font style and size
        style=('Verdana',15)
        turtle.write(message,font=style)

write('The Legacy of Goku',(-300,-240))
turtle.hideturtle()

#code for holding screen 
turtle.mainloop()

Output of Goku in Python Turtle:

output to draw Goku in Python Turtle

Conclusion

In this tutorial, we have walked you through how to draw Goku in Python Turtle. We have used only basic shapes and lines in order to create this character. Even if you have no experience drawing characters or faces, you can still learn how to do it fast and easily. Once you’ve finished this tutorial, you will be able to learn how to use the Python turtle module for your own projects.


Also Read:

Share:
Avatar of Jay Polra

Author: Jay Polra