dwitter.net | katkip (7012)

+ 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) {

}//
125/140


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

  • u/pavel
    104 c.replaceWith(c=c.cloneNode(false));with(c.getContextwebgl)clearColor(t,0,0,1),clear(COLOR_BUFFER_BIT)
  • u/pavel
    I've no experience with webgl but it seems like you need twenty lines of code to draw a square...
  • u/katkip
    That's true
  • u/New_Core
    I've no experience with webgl either.. but saw you could do a square just adding: enable(SCISSOR_TEST),scissor(200,200,400,500) ..to clear a rect in that pos and size ..

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

  • x.fillRect(0,0,q=2e3,q);if(!t){w=[];for(i=q;i--;)w.push({a:i/321,d:500-i/9})}x.globalAlpha=.1;for(o of w){x.clearRect(960+S(o.a,d=o.d)*d,(z=540)+C(o.a)*d,9,9),o.d-=q/d;(d<0?-d:d>z)?o.a+=o.d=z:q}

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

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

  • BLM

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

  • Sorting the four fours numbers! #waitforit #math #puzzle. This is an automatic program that will throw the list of natural numbers written as javascript expressions that eval that number! To view the code, replace eval with throw
  • u/katkip
    example print: 1 = 44/44 2 = 4/4+4/+4 3 = 4+~44%4 4 = ~44%~4^4 5 = 44%4-~4 6 = 44/4+~4 7 = 44/4-4 8 = 4+4//-/^*4^*4 9 = 4/4+4+4
  • u/KilledByAPixel
    nice!
  • u/katkip
    looks like it gets stuck at 17
  • u/katkip
    17 = 4^4*4-~4 18 = 4-~4+4-~4 19 = ~-4^~-4*4+4 20 = 4&4^4*4 21 = 4/4-~4*4
  • u/katkip
    nvm. stuck at 22

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

  • always dark theme

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

  • four fours puzzle calculator (+ bitwise operators) #throw t||(z=''),s="/*4+-%^&~";g=q=>{w='';while(w.split4.length<5)w+=s[(Math.random()*9)|0];return w};for(i=99;i--;){try{t=${r=eval(q=g())} = ${q};r[0];z+=t+'\n'}catch{}}throw z
  • u/tomxor
    Wow nice! it's so fast.
  • u/tomxor
    Hah, A lot of variations with comments appended, I found when doing this kinda #fuzzing it can be useful to padd the operators with spaces, you like a few things like power and decrement/increment but also protect loop variables from assignment and stop comments.

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

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.

show FPS hide FPS share 1 remix fullscreen

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

  • circles + colors = beautiful #art

Please log in (or register) to comment.

Loading...
Next page