correct a mis-named threshold

[?]
Jul 13, 2022, 4:38 AM
2Y5GGGJ4YNCFSRTQRMW53RMS4EAAL3FPHA5KLOIM53JM3JHLFGWQC

Dependencies

  • [2] UHB4GARJ left/right margin -> left/right coordinates
  • [3] 7JH2ZT3F add state arg to Drawing.draw
  • [4] LF7BWEG4 group all editor globals
  • [5] 4KC7I3E2 make colors easier to edit
  • [6] BLWAYPKV extract a module
  • [7] VHQCNMAR several more modules
  • [8] R3JZDBI2 drop heavyweight near check on file load/store
  • [9] LAW2O3NW extract variable Margin_left
  • [*] 2L5MEZV3 experiment: new edit namespace

Change contents

  • edit in edit.lua at line 16
    [2.22248]
    [2.22248]
    Same_point_distance = 4 -- pixel distance at which two points are considered the same
  • replacement in drawing.lua at line 44
    [3.1159][2.37086:37185]()
    love.graphics.circle('line', Drawing.pixels(p.x)+State.left,Drawing.pixels(p.y)+line.y, 4)
    [3.1159]
    [3.1335]
    love.graphics.circle('line', Drawing.pixels(p.x)+State.left,Drawing.pixels(p.y)+line.y, Same_point_distance)
  • replacement in drawing.lua at line 709
    [3.23060][2.39398:39461]()
    return (cx-px)*(cx-px) + (cy-py)*(cy-py) < Editor_state.left
    [3.23060]
    [3.23108]
    return (cx-px)*(cx-px) + (cy-py)*(cy-py) < Same_point_distance*Same_point_distance