Dwitter | eruonna (53)


function u(t){

}//
133/140


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

  • eruonna: Wait a while for it to fill in, or view in fullscreen

Please log in (or register) to comment.


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

Please log in (or register) to comment.

remix of #2522 by magna

function u(t){

}//
143/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.


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

  • eruonna: Totally different dragon curve implementation with 13 fewer bytes and it correctly draws the first segment
  • Load older comments...
  • eruonna: okay, not sure if it is worth kicking out yet another version to get the positioning right
  • eruonna: okay, not sure if it is worth kicking out yet another version to get the positioning right
  • donbright: color - - a=[0,-9,0,9,0] if(!t){n=0;d=0;b=380;c=830} d+=((n&-n)<<1)&n++?1:3;d%=4 b+=a[d];c-=a[d+1] x.fillStyle=R(128+n%256,64+n%128) x.fillRect(b,c,9,9)

Please log in (or register) to comment.

remix of #2511 by eruonna

function u(t){

}//
141/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.

remix of #2509 by eruonna

function u(t){

}//
141/140


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

  • eruonna: adjusted position to get more on the screen

Please log in (or register) to comment.


function u(t){

}//
141/140


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

  • eruonna: Works best in full screen, otherwise line is too thin
  • Load older comments...
  • donbright: how does it work ?
  • eruonna: One way to draw the next iteration of the dragon curve is to take the previous iteration and then add it to itself backwards and rotated 90 degrees. Here p is the array of previous steps, j the index of the current step, and i walks backward through p. When i gets to the beginning, we set it equal to j and start over.
  • donbright: thanks, that is fascinating

Please log in (or register) to comment.


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.


function u(t){

}//
137/140


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

  • eruonna: A clock! I couldn't golf it enough to get varying line widths for the hands

Please log in (or register) to comment.


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