dwitter.net | kchplr (313)

+ 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

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

  • Spent some time trying to compress it, but forgot to remove the Y=y. Should be 129 bytes instead of 133.
  • u/sigveseb
    if you do z=99.. instead of z=100.. you can get an extra byte!
  • u/kchplr
    aah, indeed thanks!
  • u/kchplr
    Just figured out the last statement in the for loop can also be placed in the loop body to save two more bytes. I'm new to this codegolfing thing...
  • u/kchplr
    Actually, the first statement, not the last..

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/4723 by u/Xen

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

  • Shopping for magic numbers !

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/2842 by u/alien

function u(t) {

}//
117/140


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

  • u/alien
    :D!!!
  • u/Xen
    95bytes for you: c.width=123;for(j=70;j--;)for(i=130;i--;s=C(q=(i*i*j*j*8+frame*9)&768)<0&&x.fillRect(i,j,1,1));
  • u/Xen
    95bytes for you: c.width=123;for(j=70;j--;)for(i=130;i--;s=C(q=(i*i*j*j*8+frame*9)&768)<0&&x.fillRect(i,j,1,1));
  • u/kchplr
    81bytes for me :p : for(c.width=i=130;i--;)for(j=70;j--;)x.fillRect(i,j,1,C(i*i*j*j*8+frame*8&768)<0)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/3101 by u/kchplr

function u(t) {

}//
92/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) {

}//
93/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
remix of d/1396 by u/kchplr

function u(t) {

}//
122/140


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

  • Exactly the same as the original but with 11 less characters. Thanks to u/sigveseb/ for one of the tricks.

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 2 remixes fullscreen

function u(t) {

}//
78/140


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

  • A work in progress, I guess ?
  • u/joeytwiddle
    Cute :D f>>3 could save you two chars
  • u/kchplr
    joeytwiddle: good call, it will also definitively help when I'll move to multi-bytes characters
  • u/Xen
    did you a remix ;)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/2938 by u/kchplr

function u(t) {

}//
117/140


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

  • Same as the original but with c.style='image-rendering:pixelated' to look better and the same size

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
130/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.

You've reached the end.