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 N125_03(Scene):
    def construct(self):
        sc = self
        hexagon = RegularPolygon(n=6)
        self.play(*[FadeIn(_o) for _o in [hexagon]], run_time=1.0)
        hexagon.save_state()
        star = Star(color=RED)
        self.play(Transform(hexagon, star), run_time=run_time)
        self.wait()
        self.play(Restore(hexagon))
        self.play(hexagon.animate.set_color(YELLOW).set_opacity(0.4), run_time=run_time)
        self.play(hexagon.animate.shift(RIGHT).scale(2), run_time=run_time)
        self.play(hexagon.animate.rotate(PI * 0.75), run_time=run_time)
        self.play(Restore(hexagon))
        self.wait(0.5)