ntsutaeさんのプロフィール画像

ntsutaeさんのイラストまとめ


将棋(将棋倶楽部24でR2100台のアマ四段)/ プログラミング openprocessing.org/user/154720#sk
openprocessing.org/user/154720/#s…

フォロー数:603 フォロワー数:2931

//#つぶやきProcessing
t=0,draw=_=>t++?clear(rotateX(mouseY/w))+f(w/2):createCanvas(w=640,w,WEBGL)
f=(s,x=0,y=0)=>sin((x*y&y-t*2)/w)**2>map(s,2,w/4,.25,4)?pop(push(fill("#"+hex(s*9**7,6)))+translate(x,y,s)+box(s*2,s*2,s)):s>4&&f(s/=2,x-s,y-s)+f(s,x-s,y+s)+f(s,x+=s,y-s)+f(s,x,y+s)

10 55


P=Array(2000).fill([0,0])
setup=_=>createCanvas(W=720,W).stroke(W)
draw=_=>{copy(W/4,W/4,W/2,W/2,0,0,W,W)
background(i=0,9)
for([x,y]of P){if(x<0||x>W||y<0||y>W)x=y=W/2-W/50
r=~~(noise((x+i)/W,y/W)*99)*TAU/6
line(x,y,x+=cos(r),y+=sin(r))
P[i++]=[x,y]}}

13 84


//from https://t.co/0RshkQtxBb
//night version
t=0
setup=_=>{createCanvas(700,350);noStroke()
pixelDensity(1/7)
}
draw=_=>{t+=.01;background(0)
scale(7)
for(i=0;i<100;i++){for(j=0;j<50;j++){
rect(i,j,(sin(j*j+i/j-t*7)+cos(j**5-i/j*6+t)**3)*j/50,1)
}}}

4 21


//from https://t.co/0RshkQtxBb
t=0
draw=_=>{t+=.01
createCanvas(700,350);noStroke();fill(0)
pixelDensity(1/7) //important
scale(7)
for(i=0;i<100;i++){for(j=0;j<50;j++){
rect(i,j,(sin(j*j+i/j-t*7)+cos(j**5-i/j*6+t)**3)*j/50,1)
}}}

15 79


C=0
setup=_=>createCanvas(W=720,W,WEBGL)&noStroke()
draw=_=>{clear();C+=2
for(i=W*2/3;i>0;i--){
d=noise(i-C)*TAU*2
fill(map(pow(sin(d),3),-1,1,255,0))
push()
translate(cos(d)*i,sin(d)*i,0)
sphere(W/6)
pop()}}

18 97


f=0
draw=_=>{if(!f)normalMaterial(createCanvas(640,640,WEBGL))
clear(R=300);r=radians;s=sin;c=cos;rotateX(c(++f/R))
for(i=0;i<TAU;i+=PI/36)for(j=0;j<PI;j+=PI/18){push()
translate(s(j)*c(i)*R,s(j)*s(i)*R,c(j)*R-c(r(f))*R+R)
sphere(noise(s(i-j),r(f))*60)
pop()}}

3 9