ไม่พบผลลัพธ์สำหรับ "#tinycode"
ไม่พบผลลัพธ์สำหรับ "#tinycode"

🖌️ Mini 2-Color Pixel Editor I made a Base 69 storage method that excludes URL unsafe characters so that you can share your 2-color pixel art creations. 👉 Storage method extracts and combines three 3-bit values to each character. #tinycode #javascript

lewdev's tweet image. 🖌️ Mini 2-Color Pixel Editor
I made a Base 69 storage method that excludes URL unsafe characters so that you can share your 2-color pixel art creations.

👉 Storage method extracts and combines three 3-bit values to each character.

#tinycode #javascript

👨‍💻 Three Implementations of lodash _.uniq I was attempting to get all unique values of an array and since my 3 implementations used #tinycode techniques I learned recently, I decided to share them. Share your implementation if you have a different one. #codegolf #javascript

lewdev's tweet image. 👨‍💻 Three Implementations of lodash _.uniq

I was attempting to get all unique values of an array and since my 3 implementations used #tinycode techniques I learned recently, I decided to share them.

Share your implementation if you have a different one.

#codegolf #javascript

Dweets become a great reference to experiments so I built a browser. It's hard to find the code I'm looking for on Dwitter since it renders every dweet. I hope dwitter doesn't mind me using their API. Future feature: set your own username #dwitter #tinycode

lewdev's tweet image. Dweets become a great reference to experiments so I built a browser. It's hard to find the code I'm looking for on Dwitter since it renders every dweet. I hope dwitter doesn't mind me using their API.

Future feature: set your own username

 #dwitter #tinycode

dwitter.net/d/32830 c.width|=0 for(i=15;i--;x.beginPath(x.stroke()))for(j=25;j--;) x.lineTo(960+i*C(j+t)*99,540-i*S(j+t)*19^99) #dwitter #tinycode


🚂 Random Text Generator in a Bookmark (bookmarklet) in #javascript #tinycode #codegolf With a small amount of code, I created a script that generates random data. And formatted it so you could put save it as a #bookmarklet. Commented source code in link...

lewdev's tweet image. 🚂 Random Text Generator in a Bookmark (bookmarklet) in #javascript #tinycode #codegolf

With a small amount of code, I created a script that generates random data. And formatted it so you could put save it as a #bookmarklet.

Commented source code in link...

Tunnel beta.dwitter.net/d/33412 for(i=w=800;i-=5;)for(j=400;j-=5;x.fill()) x.beginPath(),x.arc(w/2+i*C(j),w/2+i*S(j),i,j,9), x.fillStyle=R(w%i,i%w,i) #dwitter #tinycode

sxolastikos's tweet image. Tunnel
beta.dwitter.net/d/33412
for(i=w=800;i-=5;)for(j=400;j-=5;x.fill())
x.beginPath(),x.arc(w/2+i*C(j),w/2+i*S(j),i,j,9),
x.fillStyle=R(w%i,i%w,i)

#dwitter #tinycode

x=y=4e4;setup=_=>createCanvas(512,512);draw=_=>{(x>0)?x-=224:0;for(i=1e4;i--;){point(256+((x+=y>>8)>>8),256+((y-=x>>8)>>8))}}//#p5js #tinycode filled #circle, all integers + simplest arithmetic ops (no mul), early x86/ARM friendly

grz0zrg's tweet image. x=y=4e4;setup=_=>createCanvas(512,512);draw=_=>{(x>0)?x-=224:0;for(i=1e4;i--;){point(256+((x+=y>>8)>>8),256+((y-=x>>8)>>8))}}//#p5js #tinycode filled #circle, all integers + simplest arithmetic ops (no mul), early x86/ARM friendly

setup=_=>{g=500,colorMode(HSB,g,g,g),createCanvas(g,g),blendMode(ADD),r=random,s=stroke,v=vertex,p=40,fill(0),rect(0,0,g,g),strokeWeight(0.1),for(a=p;a--;){for(b=p;b--;){i=map(a,p,0,g,0),beginShape(),v(r(g),i),s(r(g),g,g),v(i,r(g)),s(i,r(g),g),v(i,i),endShape()}}}//#tinycode #wip

dotconatus's tweet image. setup=_=>{g=500,colorMode(HSB,g,g,g),createCanvas(g,g),blendMode(ADD),r=random,s=stroke,v=vertex,p=40,fill(0),rect(0,0,g,g),strokeWeight(0.1),for(a=p;a--;){for(b=p;b--;){i=map(a,p,0,g,0),beginShape(),v(r(g),i),s(r(g),g,g),v(i,r(g)),s(i,r(g),g),v(i,i),endShape()}}}//#tinycode #wip

c.width=w=1e3;for(i=0;i<w;i++,z=90*S(i/8+t),a=15*S(i/6+t/5),b=7*S(i/3+t*5),x.fillRect(w+a/z*w-500,w/2+b/z*w-160,z,3)); #tinycode


Snowy City ❄️ dwitter.net/d/32992 #javascript #tinycode #generativeart for(c.width=w=99,i=6e3;i;C-=a)++T<w&R<4-S(q=C/9^T/9)*(T>>5)*29?R-=b:x.fillRect(i%w,--i/w|x.clearRect(i/4+S(t*9+i)*2-(e=(C+i**2.7)%w)*2,e,1,1),1,(C&R&T+q&3)/9+T/w,R=T=a=1-i%w/50,b=1-i/4e3,C=t*30)


More Tiny Snowflakes ❄️ dwitter.net/d/32798 #javascript #tinycode 18 bytes smaller then my previous attempt! 🏌️‍♂️ can you guess what the 943 is for? 🤔 for(t*=i=433;i--;x.fillRect(t*24%2e3+X*C(a=i%12*943)-Y*S(a),t+X*S(a)+Y*C(a),4,4))X=i/12|0,Y=X*S(X*t)*(i%2*2-1)

KilledByAPixel's tweet image. More Tiny Snowflakes ❄️ dwitter.net/d/32798 #javascript #tinycode 18 bytes smaller then my previous attempt! 🏌️‍♂️ can you guess what the 943 is for? 🤔

for(t*=i=433;i--;x.fillRect(t*24%2e3+X*C(a=i%12*943)-Y*S(a),t+X*S(a)+Y*C(a),4,4))X=i/12|0,Y=X*S(X*t)*(i%2*2-1)

Forest 🌳🌳🌳 dwitter.net/d/33864 #javascript #tinycode F=(X,Y,Z,A,B=0)=>Z>1&&F(X-Z*S(A),Y-Z*C(A),Z*.97,A*.97,B+1)|x.fillRect(X,Y,Z*2,Z)|B>7&&F(X,Y,Z/2,A+C(X*Y)*2) t<20&&F(t**9%3e3*t,t*t*3,t,t%.3)

KilledByAPixel's tweet image. Forest 🌳🌳🌳 dwitter.net/d/33864 #javascript #tinycode

F=(X,Y,Z,A,B=0)=&amp;gt;Z&amp;gt;1&amp;amp;&amp;amp;F(X-Z*S(A),Y-Z*C(A),Z*.97,A*.97,B+1)|x.fillRect(X,Y,Z*2,Z)|B&amp;gt;7&amp;amp;&amp;amp;F(X,Y,Z/2,A+C(X*Y)*2)
t&amp;lt;20&amp;amp;&amp;amp;F(t**9%3e3*t,t*t*3,t,t%.3)

Hedge Maze 🌳 dwitter.net/d/34341 #tinycode #javascript for(w=83,i=6e3;t<3&&i--;d=i**3.2*t%4<<1)x.fillRect(i%w*T-i/9,i/2-t*40-T,T=40,t?A[i]:A=[w]),A[j=i*2]&&!A[j+=d=d>2?d*w-w*5:d-1]&!A[j+d]&j%w<81?A[j]=A[j+d]=T:x.fillStyle=R(v=t<2.9?t*35:170,v*2,v/2)

KilledByAPixel's tweet image. Hedge Maze 🌳 dwitter.net/d/34341 #tinycode #javascript

for(w=83,i=6e3;t&amp;lt;3&amp;amp;&amp;amp;i--;d=i**3.2*t%4&amp;lt;&amp;lt;1)x.fillRect(i%w*T-i/9,i/2-t*40-T,T=40,t?A[i]:A=[w]),A[j=i*2]&amp;amp;&amp;amp;!A[j+=d=d&amp;gt;2?d*w-w*5:d-1]&amp;amp;!A[j+d]&amp;amp;j%w&amp;lt;81?A[j]=A[j+d]=T:x.fillStyle=R(v=t&amp;lt;2.9?t*35:170,v*2,v/2)

Watercolor Textures 🖌️ dwitter.net/d/33833 #javascript #tinycode for(i=3e3,C(d*t)>.999?x.fillStyle=`hsl(${d**3%i} 99%${C(d)*40+40}%`:R=0;i--;)x.fillRect(i,R+t*99,.05,R+=C(i*i*++d))}{d=Date.now()

KilledByAPixel's tweet image. Watercolor Textures 🖌️ dwitter.net/d/33833 #javascript #tinycode

for(i=3e3,C(d*t)&amp;gt;.999?x.fillStyle=`hsl(${d**3%i} 99%${C(d)*40+40}%`:R=0;i--;)x.fillRect(i,R+t*99,.05,R+=C(i*i*++d))}{d=Date.now()
KilledByAPixel's tweet image. Watercolor Textures 🖌️ dwitter.net/d/33833 #javascript #tinycode

for(i=3e3,C(d*t)&amp;gt;.999?x.fillStyle=`hsl(${d**3%i} 99%${C(d)*40+40}%`:R=0;i--;)x.fillRect(i,R+t*99,.05,R+=C(i*i*++d))}{d=Date.now()
KilledByAPixel's tweet image. Watercolor Textures 🖌️ dwitter.net/d/33833 #javascript #tinycode

for(i=3e3,C(d*t)&amp;gt;.999?x.fillStyle=`hsl(${d**3%i} 99%${C(d)*40+40}%`:R=0;i--;)x.fillRect(i,R+t*99,.05,R+=C(i*i*++d))}{d=Date.now()
KilledByAPixel's tweet image. Watercolor Textures 🖌️ dwitter.net/d/33833 #javascript #tinycode

for(i=3e3,C(d*t)&amp;gt;.999?x.fillStyle=`hsl(${d**3%i} 99%${C(d)*40+40}%`:R=0;i--;)x.fillRect(i,R+t*99,.05,R+=C(i*i*++d))}{d=Date.now()

Views from the Destroyed City 🌆 dwitter.net/d/32960 #tinycode t?0:d=Date.now() for(w=i=500;i--;x.fillStyle=R(z=Z-Y*4,z-Z,Z),x.fillRect(i*4,t*240,4,4))for(a=i%w/250-1,Y=Z=b=1-t/3,X=d;++Z<230&&Y<6-S(X/9|Z/9)**8*(Z>>5)*33|X&Y-6&Z&15||b-.5&&(a=b=.5);Y-=b)X+=a;

KilledByAPixel's tweet image. Views from the Destroyed City 🌆 dwitter.net/d/32960 #tinycode

t?0:d=Date.now()
for(w=i=500;i--;x.fillStyle=R(z=Z-Y*4,z-Z,Z),x.fillRect(i*4,t*240,4,4))for(a=i%w/250-1,Y=Z=b=1-t/3,X=d;++Z&amp;lt;230&amp;amp;&amp;amp;Y&amp;lt;6-S(X/9|Z/9)**8*(Z&amp;gt;&amp;gt;5)*33|X&amp;amp;Y-6&amp;amp;Z&amp;amp;15||b-.5&amp;amp;&amp;amp;(a=b=.5);Y-=b)X+=a;

Can you guess what this #js code does? Hint: it starts with "Smallest..." and ends with "... ever"! (and it is 794 bytes long). I'm going to create some cool demos to show its full potential, before the official release 😁 #codegolf #tinycode

MaximeEuziere's tweet image. Can you guess what this #js code does?
Hint: it starts with &quot;Smallest...&quot; and ends with &quot;... ever&quot;!
(and it is 794 bytes long).
I&apos;m going to create some cool demos to show its full potential, before the official release 😁
#codegolf #tinycode

Updated my #tinycode bitfield based text rendering article with #x86 code for wireframe text (as low as 52 bytes to draw a three letters string) and stylized fonts (~70 bytes) #codegolf #demoscene onirom.fr/wiki/blog/25-0…

grz0zrg's tweet image. Updated my #tinycode bitfield based text rendering article with #x86 code for wireframe text (as low as 52 bytes to draw a three letters string) and stylized fonts (~70 bytes) #codegolf #demoscene
onirom.fr/wiki/blog/25-0…

Mountainous ⛰️ dwitter.net/d/34033 #tinycode #genart for(i=2e3;i--;x.fillRect(i,t*60,1,z/7+.5))for(z=0,j=9;--j;z+=F(Y=t*5/j-z+j,X=i/19/j)*(1-Y%1)+Y%1*F(Y+1))F=Y=>X%1*S(X^Y)+(1-X%1)*S(X-1^Y)

KilledByAPixel's tweet image. Mountainous ⛰️ dwitter.net/d/34033 #tinycode #genart

for(i=2e3;i--;x.fillRect(i,t*60,1,z/7+.5))for(z=0,j=9;--j;z+=F(Y=t*5/j-z+j,X=i/19/j)*(1-Y%1)+Y%1*F(Y+1))F=Y=&amp;gt;X%1*S(X^Y)+(1-X%1)*S(X-1^Y)

Loading...

Something went wrong.


Something went wrong.


United States Trends