dwitter.net | sawaxon (8048)

+ 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: #Opposites
show FPS hide FPS share fullscreen
remix of d/9898 by u/Noah

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
remix of d/1829 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).

  • c.width=-1;for(j=2e3;j--;x.fillRect(T+50*S(t+a)+U*A+V*B,T+9*C(t+a)+V*A-U*B,3,9))B=9*S(a=j/1250)*S(j),A=(25*S(-a*5)+25)*C(j),U=S(r=S(t)/2),x.fillStyle=R(q=(j&128)-C(r+j)*T,V=C(r),T=99);
  • Show more comments…
  • u/yonatan
    You can try it: c.width=-1;for(j=2e3;j--;x.fillRect(99+9*S(a=j/1250)*S(j)+50*S(m=t*3+a),75+25*(S(-a*5)+1)*C(j),3,7))x.fillStyle=R(q=(j&128)-C(j)**3*99,q,q)
  • u/magna
    Very tropical
  • u/yonatan
    sorry, wrong code, I meant c.width=-1;for(j=0;j++<2e3;x.fillRect(99+9*S(a=j/1250)*S(j)+50*S(m=t*3+a),75+25*(S(-a*5)+1)*C(j),3,7))x.fillStyle=R(q=(j&128)-C(j)**3*99,q,q)
  • u/donbright
    dude...

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

  • Out on the speedboat

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

  • Just a game of single-player pong!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/9345 by u/yonatan

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

  • Should we just declare a 184 byte limit and be done with all this compression business?
  • u/cantelope
    For some time, there has been https://codegolf.tk, which has categories for 140, 512, and 1024 byte dweets. Full disclosure: I created the site.
  • u/f8f82804
    I'm with @cantelope. If you resort to compression, that's a choice.
  • u/aleamb
    amazing dweet!
  • u/yonatan
    source: for(x[f='fillRect'](0,0,c.width=i=1e3,i);i--;x[f](S(t)*199+S(i)*m+500+S(z=i**.5)*m+m*S(t)*1.5,C(t)**2*99+C(i)*m+200+C(z)*m,z,z))m=i/14,x.fillStyle=hsl(30,35%,${(C(9+i-S(t))+1.5)**5}%`

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/7393 by u/yonatan

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

  • compressed 175 char mottled #banana
  • u/yonatan
    source: c.width=200;for(d=i=1700;j=i--/d;x.fillRect(99+(i-1e3)*S(t)/9+S(i)*(r-a/4),S(3*j)*75+C(i)*r,6,6))r=j>.9?2:30*S(3*j+.3),x.fillStyle=R(b=7*(a=r-S(i*2)**8*15)-S(i**8)**8*30,b*.8);
  • u/katkip
    Wait wooot! Awesome
  • u/magna
    #bananas (as in cray)
  • u/joeytwiddle
    Thanks for posting! This is my favourite banana.
  • u/sigveseb
    Really cool to see the evolution of the banana in the remix chain

Please log in (or register) to comment.

show FPS hide FPS share 1 remix 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).

  • Managed to create a flat sea. Had to trade off the nice distance fog effect.

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

  • u/aleamb
    awesome, joeytwiddle
  • u/aleamb
    #logo
  • u/joeytwiddle
    This was mostly pythech, I just made it messier!
  • u/joeytwiddle
    My favourite version (over limit): t=t**0.5;with(x)for(i=30;i--;t>2?fillText("debian",670,1e3):fillRect((r=70+80*t*t)*S(m=5.6*t+i/80+t*i%1)*.9+1e3,C(m)*r+390,9,9))fillStyle='#d15',font="14em'"
  • u/BirdsTweetCodersDweet
    That one works if you remove the fillStyle ¯\_(ツ)_/¯.
  • u/pythech
    awesome, this was what I was trying to do :D

Please log in (or register) to comment.

show FPS hide FPS share 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

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

  • RA RA RA Rasputin

Please log in (or register) to comment.

Loading...
Next page