Advertisement
DiYane

Ironman

May 10th, 2023
770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.60 KB | None | 0 0
  1. import turtle
  2.  
  3. ankur1 = [[(-40, 120), (-70, 260), (-130, 230), (-170, 200), (-170, 100), (-160, 40), (-170, 10), (-150, -10), (-140, 10),
  4.            (-40, -20), (0, -20)],
  5.           [(0, -20), (40, -20), (140, 10), (150, -10), (170, 10), (160, 40), (170, 100), (170, 200), (130, 230), (70, 260),
  6.            (40, 120), (0, 120)]]
  7. ankur2 = [[(-40, -30), (-50, -40), (-100, -46), (-130, -40), (-176, 0), (-186, -30), (-186, -40), (-120, -170), (-110, -210),
  8.            (-80, -230), (-64, -210), (0, -210)],
  9.           [(0, -210), (64, -210), (80, -230), (110, -210), (120, -170), (186, -40), (186, -30), (176, 0), (130, -40),
  10.            (100, -46), (50, -40), (40, -30), (0, -30)]]
  11. ankur3 = [[(-60, -220), (-80, -240), (-110, -220), (-120, -250), (-90, -280), (-60, -260), (-30, -260), (-20, -250),
  12.            (0, -250)],
  13.           [(0, -250), (20, -250), (30, -260), (60, -260), (90, -280), (120, -250), (110, -220), (80, -240), (60, -220),
  14.            (0, -220)]]
  15.  
  16. turtle.hideturtle()
  17. turtle.bgcolor('#ba161e')  # Dark Red
  18. turtle.setup(500, 600)
  19. turtle.title("I AM IRONMAN")
  20. ankur1Goto = (0, 120)
  21. ankur2Goto = (0, -30)
  22. ankur3Goto = (0, -220)
  23. turtle.speed(2)
  24.  
  25.  
  26. def logo(a, b):
  27.     turtle.penup()
  28.     turtle.goto(b)
  29.     turtle.pendown()
  30.     turtle.color('#fab104')  # Light Yellow
  31.     turtle.begin_fill()
  32.  
  33.     for i in range(len(a[0])):
  34.         x, y = a[0][i]
  35.         turtle.goto(x, y)
  36.  
  37.     for i in range(len(a[1])):
  38.         x, y = a[1][i]
  39.         turtle.goto(x, y)
  40.     turtle.end_fill()
  41.  
  42.  
  43. logo(ankur1, ankur1Goto)
  44. logo(ankur2, ankur2Goto)
  45. logo(ankur3, ankur3Goto)
  46. turtle.hideturtle()
  47. turtle.done
Tags: python ironman
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement