Toggle Navigation
TiDAL Hatchery
Eggs
RAVE
__init__.py
Users
Badges
Login
Register
__init__.py
raw
Content
from tidal import * import vga2_bold_16x32 as font import random from app import App class Rave(App): def on_start(self): super().on_start() self.i = 0 self.colors = [RED, GREEN, BLUE, YELLOW, CYAN] display.rotation(180) def on_activate(self): super().on_activate() self.timer_task = self.periodic(100, self.update) def update(self): display.fill(self.colors[self.i]) display.text(font, "RAVE", 35, 110, WHITE, self.colors[self.i]) self.i += 1 if self.i > 4: self.i = 0 def on_deactivate(self): super().on_deactivate() self.timer_task.cancel() main = Rave