dwitter.net | Xen (95745)

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

}//
138/140


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

  • randomly sampled mandelbrot set (thanks u/jgobi for fitting it in 140 chars!)

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

  • Learning the trade
  • u/Xen
    nice
  • u/Xen
    for(w=c.width|=i=20;i--;x.stroke())x.moveTo(!x.beginPath(x.lineWidth=i),k=(i*145+t*1e3)%(w+1e3)),x.lineTo(k-S(5*t)*200,0)
  • u/hauntedg
    Thanks, as the title implies, this was my first dwit, still new at this

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/19687 by u/Lerkel

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

  • sparse mandelbrot set

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen
remix of d/19684 by u/jgobi

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

  • quick test

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

  • rot99

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • u/tomxor
    dwitter 2d! welcome :)
  • u/tomxor
    Here's some golfing ideas for you: c.width|=0;for(i=12;i--;)x.fillRect(...i&1?[X=50+i*50+S(t)*300,400,50,800]:[400,X,800,50])

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
Xen

function u(t) {

}//
99/140


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

  • I've not been active lately sorry
  • u/tomxor
    Mmm rainbows... All is forgiven :)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/19655 by u/tomxor

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

}//
131/140


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

  • u/jgobi
    it's very pleasing to vary the Math.PI's exponent and see what happens. particularly i liked a lot the 9 (d/19684), 11 and 19. I tried to adjust this to auto change this, but it always get bigger than 140 characters ^^"
  • u/jgobi
    ops, the https://www.dwitter.net/d/19684 is for the 11 variation

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

  • unique random array

Please log in (or register) to comment.

Loading...
Next page