T76KKDWZLQSWMXT2ZE2PPNKBKB4W5M4BW5E6ICHKEBDAUBN6FMZAC end-- turn a stroke into either a horizontal or vertical linefunction convert_horvert(drawing, i, shape)local x1,y1 = shape[1].x, shape[1].ylocal x2,y2 = shape[#shape].x, shape[#shape].yif math.abs(x1-x2) > math.abs(y1-y2) thendrawing.shapes[i] = {{x=x1, y=y1}, {x=x2, y=y1}}elsedrawing.shapes[i] = {{x=x1, y=y1}, {x=x1, y=y2}}end