Add mirror() to shapes
Might need to fix ordering on Text.to_polygons()
This commit is contained in:
parent
358f45c5fd
commit
d5a255a9d7
6 changed files with 52 additions and 2 deletions
|
|
@ -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':
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue