SHARE
TWEET

Untitled

a guest Sep 23rd, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from gturtle import *
  2. makeTurtle()
  3. setPenWidth(5)
  4. ht()
  5. i = 0.01
  6. n = 1
  7. def symbol(i):
  8.     farbe = makeColor("rainbow", i)
  9.     setPenColor(farbe)
  10.     forward(20)
  11.     x = getX()
  12.     y = getY()
  13.     moveTo(0, 0)
  14.     setPos(x, y)
  15.     towards(0, 0)
  16.     left(90)
  17.    
  18.  
  19. repeat:
  20.     symbol(i)
  21.     delay(1)
  22.     i+=0.01
  23.     if i >=1:
  24.         i -= 1
  25.     if getKeyCode() == 32: #32 = Leertaste
  26.         break
  27.     print n
  28.     n+=1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top