dwitter.net | joeytwiddle (2684)

+ 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: #Food
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).

  • u/joeytwiddle
    The S(N/t) trick is new, to shrink the dots when enough time has passed

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

  • 8 primary colours flashing (sorry)
  • u/joeytwiddle
    I just made this to explain my 8-bit childhood trauma to a friend
  • u/joeytwiddle
    Long ago I noticed that the brightness of the colours increases in an alternating fashion: 0,4, 1,5, 2,6, 3,7. Paste ,c.style.filter='saturate(0%)',t=0 at the top to see this. It seemed to me to be intentional but odd. Now I realise it's simply because blue is the darkest primary, with red and green following. So we can get a smooth gradient by moving J*(f&1) from the first argument to the last.

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

}//
139/140


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

  • Pork burger factory (squeamix)
  • u/cantelope
    i don't pay you to show me how the porkburgers are made

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/35276 by u/NiVZ

function u(t) {

}//
90/140


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

  • When you're starting a healthy diet ... next week

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

  • not quite so smol language model

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

  • self-aware smol language model

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

  • Weak reflection

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

  • Red Blood Cells redux

Please log in (or register) to comment.

show FPS hide FPS share 2 remixes fullscreen
remix of d/6159 by u/Exca

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

  • A little remix of the spinning alien

Please log in (or register) to comment.

Loading...
Next page