Abstract art using intersecting lines that divide the image into many sections.
The program first generates random lines and finds their intersections. Then, it converts the lines and intersections into a graph, sorting each edge in clockwise order. Next, it starts at an unvisited node and traverses the graph, choosing the rightmost edge every time. When it arrives back at the starting location, a loop has been formed. These loops form the sections of the image, which are then colored.
Gallery