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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue