mirror of
https://gitlab.com/naja42/python-malbuch.git
synced 2024-11-22 07:33:31 +01:00
Add new file
This commit is contained in:
parent
dd07974e68
commit
602e21972d
25
FuerUhuhoehe
Normal file
25
FuerUhuhoehe
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
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()
|
Loading…
Reference in New Issue
Block a user