Untitled
unknown
plain_text
a year ago
399 B
6
Indexable
from turtle import *
def koch(n):
speed(0)
t=500
up()
goto(-250,140)
pd()
seth(0)
for k in range(3):
fractale(n,t)
left(-120)
def fractale(n,t):
if n > 0 :
fractale(n-1,t/3)
left(60)
fractale(n-1,t/3)
left(-120)
fractale(n-1,t/3)
left(60)
fractale(n-1,t/3)
else :
forward(t)Editor is loading...
Leave a Comment