dwitter.net | akm (8202)

+ 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: #Opposites
show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
139/140


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

  • u/Apex
    A dwitter combiner? Awesome
  • u/joeytwiddle
    Squints... scratches head... this is synchronous XHR!
  • u/joeytwiddle
    Same thing, using fetch: F=async I=>T[I]=(await(await fetch('/id/'+I)).text()).match(/u\(t.*([^]*?) }/)[1];eval(t?T[1494]+';'+T[888].slice(23):F(1494),F(888))
  • u/magna
    HAX!
  • u/Renaud___
    HAX ! but funny combinaison :)
  • u/Xen
    lol nice work

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
118/140


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

  • Changed i limit to 9e5 for more random-seeming bars and did S(T( for a cooler effect
  • u/BirdsTweetCodersDweet
    Changed i limit to 9e5 for more random-seeming bars and did S(T( for a cooler effect
  • u/Apex
    Looks cool but lags like crazy for me

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/6616 by u/akm

function u(t) {

}//
103/140


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

  • Golfed the time-waster
  • u/Apex
    Less charming, I know, but at least it fixes the typo
  • u/akm
    Oh my goodness, I just noticed my typo. I like the trick you did for the font!
  • u/Apex
    Lmao, thanks
  • u/Purpzie
    i love this skdfjsdhfjsdjf

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
136/140


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

  • My first time trying this out

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).

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
134/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
akm
remix of d/5759 by u/zanella

function u(t) {

}//
116/140


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

  • changed the random generator and got an other kind of broken tv

Please log in (or register) to comment.


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).

  • A torus-like shape made of sin and cos spinning in 3D space. Credit to u/Xen for golfing.
  • u/BirdsTweetCodersDweet
    Better with transparency, but 148 bytes -- t?0:s=0;for(c.width|=a=1e3;a--;x.beginPath(x.globalAlpha=.5))x.ellipse(960+200*C(a),540+200*S(a),90+30*S(a+s),90+30*C(a),0,0,7),x.stroke(),s+=1e-4
  • u/BirdsTweetCodersDweet
    I'm done --- t?0:s=0;for(c.width|=a=1e3;a--;x.stroke(),x.globalAlpha=.5)x.beginPath(),x.ellipse(960+200*C(a),540+200*S(a),90+30*S(a+s),90+30*C(a),0,0,7,x.strokeStyle=R(255*S(a)+255,255*C(a)+255,100+10*C(a))),s+=1e-4 --- 202 bytes, but full with colors and stuff, except for a weird bright area(?)... I dunno, see you all tommorow, I'm off to sleep :P
  • u/akm
    I golfed it to 134 chars with transparency. for(c.width|=a=1e3;a--;)with(x)ellipse(960+200*C(a),540+200*S(a),90+30*S(a+t*6.2),90+30*C(a),0,0,7),stroke(),beginPath(globalAlpha=.5)
  • u/BirdsTweetCodersDweet
    Solved the weird colors --- t?0:s=0;for(c.width|=a=2e3;a--;x.stroke(),x.globalAlpha=.5)x.beginPath(),x.ellipse(960+200*C(a),540+200*S(a),90+30*S(a+s),90+30*C(a),0,0,2*Math.PI,x.strokeStyle=R(255*S(a)+255,255*C(a)+255,100+10*C(a))),s+=1e-4

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
akm

function u(t) {

}//
133/140


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

  • I improved the stats

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
akm
remix of d/6663 by u/Anthorouss

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.

Loading...
Next page