dwitter.net | timothytomato (32698)

+ 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
p01

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

  • ๐Ÿƒ VICTORY!!! ๐Ÿƒ

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

  • CHOO CHOO! Let it run to see all the tracks. :)

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

  • 141/140 I broke the matrix
  • u/prplz
    When the order of your for loop isn't important you can make it count backwards like this for(i=10;i--;)
  • u/Galaxtone
    oh nice thx for the tip I'm new to this code-golfing site
  • u/Galaxtone
    also I saw something about using with(x) so I think I'll use that for future stuff :p
  • u/Galaxtone
    for(i=10;i--;)with(x){fillStyle=R(S(t)*255,C(t)*255);beginPath(); ellipse(400+i*99+S(t)*300,S(t)*99+400,50,C(t)*99+200,0,0,3,1);fill()} Saved 5 whole bytes using that

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

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

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

  • Seesaw
  • u/jylikangas
    Feel free to remix with emojis :)
  • u/magna
    Added emojis, sound and parallax background: d/7633
  • u/jylikangas
    c.width=200 for(i=2;i--;x.lineTo(X+3,Y>71?Y:71))Y=S(t*3+i*3.14)*60,x[f='fillText']('๐Ÿ•บ',X=50+i*99,Y=Y>9?89:80+Y) x.stroke() x[f]('๐ŸŽฉ',99,88,9)
  • u/iverjo
    #bounce

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7590 by u/aemkei

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

  • Bird

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

  • Tribute to Strange Crystals
  • Show more commentsโ€ฆ
  • u/iverjo
    #tunnel
  • u/sigveseb
    #witchcraft
  • u/pavel
    Even better with(x)for(c.width=W=350+C(t)*150,i=17;--i;fill(rect(X-z,70+z,z*2,7)))globalAlpha=.2,z=150/(i-t*8%1),arc(X=W/2+i*S(t/3)*4,70,3*z,9,13)
  • u/vain
    This psydo 3D programming is just too high for me! My biggest respect! ! ++++

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
138/140


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

  • A E S T H E T I C C

Please log in (or register) to comment.

Loading...
Next page