dwitter.net | lewdev (722)

+ 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
remix of d/27051 by u/lewdev

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

}//
119/140


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

  • ⌨ xem's mini keyboard WASD/Arrow Key controls

Please log in (or register) to comment.

remix of d/23822 by u/lewdev

function u(t) {

}//
101/140


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

  • Show Key Codes (101 characters)

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

  • 🕰 Running timer

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
132/140


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

  • A comet!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
115/140


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

  • Asking for a friend.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
112/140


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

  • 🦑🎮 Red light, Green light by u/pavel. I couldn't not post it.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
134/140


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

  • 🦑🎮 Red light, Green light. I'm having trouble making them pause. Does this count as #ScaryMovie ?
  • u/pavel
    Nice idea. Play around with this for(c.width|=i=32,x.font="5cm'";q=i*i--;)x.fillText("🏃",2e3-(i+177*(C(a=C(b=t/2+S(q)/5)+b)+a+q))%300*9,1e3-32*i)
  • u/lewdev
    OMG, you're a genius! Thanks!

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
129/140


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

  • Learn about Key Codes

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
111/140


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

  • u/rodrigo.siqueira
    Paul Erdős said about the Collatz conjecture: "Mathematics may not be ready for such problems." He also offered US$500 for its solution. https://en.wikipedia.org/wiki/Collatz_conjec…
  • u/New_Core
    I tried to visualize something with the Collatz Conjecture a few weeks ago but I didnt come up with anything good.. I bet someone can do some nice stuff with it here.
  • u/lewdev
    Yeah, I figured there's a way to build out visuals like the ones in the video. I just did a quick one to get started. Math is a great inspiration for dweets.
  • u/smtsjhr
    neat! some more inspiration for visualizing Collats here: https://youtu.be/RzQE2Q7lsT4

Please log in (or register) to comment.

Loading...
Next page