about summary refs log tree commit diff stats
path: root/drawing.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-17 23:16:49 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-17 23:16:49 -0700
commit97bbc7da7f9ccb8bc6cb9c6506c746b1e89730e8 (patch)
tree536cc3cbd11008b679e30d9f9076da21f6b04940 /drawing.lua
parent0248339898ed7c6f25dca5ae10458a8fee969c47 (diff)
downloadlines.love-97bbc7da7f9ccb8bc6cb9c6506c746b1e89730e8.tar.gz
clean up
Diffstat (limited to 'drawing.lua')
-rw-r--r--drawing.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/drawing.lua b/drawing.lua
index e191767..7ebf177 100644
--- a/drawing.lua
+++ b/drawing.lua
@@ -4,8 +4,6 @@ geom = require 'geom'
 
 require 'drawing_tests'
 
-Show_nearby = false
-
 -- All drawings span 100% of some conceptual 'page width' and divide it up
 -- into 256 parts.
 function Drawing.draw(line)
@@ -30,17 +28,6 @@ function Drawing.draw(line)
     return
   end
 
-  if Show_nearby then
-    love.graphics.setColor(1,0.75,0.75)
-    for y=0,127 do
-      for x=0,255 do
-        if geom.on_any_shape(x,y, line) then
-          love.graphics.circle('fill', Drawing.pixels(x)+Margin_left, Drawing.pixels(y)+line.y, 2)
-        end
-      end
-    end
-  end
-
   local mx,my = Drawing.coord(pmx-Margin_left), Drawing.coord(pmy-line.y)
 
   for _,shape in ipairs(line.shapes) do
@@ -383,10 +370,6 @@ function Drawing.mouse_released(x,y, button)
 end
 
 function Drawing.keychord_pressed(chord)
-  if chord == 'C-a' then
-    Show_nearby = not Show_nearby
-    return
-  end
   if chord == 'C-p' and not App.mouse_down(1) then
     Current_drawing_mode = 'freehand'
   elseif App.mouse_down(1) and chord == 'l' then