dwitter.net | corruptio (2183)

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

function u(t) {

}//
95/140


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

  • saving more space if you only use the numbers: ".012578"

Please log in (or register) to comment.

show FPS hide FPS share 1 remix 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).

  • save some space if your dictionary happens to contains "functio"

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/10705 by u/yonatan

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

  • Improved performance remix (568px width)
  • Show more comments…
  • u/yonatan
    I half-guessing so if anyone has a better explanation...
  • u/yonatan
    placing the displacement filter as a child of the turbulence node seems to feed the parent's output into both of the child's input nodes.
  • u/yonatan
    oops, not child, sibling.
  • u/yonatan
    tl;dr: no idea :)

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

  • Managed to shave off enough bytes to get Y axis movement. Hat tip to @prplz for help saving bytes

Please log in (or register) to comment.


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

}//
140/140


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

  • OutRun: Neon City edition

Please log in (or register) to comment.

remix of d/9491 by u/Xen

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

  • Tetris! pitch and rhythm a bit off to fit into 140...
  • Show more comments…
  • u/joeytwiddle
    It sounds good enough with 200 instead of 99 but +1 over
  • u/alien
    is there anyway to stop this!!! ?
  • u/katkip
    InvalidStateError: Failed to execute 'start' on 'AudioScheduledSourceNode': cannot call start more than once.
  • u/384.cz
    #tetris

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/1829 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).

  • c.width=-1;for(j=2e3;j--;x.fillRect(T+50*S(t+a)+U*A+V*B,T+9*C(t+a)+V*A-U*B,3,9))B=9*S(a=j/1250)*S(j),A=(25*S(-a*5)+25)*C(j),U=S(r=S(t)/2),x.fillStyle=R(q=(j&128)-C(r+j)*T,V=C(r),T=99);
  • Show more comments…
  • u/yonatan
    You can try it: c.width=-1;for(j=2e3;j--;x.fillRect(99+9*S(a=j/1250)*S(j)+50*S(m=t*3+a),75+25*(S(-a*5)+1)*C(j),3,7))x.fillStyle=R(q=(j&128)-C(j)**3*99,q,q)
  • u/magna
    Very tropical
  • u/yonatan
    sorry, wrong code, I meant c.width=-1;for(j=0;j++<2e3;x.fillRect(99+9*S(a=j/1250)*S(j)+50*S(m=t*3+a),75+25*(S(-a*5)+1)*C(j),3,7))x.fillStyle=R(q=(j&128)-C(j)**3*99,q,q)
  • u/donbright
    dude...

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
remix of d/9486 by u/f8f82804

function u(t) {

}//
123/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