dwitter.net

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

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/joeytwiddle
    Wow, beautiful! I am blown away. #dots #lighting #shading
  • u/lionleaf
    Wow! That's amazing
  • u/magna
    WOW!
  • u/sigveseb
    no way!
  • u/yonatan
    beautiful!
  • u/jellyedwards
    That's incredible, well done!
  • u/jellyedwards
    If you change this bit too use t it's like Saturn uses its ring as a hula hoop: 540+m*C(n+p*t)
  • u/katkip
    woow... gj bro
  • u/keithclark
    Nice!!!
  • u/aleamb
    wow! superb!
  • u/iverjo
    That's pretty rad
  • u/rnbw
    my mind is officially boggled o_o
  • u/Purpzie
    This is absolutely beautiful.
  • u/tomxor
    Thanks for all the kind comments :) for those interested: the key is in the parity bit p=i&1 this allowed me to combine two different but similar functions by multiplying parts in an out on each iteration. You should be able to pull the two apart into something more intelligible.
  • u/magna
    @tomxor are you on Twitter as @tomxor by any chance?
  • u/tomxor
    I am not, nor am I on any other social network... unless you consider Github one :P but a different pseudonym..
  • u/jylikangas
    Beautiful dweet!
  • u/aleamb
    The Cosmos is all that is, or ever was, or ever will be. The contemplation of the this Cosmos stir us.
  • u/Renaud___
    so Beautiful
  • u/ivylab
    This is absolute badass

Please log in (or register) to comment.

u(t) is called 60 times per second. t: elapsed time in seconds. c: A 1920x1080 canvas. x: A 2D context for that canvas. S: Math.sin C: Math.cos T: Math.tan R: Generates rgba-strings, ex.: R(255, 255, 255, 0.5)