We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 090f132 commit bc8a558Copy full SHA for bc8a558
Koch Curve/koch curve.py
@@ -6,7 +6,9 @@
6
def snowflake(lengthSide, levels):
7
if levels == 0:
8
forward(lengthSide)
9
- return
+ return #if the levels became zero then stop returning
10
+ #to use the length side by 1/3rd of the previous
11
+ #length since we are trisecting the line (koch curve logics to create the fractal)
12
lengthSide /= 3.0
13
snowflake(lengthSide, levels-1)
14
left(60)
0 commit comments