diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-19 05:49:32 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-19 05:49:32 -0700 |
commit | f69e17d35074d846136254f78f1b3e41b3897fa3 (patch) | |
tree | a21b47d34441e9d670f63f30a9129dd357439f2a | |
parent | 35d14c8aff021923571a3e44774340fa71a0f0ee (diff) | |
download | lines.love-f69e17d35074d846136254f78f1b3e41b3897fa3.tar.gz |
another integer coordinate
-rw-r--r-- | drawing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |