about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-14 12:21:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-14 12:21:59 -0700
commit422dd3c3b7c0a3a2cf702d9def25fd174397c814 (patch)
tree931aa8665f4778954ad5d4b5538d370c609ea24e
parenta1893a44d020dc3af7eea8d679312b32dd04ad77 (diff)
downloadlines.love-422dd3c3b7c0a3a2cf702d9def25fd174397c814.tar.gz
color close to drawing
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 5f415e4..85181f5 100644
--- a/main.lua
+++ b/main.lua
@@ -49,9 +49,9 @@ function love.draw()
                    end})
     elseif type(line) == 'table' then
       -- line drawing
-      love.graphics.setColor(0.75,0.75,0.75)
       line.y = y
       y = y+pixels(line.h)
+      love.graphics.setColor(0.75,0.75,0.75)
       love.graphics.rectangle('line', 12,line.y, drawingw,pixels(line.h))
 
       local mx,my = coord(love.mouse.getX()-12), coord(love.mouse.getY()-line.y)