dwitter.net

+ New dweet
function u(t) {
} //
122/140


Please log in (or register) to post a dweet (copy-paste the code somewhere safe to save it meanwhile)


u(t) is called 60 times per second. t: Elapsed time in seconds. S: Shorthand for Math.sin. C: Shorthand for Math.cos. T: Shorthand for Math.tan. R: Function that generates rgba-strings, usage ex.: R(255, 255, 255, 0.5) c: A 1920x1080 canvas. x: A 2D context for that canvas.
Try the new frontend: beta.dwitter.net
Current theme challenge: #Food
show FPS hide FPS share fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • More color, more movement, more vertigo :-)
  • u/danny@hille.dk
    for(c.width=w=384,d=new ImageData(w,w),m=w*w,i=0;m--;)r=((X=m%w-w/2)*X+(Y=m/w-w*.7)*Y)/w,(q=d.data)[i++]=(f=T(C(t)*9+X/r|Y/r+S(t)*8)*w),q[i++]=f/3,q[i++]=S(f-t)*w,q[i++]=w x.putImageData(d,0,0)
  • u/mxfh
    there is also data.set([r,g,b,a],4)
  • u/mxfh
    great to see this is going places.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7564 by u/New_Core

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
46/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

remix of d/21662 by u/Pascal

function u(t) {

}//
132/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • circles
  • u/DaSpider
    126... with(x)for(c.width|=i=144;i--;fill(arc((X=i%16)*120+60,(i-X)*7+60,(.5+C(t-3)/2)*(7*C(i*i+t*2)+S(i*i/5+t))**2,0,7)))beginPath()
  • u/danny@hille.dk
    121: for(c.width|=i=144;i--;)x.beginPath(x.fill(x.arc((X=i%16)*120+60,(i-X)*7+60,(.5+C(t)/2)*(7*C(i*i+t*2)+S(i*i+t))**2,0,7)))
  • u/danny@hille.dk
    112:for(c.width|=i=144;i--;)x.beginPath(x.fill(x.arc((X=i%16)*120+60,(i-X)*7+60,(.5+C(t)/2)*(7*C(i*i+t*2))**2,0,7)))
  • u/danny@hille.dk
    last +S(i*i+t) didn't do much

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • 4 to 1 Dwitter Compressor - Up to 224 Characters! Read comments for instructions and limitations. #Compressor
  • u/KilledByAPixel
    How to use: Replace s with your code and it will throw the compressed version! To uncompress use t?eval(O+=W[V.charCodeAt(I/2)>>I++%2*5&31]):I=O=""
  • u/KilledByAPixel
    Limitations: Can only compress 32 unique characters, and some characters are not allowed including double quotes, I,O,W,and V.
  • u/KilledByAPixel
    The values for V and W can be replaced directly in the uncompressor to save space.
  • u/KilledByAPixel
    Example: s="for(c.width|=i=9;i--;)x.fillRect(400+i*99+S(t)*300,400,50,200)" compresses to t?eval(O+=";for(c.width|=9-)xlRe40+*S3,52"["𠒃񁔇񢖋񓗍񐇯򐃑񐙒򴵅򹋖񕷘󋢙򒭘󅪻󅮛󭫝򕠀".charCodeAt(I/2)>>I++%2*5&31]):I=O=""
  • u/KilledByAPixel
    Here's a more user friendly version on codepen: https://codepen.io/KilledByAPixel/full/JjPVO…

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
97/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Lines

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
125/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • u/geneptalbot
    everything you make is incredible!
  • u/danny@hille.dk
    Very nice. It kind of looks like a late-70s magazine ad. Pacman and drugs—your kids will love them!
  • u/cantelope
    danny, sarcastic 'drugs for [your] kids' remarks and judgement about others' "sins" is all well outside the scope of this platform. Might want to get back to building and being supportive

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
140/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

  • Born in the USA 🇺🇸 #flag

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
96/140


Please log in (or register) to post as a new dweet (copy-paste code somewhere safe to save it meanwhile).

Please log in (or register) to comment.

Loading...
Next page