Takawo氏のスケッチ2
https://gyazo.com/9c57690b3990b25000200585e0a55bd8
https://gyazo.com/4d7e57f619007f88a33f7b8718539208
code:dekfractal.js
var w=20,h=20;
function setup(){
createCanvas(400,400);
}
function draw(){
background(255);
fill(240);
for(var x=0;x<20;x++){
for(var y=0;y<20;y++){
var n=pow(noise(x/5.,y/5.,frameCount/200.),3);
strokeWeight(n*20);
stroke(0,255*n+10);
if(n>.05) rect(w*x,h*y,w-5,h-5);
}
}
}
code:takawo.js
t=0
draw=_=> {
p=[]
createCanvas(w=800,w)
randomSeed(w)
background(0)
stroke(w)
for(i=0;i++<w;)p.push(createVector((v=w/2)+(r=random)(-v,v)*(n=tan((t/2+i)%PI/2)),v+r(-v,v)*n))
for(q of p)for(r of p)if(p5.Vector.dist(q,r)<w/50)line(q.x,q.y,r.x,r.y)
t+=.02
}