def next_scene(self, i): if i % 2 == 0: sceneFactory = Blue() else: sceneFactory = Red() 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 % 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): 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): blue = Blue().scene() cyan = Cyan().scene() scene = [] if i % 2 == 0: for i in range(0, 10, 1): scene += between(cyan, blue, (i+1) / 10) else: for i in range(0, 10, 1): scene += between(blue, cyan, (i + 1) / 10) return scene
def next_scene(self, i): return withColoredFlash(Blue().scene())
def next_scene(self, i): wait = [{"type": "wait", "duration": 0.05}] return White().scene() + wait + Blue().scene()