Update sketch_2020_04_09b.pyde

main
Alexandre B A Villares 2020-06-14 12:44:28 -03:00 zatwierdzone przez GitHub
rodzic c246406a77
commit dba5ee8ee1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 10 dodań i 9 usunięć

Wyświetl plik

@ -1,6 +1,7 @@
# 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 = 50
COLORS = [color(255, 255, 0),
@ -10,7 +11,7 @@ COLORS = [color(255, 255, 0),
def setup():
size(400, 400)
blendMode(ADD) # DIFFERENCE # ECVLUSION
blendMode(ADD) # DIFFERENCE # EXCLUSION
rectMode(CENTER)
init()
@ -50,12 +51,12 @@ def draw():
circle(0, 0, s)
popMatrix()
if frameCount < 360:
if frameCount % 2:
gif_export(GifMaker, "animation")
else:
gif_export(GifMaker, "animation", finish=True)
# if frameCount < 360:
# if frameCount % 2:
# gif_export(GifMaker, "animation")
# else:
# gif_export(GifMaker, "animation", finish=True)
#
# if frameCount % 360 == 0:
# init()