manim.mobject.geometry.DashedLine

class DashedLine(*args, dash_length=0.05, dash_spacing=None, positive_space_ratio=0.5, **kwargs)[source]

Bases: manim.mobject.geometry.Line

A dashed Line.

Examples

../_images/DashedLineExample-1.png
DashedLineExample
class DashedLineExample(Scene):
    def construct(self):
        dashed_line = DashedLine(config.frame_width/2*LEFT, 4*RIGHT)
        self.add(dashed_line)

Methods

calculate_num_dashes

calculate_positive_space_ratio

get_end

get_first_handle

get_last_handle

get_start

Attributes

animate

Used to animate the application of a method.