make points easier to acquire

[?]
May 14, 2022, 11:15 PM
T664AOUGOSFMPZAO6OGKJ26R22ORJUIBVG3QZOJL24MQXYEHBXOQC

Dependencies

  • [2] FI6IK76M snap lines to nearby points
  • [3] KCIM5UTV revert: back to freehand
  • [4] VQFBNHU4 make point near focus 'pop'
  • [5] EFMLTMZG bugfix: restrict strokes to the drawing they started in
  • [6] IFGAJAF7 add a level of indirection to vertices of shapes
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • replacement in main.lua at line 98
    [3.237][3.237:277]()
    if p.x == mx and p.y == my then
    [3.237]
    [3.277]
    if near(p, mx,my) then
  • edit in main.lua at line 176
    [3.797][2.3:39]()
    local px,py = pixels(x),pixels(y)
  • replacement in main.lua at line 177
    [3.832][2.40:142]()
    local cx,cy = pixels(point.x), pixels(point.y)
    if (cx-px)*(cx-px) + (cy-py)*(cy-py) < 16 then
    [3.832]
    [3.874]
    if near(point, x,y) then
  • edit in main.lua at line 183
    [3.955]
    [3.955]
    end
    function near(point, x,y)
    local px,py = pixels(x),pixels(y)
    local cx,cy = pixels(point.x), pixels(point.y)
    return (cx-px)*(cx-px) + (cy-py)*(cy-py) < 16