Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 6

Tweet P5 Particle Study 6

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

N=200
t=x=y=0
draw=_=>{createCanvas(W=540,W)+noStroke()
background(0)
t+=.1
for(i=0;i<N;i++)for(j=0;j<N;j++)r=.1,u=sin(r*i+y)+sin(r*i+x)*cos(r*i+x),v=cos(r*i+y)+sin(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