sketch-a-day/2019/sketch_190923c/sketch_190923c.pyde

21 wiersze
465 B
Python

add_library('gifAnimation')
from gif_animation_helper import gif_export
#つぶやきProcessing
w,h=500,250
def setup():size(w,w);noFill()#;noStroke();fill(0,10)
def draw():
background(h,h/2,h/2);translate(h,h)
a,k=0,sin(frameCount/30.)
while a<TWO_PI:
i,j=sin(a),cos(a)
n=h*noise((abs(i)+i+j),(abs(j)+j+i),k)
circle(n*i,n*j,n/2)
a+=.004
if frameCount/30. < TWO_PI:
gif_export(GifMaker, filename="a")
else:
gif_export(GifMaker, finish=True)