0

I'm using a path created by a set of coordinates and draw on canvas but I would like to change the color of overlapping lines.
Like:
if overlapping x2 => change the overlapped line color to green.
if overlapping x3 => change the overlapped line color to red.
and so on...

Here is a basic example:

Overlap lines color

I tried checking if the path contain the line but it does not feel right as I can have different start/end points for two lines but overlap in the middle of the long one. Thank you, Alex

Alex
  • 1
  • 1
  • there's no straightforward way of achieving this. Closest thing I could think of is playing around with intersection path ops using fill paths (to get offset path) of the lines you're drawing. But that's kind of cumbersome. – Maku Dec 01 '22 at 15:44

0 Answers0