1. 19

  2. 3

    Not the author, but I thought this was fantastic. Not even sure how it’s possible

    1. 2

      He’s just doing a very elaborate string parsing to get the ASCII art.

      1. 3

        Sure looks like it’s doing some sort of simple ray tracing, doesn’t it?

        1. 2

          Yeah, it looks like iters section is stepping along the rays (up to 15 times) and seeing if they intersect with the shape function, and lastIters is finding where each ray hits the shape. Everything before iters is there to set up the rays for each pixel, and the final steps are selecting a color. (I think.)

      2. 1

        SQL is Turing complete, so it was obvious that it is possible.

        1. 4

          Obvious to you, maybe. I’m still seriously impressed with this.