I have a path like the following:
<path class="path" d="M0,550L0,366.6666666666667C0,366.6666666666667,95.43389463154384,198.61111111111114,143.31860620206734,183.33333333333337C191.20331777259085,168.0555555555556..."></path>
This shows on my page as so:
I'd like for this to be the clipping path against which I display a set of rectangles. I've currently got it to look like this:
However, I would like for it to nonetheless be a 2px line, that changes color when it goes into the realm of a new <rect>
. I'm currently thinking of approaching this by somehow making the stroke of the path into the <clipPath>
, but I'm open to other methods of getting this working as well.
A
<clipPath>
is the wrong approach for this case. The correct solution is to use a<mask>
.