make points easier to acquire
[?]
May 14, 2022, 11:15 PM
T664AOUGOSFMPZAO6OGKJ26R22ORJUIBVG3QZOJL24MQXYEHBXOQCDependencies
- [2]
FI6IK76Msnap lines to nearby points - [3]
KCIM5UTVrevert: back to freehand - [4]
VQFBNHU4make point near focus 'pop' - [5]
EFMLTMZGbugfix: restrict strokes to the drawing they started in - [6]
IFGAJAF7add a level of indirection to vertices of shapes - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in main.lua at line 98
if p.x == mx and p.y == my thenif near(p, mx,my) then - edit in main.lua at line 176
local px,py = pixels(x),pixels(y) - replacement in main.lua at line 177
local cx,cy = pixels(point.x), pixels(point.y)if (cx-px)*(cx-px) + (cy-py)*(cy-py) < 16 thenif near(point, x,y) then - edit in main.lua at line 183
endfunction near(point, x,y)local px,py = pixels(x),pixels(y)local cx,cy = pixels(point.x), pixels(point.y)return (cx-px)*(cx-px) + (cy-py)*(cy-py) < 16