snap lines to nearby points

[?]
May 14, 2022, 11:10 PM
FI6IK76MDA4WQP7MMDMPTKW5Y7LO3WTYYZL3T5WTTESLS4ABAK6QC

Dependencies

  • [2] IFGAJAF7 add a level of indirection to vertices of shapes
  • [3] EFMLTMZG bugfix: restrict strokes to the drawing they started in
  • [4] JCSLDGAH beginnings of support for multiple shapes
  • [*] OTIBCAUJ love2d scaffold

Change contents

  • edit in main.lua at line 174
    [2.797]
    [2.797]
    local px,py = pixels(x),pixels(y)
  • replacement in main.lua at line 176
    [2.832][2.832:874]()
    if point.x == x and point.y == y then
    [2.832]
    [2.874]
    local cx,cy = pixels(point.x), pixels(point.y)
    if (cx-px)*(cx-px) + (cy-py)*(cy-py) < 16 then