Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 10

Tweet P5 Particle Study 10

Pre-rendered for better experience. The code is mostly from yuruyurau, ported to JavaScript.

N=t=200
u=v=8
draw=_=>{N<t||createCanvas(W=400,W)
background(0)
x=u
y=v
t+=.03
for(i=0;i<N;i++)for(j=0;j<N;j++)I=i*N+j,[x,y]=[cos(I+y)+cos(i/N+x),sin(I+y)+sin(i/N+x)],stroke(i,j,N-j),point(x*N/2+W/2,y*N/2+W/2),x+=t,i<(80*sin(t*3)+40)&&(u=x,y=v)}//#つぶやきProcessing

comments powered by Disqus