mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Get rid of get_point_mobject
This commit is contained in:
parent
57b1523d96
commit
c88bcc1a3c
2 changed files with 0 additions and 12 deletions
|
@ -156,11 +156,6 @@ class PMobject(Mobject):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_point_mobject(self, center=None):
|
|
||||||
if center is None:
|
|
||||||
center = self.get_center()
|
|
||||||
return Point(center)
|
|
||||||
|
|
||||||
def interpolate_color(self, mobject1, mobject2, alpha):
|
def interpolate_color(self, mobject1, mobject2, alpha):
|
||||||
self.rgbas = interpolate(
|
self.rgbas = interpolate(
|
||||||
mobject1.rgbas, mobject2.rgbas, alpha
|
mobject1.rgbas, mobject2.rgbas, alpha
|
||||||
|
|
|
@ -748,13 +748,6 @@ class VMobject(Mobject):
|
||||||
setattr(self, attr, new_a1)
|
setattr(self, attr, new_a1)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def get_point_mobject(self, center=None):
|
|
||||||
if center is None:
|
|
||||||
center = self.get_center()
|
|
||||||
point = VectorizedPoint(center)
|
|
||||||
point.match_style(self)
|
|
||||||
return point
|
|
||||||
|
|
||||||
def interpolate_color(self, mobject1, mobject2, alpha):
|
def interpolate_color(self, mobject1, mobject2, alpha):
|
||||||
attrs = [
|
attrs = [
|
||||||
"fill_rgbas",
|
"fill_rgbas",
|
||||||
|
|
Loading…
Add table
Reference in a new issue