dwitter.net | New_Core (12273)

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

  • this year the Christmas tree has a "star" but no decoration
  • u/pavel
    -4 with(x)for(c.width|=i=9;i--;fill(arc(X,Y,50+i*50,1,2)))beginPath(fillStyle=R(255*!i,255-i*9)),moveTo(X=960+(80-i*9)*S(t+i/9),Y=i*40+99)
  • u/pavel
    -1 255*!i -> !i<<7

Please log in (or register) to comment.

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

  • a swinging christmas ball

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

  • SpaceX starships nosecone from sn8 test ;)

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

  • u/TGY
    I don't think you need "var" there. It works fine without it :)
  • u/New_Core
    nice, and its 5 FPS faster with the "var" then without on my old machine.

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

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

  • Show more comments…
  • u/UEZ
    @tomxor: thx.
  • u/nystrand
    epic!
  • u/jelmo
    Nice
  • u/vain
    Wow! This seems to be your stargate... Seems you are not from this world! Incredible!!!

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

}//
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/20460 by u/pavel

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

  • well... almost
  • u/pavel
    -12 chars with(x)for(c.width|=i=226;i--;beginPath(fill()),fillStyle=R(T,i))for(j=6;j--;)arc(i%38*59,i%12*99,T=65-65**S(t+i),q=j*1.05+11,q)

Please log in (or register) to comment.

Loading...
Next page