summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2022-10-13 20:33:13 +0000
committerOmar Rizwan <omar@omar.website>2022-10-13 20:33:13 +0000
commitcf9643744c53a248f32babbf688c618fd7a64d58 (patch)
treef9ad5d97c08b56c83990ff4cb809523b3bb97681 /virtual-programs
parentsupport for live-updating cproc so i can edit print logic live (diff)
downloadfolk-cf9643744c53a248f32babbf688c618fd7a64d58.tar.gz
folk-cf9643744c53a248f32babbf688c618fd7a64d58.zip
apriltag rendering works (just upside-down)
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/print-test.folk1
-rw-r--r--virtual-programs/print.folk2
2 files changed, 2 insertions, 1 deletions
diff --git a/virtual-programs/print-test.folk b/virtual-programs/print-test.folk
index 2f455d63..661604f5 100644
--- a/virtual-programs/print-test.folk
+++ b/virtual-programs/print-test.folk
@@ -6,3 +6,4 @@ catch {
} err
puts $err
# puts $::livecprocs
+
diff --git a/virtual-programs/print.folk b/virtual-programs/print.folk
index b3ddb573..86d67eeb 100644
--- a/virtual-programs/print.folk
+++ b/virtual-programs/print.folk
@@ -38,7 +38,7 @@ livecproc tagImageForId {int id} string {
emit("%d %d moveto ", col, row); // bottom-left
emit("%d %d lineto ", col + 1, row); // bottom-right
emit("%d %d lineto ", col + 1, row + 1); // top-right
- emit("%d %d lineto ", col + 1, row + 1); // top-left
+ emit("%d %d lineto ", col, row + 1); // top-left
emit("closepath fill ");
}
emit("\n");