add new animation RotatingRainbowBeamerBlack

new animation that disables the lights on the projector side of the room
mostly copied from the kitchenlight effect by tessak9
This commit is contained in:
dario 2026-05-16 22:07:14 +02:00
commit 69840b41fc
Signed by: dario
SSH key fingerprint: SHA256:zP7OE8nhYwOWaDhOawrP6NmUVcZWi0wyPKQa6052GpM
3 changed files with 32 additions and 3 deletions

4
dmx.py
View file

@ -6,7 +6,7 @@ from time import sleep
from typing import Union
from animation import Animation, Off, RandomSingle, Steady, FadeTo, RotatingRainbow, Chase, TwoColor, Caramelldansen, \
Hackertours, RotatingRainbowKitchenWhite
Hackertours, RotatingRainbowKitchenWhite, RotatingRainbowBeamerBlack
def ledlog(value):
@ -154,6 +154,8 @@ class DMX:
animation = Hackertours(self._color)
elif animation == "kitchenlight":
animation = RotatingRainbowKitchenWhite()
elif animation == "beamermode":
animation = RotatingRainbowBeamerBlack()
else:
raise ValueError(f"No such animation {animation}")
self._animation = animation