Skip to content

Commit ca1c5e1

Browse files
committed
adding koch examples
1 parent 5780beb commit ca1c5e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cartesian_koch_2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2023 Jose D. Montoya
22
#
33
# SPDX-License-Identifier: MIT
4-
4+
# pylint: disable=unused-argument, use-dict-literal
55
# Example adapted to use in CircuitPython and Microplot from
66
# Heltonbiker
77
# https://stackoverflow.com/questions/7409938/fractal-koch-curve
@@ -36,7 +36,7 @@ def F(angle, coords, jump):
3636

3737
def koch(steps, length=200, startPos=(0, 0)):
3838
pathcodes = "F"
39-
for i in range(steps):
39+
for _ in range(steps):
4040
pathcodes = pathcodes.replace("F", "FLFRFLF")
4141

4242
jump = float(length) / (3**steps)

0 commit comments

Comments
 (0)