#つぶやきGLSL
#define o(p)length(max(abs(p)-1.,.0))
#define n q=1.-3.*abs(mod(s*e,2.)-1.),d-=o(q.x)*o(q.yz)/e,e*=3.
void main(){vec3 s,q,b;float e,d,i;while(++i<9.){s.yz*=mat2(cos(t));e=1.,d=o(s);n,n,n;b+=d;s=b*vec3((gl_FragCoord.xy*2.-r)/6e2,-1)+vec3(0,0,4);}o.xzy=vec3(d<1e-6);}pic.twitter.com/XaXF3ogb2Q
-
Show this thread
-
ア Retweeted ア
ProcessingとPythonは考えなくてもできてすごいな。かきなおしたいけどhttps://twitter.com/yuruyurau/status/1241569530343641088 …
ア added,
ア @yuruyurauW=540;S=99.;T=translate def setup():size(W,W,P3D) def draw():clear();lights();T(W/2,W/2,380);t=frameCount*.06;rotate(t,1,t,0);F(S) def F(s):s>3 and[[push(),T(w*s,h*s,d*s),F(s/3),pop()]for w in[-1,0,1]for h in[-1,0,1]for d in[-1,0,1]if mag(w,h,d)>1]or box(s*3)#つぶやきProcessing pic.twitter.com/MBx47I4rqu1 reply 1 retweet 15 likesShow this thread
0 replies
1 retweet
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
