@ -58,6 +58,14 @@ def invert_rect(x: int, y: int, w: int, h: int) -> None:
for j in range(y, y + h):
invert_pixel(i, j)
def wait_until_ac() -> int:
c = 0
try:
while 1:
c += 1
except:
return c
#color constants
C_BLACK = (0,0,0)
C_WHITE = (255,255,255)