dwitter.net | joeytwiddle (64383)

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

  • wierd js (interper)
  • u/joeytwiddle
    Very weird. (Replace eval with throw to see what is generated.)
  • u/joeytwiddle
    But I see potential here for a useful mini language. What if R performed fillRect or L performed lineTo? Could you draw something?

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

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

}//
96/140


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

  • normal angel, don't worry about it
  • u/SockTaters
    This seems to work on the old frontend but not the new one, for both mobile and desktop

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 1 remix fullscreen

function u(t) {

}//
92/140


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

  • #default but with #emojis (catch them by scrolling and they become 😭)

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.


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

  • Deep spiral eyes

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

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

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

Loading...
Next page