diff options
author | ubq323 <ubq323@ubq323.website> | 2022-12-31 04:04:56 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-12-31 04:04:56 +0000 |
commit | f285236b709f2f931ad5b8d140a984c895eac6f4 (patch) | |
tree | 638bc032ea5522de10c43239a47794b44d92e52c /img | |
parent | 36bbfc1e3877607fdc9d30a060ea890e04b3fe16 (diff) |
print
Diffstat (limited to 'img')
-rw-r--r-- | img/print.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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() |