An algorithm randomly partitions a corner of the canvas, it then projects a rectangle to the other side of the image. The algorithm then works its way clockwise, to the next corner and projects another rectangle until it intersects with the last. This process is repeated for every corner on the canvas.
Initially written in TypeScript and transpiled into 66.64 KB of JavaScript.