from manim import *
import numpy as np
class ExampleRotation(Scene):
    def construct(self):
        self.camera.background_color = WHITE
        m1a = Square().set_color(RED).shift(LEFT)
        m1b = Circle().set_color(RED).shift(LEFT)
        m2a = Square().set_color(BLUE).shift(RIGHT)
        m2b = Circle().set_color(BLUE).shift(RIGHT)
        points = m2a.points
        points = np.roll(points, int(len(points)/4), axis=0)
        m2a.points = points
        self.play(Transform(m1a,m1b),Transform(m2a,m2b), run_time=1)
        self.wait(4.60)