From f69e17d35074d846136254f78f1b3e41b3897fa3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 19 May 2022 05:49:32 -0700 Subject: another integer coordinate --- drawing.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drawing.lua b/drawing.lua index 54fb2c2..1bd6ac7 100644 --- a/drawing.lua +++ b/drawing.lua @@ -688,7 +688,7 @@ function Drawing.near(point, x,y) end function Drawing.pixels(n) -- parts to pixels - return n*Drawing_width/256 + return math.floor(n*Drawing_width/256) end function Drawing.coord(n) -- pixels to parts return math.floor(n*256/Drawing_width) -- cgit 1.4.1-2-gfad0 'hidden' name='id' value='dc0ad458c9b18b36e18b3ff6ae85826e534bece1'/> Fork of lines.love without drawings; useful starting point for further forksKartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/source_tests.lua
blob: bf3ae3ec710453bcc4b276b21e158a0124ed3238 (plain) (tree)
1
2
3
4
5
6
7
8
9