⚡ Humayun Shabbir | Codementor 👨🏻‍💻 (@humayuns) header
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 (@humayuns) profile picture

Programmer, Computer Enthusiast, Video Gamer, Blogger, Tech Enthusiast. ⚡👨‍💻👩‍💻 Live 1:1 programming help: https://teapaw.org/t.co/ifdd1HfzUX

Pakistan
Joined March 2009
Photo by ⚡ Humayun Shabbir | Codementor 👨🏻‍💻 (@humayuns)Photo by ⚡ Humayun Shabbir | Codementor 👨🏻‍💻 (@humayuns)
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
t=0 $=[] draw=_=>{background(0,t++?.08:!createCanvas(W=720,W)+W) colorMode(HSB) R=random filter(BLUR,9) $[t%50]={x:R(W),y:R(W),t:0,c:R(360)} $.map(p=>fill(p.c,50,W)+ellipse(p.x,cos(p.t+=.03)**W*-W+p.y,tan(p.t)**.5*40,cos(p.t)**8*19))} #minacoding 20250617 #つぶやきProcessing
1
18
107
2,783
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
"Jupiter" vec2 p=(FC.rg*2.-r)/r.y,c,s;vec3 z=vec3(p,sqrt(1.-dot(p,p)));c=vec2(atan(z.x,z.z),z.y/=-.6),s=vec2(.2/dot(z-.6,z-.5)+sin(c.y*7.),.5*t);for(float f=8.;f<1e2;f/=.7)c+=sin(c.yx*f+s)/f;o+=z.z*.5*(cos(.3*s.x+vec4(.4,.6,.7,0)-sin(c.y/vec4(.34,.32,.3,1)))+1.);
12
43
5
459
10,318
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
1
16
80
1,579
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
~ TipToe ~ My single cell gyroid tip-toeing on a vertex...🤔 #octanerender #mathart
9
32
213
3,392
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
#つぶやきProcessing #minacoding f=0 draw=_=>{ f++||createCanvas(W=500,W) background(0) fill(W) textSize(50) for(x=-f%50;x<600;x+=50) for(y=-x;y<600;y+=70){ push() translate(x,y) rotate(f*noise(x+f,y+x)/30) text("@",0,9) rotate(PI) text("@",0,9) pop() } }
6
20
934
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
"Underpass" for(float i,z,d;i++<2e1;o+=.1*vec4(4,2,1,0)*d/z){vec3 c,p=z*normalize(FC.rgb*2.-r.xyy);p.x-=t,c=cos(p+sin(p.zzx*.3));z+=d=min(min(length(vec3(c.xz,max(--p.y,0.)))-.2,length(max(abs(vec2(p.y,c))-vec2(.2,c.y-.4),0.))),p.y+3.+.4*c.x*c.z);}o=tanh(o*o);
10
36
1
516
11,465
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
175 chars now! vec3 a=r.xxy,d=a-2.*round(FC.zxy),p=cos(t+a);for(p.x=t/.1;o.w++<9e2&&snoise3D(a=ceil(p+=min(a=mod(-p,sign(d))/d+1e-6,min(a.y,a.z)).x*d)/28.)+1.>length(a.yz););o.rgb=fwidth(p);
Down to 190 characters! #つぶやきGLSL vec3 p=vec3(t/.1,cos(t+r)),d=r.x/(r.xxy-round(FC.zxy)*2.),a;for(;o.w++<9e2&&snoise3D(a=ceil(p)/28.)+1.>length(a.yz);p+=min(a=fract(-p*sign(d))*abs(d)+1e-4,min(a.y,a.z)).x/d);o.rgb=fwidth(p);
11
36
2
612
18,009
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
Starting a new series of super lightweight shaders: "Nova" vec2 p=(FC.xy*2.-r.x)/r.y;float l=1.-length(p);o+=tanh((1.1+sin(p.x+t+vec4(0,2,4,0)))/2e2/max(l,-l*.1));
18
66
10
1,296
93,062
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
f=0,draw=a=>{for(f++||createCanvas(W=400,W,WEBGL),rotateX(e=97),rotateY(f/e),z=-W;z<W;z+=e)for(x=-W;x<W;x+=e)push(T=translate),fill(d=255-dist(x,z,0,0)),T(x,Y=abs(sin(noise(d)*e+f/9))*e,z),sphere(9,e),T(0,-Y),box(e,2,e),fill(0),box(4e3),pop(cylinder(Y/3,3))};//#つぶやきProcessing
6
25
2
148
4,538
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
"Mosaic" vec2 p=3.*(FC.xy*2.-r)/r.y,v=p+p+(t+r)*cos(r+ceil(p+sin(p*5.))).yx;o=tanh(.1*(cos(.6*p.x+.3*sin(v.y)+vec4(0,1,2,3))+1.)/length(.9+sin(v)));
3
40
3
388
14,754
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
#つぶやきProcessing #minacoding 「誰かにメッセージを伝えるためのコードを描きましょう」 f=0 draw=_=>{f++||createCanvas(W=500,W) background(0) stroke(W,99) for(r=90;r<700;r+=50)for(c=0;c<TAU;c+=PI/99){line(250+r*cos(i=r/30+c+(f*noise(r))/100),r*sin(i),250+r*cos(i+c),r*sin(i+c))} }
10
62
1,638
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
//#つぶやきProcessing float r,d,t,f=500; void setup(){size(800,800,P3D);} void draw(){ background(-1); camera(f,f,f,0,0,0,0,0,-1); for(r=0;r<TAU;r+=.05)for(d=30;d<999;d++) point(d*sin(r),d*cos(r),d/3-30*cos(t)*sin(d/(50+45*cos(t))+t)*sin(r+d/99+t)); t+=.01;}
4
18
1
159
3,339
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
"String Theory" for(float i,z=fract(dot(FC,sin(FC))),d;i++<1e2;){vec3 p=z*normalize(FC.rgb*2.-r.xyy);p.z+=9.;for(d=.7;d<4.;d/=.9)p+=cos(p.yzx*d-t/vec3(2,1,5))/d;z+=d=.002+abs(p.z)/2e1;o+=(sin(z+4.*p.z+vec4(0,1,5,0))+1.2)/d;}o=tanh(o/1e4);
5
37
1
394
8,383
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
#つぶやきProcessing f=0 draw=_=>{f++||createCanvas(W=500,W) background(0) for(r=0;r<200;r+=50)for(i=a=f*noise(r)/30,c=r/30+25;i<a+6;i+=.35,endShape(CLOSE))for(n=0,N=3+noise(i)*5|0,beginShape();n++<N;stroke(W))vertex(150+r*cos(i)+c*cos(k=n/N*TAU),250+r*sin(i)+c*sin(k))}#minacoding
1
5
29
758
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
#つぶやきProcessing #minacoding f=0 draw=_=>{ f++||createCanvas(W=500,W) background(0) stroke(W) for(c of[1,2]){ x=250+210*cos(f*c/50) y=250+210*sin(f*c/67) for(t=f%50;t<=W;t+=50){ line(t,0,x,y) line(0,W-t,x,y) line(W-t,W,x,y) line(W,t,x,y) } fill(0) circle(x,y,80) } }
4
19
105
2,994
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
t=0 draw=_=>{t++||createCanvas(W=720,W) B=blendMode colorMode(HSB) B(BLEND) background(0,.03) B(ADD) filter(BLUR) for(d=W;d-=30;)for(r=0;r<6;r+=.1)fill(d/2,80,W,T=tan(r/9+d/99+t/99))+circle(cos(R=r+d+t/9)*(D=d*1/T)+360,sin(R)*D+360,9/T)} #minacoding 250605 #つぶやきProcessing
3
24
92
2,685
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
"Vortex" for(float i,z=fract(dot(FC,sin(FC))),d;i++<1e2;o+=(sin(z-t+vec4(6,2,4,0))+1.5)/d){vec3 p=z*normalize(FC.rgb*2.-r.xyy);p.z+=6.;for(d=1.;d<9.;d/=.8)p+=cos(p.yzx*d-t)/d;z+=d=.002+abs(length(p)-.5)/4e1;}o=tanh(o/7e3);
37
162
9
1,503
56,463
⚡ Humayun Shabbir | Codementor 👨🏻‍💻 retweeted
//#Processing int n=999,i,s; float a[]=new float[n*4],d,e,f,x,y,m,k; void setup(){ size(800,800); for(i=0;i<n*2;i++){ a[i]=400-random(800); a[i+n*2]=1-random(2); }colorMode(HSB);} void draw(){ background(0); for(i=0;i<n;i++){x=y=0;m=9999; for(s=0;s<n;s++){ if(i!=s){ //cont.
1
3
22
441