dwitter.net | tomxor (16239)

+ 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.
Current theme challenge: #ScaryMovies
show FPS hide FPS share fullscreen
remix of d/24161 by u/FireFly

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/tomxor
    different strategy, draw the board on the first frame, pieces on the rest
  • u/FireFly
    ohhh that is good, was too tunnelled in on the setups I'd tried.. good job 🎉

Please log in (or register) to comment.

show FPS hide FPS share 1 remix fullscreen
remix of d/24124 by u/FireFly

function u(t) {

}//
129/140


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

  • u/FireFly
    I've stared at this for too long... don't think I can get it below 146 decompressed (with Z inlined). Would be rad if we could squeeze those last characters out though and get it down to 140 without compression :)
  • u/tomxor
    I have an imperfect 142
  • u/Agnes
    This is 145 but I don't remember if the new indexing is actually shorter or not than yours: for(i=w=128;i--;x.fillStyle=R(i%2?x.fillRect(X=i%16*64,Y=i*8&-w,m=X+Y&w,m)|w:x.fillText('♜♞♝♚♛♝♞♜♟ '[Y++%7?++Y%5?9:8:i/2%8],X,Y+w)))x.font="4cm'"

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

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/15329 by u/tomxor

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

  • u/tomxor
    soothing :)
  • u/rep_movsd
    There are many fractal dweets who can be zoomed in to find some gems like this

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

}//
116/140


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

  • Press F12 to view animation on console. #hack

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

Please log in (or register) to comment.

show FPS hide FPS share fullscreen
remix of d/24141 by u/tomxor

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
    oooooh, I love dithering! Nice one!
  • u/tomxor
    me too :) I didn't realise how simple the algorithm was before no, and it can be done in a single pass because it's only half a 2d kernel. Tweaking the coefficients (*R) can be fun, e.g 7*R=>5*R, 3*R=>5*R better preserves the dark and light areas in this image.
  • u/magna
    Wow

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

Please log in (or register) to comment.

Loading...
Next page