Answered
Compare neighbouring colors and draw a border line between them?
I need to make a following thing in substance designer - let's say I have an image with four areas overlapping each other Red, Purple, Blue and Yellow for example. Is it possible to compare all neighbouring colors in the image and draw a Black border line between Red and Yellow neighbouring colors, and to draw a Green border line between Blue and Purple colors?
Something like this:

