EmbroidePy / pyembroidery

pyembroidery library for reading and writing a variety of embroidery formats.
MIT License
195 stars 35 forks source link

Repr code and api rough edge smoothing. #90

Closed tatarize closed 4 years ago

tatarize commented 4 years ago

With a proper *args, **kwargs erasure for EmbPattern the example write code:

from pyembroidery import *
pattern = EmbPattern()
pattern.add_block([(0, 0), (0, 100), (100, 100), (100, 0), (0, 0)], "red")
write_dst(pattern, "file.dst")

Could easily become.

from pyembroidery import *
pattern = EmbPattern([(0, 0), (0, 100), (100, 100), (100, 0), (0, 0)], "red").write('file.dst')

None of this would need breaking changes.