Info_edupage/UI/main.py

22 lines
386 B
Python
Raw Normal View History

2021-09-01 11:26:29 +02:00
from Scenes.BasicScene import BasicScene
from numpy import array as a
2021-08-31 22:22:56 +02:00
import time
2021-09-01 18:23:35 +02:00
screen_size = a([200, 500])
2021-08-31 22:22:56 +02:00
2021-09-01 18:23:35 +02:00
for i in range(400):
2021-09-01 22:22:18 +02:00
scene = BasicScene(screen_size)
2021-09-01 11:26:29 +02:00
scene.redraw()
2021-09-01 22:22:18 +02:00
# scene.save(f"Render/{i}.png", [800, 800])
2021-09-01 18:23:35 +02:00
if i < 150:
screen_size[0] += 3
elif i < 250:
screen_size[1] += 2
else:
screen_size -= 4
2021-09-01 11:56:26 +02:00
time.sleep(0.01)