dwitter.net | geb (18677)

+ 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

function u(t) {

}//
115/140


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

  • u/ciaccodavide
    SnakeFrog!
  • u/danny@hille.dk
    So I made some minor tweeks - now I'll never sleep again: for(c.width|=a=45;--a;)x.font=450-a*9+"px a",x.fillText(a==1?"🤡":"🍩",800-C(t*3+a/4)*155,800+(a**1.72*S(t)))
  • u/danny@hille.dk
    Shave off 5 chars: for(c.width|=a=45;a--;x.fillText(!a?"🤡":"🍩",800-C(t*3+a/4)*155,800+a**1.72*S(t)))x.font=450-a*9+"px a"
  • u/Germain
    Yuck ! :D

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/ciaccodavide
    r=o=>(m=Math).random()*(c.width=567);P.push({x:r(onmousemove=e=>T=e),y:r()});P.map(p=>(X=p.x-T.x,Y=p.y-T.y,x.moveTo(p.x-=X/=9,p.y-=Y/=9,x.arc(p.x,p.y,9*m.abs(X+Y)/9,0,9))));x.fill()}{P=[]

Please log in (or register) to comment.


function u(t) {

}//
125/140


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

  • Pulsating donut #torus

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/danny@hille.dk
    NICE! you could zoom the ripples for a psychodelic wave like this for(c.width=X=64,w=30;X--;)for(Y=38;Y--;x.fillStyle=R(o=S(S(X/9*Y/9)+(Math.hypot(X-32,Y-21)/13-t)*5)*230,o*.8,-o))x.fillRect(X,Y,1,1)
  • u/danny@hille.dk
    or pixelate, for some retro style, and mess with the colors: for(w=30,X=64,w=30;X--;)for(Y=38;Y--;x.fillStyle=R(o=S(S(X/9*Y/9)+(Math.hypot(X-32,Y-21)/13-t)*5)*230,-o,o))x.fillRect(X*w,Y*w,w,w)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
127/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.


function u(t) {

}//
116/140


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

  • u/etury
    Where/ how did you learn to become so good at generative art?
  • u/Xen
    i wanna play

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

  • It looks like you're writing a dweet!

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • u/danny@hille.dk
    more emoji's a=Math.random x.font = "200px a" x.fillText(String.fromCharCode(0xD83D, 0xDC00+a()*700),a()*1650,a()*820+200)

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

  • What lies behind the canvas

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

Please log in (or register) to comment.

Loading...
Next page