B:BD[
4.109] → [
5.357:467]
∅:D[
2.288] → [
11.1397:1450]
∅:D[
12.350] → [
11.1397:1450]
∅:D[
13.1736] → [
11.1397:1450]
B:BD[
14.957] → [
11.1397:1450]
B:BD[
11.1450] → [
2.289:425]
B:BD[
15.56] → [
2.426:500]
∅:D[
2.500] → [
15.114:210]
B:BD[
15.114] → [
15.114:210]
∅:D[
15.210] → [
11.1570:1584]
∅:D[
12.471] → [
11.1570:1584]
B:BD[
11.1570] → [
11.1570:1584]
∅:D[
16.87] → [
10.1647:1659]
∅:D[
6.229] → [
10.1647:1659]
∅:D[
17.634] → [
10.1647:1659]
∅:D[
14.1068] → [
10.1647:1659]
∅:D[
11.1584] → [
10.1647:1659]
B:BD[
10.1647] → [
10.1647:1659]
if Lines.current then
if Lines.current.mode == 'drawing' then
local drawing = Lines.current
local x, y = love.mouse.getX(), love.mouse.getY()
if y >= drawing.y and y < drawing.y + Drawing.pixels(drawing.h) and x >= 16 and x < 16+Drawing_width then
if drawing.pending.mode == 'freehand' then
table.insert(drawing.pending.points, {x=Drawing.coord(love.mouse.getX()-16), y=Drawing.coord(love.mouse.getY()-drawing.y)})
elseif drawing.pending.mode == 'move' then
local mx,my = Drawing.coord(x-16), Drawing.coord(y-drawing.y)
drawing.pending.target_point.x = mx
drawing.pending.target_point.y = my
end
end
if Drawing.in_drawing(drawing, x,y) then
if drawing.pending.mode == 'freehand' then
table.insert(drawing.pending.points, {x=Drawing.coord(love.mouse.getX()-16), y=Drawing.coord(love.mouse.getY()-drawing.y)})
elseif drawing.pending.mode == 'move' then
local mx,my = Drawing.coord(x-16), Drawing.coord(y-drawing.y)
drawing.pending.target_point.x = mx
drawing.pending.target_point.y = my