ClockwiseTransform

Qualified name: manim.animation.transform.ClockwiseTransform

class ClockwiseTransform(mobject=None, *args, use_override=True, **kwargs)[source]

Bases: Transform

Transforms the points of a mobject along a clockwise oriented arc.

Examples

Example: ClockwiseExample

from manim import *

class ClockwiseExample(Scene):
    def construct(self):
        dl, dr = Dot(), Dot()
        sl, sr = Square(), Square()

        VGroup(dl, sl).arrange(DOWN).shift(2*LEFT)
        VGroup(dr, sr).arrange(DOWN).shift(2*RIGHT)

        self.add(dl, dr)
        self.wait()
        self.play(
            ClockwiseTransform(dl, sl),
            Transform(dr, sr)
        )
        self.wait()
class ClockwiseExample(Scene):
    def construct(self):
        dl, dr = Dot(), Dot()
        sl, sr = Square(), Square()

        VGroup(dl, sl).arrange(DOWN).shift(2*LEFT)
        VGroup(dr, sr).arrange(DOWN).shift(2*RIGHT)

        self.add(dl, dr)
        self.wait()
        self.play(
            ClockwiseTransform(dl, sl),
            Transform(dr, sr)
        )
        self.wait()

Methods

Attributes

path_arc

path_func

run_time

Parameters:
_original__init__(mobject, target_mobject, path_arc=-3.141592653589793, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Parameters:
Return type:

None