forked from extern/python-malbuch
26 lines
580 B
Plaintext
26 lines
580 B
Plaintext
|
from turtle import *
|
||
|
speed(100)
|
||
|
pensize(10)
|
||
|
shape("turtle")
|
||
|
penup()
|
||
|
goto(0,250)
|
||
|
pendown()
|
||
|
schrittanzahl1 = 12
|
||
|
|
||
|
for i in range(schrittanzahl1):
|
||
|
# print("i:", i, "i/schr.", i/schrittanzahl)
|
||
|
pencolor(i/schrittanzahl1, 0, 0)
|
||
|
forward(200)
|
||
|
right(30)
|
||
|
schrittanzahl2 = 8
|
||
|
for j in range(schrittanzahl2):
|
||
|
pencolor(i/schrittanzahl1, j/schrittanzahl1, 0)
|
||
|
forward(100)
|
||
|
left(45)
|
||
|
for k in range(schrittanzahl2):
|
||
|
pencolor(i/schrittanzahl1, j/schrittanzahl1, k/schrittanzahl1)
|
||
|
forward(100)
|
||
|
left(90)
|
||
|
|
||
|
done()
|