mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 13:03:31 +08:00
Get rid of get_point_mobject
This commit is contained in:
@ -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",
|
||||||
|
Reference in New Issue
Block a user