dwitter.net | robbyg (44918)

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

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

  • Essential reading
  • Show more comments…
  • u/mxfh
    Lol. Apple Skunkworks I suppose. dwitter is a whole argument while real other browsers should be enforced to be allowed on iOS.
  • u/rep_movsd
    Chromium doest show the skunk :(
  • u/tomxor
    Safari/webkit is the new IE in terms of browser stagnation and bugs, i come to dwitter to not care about it :)
  • u/mxfh
    ok, spotty alpha channels are not that rare: https://observablehq.com/@mxfh/emojis

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
137/140


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

  • u/ciaccodavide
    maybe I should have used margin:${r()/2}px for a subtler shake

Please log in (or register) to comment.

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

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
TGY
remix of d/24073 by u/pavel

function u(t) {

}//
73/140


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

  • xs

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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


function u(t) {

}//
91/140


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

  • 91
  • u/pavel
    for(i=u=~u*697&475;w=i--/4;)x.fillRect((t||S(i))*2e3-u*T%w,T=640+(i&5?i-u:u-i),t?w:u,t?2:i/u) has the parabola shape but is 92 and a little too symmetric.
  • u/pavel
    Err, I meant for(i=u=~u*81&493;w=i--/4;)x.fillRect((t||S(i))*3e3-u*T%w,T=640+(i&5?i-u:u-i),t?w:u,t?2:i/u)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
96/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).

  • bouncy bouncy remix

Please log in (or register) to comment.


function u(t) {

}//
68/140


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

  • Moiré Waves
  • u/sigveseb
    Wow, somehow this one looks the same in fullscreen too for me. I was expecting it to have completely different patterns because of the moire effect!
  • u/theonewhostands
    May I ask why you used 'c.width|=0'? to my understanding, it should always return the same value. 1920 | 0 = 1920
  • u/danny@hille.dk
    when you set the with of a canvas, the canvas is reset/cleared, c.width|=0 is 2 char shorter than c.width=1920
  • u/theonewhostands
    Interesting. I understand now. Thank you very much!
  • u/magna
    Whoa!

Please log in (or register) to comment.

Loading...
Next page