dwitter.net | Odog8 (12213)

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

}//
140/140


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

  • u/danny@hille.dk
    This is a personal thing!!! Twister2d is one of my favorite old school effects, it's also one of the first things i tried to golf to fit into a dweet (and I failed miserably :-)) I have retried tried (and failed) a couple of times, but this is the first time i actually managed to get the damn thing to fit without compression. I had to scarifice colors to maintin an interesting animation. Perhaps I'll get it next time :-) #twister #twister2d
  • u/New_Core
    it look great...
  • u/DataMeta
    beautiful #grayscale

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

  • uncompressed tunnel remix
  • u/tomxor
    Interesting an-anisitropic event horizon in the middle :P
  • u/danny@hille.dk
    :P I couldn't fit the code to darken by depth...
  • u/danny@hille.dk
    heres another interesting rendition c.width=w=127;for(i=1e4;i--;x.fillRect(m,i/w|0,o=((w/(Y*Y+X*X)**.5+t*w&w^w*a+w-t/5*w&w))/w,.5/o))a=Math.atan2(X=-.5+(m=i%w)/w,Y=-i/-9e3)
  • u/danny@hille.dk
    #tunnel

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
TGY
remix of d/23667 by u/Joachim

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

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.


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

  • u/vain
    wtf? great physic like fx

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/20904 by u/lerc

function u(t) {

}//
135/140


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

  • Night Flight

Please log in (or register) to comment.

remix of d/23551 by u/mxfh

function u(t) {

}//
125/140


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

  • https://www.dwitter.net/d/23557 so with some space for setting up other buffer view, it speeds things up when treating rgba Uint8Clamped Array as single 32bit value
  • u/mxfh
    wondering if we could store that buffer somwhere to do truly iterative fractal stuff
  • u/taupelink
    trippy!

Please log in (or register) to comment.

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

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

  • Show more comments…
  • u/pavel
    -2 char using S(t%3.14) to bounce and inlining the single Math.abs call
  • u/danny@hille.dk
    What a clever trick, using modulus pi of t, to only get the positive part of the sinus curve
  • u/danny@hille.dk
    3.2 works fine, while 3 and 3.1 looks wrong
  • u/danny@hille.dk
    test code: c.width|=0,x.fillRect(o=860,o-S(t*4%3.2)*o,200,200)

Please log in (or register) to comment.

Loading...
Next page