Update sketch_2020_04_07a.pyde

main
villares 2020-04-08 00:07:06 -03:00
rodzic 7aa179d091
commit 0dfb5c5d14
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
# inspired by https://twitter.com/beesandbombs/status/1247567578802855938?s=20
add_library('GifAnimation')
from gif_animation_helper import gif_export
s_size = 100
COLORS = [color(200, 255, 0),
color(200, 0, 0),
@ -28,6 +32,13 @@ def draw():
stroke(cor)
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 % 360 == 0:
init()