round coordinates to integers in a few places
[?]
Jul 30, 2022, 4:54 AM
KJQ5FEYVVQJTQ5YKHK77CQ7QWVUPW5LO3K7PK2CPJ447WD5UYUVACDependencies
- [2]
65HNIAOSmake freehand drawings smoother - [3]
XNFTJHC4split keyboard handling between Text and Drawing - [4]
SRVDX4I5local var - [5]
6DE7RBZ6move mouse_released events to Drawing - [6]
LF7BWEG4group all editor globals - [7]
3OTESDW6move drawing.starty into line cache - [8]
QXVD2RIFadd state arg to Drawing.mouse_released - [9]
LAW2O3NWextract variable Margin_left - [10]
VHQCNMARseveral more modules - [11]
WTDKUACNrectangle and square shapes - [12]
WI7R44TDbugfix - [13]
UHB4GARJleft/right margin -> left/right coordinates - [14]
P5QNVXSNdrop final mention of state global beyond main.lua - [*]
BLWAYPKVextract a module
Change contents
- replacement in drawing.lua at line 367
drawing.pending.radius = geom.dist(center.x,center.y, mx,my)drawing.pending.radius = round(geom.dist(center.x,center.y, mx,my)) - replacement in drawing.lua at line 583
local thirdx = ((x-a*y) - a*c) / (a*a + 1)local thirdy = (a*(-x + a*y) - c) / (a*a + 1)local thirdx = round(((x-a*y) - a*c) / (a*a + 1))local thirdy = round((a*(-x + a*y) - c) / (a*a + 1)) - replacement in drawing.lua at line 592
local fourthx = ((firstx-a*firsty) - a*c) / (a*a + 1)local fourthy = (a*(-firstx + a*firsty) - c) / (a*a + 1)local fourthx = round(((firstx-a*firsty) - a*c) / (a*a + 1))local fourthy = round((a*(-firstx + a*firsty) - c) / (a*a + 1)) - replacement in drawing.lua at line 702
b.x = (a.x + b.x + c.x)/3b.y = (a.y + b.y + c.y)/3b.x = round((a.x + b.x + c.x)/3)b.y = round((a.y + b.y + c.y)/3) - edit in drawing.lua at line 708
function round(num)return math.floor(num+.5)end