load/save freehand strokes
[?]
May 15, 2022, 9:20 PM
LBQAAJN4CGSIEO3L4UNKYTPX6MRLUJYHCMRMFTFLLTTAGCRUSE7QCDependencies
- [2]
YKRF5V3Zstarting to load/save - [3]
FMQ74DP3new mode: circle - [4]
JCSLDGAHbeginnings of support for multiple shapes - [5]
IFGAJAF7add a level of indirection to vertices of shapes - [6]
ZD63LJ2Tbugfix: keep the click to create a new drawing from creating a new shape in the drawing - [7]
EFMLTMZGbugfix: restrict strokes to the drawing they started in - [8]
JVRL5TWLstore device-independent coordinates inside drawings - [9]
HWPK4SMPnew mode: manhattan - [10]
S5JIPJPI. - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in main.lua at line 230
drawing.pending = {mode=current_mode, points={x=coord(x-16), y=coord(y-drawing.y)}}drawing.pending = {mode=current_mode, points={{x=coord(x-16), y=coord(y-drawing.y)}}} - edit in main.lua at line 787
outfile:close() - replacement in main.lua at line 810
if shape.mode == 'line' thenif shape.mode == 'freehand' thenoutfile:write(json.encode({mode='freehand', points={{x=40,y=47}}})..'\n')for k,v in pairs(shape) doprint(k, v)endfor k,v in pairs(shape.points) doprint(k,v)if type(v) == 'table' thenfor k,v in pairs(v) doprint('', k,v)endendendoutfile:write(json.encode(shape)..'\n')elseif shape.mode == 'line' then - edit in main.lua at line 827
elseif shape.mode == 'circle' then