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

@ -142,6 +142,11 @@ class Ellipse(Shape):
self.rotation += theta
return self
def mirror(self, axis: int) -> 'Ellipse':
self.offset[axis - 1] *= -1
self.rotation *= -1
return self
def scale_by(self, c: float) -> 'Ellipse':
self.radii *= c
return self