from manim import *
import numpy as np
from numpy import array, pi, cos, sin
run_time = 1
data = [[1, 2], [3, 4]]
def dot(pos, **kwargs):
    return Dot(pos, **kwargs)
class N113_03(Scene):
    def construct(self):
        sc = self
        door = Rectangle(height=3, width=2, color=BLUE, fill_opacity=0.2, fill_color=YELLOW)
        l = Line(UP * 2, DOWN * 2, stroke_width=1, color=GREEN)
        self.play(*[FadeIn(_o) for _o in [door, l]], run_time=1.0)
        rotate_to_open = Rotate(door, axis=UP, angle=PI / 4 + PI, about_point=door.get_bottom(), rate_func=rush_into)
        rotating_at_open = Rotating(door, axis=UP, angle=PI / 8, about_point=door.get_bottom(), run_time=3, rate_func=wiggle)
        self.play(rotate_to_open)
        self.play(rotating_at_open)
        self.wait(0.5)
        self.wait(2.10)