dwitter.net

+ 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
remix of d/10019 by u/katkip

function u(t) {

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

}//
139/140


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

  • Lights Out (with help from u/Xen)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen
remix of d/28777 by u/lewdev

function u(t) {

}//
72/140


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

  • quick messy golff
  • u/Joachim
    61 char -->x.fillRect(t*2e3%6e2,t*90|0,40,40);x.fillStyle=R(T(t*89)*999)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/13533 by u/AliYil

function u(t) {

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

}//
135/140


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

  • This American Life Logo, Host is Ira #glass
  • u/WorldMerge
    Original uncompressed code: z=500;x.fillRect(0,0,z,z);x.fillRect(z+100,0,z*4,z/3);x.fillRect(z+100,z/1.5,z*4,z/3);x.fillRect(0,z+100,z*4,z/3);x.font="500px a";x.fillText("◤",z-100,z+z);
  • u/WorldMerge
    I used u/metamero 's compressor: https://www.dwitter.net/d/11852
  • u/13thptr
    Hi :) your code can be shortened so that it fits into 140c without compression : z=500;x[s="fillRect"](0,0,z,z);x[s](600,0,z*4,z/3);x[s](600,z/1.5,z*4,z/3);x[s](0,600,z*4,z/3);x.font="500px'";x.fillText("◤",400,z+z)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
77/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
remix of d/6483 by u/bepisTM

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

  • i managed to make the text go up too now

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
108/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
Xen

function u(t) {

}//
45/140


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

  • Going thru old files and found this (not sure if posted), very slow burn but name it when you know it ;-) #fractal 45bytes

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

  • u/rep_movsd
    You need to write a blog about this particular technique
  • u/taupelink
    i'd like to, but it would take time (i'm a super slow writer) and it's honestly not a priority at the moment. I can at least say this: Part of how I get four vertical bands is having Y range from less than -1 to greater than 1 (in this case, -2 to 2). Multiplying or dividing by Y then has four effects: stretch or compress, do or do not reverse sign
  • u/rep_movsd
    A one page breakdown would be nice, or perhaps I'll write one
  • u/taupelink
    ah ok...like a line-by-line explanation? that's doable...i'll write something up next weekend!

Please log in (or register) to comment.

Loading...
Next page