A community-maintained Python framework for creating mathematical animations.
Enabled coloring of the point in a GrowFromPoint animation
Grant Sanderson226f0153bd41
diff --git a/animation/transform.py b/animation/transform.pyindex 433650dff..aec862b0a 100644--- a/animation/transform.py+++ b/animation/transform.py@@ -101,9 +101,15 @@ class Swap(CyclicReplace):pass #Renaming, more understandable for two entriesclass GrowFromPoint(Transform):+ CONFIG = {+ "point_color" : None,+ }def __init__(self, mobject, point, **kwargs):+ digest_config(self, kwargs)target = mobject.copy()point_mob = Point(point)+ if self.point_color:+ point_mob.highlight(self.point_color)mobject.replace(point_mob)mobject.highlight(point_mob.get_color())Transform.__init__(self, mobject, target, **kwargs)diff --git a/topics/numerals.py b/topics/numerals.pyindex 1bcc61fe3..1390081c4 100644--- a/topics/numerals.py+++ b/topics/numerals.py@@ -144,7 +144,6 @@ class ContinualChangingDecimal(ContinualAnimation):def update_mobject(self, dt):self.anim.update(self.internal_time)-