def apply_function(self, function):
     factor = self.pre_function_handle_to_anchor_scale_factor
     self.scale_handle_to_anchor_distances(factor)
     Mobject.apply_function(self, function)
     self.scale_handle_to_anchor_distances(1. / factor)
     if self.make_smooth_after_applying_functions:
         self.make_smooth()
     return self
Exemple #2
0
 def apply_function(self, function):
     factor = self.pre_function_handle_to_anchor_scale_factor
     self.scale_handle_to_anchor_distances(factor)
     Mobject.apply_function(self, function)
     self.scale_handle_to_anchor_distances(1. / factor)
     if self.make_smooth_after_applying_functions:
         self.make_smooth()
     return self
Exemple #3
0
 def interpolate_submobject(
     self,
     submob: Mobject,
     start: Mobject,
     alpha: float
 ) -> None:
     submob.match_points(start)
     submob.apply_function(
         self.function_at_time_t(alpha),
         **self.apply_function_kwargs
     )
 def apply_function(self, function):
     Mobject.apply_function(self, function)
     if self.make_smooth_after_applying_functions:
         self.make_smooth()
     return self