Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Remove unused set_opacity method (#2060)

Ryan McCauley977320d51bd0
diff --git a/manim/mobject/geometry.py b/manim/mobject/geometry.py
index 488680652..0cad357cc 100644
--- a/manim/mobject/geometry.py
+++ b/manim/mobject/geometry.py
@@ -1088,15 +1088,6 @@ class Line(TipableVMobject):
def set_length(self, length):
return self.scale(length / self.get_length())
- def set_opacity(self, opacity, family=True):
- # Overwrite default, which would set
- # the fill opacity
- self.set_stroke(opacity=opacity)
- if family:
- for sm in self.submobjects:
- sm.set_opacity(opacity, family)
- return self
-
class DashedLine(Line):
"""A dashed :class:`Line`.