dwitter.net | DataMeta (953)

+ 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.
Theme challenge of the month: #cavern
show FPS hide FPS share fullscreen

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

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
67/140


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

  • u/DataMeta
    64 bytes: t?r=(5*r+1)%256:r=0,x.beginPath(x.stroke()),x.arc(960,540,r,0,7)

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen

function u(t) {

}//
112/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) {

}//
140/140


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

  • Sparkling #ocean with sun's reflection

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/16988 by u/katkip

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

  • u/magna
    Sweet!
  • u/sigveseb
    very nice
  • u/gambit
    hi im new! can you explain me "c.width|=0" what does it do? thanks
  • u/DataMeta
    Welcome! It's a shorter way of clearing canvas pixels/state. Can be chained like so: for(c.width|=n=i=256;i--;). It can't be done here because we must clear the canvas before scaling it

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/11309 by u/rnbw

function u(t) {

}//
118/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) {

}//
95/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) {

}//
140/140


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

  • Old film effect
  • u/DataMeta
    108: x.fillRect(0,0,c.width|=j=560,2e3);for(r=Math.random;j--;)x.clearRect(2e3*r(),1e3*r(),r()/r()/20,r()/r()/20)

Please log in (or register) to comment.

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

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

  • degraded VHS tape
  • u/DataMeta
    Friendly reminder - convert your memories on VHS to digital to safeguard them

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
100/140


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

  • Ensō
  • u/katkip
    you did it backwards but ok
  • u/DataMeta
    There is no right or wrong way to draw one
  • u/DataMeta
    It is an act of meditation and an expression of the mind and body's state in the moment

Please log in (or register) to comment.

Loading...
Next page