dwitter.net | rodrigo.siqueira (1549)

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

  • Load older comments...
  • rodrigo.siqueira: Thanks @joeytwiddle for the golf trick. i*(t&1) also works and it's even shorter. And I found that t%4>2?... can be converted to t&2?... It works as a counter to change the function each 2 seconds.
  • yonatan: Also, since T and S take the same arguments (t%4>2?T(b+t):S(b+t)) can be (t&2?T:S)(b+t)
  • lionleaf: Wow! Now we're talking

Please log in (or register) to comment.


function u(t) {

}//
119/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) {

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


function u(t) {

}//
144/140


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

  • katkip: Nice
  • sigveseb: Pretty af
  • Purpzie: Shortened by 5 characters: if(t<2)with(x)globalAlpha=.7,fillRect(0,0,1,1),rotate(Math.PI*.8),translate(-450,-700),drawImage(c,0,0,1e3,1e3),translate(-900,-310)

Please log in (or register) to comment.


function u(t) {

}//
127/140


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

  • rodrigo.siqueira: Disintegration of the Triple Unity (Man ֍ Machine ֍ Intelligence). We believe the creation of super intelligence is inevitable (Way of The Future).

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

Please log in (or register) to comment.


function u(t) {

}//
124/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) {

}//
141/140


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

  • rodrigo.siqueira: Feigenbaum Flower. Homage to Mitchell Feigenbaum (1944-2019). He demonstrated the universal character of dynamical non-linear systems, which has made possible the systematic study of chaos. In 1975, using the small HP-65 calculator, he discovered that the ratio of successive distances between bifurcation events tends to a constant δ ≈ 4.66920... This "ratio of convergence" of period-doubling bifurcations is now known as the first Feigenbaum constant. #bifurcation #attractor #fractal #chaos #math
  • taupelink: This is a great tribute. RIP.
  • donbright: really nice
  • artfarnaa: Rodrigo - are you working full time on this fractal stuff? Super impressive if its only a hobby. Great work.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

Loading...
Next page