AnimatedBoundary#
Qualified name: manim.animation.changing.AnimatedBoundary
- class AnimatedBoundary(vmobject, colors=['#29ABCA', '#9CDCEB', '#236B8E', '#736357'], max_stroke_width=3, cycle_rate=0.5, back_and_forth=True, draw_rate_func=<function smooth>, fade_rate_func=<function smooth>, **kwargs)[source]#
Bases:
VGroupBoundary of a
VMobjectwith animated color change.Examples
Example: AnimatedBoundaryExample ¶
from manim import * class AnimatedBoundaryExample(Scene): def construct(self): text = Text("So shiny!") boundary = AnimatedBoundary(text, colors=[RED, GREEN, BLUE], cycle_rate=3) self.add(text, boundary) self.wait(2)
Methods
full_family_become_partialupdate_boundary_copiesAttributes
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.