4444
4545
4646class FocusOn (Transform ):
47- CONFIG = {
48- "opacity" : 0.2 ,
49- "color" : GREY ,
50- "run_time" : 2 ,
51- "remover" : True ,
52- }
47+ CONFIG = {"opacity" : 0.2 , "color" : GREY , "run_time" : 2 , "remover" : True }
5348
5449 def __init__ (self , focus_point , ** kwargs ):
5550 self .focus_point = focus_point
@@ -73,11 +68,7 @@ def create_starting_mobject(self):
7368
7469
7570class Indicate (Transform ):
76- CONFIG = {
77- "rate_func" : there_and_back ,
78- "scale_factor" : 1.2 ,
79- "color" : YELLOW ,
80- }
71+ CONFIG = {"rate_func" : there_and_back , "scale_factor" : 1.2 , "color" : YELLOW }
8172
8273 def create_target (self ):
8374 target = self .mobject .copy ()
@@ -101,11 +92,7 @@ def __init__(self, point, color=YELLOW, **kwargs):
10192 digest_config (self , kwargs )
10293 self .lines = self .create_lines ()
10394 animations = self .create_line_anims ()
104- super ().__init__ (
105- * animations ,
106- group = self .lines ,
107- ** kwargs ,
108- )
95+ super ().__init__ (* animations , group = self .lines , ** kwargs )
10996
11097 def create_lines (self ):
11198 lines = VGroup ()
@@ -127,9 +114,7 @@ class CircleIndicate(Indicate):
127114 CONFIG = {
128115 "rate_func" : there_and_back ,
129116 "remover" : True ,
130- "circle_config" : {
131- "color" : YELLOW ,
132- },
117+ "circle_config" : {"color" : YELLOW },
133118 }
134119
135120 def __init__ (self , mobject , ** kwargs ):
@@ -148,10 +133,7 @@ def interpolate_mobject(self, alpha):
148133
149134
150135class ShowPassingFlash (ShowPartial ):
151- CONFIG = {
152- "time_width" : 0.1 ,
153- "remover" : True ,
154- }
136+ CONFIG = {"time_width" : 0.1 , "remover" : True }
155137
156138 def get_bounds (self , alpha ):
157139 tw = self .time_width
@@ -168,16 +150,11 @@ def finish(self):
168150
169151
170152class ShowCreationThenDestruction (ShowPassingFlash ):
171- CONFIG = {
172- "time_width" : 2.0 ,
173- "run_time" : 1 ,
174- }
153+ CONFIG = {"time_width" : 2.0 , "run_time" : 1 }
175154
176155
177156class ShowCreationThenFadeOut (Succession ):
178- CONFIG = {
179- "remover" : True ,
180- }
157+ CONFIG = {"remover" : True }
181158
182159 def __init__ (self , mobject , ** kwargs ):
183160 super ().__init__ (ShowCreation (mobject ), FadeOut (mobject ), ** kwargs )
@@ -201,9 +178,7 @@ def __init__(self, mobject, **kwargs):
201178 rect = self .get_rect ()
202179 rect .add_updater (lambda r : r .move_to (mobject ))
203180
204- super ().__init__ (
205- self .rect_animation (rect , ** kwargs ),
206- )
181+ super ().__init__ (self .rect_animation (rect , ** kwargs ))
207182
208183 def get_rect (self ):
209184 return SurroundingRectangle (
@@ -224,11 +199,7 @@ class ShowCreationThenFadeAround(AnimationOnSurroundingRectangle):
224199
225200
226201class ApplyWave (Homotopy ):
227- CONFIG = {
228- "direction" : UP ,
229- "amplitude" : 0.2 ,
230- "run_time" : 1 ,
231- }
202+ CONFIG = {"direction" : UP , "amplitude" : 0.2 , "run_time" : 1 }
232203
233204 def __init__ (self , mobject , ** kwargs ):
234205 digest_config (self , kwargs , locals ())
@@ -276,9 +247,7 @@ def interpolate_submobject(self, submobject, starting_sumobject, alpha):
276247
277248
278249class TurnInsideOut (Transform ):
279- CONFIG = {
280- "path_arc" : TAU / 4 ,
281- }
250+ CONFIG = {"path_arc" : TAU / 4 }
282251
283252 def create_target (self ):
284253 return self .mobject .copy ().reverse_points ()
0 commit comments