From 5c3fd25d7ef7f0b5690c3d3aa8aebf675db3ad40 Mon Sep 17 00:00:00 2001 From: Naveen Michaud-Agrawal Date: Fri, 17 Nov 2023 12:22:46 +0000 Subject: Change the text api slightly to use position instead of center --- virtual-programs/display/text.folk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'virtual-programs') diff --git a/virtual-programs/display/text.folk b/virtual-programs/display/text.folk index 0233a450..fa68aa40 100644 --- a/virtual-programs/display/text.folk +++ b/virtual-programs/display/text.folk @@ -213,8 +213,11 @@ On process "display" { When (non-capturing) /someone/ wishes to draw text with /...options/ { if {[dict exists $options center]} { + # This is deprecated lassign [dict get $options center] x0 y0 - } else { + } elseif {[dict exists $options position]} { + lassign [dict get $options position] x0 y0 + else { set x0 [dict get $options x] set y0 [dict get $options y] } -- cgit v1.2.3