Devine's suggestion to try to live with just freehand

[?]
May 14, 2022, 7:14 PM
HRWN5V6J6VMXS7WNSRGI7WMUSZ2OI52JJ4IK352VVSDZI4EF5HHQC

Dependencies

Change contents

  • edit in main.lua at line 200
    [2.119]
    [2.119]
    elseif chord == 'C-s' then
    local drawing,i,shape = select_shape_at_mouse()
    if drawing then
    smoothen(shape)
    end
  • edit in main.lua at line 243
    [5.330]
    [5.330]
    function smoothen(shape)
    for _=1,7 do
    for i=2,#shape-1 do
    local a = shape[i-1]
    local b = shape[i]
    local c = shape[i+1]
    b.x = (a.x + b.x + c.x)/3
    b.y = (a.y + b.y + c.y)/3
    end
    end
    end