kopia lustrzana https://github.com/villares/sketch-a-day
21 wiersze
465 B
Python
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)
|