dwitter.net | 3bl3gamer (1549)

+ 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: #ScaryMovies
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 fullscreen

function u(t) {

}//
122/140


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

  • u/iverjo
    Smooth!
  • u/New_Core
    Would be nice if dwitter had so you could post an example based on a dwitt without posting a new one. for example on this one I would post.. c.width=2e3;for(y=1500;y--;)a=y%29,b=y%52,x.fillRect(b*40,a*40,C((b*a)/8+t*2.5)*40,S((b-a)/7+t*3)*40)
  • u/iverjo
    Ah, a golfed version :)
  • u/lionleaf
    Good idea, I've been toying with the thought for a while. What's your take on how it should look / work in practice? Allow comments to be a dweet that can be opened and closed?
  • u/New_Core
    one way would be to have like a offspring dweet button... when you use it the code will be placed in a dropdown list under the original dweet.. not sure how it should look like but the original show allways first and then you can select an edited version. (keeps comments clean)
  • u/iverjo
    Here's an idea: https://github.com/lionleaf/dwitter/issues/7…

Please log in (or register) to comment.

show FPS hide FPS share 2 remixes 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).

  • Burning ship fractal, zoomed in on an interesting point
  • Show more comments…
  • u/iverjo
    126 characters: for(j=1080;j--;){a=b=0;for(k=35;k--&&a*a+b*b<4;a=c)c=a*a-b*b+t*6e-10-1,b=Math.abs(2*a*b)+j/1e11-1;x.fillRect(t*60,j,1,S(k/9))}
  • u/donbright
    speechless!!
  • u/iverjo
    #fractal
  • u/iverjo
    #burningship

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/444 by u/New_Core

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

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
137/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/444 by u/New_Core

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
122/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/350 by u/iverjo

function u(t) {

}//
123/140


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

  • Does this work on Mac and iPhone?

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

  • A 2 color plasma, couldnt fit the 3:d color
  • u/icecuber
    Can you fit the 3:d color with this (reduced 21 bytes)? a=c.width=99;d=x.getImageData(0,0,a,a);for(i=3e4;i--;)d.data[i]=i%396+[b=S(i/5e3+t),-b,,i][i%4]*a;x.putImageData(d,0,0)
  • u/New_Core
    nice.. that is much better
  • u/New_Core
    a 3 color test added on icecubers code a=c.width=99;d=x.getImageData(0,0,a,a);for(i=3e4;i--;)d.data[i]=i%396+[S(q=i/5e3+t)*0.6,S(q+t)*0.3,S(q+t*4),i][i%4]*a;x.putImageData(d,0,0)
  • u/iverjo
    Nice :) I find your attempt at plasma better than mine: Btw, you can replace 0.6 with .6 and similarly for 0.3
  • u/iverjo
    https://dwitter.net/d/48

Please log in (or register) to comment.

Loading...
Next page