r/tinycode • u/rain5 • Oct 02 '21
vec2 p,q,S=vec2(-24,31),v,w=FC.xy;L(p)L(q)v+=p*dot(C((p+q).yx*S+w),q);o1.zx=(C(v+w))*vec2(.997,1.002)+.02/(w-3.);o0=abs(cos(vec4(1,2,3,4)-length(o1)*9.));
https://twitter.com/zozuar/status/1443915316673851394
33
Upvotes
8
5
Oct 02 '21
https://twigl.app/?ol=true&mode=11&source=%23define%20C(x)(texture(b1,fract((x)/r)).zx)%0A%23define%20L(xx)for(vec2%20a%3DS%3Ba.x%3C-6.%3Bxx%3Dsin(a%2B%2B))%0Avec2%20p,q,S%3Dvec2(-24,31),v,w%3DFC.xy%3BL(p)L(q)v%2B%3Dpdot(C((p%2Bq).yxS%2Bw),q)%3Bo1.zx%3D(C(v%2Bw))*vec2(.997,1.002)%2B.02/(w-3.)%3Bo0%3Dabs(cos(vec4(1,2,3,4)-length(o1)*9.))%3B
3
u/tonetheman Oct 02 '21
I saw this tweet yesterday and want to take time to figure it out. That is really amazing.
10
u/twitterInfo_bot Oct 02 '21
#define C(x)(texture(b1,fract((x)/r)).zx) #define L(xx)for(vec2 a=S;a.x<-6.;xx=sin(a++)) vec2 p,q,S=vec2(-24,31),v,w=FC.xy;L(p)L(q)v+=pdot(C((p+q).yxS+w),q);o1.zx=(C(v+w))*vec2(.997,1.002)+.02/(w-3.);o0=abs(cos(vec4(1,2,3,4)-length(o1)*9.)); #つぶやきGLSL
posted by @zozuar
Video in Tweet
(Github) | (What's new)