Naoto
Naoto Naoto Hieda

Tweet P5 Particle Study 17

Tweet P5 Particle Study 17

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+=.03
c=cos
for(i=0;i<N;i+=2)for(j=0;j<N;j++)[x,y,z]=[c(z)+sin(i+x),sin(z)+c(i+y),sin(i+x)+c(i+y)],o=abs(z-.5),fill(i,z*N,j,W*exp(-o*3)),circle(x*99+N,y*99+N,exp(o*2)+1),z+=t}//#つぶやきProcessing

comments powered by Disqus