Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 4

Tweet P5 Particle Study 4

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

N=200
t=x=y=0
setup=_=>createCanvas(W=540,W)+noStroke()
draw=_=>{background(0)
t+=.1
for(i=0;i<N;i++)for(j=0;j<N;j++)r=TAU/N,u=sin(atan(r*i/2)+y)+sin(r*i+x),v=cos(atan(r*i/2)+y)+cos(r*i+x),x=u+t,y=v,fill(i,j,99),circle(u*N/2+W/2,v*N/2+W/2,2)}//#つぶやきProcessing

comments powered by Disqus