reprage

Inspired by lightning, a javascript algorithm randomly creates a jagged line that divides the image in two. Rays are cast from the bends in that line to the edge of the canvas and are used to tesselate the remaining space.

Initially written in TypeScript and transpired into 65.64KB of JavaScript, it is rendered with the canvas API within your web browser.