結城浩
https://gyazo.com/c64145b69761e4f8da4df02baeeb7bae https://gyazo.com/86adfa800b4f9976fdfe65613c54593c
結城さんがTwitterに投稿したプログラムををP5.jsに変換してみたもの
実行: https://runp5.com/RunP5/結城浩/spiral.js
code:spiral.js
T=0
function setup(){
createCanvas(600,600)
noStroke()
}
function draw() {
fill('#000')
rect(0,0,600,600);
N=100
S=300
for (n=1; n<N; n++) {
r=n*2
fill('#fff')
R=(N-n)/10
t=T*n
ellipse(S+r*cos(t),S-r*sin(t),R,R)
T+=0.00001
console.log(T)
}
}