began shape.tooutline; made Lua code more compact