kopia lustrzana https://github.com/villares/sketch-a-day
disable gif export
rodzic
9beaedb6d8
commit
299ef0c0a5
|
|
@ -1,6 +1,6 @@
|
|||
# inspired by https://twitter.com/beesandbombs/status/1247567578802855938?s=20
|
||||
add_library('GifAnimation')
|
||||
from gif_animation_helper import gif_export
|
||||
# add_library('GifAnimation')
|
||||
# from gif_animation_helper import gif_export
|
||||
|
||||
s_size = 100
|
||||
COLORS = [color(200, 255, 0),
|
||||
|
|
@ -33,11 +33,11 @@ def draw():
|
|||
x, y = lerp_sequence(origin[i], target[i], t)
|
||||
square(x, y, s_size)
|
||||
|
||||
if frameCount < 1080:
|
||||
if frameCount % 2:
|
||||
gif_export(GifMaker, "animation")
|
||||
else:
|
||||
gif_export(GifMaker, "animation", finish=True)
|
||||
# if frameCount < 1080:
|
||||
# if frameCount % 2:
|
||||
# gif_export(GifMaker, "animation")
|
||||
# else:
|
||||
# gif_export(GifMaker, "animation", finish=True)
|
||||
|
||||
if frameCount % 360 == 0:
|
||||
init()
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue