kaka.farm

Unnamed repository; edit this file 'description' to name the repository.
git clone https://kaka.farm/~git/kaka.farm
Log | Files | Refs | README

commit 26bd426d2d35821ba0018e0c58502d091bbd206f
parent 8b5aa1913e54f548064851b676883c72c5a81acd
Author: Yuval Langer <yuvallangerontheroad@gmail.com>
Date:   Fri,  5 Jun 2020 19:58:13 +0300

Use xy flipping function.

Diffstat:
Mdabbling/hilbert_curve.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dabbling/hilbert_curve.py b/dabbling/hilbert_curve.py @@ -14,14 +14,14 @@ def mirror_on_xy(path): def right_flip(path): path = mirror_on_y(path) - path = [(p[1], p[0]) for p in path] + path = mirror_on_xy(path) path = mirror_on_y(path) return path def left_flip(path): - return [(p[1], p[0]) for p in path] + return mirror_on_xy(path) def hilbert_curve(iterations=3):