LabeledArrow¶
Qualified name: manim.mobject.geometry.labeled.LabeledArrow
- class LabeledArrow(*args, **kwargs)[source]¶
Bases:
LabeledLine,ArrowConstructs an arrow containing a label box somewhere along its length. This class inherits its label properties from LabeledLine, so the main parameters controlling it are the same.
- Parameters:
label – Label that will be displayed on the Arrow.
label_position – A ratio in the range [0-1] to indicate the position of the label with respect to the length of the line. Default value is 0.5.
label_config – A dictionary containing the configuration for the label. This is only applied if
labelis of typestr.box_config – A dictionary containing the configuration for the background box.
frame_config –
A dictionary containing the configuration for the frame.
See also
args (Any)
kwargs (Any)
Examples
Example: LabeledArrowExample ¶
from manim import * class LabeledArrowExample(Scene): def construct(self): l_arrow = LabeledArrow("0.5", start=LEFT*3, end=RIGHT*3 + UP*2, label_position=0.5) self.add(l_arrow)
class LabeledArrowExample(Scene): def construct(self): l_arrow = LabeledArrow("0.5", start=LEFT*3, end=RIGHT*3 + UP*2, label_position=0.5) self.add(l_arrow)Methods
Attributes
alwaysCall a method on a mobject every frame.
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.
- _original__init__(*args, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
args (Any)
kwargs (Any)
- Return type:
None