Assign a colour to internal edges

Good morning,

Is it possible to automatically assign a colour to internal edges in a 2D drawing? 

Is it similar to the one in the picture? In this case, I selected the edges manually and changed the colour manually

Bye bey best regards