I'm looking for information about how to draw borders around rectangles and provide a slightly different rendering for overlapped borders. These rectangles are user generated so they can have a variety of sizes and overlaps. Users specify the z-order. Here is an example:
My data is modeled with simple rect data structures. For simplicity, I'm expecting to draw all border with lines (even when there is no overlap). I'm planning to draw the rectangles and borders using SVGs in a browser, but I'm just looking for a generic solution that is platform agnostic. .
This problem domain is new to me. I don't have much experience in this area, but I'll happily take and information I can get.