more lightweight; select just the stroke at the mouse

[?]
May 12, 2022, 5:15 AM
MNWHXPBL23TOI45LPF7ZECXSURCD2TRLM2EOFNBKFNHIWWKDQWCQC

Dependencies

  • [2] G77XIN7M selecting a stroke
  • [3] TRCAEE2A clip drawings inside the border
  • [4] QU7NHFOV show cursor
  • [5] EFMLTMZG bugfix: restrict strokes to the drawing they started in
  • [6] Z2CJVAPV lighter border for figures
  • [7] OTIBCAUJ love2d scaffold
  • [8] 6LJZN727 handle chords
  • [9] IZZVOCLB confirm that we have access to all of the love API
  • [10] XX7G2FFJ intermingle freehand line drawings with text

Change contents

  • edit in main.lua at line 7
    [3.14][2.3:13]()
    mode = ''
  • replacement in main.lua at line 47
    [3.849][2.14:45]()
    if shape.selected then
    [3.849]
    [2.45]
    if on_freehand(love.mouse.getX(),love.mouse.getY(), shape) then
  • replacement in main.lua at line 81
    [3.446][2.151:203]()
    if love.mouse.isDown('1') and mode == 'draw' then
    [3.446]
    [3.3]
    if love.mouse.isDown('1') then
  • edit in main.lua at line 100
    [3.187][2.204:220]()
    mode = 'grab'
  • edit in main.lua at line 105
    [3.440][2.221:391]()
    for _,shape in ipairs(drawing.shapes) do
    if on_freehand(x,y, shape) then
    shape.selected = true
    return
    end
    end
  • edit in main.lua at line 108
    [3.464][2.392:408]()
    mode = 'draw'