disable gif export

main
villares 2020-04-08 00:08:47 -03:00
rodzic 9beaedb6d8
commit 299ef0c0a5
1 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
# inspired by https://twitter.com/beesandbombs/status/1247567578802855938?s=20 # inspired by https://twitter.com/beesandbombs/status/1247567578802855938?s=20
add_library('GifAnimation') # add_library('GifAnimation')
from gif_animation_helper import gif_export # from gif_animation_helper import gif_export
s_size = 100 s_size = 100
COLORS = [color(200, 255, 0), COLORS = [color(200, 255, 0),
@ -33,11 +33,11 @@ def draw():
x, y = lerp_sequence(origin[i], target[i], t) x, y = lerp_sequence(origin[i], target[i], t)
square(x, y, s_size) square(x, y, s_size)
if frameCount < 1080: # if frameCount < 1080:
if frameCount % 2: # if frameCount % 2:
gif_export(GifMaker, "animation") # gif_export(GifMaker, "animation")
else: # else:
gif_export(GifMaker, "animation", finish=True) # gif_export(GifMaker, "animation", finish=True)
if frameCount % 360 == 0: if frameCount % 360 == 0:
init() init()