@@ -0,0 +1,210 @@
+import ui%0A%0A%0Adef get_path_image(path):%0A    %22%22%22 Get an image of a path %22%22%22%0A    bounds = path.bounds%0A    with ui.ImageContext(bounds.max_x, bounds.max_y) as ctx:%0A        path.fill()%0A        return ctx.get_image()%0A

Create path_helpers.py