From f285236b709f2f931ad5b8d140a984c895eac6f4 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 31 Dec 2022 04:04:56 +0000 Subject: print --- img/print.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/img/print.lua b/img/print.lua index 69bd851..89d55e8 100644 --- a/img/print.lua +++ b/img/print.lua @@ -17,12 +17,15 @@ local function c2c(col) end local function print_tile(tilex,tiley) + print("tile ",tilex,tiley) local tilex0 = tilex-1 local tiley0 = tiley-1 local xm = (8*tilex0)+1 local ym = (8*tiley0)+1 local xM = math.min(W,xm+7) local yM = math.min(H,ym+7) + print(" x from ",xm,"to",xM) + print(" y from ",ym,"to",yM) -- really i should have called this u and v instead of x and y. joker emoji printer.reset() -- cgit v1.2.3