dwitter.net | f8f82804 (21243)

+ 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
Xen
remix of d/9008 by u/Xen

function u(t) {

}//
132/140


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

  • My sons first remix!!!! (he says if it gets over 10 likes then i'm crap....)
  • u/katkip
    looks pretty different from the original and that's good
  • u/lionleaf
    Looks like you're crap, u/Xen ! :)
  • u/Xen
    does indeed Mr leaf... i whatsapp'd a screenshot this morning and his reply was mainly laughing emoji's,, message for the little turd: "beat the orignal, i dare you!! you seen how simple it can be so stay at it, love you!"

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 1 remix fullscreen
Xen
remix of d/16811 by u/DataMeta

function u(t) {

}//
132/140


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

  • slight golf for more grain maybe to be added
  • u/Xen
    i'm silly and drunk, can nest last Rect for another byte
  • u/Xen
    i'm also using comments as a super slo-mo kinda chat, back 2moz night maybe lol
  • u/DataMeta
    also if we're using white might as well use clearRects
  • u/DataMeta
    how to find balance between max authenticity and max golf - the perpetual dilemma

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)
  • u/DataMeta
    paste into another dweet to avoid cached background style

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

  • Surfing! Had to make it pretty simple in order to fit it in, but that's the game :P
  • u/13thptr
    golfed it a bit (131) c.width|=0;b=S(t);with(x)fillStyle="#31d2f7",fillRect(0,600+30*b,2e3,999),font=300+30*b+"px'",fillText("🏄‍♀️",900+9*C(t),700+90*b)

Please log in (or register) to comment.

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

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

  • Landscape with rivers??

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

  • Throwing paint on the canvas! #art

Please log in (or register) to comment.


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

  • ant trails

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

  • half a sphere

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

  • an attempt at something like a twister
  • Show more comments…
  • u/joeytwiddle
    That's a very juicy #twister!
  • u/cyhawk
    I teach 9-year-olds programming and used a tidied up version of this to show them how to figure out how something works. They loved it! Thanks! I've added a bit of gap between the strands to make it easier to understand, and I think it looks good. Like Math.max(180*S(a-1.2),0).
  • u/rnbw
    wow, i would have never thought that my recreational programming would be used for educational purposes. glad i was able to help those kids out on their journeys!
  • u/danny@hille.dk
    Just saw this, nice code man! Save 11 b like this: for(c.width=i=300;i--;)for(j=8;j--;x.fillStyle=#f+j*15)x.fillRect(i,99-S(a=t-i/80*C(t+i/99)+j*.9)*40,1,Math.max(40*S(a-1.1),0))

Please log in (or register) to comment.

Loading...
Next page