dwitter.net | aeastham1 (21)

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

  • took some inspiration from rodrigo.siqueira and mhi

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

  • u/aaaaaz
    anylink to understand how does it works ? it looks like Lissajous but superposed
  • u/taupelink
    No links handy, sorry! I can say that this code adapts the concept of signed distance functions. f is a SDF in one dimension, g in two dimensions. g uses binary arithmetic to kind of pick out certain parts of the output of f, and the parameter of g makes it work at different scales.
  • u/taupelink
    Also: If you see a term like "i%2" or "i%3" or "(i&5)" in any of my recent dweets...that tends to superimpose two related-but-different patterns on each other. Which can be hard to make work. I am still experimenting!
  • u/taupelink
    *two or more, depending on the expression

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

  • pretty simple geometric sequence, thought of it in abt 5 mins XD

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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.

You've reached the end.