Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 16

Tweet P5 Particle Study 16

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

N=200
x=y=z=t=0
draw=_=>{t||createCanvas(W=400,W)
background(0)
noStroke()
t+=.1
c=cos
for(i=0;i<N;i++)for(j=0;j<N;j++)I=i+j/N,[x,y,z]=[c(z)+sin(i+x),sin(I+z)+c(i+x),sin(I+x)+c(I+y)],o=c(z+c(t)),fill(i,z*99,j,N*o*o*o),circle(x*99+N,y*99+N,2*pow(2-o,3)),z+=t}//#つぶやきProcessing

comments powered by Disqus