iron man in python

Published: 23 January 2024
on channel: Weird Kids
9
0

import turtle
import time
canvas1 = [[(-40, 120), (-70, 260), (-130, 230), (-170, 200), (-170, 100), (-160, 40), (-170, 10), (-150, -10), (-140, 10),
(-40, -20), (0, -20)],
[(0, -20), (40, -20), (140, 10), (150, -10), (170, 10), (160, 40), (170, 100), (170, 200), (130, 230), (70, 260),
(40, 120), (0, 120)]]
canvas2 = [[(-40, -30), (-50, -40), (-100, -46), (-130, -40), (-176, 0), (-186, -30), (-186, -40), (-120, -170), (-110, -210),
(-80, -230), (-64, -210), (0, -210)],
[(0, -210), (64, -210), (80, -230), (110, -210), (120, -170), (186, -40), (186, -30), (176, 0), (130, -40),
(100, -46), (50, -40), (40, -30), (0, -30)]]
canvas3 = [[(-60, -220), (-80, -240), (-110, -220), (-120, -250), (-90, -280), (-60, -260), (-30, -260), (-20, -250),
(0, -250)],
[(0, -250), (20, -250), (30, -260), (60, -260), (90, -280), (120, -250), (110, -220), (80, -240), (60, -220),
(0, -220)]]
canvas4 = [[]]
turtle.hideturtle()
turtle.bgcolor('black') # Dark Red = #ba161e
turtle.setup(500, 600)
turtle.title("I AM IRONMAN")
canvas1Goto = (0, 120)
canvas2Goto = (0, -30)
canvas3Goto = (0, -220)
turtle.speed(2)
t=turtle.Turtle()
tt = turtle.Turtle()
def a():


tt.penup()
tt.goto(170, 200)
tt.pendown()
tt.begin_fill()
tt.goto(186, -30)
tt.goto(186, -40)
tt.goto(120, -250)
tt.goto(90, -280)
tt.goto(-90, -280)
tt.goto(-120, -250)
tt.goto(-186, -40)
tt.goto(-186, -30)
tt.goto(-170, 200)
tt.goto(-130, 230)
tt.goto(-70, 260)
tt.goto(70, 260)
tt.goto(130, 230)
tt.goto(170, 200)
tt.end_fill()
t.penup()
t.goto(-140, 10)
t.pendown()

t.begin_fill()
t.goto(-40, -20)
t.goto(-40, -30)
t.goto(-50, -40)
t.goto(-100, -46)
t.goto(-130, -40)
t.goto(-150, -10)
t.goto(-140, 10)
t.end_fill()
t.penup()
t.goto(40, -20)
t.pendown()
t.begin_fill()
t.goto(140, 10)
t.goto(150, -10)
t.goto(130, -40)
t.goto(100, -46)
t.goto(50, -40)
t.goto(40, -30)
t.goto(40, -20)
t.goto(140, 10)
t.end_fill()

def logo(a, b):
turtle.penup()
turtle.goto(b)

turtle.pendown()
Light Yellow = #fab104
turtle.begin_fill()

for i in range(len(a[0])):
x, y = a[0][i]
turtle.goto(x, y)

for i in range(len(a[1])):
x, y = a[1][i]
turtle.goto(x, y)
turtle.end_fill()

def b():
logo(canvas1, canvas1Goto)
logo(canvas2, canvas2Goto)
logo(canvas3, canvas3Goto)
turtle.hideturtle()
while True:
f = input('Face plate color: ').lower()
if f =='original':
f = '#fab104'
e = input('Eye color: ').lower()
if e =='original':
e = 'light blue'
r = input('Helmet color: ').lower()
if r =='original':
r = '#ba161e'
t.clear()
tt.clear()
turtle.clear()
tt.color(r, r)
t.color(e, e)
turtle.color(f)
a()
b()

turtle.done()


On this page of the site you can watch the video online iron man in python with a duration of hours minute second in good quality, which was uploaded by the user Weird Kids 23 January 2024, share the link with friends and acquaintances, this video has already been watched 9 times on youtube and it was liked by 0 viewers. Enjoy your viewing!