mirror of
https://github.com/3b1b/manim.git
synced 2025-11-15 05:17:47 +00:00
Moved Broadcast to simple_animations
This commit is contained in:
parent
1500666871
commit
c649a152d7
2 changed files with 0 additions and 31 deletions
|
|
@ -242,7 +242,6 @@ class UpdateFromAlphaFunc(UpdateFromFunc):
|
|||
def update_mobject(self, alpha):
|
||||
self.update_function(self.mobject, alpha)
|
||||
|
||||
|
||||
class MaintainPositionRelativeTo(Animation):
|
||||
CONFIG = {
|
||||
"tracked_critical_point" : ORIGIN
|
||||
|
|
|
|||
|
|
@ -129,36 +129,6 @@ class TenDollarBill(VGroup):
|
|||
ten.highlight(GREEN_C)
|
||||
self.add(ten)
|
||||
|
||||
class Broadcast(LaggedStart):
|
||||
CONFIG = {
|
||||
"small_radius" : 0.0,
|
||||
"big_radius" : 5,
|
||||
"n_circles" : 5,
|
||||
"remover" : True,
|
||||
"lag_ratio" : 0.7,
|
||||
"run_time" : 3,
|
||||
}
|
||||
def __init__(self, focal_point, **kwargs):
|
||||
digest_config(self, kwargs)
|
||||
circles = VGroup()
|
||||
for x in range(self.n_circles):
|
||||
circle = Circle(
|
||||
radius = self.big_radius,
|
||||
stroke_color = BLACK,
|
||||
stroke_width = 0,
|
||||
)
|
||||
circle.move_to(focal_point)
|
||||
circle.save_state()
|
||||
circle.scale_to_fit_width(self.small_radius*2)
|
||||
circle.set_stroke(WHITE, 8)
|
||||
circles.add(circle)
|
||||
LaggedStart.__init__(
|
||||
self,
|
||||
ApplyMethod, circles,
|
||||
lambda c : (c.restore,),
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
||||
##################
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue