dwitter.net | #FFF

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

  • Find the Black Dots - Scintillating Grid Illusion
  • u/metamero
    c.width=w=777 c.style.background='#aaa' for(p=0;p<9;++p)for(q=0;q<9;++q)with(x)beginPath(),arc(r=p*99,s=q*99,13,0,7),fillStyle='#fff',fill(),fillStyle=R(),fillRect(r-92,s-92,84,84)

Please log in (or register) to comment.

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

  • u/Undefined
    c.width|=0;with(x)font='68em"',fillStyle=R(),Y=t<10?2e3-t*99:1010,fillText("🏴",280,Y),fillStyle='#fff',font='35em"',fillText("☠",760,Y-340) - fixed the trail and golfed back to 140

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

  • u/yonatan
    src: w=c.width=300;a=o=>{for(p in o)this[p[0]+p[6]]=p};a(x);x[gC]='darken';for(i=30;i--;x[fc](0,0,w,w))j=w+t*99,a(g=x[fy]=x[cR](X=S(i)*j%w,Y=C(i)*j%w,99,X,Y,0)),g[ao](0,'#fff'),g[ao](1,R())
  • u/lionleaf
    #worley

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
130/140


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

  • u/joeytwiddle
    with code snippets from yonatan and balint
  • u/joeytwiddle
    164 chars uncompressed: with(x)for(j=22;j--;fillStyle=j%2?R():'#fff',s>0&&fill())for(p=S(q=S(k=4*t-j/6)-k)-q,s=70*j-22.29*p%140,beginPath(i=6);i--;)lineTo(960+s*C(a=i/.955+p/6),540+s*S(a))
  • u/joeytwiddle
    inspired by #beesandbombs
  • u/duoxx
    what a...
  • u/joeytwiddle
    Pavel golfed it to 133 wow! :-D (see the remix)

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/iverjo
    for(x.fillRect(0,0,i=c.width=960,i),w=i/2;i--;x.strokeStyle='#fff')[15,0,1].map(k=>{g=i-k,x.lineTo(w+S(q=g/(h=152.8)+t/3)*(Z=C(p=g/2.3873)+5)/(Z=C(q)*Z-9)*w,(S(p)-3)/Z*w)});x.stroke();

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

  • [Dwitter Compressor V1.37] Click in between the arrows. Paste your code in the INPUT element and go to a new tab. Then come back here to get your compressed code. From there, just copy the text in the INPUT element, and paste in your dweet to post it. Now supports characters ranging from 0-255. LImit of 184 bytes.

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/9190 by u/f8f82804

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

  • #galaxy #trails #perspective -- had to give up the "random" starting locations to fit in a perspective transform. Using red saves a character over #fff.

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/7009 by u/DirtyDan

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

  • If someone can shave 2 characters off, we can invert the colors! Like in d/7011
  • u/akm
    here, I shaved off 10 chars: with(x)for(fillStyle="#FFF",i=0;i++<44;lineWidth=44)beginPath(arc(960+S(a=t*i/11)*(d=i*t*S(t)),540+C(a)*d,i*3,0,7),fill(stroke()))

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/5473 by u/lowpoly

function u(t) {

}//
124/140


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

  • play with x.fillStyle;-)
  • u/lowpoly
    For example, x.fillStyle=Math.random()>0.5?'#000':'#fff'
  • u/lowpoly
    or x.fillStyle=(~~(i/s/s)%2)^(~~(t*s)%2)?'#000':'#fff'
  • u/sigveseb
    So intense colors!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/2036 by u/nick

function u(t) {

}//
110/140


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

  • Also a remix of:

Please log in (or register) to comment.

Loading...
Next page