From 7d6eeed194584777c45baddc3a1f5df71b8883ee Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 14 May 2022 16:13:51 -0700 Subject: make point near focus 'pop' --- main.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index a09e580..d6a3abf 100644 --- a/main.lua +++ b/main.lua @@ -97,11 +97,13 @@ function love.draw() for _,p in ipairs(line.points) do if p.x == mx and p.y == my then love.graphics.setColor(1,0,0) + love.graphics.circle('line', pixels(p.x)+16,pixels(p.y)+line.y, 4) else love.graphics.setColor(0,0,0) + love.graphics.circle('fill', pixels(p.x)+16,pixels(p.y)+line.y, 2) end - love.graphics.circle('line', pixels(p.x)+16,pixels(p.y)+line.y, 4) end +--? print(#line.points) draw_pending_shape(16,line.y, line) else love.graphics.draw(text, 25,y, 0, 1.5) -- cgit 1.4.1-2-gfad0