diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-14 16:13:51 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-14 16:13:51 -0700 |
commit | 7d6eeed194584777c45baddc3a1f5df71b8883ee (patch) | |
tree | b1cee769b650e0497f7a4a7ae50c635fba4070b4 | |
parent | a995e796ff3bf4d248c8cb71f9f0721ab12b1c52 (diff) | |
download | text.love-7d6eeed194584777c45baddc3a1f5df71b8883ee.tar.gz |
make point near focus 'pop'
-rw-r--r-- | main.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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) |