patrick hartono (@patrickHartono) profile picture

Lecturer in Computational Arts at Goldsmiths, University of London

The hague, Netherlands
Joined August 2009
Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)Photo by patrick hartono (@patrickHartono)
patrick hartono retweeted
Really wanted to try the three.js challenge of the day ! 🌍 But only using #glsl Full raymarch, procedural biomes and animated clouds.
Today's challenge 💪
13
22
1
329
29,665
patrick hartono retweeted
Update: reached a milestone of 10 tutorials published on "fun with computer vision dot com" 🪬 - 185 customers - $3.9k revenue - >1 million views it's been 21 days since I launched this project, and I'm grateful for your incredible support and kindness 💗 thank you to @threejs and mediapipe for the magic behind these computer vision / augmented reality experiments this project has been incredibly fun and I have lots more I want to create more experiments - demos - tutorials - code, coming soon to a tweet near you :]
it's day 6 of sharing code + tutorials for my computer vision projects "fun with computer vision dot com" 🪬 thank you to everyone for the incredible support on my launch we're up to 126 customers now next steps: > "Floor is Lava" code + tutorial will be released this week > making more video content and cross-sharing on yt / tt / ig (thank you @jackfriks for the inspiration to post widely and post often) > creating more structure and engagement in our discord server
58
112
19
1,334
284,917
patrick hartono retweeted
"Event Horizon" in one equation
22
131
13
1,861
283,719
patrick hartono retweeted
Blackhole in 350 characters of #GLSL: vec2 p=(FC.xy*2.-r)/r.y/.7,d=vec2(-1,1),c=p*mat2(1,1,d/(.1+5./dot(5.*p-d,5.*p-d))),v=c;v*=mat2(cos(log(length(v))+t*.2+vec4(0,33,11,0)))*5.;for(float i;i++<9.;o+=sin(v.xyyx)+1.)v+=.7*sin(v.yx*i+t)/i+.5;o=1.-exp(-exp(c.x*vec4(.6,-.4,-1,0))/o/(.1+.1*pow(length(sin(v/.3)*.2+c*vec2(1,2))-1.,2.))/(1.+7.*exp(.3*c.y-dot(c,c)))/(.03+abs(length(p)-.7))*.2);
60
209
17
2,202
83,366
patrick hartono retweeted
a=(x,y,o=mag(k=x/4-12.5,e=y/9)/9)=>point((q=x/3+99+3/k*sin(y)+k*(1+cos(y)/3+sin(e+o*4-t*2)))*cos(c=o/5+e/4-t/8)+200,(q+49)*sin(c)*cos(c)-q/3+30*o+220) t=0,draw=$=>{t||createCanvas(w=400,w);background(6).stroke(w,46);for(t+=PI/90,i=2e4;i--;)a(i%100,i/350)}// #つぶやきProcessing
52
388
15
3,133
124,029
#つぶやきGLSL #11am10pm float i,e,R,s;vec3 q,p,d=vec3(FC.xy/r+vec2(-.5,1.4),2);for(q.zy--;i++<119.;){o.rgb+=.027-hsv(.6,p.y,.02);s=.9,p=q+=d*e*R*.04;p=vec3(log2(R=length(p))-t*.5,exp(-p.z/R),atan(p.y,p.x)-t*.5);for(e=--p.y;s<3e2;s+=s)e+=.09-abs(dot(sin(p.zxy*s),cos(p*s))/s*.25);}
2
32
2
244
11,529
patrick hartono retweeted
f=0,draw=o=>{for(f||createCanvas(W=400,W),background(P=PI,d=200),N=noise,a=-P;a<P;a+=P/16)for(fill(W,3),bezier(d,Y=150+9*cos(9*f),d-9*a,150,d-a*(9*sin(9*f)+9),d,d,Y),i=1;i>0;i-=.01)stroke(W,d-i*d),point((N(i-f,f/3,a)-P/8)*i*W+d,N(f/2,i-f,a)*i*W+Y+9);f+=.003};//#つぶやきProcessing
6
55
4
363
12,066
patrick hartono retweeted
Understanding GPU bottlenecks is easy with a visualisation 👨🏻‍🍳
25
372
13
3,263
324,504
patrick hartono retweeted
a=(x,y,k=x/8-12.5,d=cos(k/2)+sin(y/3)-.5)=>point((q=x/4+60+d*k*(1+cos(d*4-t*2+y/14)))*.7*cos(c=y*d/169-t/8+d/9)+200+60*sin(t*3/32+c/4),(q+59)*.7*sin(c)+200) t=0,draw=$=>{t||createCanvas(w=400,w);background(0).stroke(w,36);for(t+=PI/30,i=4e4;i--;)a(i%200,i/400)}#つぶやきProcessing
3
58
4
383
21,073
patrick hartono retweeted
Going recursive. Interaction remains the same.
55
177
15
2,248
111,026
patrick hartono retweeted
#genuary2025 #genuary10 Day 10: "only use TAU in your code" I cheated by deriving other numbers, like int(TAU) = 6, int(sqrt(TAU)) = 2, etc.
38
302
14
2,874
78,598
patrick hartono retweeted
// Any three (non colinear) points define a circle // { .xy=center, .z=radius } vec3 getCircle( vec2 a, vec2 b, vec2 c ) { vec2 ba = b-a, cb = c-b, ac = a-c; float de = ba.x*cb.y-ba.y*cb.x; // zero if colinear vec2 ce = 0.5*(a+b+vec2(ba.y,-ba.x)*dot(ac,cb)/de); return vec3( ce, length(a-ce) ); }
22
76
7
1,229
73,883
patrick hartono retweeted
f=0,draw=r=>{for(f||createCanvas(W=400,W),background(0),N=noise,translate(d=200,d),a=0;a<TAU;a+=PI/64)for(rotate(PI/64),i=1;i>0;i-=.002)x=N(I=i-f,f/3,a)*i*W,y=N(f/2,I,a)*i*W,stroke(W,d-i*d),point(x,y);f+=.005};//#つぶやきProcessing #generativeart #p5js
6
57
3
390
9,900
patrick hartono retweeted
a=(x,y,d=5*cos(o=mag(k=x/8-12.5,e=y/8-12.5)/12*cos(sin(k/2)*cos(e/2))))=> point((x+d*k*(sin(d*2+t)+sin(y*o*o)/9))/1.5+133,(y/3-d*40+19*cos(d+t))*1.5+300) t=0,draw=$=>{t||createCanvas(w=400,w);background(6,96).stroke(w,46);for(t+=PI/90,i=4e4;i--;)a(i%200,i/200)}#つぶやきProcessing
28
312
29
1,912
119,678
patrick hartono retweeted
//#Processing float t; void setup(){ size(800,800); } void draw(){ float i,j; background(#F0E0D0); stroke(0,99);noFill(); for(j=-1;j<1;j+=.1){ beginShape(); for(i=-PI;i<=PI;i+=PI/100)a(i,j); endShape(); } for(i=-PI;i<PI;i+=PI/100){ beginShape(); for(j=-1;j<1;j+=.1)a(i,j); //cont.
3
30
255
6,321
patrick hartono retweeted
a=(x,y,o=mag(k=x/4-12.5,e=y/9)/9)=>point((q=x+99+cos(9/k)+o*k*(cos(e*9)/3+cos(y/9)/.7)*sin(o*4-t))*.7*sin(c=o*e/30-t/8)+200,200+y/9*cos(c*4-t/2)-q/2*cos(c)) t=0,draw=$=>{t||createCanvas(w=400,w);background(6).stroke(w,46);for(t+=PI/60,i=3e4;i--;)a(i%100,i/150)}#つぶやきProcessing
43
416
38
3,047
148,192
patrick hartono retweeted
Today I learned the city of Tokyo released point cloud data of the entire city for free for anyone to download 👀
431
4,247
501
54,071
3,245,157
patrick hartono retweeted
f=0,draw=o=>{for(f||createCanvas(W=400,W),background(0),stroke(W),Y=250;Y>150;Y-=2)for(j=0;j<120;j++)for(i=0;i<TAU;i+=PI/2)stroke(2*j),n=noise(i,Y,f/666)-.5,x=sin(i*n*12)*j+200,F=99*cos((j/9-f)/9),y=cos(i*n*12)*j/2+Y+F,point(x,y);f+=.5};//#つぶやきProcessing
3
28
177
4,983
patrick hartono retweeted
vec4 x=vec4(9,8,7,1);float i,e,a,y;vec3 p,q,d=FC.bgr/r.y-.5;q-=8.;for(d.xz*=rotate2D(.4);i++<2e2;e=max(-e,y))for(o+=i>175.?d/=d+d,tanh(log(e+=.01))/x/x:x/2e3/exp(e*1e3),p=q+=d*e,y=p.y,p.y=mod(y+t,40.)-20.,a=6.;a>.1;a*=.6)p=abs(p)-a-a,e=min(e,max(max(p.x,p.z),p.y+.5+.5*sin(y+a)));
14
133
11
1,130
36,982