def next_scene(self, i): red = Red().scene() green = Green().scene() cyan = Cyan().scene() blue = Blue().scene() purple = Purple().scene() yellow = Yellow().scene() if i % 12 == 0: return green if i % 12 == 2: return cyan if i % 12 == 4: return blue if i % 12 == 6: return purple if i % 12 == 8: return red if i % 12 == 10: return yellow return White().scene()
def next_scene(self, i): red = Red().scene() green = Green().scene() cyan = Cyan().scene() blue = Blue().scene() purple = Purple().scene() yellow = Yellow().scene() if i % 6 == 0: return self._generate(green, cyan) if i % 6 == 1: return self._generate(cyan, blue) if i % 6 == 2: return self._generate(blue, purple) if i % 6 == 3: return self._generate(purple, red) if i % 6 == 4: return self._generate(red, yellow) if i % 6 == 5: return self._generate(yellow, green)
def next_scene(self, i): red = Red().scene() green = Green().scene() cyan = Cyan().scene() blue = Blue().scene() purple = Purple().scene() yellow = Yellow().scene() scene = White().scene() if i % 6 == 0: scene = green if i % 6 == 1: scene = cyan if i % 6 == 2: scene = blue if i % 6 == 3: scene = purple if i % 6 == 4: scene = red if i % 6 == 5: scene = yellow return withColoredFlash(scene)
def next_scene(self, i): red = Red().scene() green = Green().scene() cyan = Cyan().scene() blue = Blue().scene() purple = Purple().scene() yellow = Yellow().scene() blackout = Blackout().scene() white = White().scene() strobe = WhiteStrobeLow().scene() flash = withFlash(Blackout().scene()) chainStrobe = [ blackout, white, blackout, white, blackout, blackout, blackout, white, blackout, white, blackout, blackout, flash, blackout, blackout, blackout, flash, white, blackout, white, blackout, blackout, blackout, white, blackout, white, blackout, blackout, flash, blackout, blackout, blackout, flash, white, blackout, white, blackout, blackout, blackout, white, blackout, white, blackout, blackout, flash, white, white, white, white, white, white, white, blackout, blackout, blackout, red, blackout, red, blackout, blackout, blackout ] chainStrobe += chainStrobe chain = [blackout] if i < len(chainStrobe): return chainStrobe[i % (len(chainStrobe))] else: return chain[(i - len(chainStrobe)) % (len(chain))]
def next_scene(self, i): if i % 2 == 0: sceneFactory = Blue() else: sceneFactory = Green() return sceneFactory.scene()
def next_scene(self, i): red = Red().scene() green = Green().scene() cyan = Cyan().scene() blue = Blue().scene() purple = Purple().scene() yellow = Yellow().scene() if i % 6 == 0: return green if i % 6 == 1: return cyan if i % 6 == 2: return blue if i % 6 == 3: return purple if i % 6 == 4: return red if i % 6 == 5: return yellow return Blackout().scene()
def next_scene(self, i): # 4 temps : # 1 Bleu # 2 Bleu + Flash # 3 Vert # 4 Vert + flash def withFlash(effect): wait = [{"type": "wait", "duration": 0.05}] return Yellow().scene() + wait + effect if i % 4 == 0: return Blue().scene() if i % 4 == 1: return withFlash(Blue().scene()) if i % 4 == 2: return Green().scene() if i % 4 == 3: return withFlash(Green().scene())
def next_scene(self, i): red = Red().scene() green = Green().scene() scene = [] if i % 2 == 0: for i in range(0, 10, 1): scene += between(green, red, (i + 1) / 10) else: for i in range(0, 10, 1): scene += between(red, green, (i + 1) / 10) return scene
def next_scene(self, i): green = Green().scene() greenLight = GreenLight().scene() scene = [] if i % 2 == 0: for i in range(0, 10, 1): scene += between(greenLight, green, (i + 1) / 10) else: for i in range(0, 10, 1): scene += between(green, greenLight, (i + 1) / 10) return scene
def next_scene(self, i): red = Red().scene() green = Green().scene() white = White().scene() yellow = Yellow().scene() if i % 4 == 0: return green if i % 4 == 1: return red if i % 4 == 2: return yellow if i % 4 == 3: return white return Blackout().scene()
def next_scene(self, i): return withFlash(Green().scene(), GreenLight().scene())