aboutsummaryrefslogtreecommitdiff
path: root/make-points.scm
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2024-01-05 03:08:48 +0100
committerWojtek Kosior <koszko@koszko.org>2024-01-05 03:08:48 +0100
commit49dee0bd3d9977a5c1d10cb74ffe0eebd31c220b (patch)
tree08756780f798c044d5e041e1a4595d3d17d04f0b /make-points.scm
parent5d6730edaf8dd5820837ab698d74c265c309d8a6 (diff)
downloadconnect-the-dots-49dee0bd3d9977a5c1d10cb74ffe0eebd31c220b.tar.gz
connect-the-dots-49dee0bd3d9977a5c1d10cb74ffe0eebd31c220b.zip
Fix "-r" CLI switch for reversing points order.
Diffstat (limited to 'make-points.scm')
-rwxr-xr-xmake-points.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/make-points.scm b/make-points.scm
index 56c711f..abbdaba 100755
--- a/make-points.scm
+++ b/make-points.scm
@@ -133,7 +133,9 @@ Copyright (C) 2023 Wojtek Kosior <koszko@koszko.org>
(loop position* command (cons position* path-points) rest))))))
(define point-coords
- (parse-path point-coords-text))
+ ((if (option-ref %options 'reverse-order #f)
+ reverse identity)
+ (parse-path point-coords-text)))
(define points-count
(length point-coords))