Metadata-Version: 2.1
Name: turtle2img
Version: 1.0.1
Summary: Save turtle images as jpg or png
Home-page: https://github.com/An-20/turtle2img
Author: An-20
License: BSD (3 clauses)
Keywords: turtle,image,png,jpg
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
License-File: LICENSE

Turtle to png / jpg exporter
========================================================================

This is a fork of WojciechMula/canvas2svg which uses cairosvg and Pillow
to convert things drawn in Python's turtle library to png or jpg files.

The list of supported items is the same as canvas2svg.

Supported items:

* lines
* lines with arrows
* polygons
* smoothed lines and polygons
* ovals (i.e. circle & ellipse)
* arcs (all kind, i.e. ARC, CHORD, PIESLICE)
* rectangles
* text (**unwrapped** only i.e. attribute width = 0)

Unsupported items:

* images
* bitmaps
* windows

Stipples are not applied.


Public functions
------------------------------------------------------------------------

save_png(filepath: str, margin=10) -> None:

* filepath: The filepath to save the output image to
* margin: The number of pixels around the bounding box of image elements to include


save_jpg(filepath: str, margin=10) -> None:

* filepath: The filepath to save the output image to
* margin: The number of pixels around the bounding box of image elements to include

Original repository: https://github.com/WojciechMula/canvas2svg


