I have no idea what to do with the GUI but...
Three Layers: Red, Green, Blue
They are all black by default, when the lines are selected they turn their corresponding color. When lines in Layer 1 and 2 overlap, it makes it a new color, all three overlap, the line is white, etc.
I have no idea how to script this though. :s