Add mirror() to shapes

Might need to fix ordering on Text.to_polygons()
This commit is contained in:
jan 2018-04-14 15:27:56 -07:00
commit d5a255a9d7
6 changed files with 52 additions and 2 deletions

View file

@ -71,6 +71,16 @@ class Shape(metaclass=ABCMeta):
"""
pass
@abstractmethod
def mirror(self, axis: int) -> 'Shape':
"""
Mirror the shape across an axis.
:param axis: Axis to mirror across.
:return: self
"""
pass
@abstractmethod
def scale_by(self, c: float) -> 'Shape':
"""