mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Decompose ellipse manipulations
This commit is contained in:
parent
09579fcd3e
commit
88f0c24c69
1 changed files with 5 additions and 1 deletions
|
@ -169,7 +169,11 @@ class SVGMobject(VMobject):
|
|||
else 0.0
|
||||
for key in ("cx", "cy", "rx", "ry")
|
||||
]
|
||||
return Circle().scale(rx * RIGHT + ry * UP).shift(x * RIGHT + y * DOWN)
|
||||
result = Circle()
|
||||
result.stretch(rx, 0)
|
||||
result.stretch(ry, 1)
|
||||
result.shift(x * RIGHT + y * DOWN)
|
||||
return result
|
||||
|
||||
def rect_to_mobject(self, rect_element):
|
||||
fill_color = rect_element.getAttribute("fill")
|
||||
|
|
Loading…
Add table
Reference in a new issue