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 N112_06(Scene):
    def construct(self):
        sc = self
        p = RegularPolygon(n=5, color=GRAY).scale(2)
        self.play(*[FadeIn(_o) for _o in [p]], run_time=1.0)
        colors = [RED, BLUE, GREEN]
        time_widths = [0.5, 1, 2]
        for idx, tw in enumerate(time_widths):
            self.play(ShowPassingFlash(p.copy().set_color(colors[idx]), time_width=tw, run_time=2))
            self.wait()
        self.wait(0.5)
        self.wait(2.10)