diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-30 07:13:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-30 07:13:45 -0700 |
commit | f72185ab19878e271962392a29f0b8be080349c5 (patch) | |
tree | b0a2760ad2b6338741af5ec3949801e30389de95 /drawing.lua | |
parent | 9d80e92415a2e971105c500d74c39c23c80fc2be (diff) | |
download | lines.love-f72185ab19878e271962392a29f0b8be080349c5.tar.gz |
round one coordinate
Diffstat (limited to 'drawing.lua')
-rw-r--r-- | drawing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawing.lua b/drawing.lua index f31390d..33bdbc0 100644 --- a/drawing.lua +++ b/drawing.lua @@ -492,7 +492,7 @@ function Drawing.keychord_pressed(State, chord) drawing.pending.mode = 'arc' local mx,my = Drawing.coord(App.mouse_x()-State.left, State.width), Drawing.coord(App.mouse_y()-line_cache.starty, State.width) local center = drawing.points[drawing.pending.center] - drawing.pending.radius = geom.dist(center.x,center.y, mx,my) + drawing.pending.radius = round(geom.dist(center.x,center.y, mx,my)) drawing.pending.start_angle = geom.angle(center.x,center.y, mx,my) elseif App.mouse_down(1) and chord == 'o' then State.current_drawing_mode = 'circle' |