dwitter.net | #compressed

+ 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
remix of d/9207 by u/MrM@_S

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

  • dwitter compressor 2.0

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/9793 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).

Please log in (or register) to comment.

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

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

  • u/f8f82804
    if(t%.2<.01)with(new OscillatorNode(a=new AudioContext,{frequency:110*S(9*t^t)}))connect(g=a.createGain()),g.connect(a.destination),g.gain.setTargetAtTime(0,.15,.01),start(),stop(.2)

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

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

  • This is an attempt at a byte packing algorithm, which packages two bytes into a single JS character.
  • Show more comments…
  • u/MrOpposite
    &lt;string&gt;.length *
  • u/xem
    Ah okay. Here's a version 1b shorter: eval('挮睩摴栽ㄹ㈰㭦潲⡩㴰㭩㰹㭩⬫⥸⹦楬汒散琨㐰〫椪㄰〫匨琩⨳〰ⰴ〰ⰵ〬㈰〩'.replace(/./g,a=>String.fromCharCode((p=a.charCodeAt())>>8,p&255)))
  • u/MrOpposite
    Ooh, clever!
  • u/sigveseb
    #compressed #default

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

  • Magic Box

Please log in (or register) to comment.

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

  • u/f8f82804
    G=(a,b)=>b?G(b,a%b):a;L=(a,b)=>a*b/G(a,b);p=(i=39*Math.random()|0)*i+i+41;q=++i*i+i+41;n=p*q;e=65537;for(d=1;d*e%L(p-1,q-1)-1;d++);c=7;for(;--e;c=c*7%n);C=c;for(;--d;C=C*c%n);throw C
  • u/f8f82804
    Will throw 7 if the decryption works correctly. #slow
  • u/katkip
    it lags so much
  • u/f8f82804
    it should be possible to optimize the modular inversion and exponentiation, but it would probably go over the character limit

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
131/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
akm

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

  • Alternatively, in 106 chars: eval("㟦ᑲᝣ㓷㩤㹨㒽Ჽ㒻ᚭᒻ᝸㓦㙬㋒㩣ᨨᠰ㒫ᢪᠰ⦫㨨ᔩᠳᘰᠴᘰᠵ᤬ᠰᶩ".replace(/./g,c=>String.fromCharCode((c=c.charCodeAt())&127,c>>7)))

Please log in (or register) to comment.

show FPS hide FPS share fullscreen

function u(t) {

}//
134/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