Dwitter | farter (45)

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

Please log in (or register) to comment.


function u(t) {

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

}//
139/140


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

  • farter: console.log(a[1]), something is running inside this "little computer"
  • farter: but sorry for no use of canvas lol
  • farter: console doesn't work now, instead, append this: ;c.width=150;x.fillText(a[1],0,10)

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

Please log in (or register) to comment.

remix of d/1862 by u/farter

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

  • farter: fixed initial field f=0, and saved 2 bytes according to FireFly's suggestion!

Please log in (or register) to comment.


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

}//
144/140


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

  • farter: remix of the default code
  • joeytwiddle: Reminds me of a certain talking car. And also a talking toaster.

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

  • Load older comments...
  • FireFly: Very nice! (i&7)*8 → i%8*8 should save you two bytes, btw
  • farter: @iverjo in fact at first i tried, but if it's slowed down, you'll see some wrong but minor behavior, due to saving bytes. and @FireFly thx, and the two bytes allowed me to solve one of them!
  • Renaud___: I am trying to do anything like that since 4 days ... with 180 char, cant golf it... full respect farter :)

Please log in (or register) to comment.


function u(t) {

}//
128/140


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

  • farter: play with zooming artifact depending on browser canvas implementations

Please log in (or register) to comment.

Congratulations! You've reached the end.