mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 04:53:34 +08:00
Decompose ellipse manipulations
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user