iron man and spiderman with python turtle graphics

python turtle graphics beginners projects


HERE IS THE THE SOURCE CODE TO DRAW IRON MAN AND SPIDERMAN WITH HELP IF PYTHON TURTLE GRAPHICS

1. SPIDERMAN'S HEAD:

import turtle

sp=turtle.Turtle()
win=turtle.Screen()
win.bgcolor("black")
sp.speed(0)
#head
sp.begin_fill()
sp.width(5)
sp.color("red")
sp.circle(70,45)
sp.circle(120, 90)
sp.circle(70, 45)
sp.circle(70, 45)
sp.circle(120, 90)
sp.circle(70,45)
sp.end_fill()
#headlines
sp.penup()
sp.setpos(-150, 150)
sp.pendown()
for j in range(100, 200, 10):
sp.width(3)
sp.color("black")
sp.forward(20)
for i in range(8):
sp.circle(200-j, 90)
sp.right(150)

for q in range(8):
sp.circle(150, 90)
sp.circle(150, -90)
sp.right(45)
sp.end_fill()
#eyes

sp.penup()

sp.speed(10)
sp.setpos(40, 120)
sp.right(240)
sp.pendown()
sp.begin_fill()
sp.color("white")
sp.circle(40, 45)
sp.left(90)
sp.circle(40,90)
sp.left(90)
sp.circle(40,45)
sp.end_fill()
sp.penup()
sp.begin_fill()
sp.color("white")
sp.setpos(-40, 120)
sp.pendown()
sp.circle(40, 45)
sp.left(90)
sp.circle(40,90)
sp.left(90)
sp.circle(40,45)
sp.end_fill()
sp.penup()
sp.color("black")
sp.setpos(0,120)
sp.pendown()
sp.width(3)

#blackoutline
sp.penup()
sp.setpos(40, 120)
sp.pendown()

sp.color("black")
sp.width(5)
sp.circle(40, 45)
sp.left(90)
sp.circle(40,90)
sp.left(90)
sp.circle(40,45)
#blackoutline2
sp.penup()
sp.color("black")
sp.setpos(-40, 120)
sp.pendown()
sp.circle(40, 45)
sp.left(90)
sp.circle(40,90)
sp.left(90)
sp.circle(40,45)
for k in range(100):
sp.penup()
sp.setpos(100,100)
sp.pendown()
sp.speed(1)
sp.width(10)
sp.color("red")
sp.pensize(100)
sp.write("THIS IS SPIDER MAN", font="bold")
sp.hideturtle()



2. IRON MAN'S HEAD:




import turtle


im = turtle.Turtle()
im2=turtle.Turtle()
im.penup()
im2.penup()
im.setpos(0, 100)
im2.setpos(0, 100)
im.pendown()
im2.pendown()
im2.color("yellow")
window=turtle.Screen()
window.bgcolor("red")
name=turtle.Turtle()
name.penup()
name.forward(490)
name.pendown()
name.width(3)
im.speed(0)
im.begin_fill()
im.color("yellow")
im.forward(50)
im.left(70)
im.forward(170)
im.right(90)
im.forward(120)
im.right(60)
im.forward(120)
im.right(10)
im.forward(70)
im.left(30)
im.forward(30)
im.right(90)
im.forward(30)
im.right(90)
im.forward(20)
im.left(70)
im.forward(100)
im.left(-10)
im.forward(50)

im.right(0)
im.forward(120)
im.speed(0)
im.end_fill()
im.hideturtle()
im2.speed(0)
im2.begin_fill()
im2.color("yellow")
im2.left(110)
im2.forward(170)
im2.left(90)
im2.forward(120)
im2.left(60)
im2.forward(120)
im2.left(10)
im2.forward(70)
im2.right(30)
im2.forward(30)
im2.left(90)
im2.forward(30)
im2.left(90)
im2.forward(20)
im2.right(70)
im2.forward(100)
im2.right(-10)
im2.forward(60)
im2.end_fill()
im2.penup()
im2.setpos(-214, -10)
im2.speed(0)
im2.pendown()
im2.begin_fill()
im2.color("yellow")
im2.right(35)
im2.forward(70)
im2.left(30)
im2.forward(40)
im2.left(20)
im2.forward(40)
im2.left(60)
im2.forward(30)
im2.right(75)
im2.forward(190)
im2.right(65)
im2.hideturtle()
im2.forward(30)
im2.right(-50)
im2.forward(40)
im2.left(20)
im2.forward(40)
im2.left(30)
im2.forward(70)
im2.right(90)
im2.forward(40)
im2.right(60)
im2.forward(170)
im2.right(-20)
im2.forward(40)
im2.right(60)
im2.forward(60)
im2.right(60)
im2.forward(40)
im2.left(33)
im2.forward(200)
im2.end_fill()
im2.penup()
im2.setpos(-214, -10)
im2.pendown()
im2.begin_fill()
im2.color("yellow")
im2.left(50)
im2.forward(40)
im2.left(60)
im2.forward(170)
im2.left(-20)
im2.forward(30)
im2.left(63)
im2.forward(64)
im2.left(70)
im2.forward(40)
im2.right(40)
im2.forward(100)
im2.end_fill()
im2.penup()
im2.setpos(-195, -245)
im2.pendown()
im2.begin_fill()
im2.color("yellow")
im2.right(30)
im2.forward(75)
im2.left(70)
im2.forward(40)
im2.right(41.5)
im2.forward(230)
im2.right(35)
im2.forward(40)
im2.left(60)
im2.forward(71)
im2.right(90)
im2.forward(40)
im2.right(75)
im2.forward(80)
im2.right(60)
im2.forward(42)
im2.right(-20)
im2.forward(50)
im2.right(40)
im2.forward(30)
im2.right(-40)
im2.forward(100)
im2.left(40)
im2.forward(30)
im2.right(40)
im2.forward(55)
im2.left(40)
im2.forward(30)
im2.right(75)
im2.forward(99)
im2.right(85)
im2.forward(43)
im2.end_fill()
for i in range(500):
name.speed(0)
name.color("lightblue")
name.circle(i+10)
name.color("red")
name.circle(i+10)

Comments

Popular Posts