Toggle Navigation
Hatchery
Eggs
Testtext2020
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
import time import rgb import buttons import defines class Police: def __init__(self): self.scene=0 self.text=True self.inverted=False self.last_update = 0 self.step_time=1500 def btn_a(button_is_down): if button_is_down: if self.scene==0: self.scene=1 else: self.scene=0 self.last_update=0 self.text=True def btn_left(button_is_down): if button_is_down: self.inverted=not(self.inverted) self.last_update=0 self.text=True def btn_right(button_is_down): if button_is_down: self.inverted=not(self.inverted) self.last_update=0 self.text=True buttons.register(defines.BTN_A, btn_a) buttons.register(defines.BTN_LEFT, btn_left) buttons.register(defines.BTN_RIGHT, btn_right) while True: self.police_update() def police_update(self): cur_ticks = time.ticks_ms() if cur_ticks - self.last_update > self.step_time: self.last_update = cur_ticks rgb.clear() if self.text: rgb.setfont(rgb.FONT_7x5) if self.scene==0: if self.inverted: # pots rgb.image([0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff], (0, 0), (32, 8)) else: # afstand rgb.image([0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000], (0, 0), (32, 8)) else: if self.inverted: # glov rgb.image([0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff], (0, 0), (32, 8)) else: # volg rgb.image([0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff], (0, 0), (32, 8)) else: if self.inverted: # eitilop rgb.image([0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x010101ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x030303ff, 0x050000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0x000000ff, 0xff0000ff], (0, 0), (32, 8)) else: # houden rgb.image([0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0xff0000ff, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000, 0xff0000ff, 0x00000000, 0x00000000], (0, 0), (32, 8)) self.text=not(self.text) police = Police()