matthras/tsp-art-python

Output SVG file

Opened this issue · 0 comments

Having an SVG output would enable for more flexibility in terms of image scaling, and would prevent the user from having to increase the size of the image before stippling + TSP.

Currently don't know how to do this, but seems like a viable option to try programming next!

EDIT: Looks like there are two Python libraries for this one

EDIT2 (18/07/2020): I think I'm going to go with pycairo since it's more 'established', from memory. That'll also help make it easier for others to use, and ideally has more flexible options over other Python libraries.

Leaving some user stories for myself here in terms of what functionality I want out of it:

  • I want the option of outputting PNG, SVG, or both.
  • I want an option of 'opening' the final PNG/SVG file to view, rather than having to migrate to the actual folder.
  • I want an option to resize the image (that means scaling up/down coordinates and image dimensions) BEFORE I draw it in PNG/SVG