NotAlpha102

Take_love

Sep 11th, 2020
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.84 KB | None | 0 0
  1. import turtle as tl
  2.  
  3. shift1 = 60
  4. shift2 = 70
  5. shift3 = 100
  6. for i in range(0, 35):
  7.     pen = tl.Turtle(visible=False)
  8.     pen2 = tl.Turtle(visible=False)
  9.     pen.speed(30)
  10.     pen2.speed(30)
  11.     if i % 2 == 0:
  12.         pen.color('red')
  13.         pen2.color('red')
  14.     else:
  15.         pen.color('orange')
  16.         pen2.color('orange')
  17.     pen.penup()
  18.     pen2.penup()
  19.     pen.goto(0, -i * 2)
  20.     pen2.goto(0, -i * 2)
  21.     pen.pendown()
  22.     pen2.pendown()
  23.     pen.left(45)
  24.     pen2.left(135)
  25.     pen.forward(shift1)
  26.     pen2.forward(shift1)
  27.     pen.right(45)
  28.     pen2.right(-45)
  29.     pen.forward(shift2)
  30.     pen2.forward(shift2)
  31.     pen.right(45)
  32.     pen2.right(-45)
  33.     pen.forward(shift3)
  34.     pen2.forward(shift3)
  35.     pen.goto(0, -200 + 2 * i)
  36.     pen2.goto(0, -200 + 2 * i)
  37.     shift3 -= 2
  38.     shift2 -= 2
  39.     shift1 -= 2
  40.  
  41. tl.done()
  42.  
Advertisement
Add Comment
Please, Sign In to add comment