I love the work of
this chap who layers packing tape onto glass to create images like this.
I thought I would have a go at writing a program to do the same. Initially tried to have a genetic algorithm placing virtual pieces of tape to try and match a target image. Results weren't great. Think I would need a massive population and an awful lot of computation to get anything half decent. I'll probably try again some time though.
So I tried a Monte Carlo approach. My code starts with a blank image and draws a random line (either black or white, random start and end, random thickness). If the line makes the image more like a given target image, it is retained other wise it is discarded and another random line is drawn (and so on).
I gave it a target image of the Angel of the North because I thought the clearly defined shape should be quite easy to find. Here's what it looked like after running for half an hour or so...

and then after around two hours...

More detail in the second image but perhaps not as pleasingly 'arty'. Quite pleased with how they're looking though. Am going to try a few different target images and see what I get.