(sprito.py) New wait_until_ac function

This commit is contained in:
KikooDX 2020-04-13 19:11:33 +02:00
parent c6dec2fb9d
commit c495e58b7d
1 changed files with 8 additions and 0 deletions

View File

@ -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)