I'm trying to make a kind of "heatmap". When two svg elements with color and opacity intersect, they get darker or unexpected colour on the intersection, i would like to substract those colours in HSLA scale so for example if i had a green ellipse and a yellow ellipse, the intersection would probably be orange or close to red, think of it as a kind of heatmap that when two colours intersect, they get hotter.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600">
<ellipse cx="200" cy="200" rx="100" ry="100" id="ellipse1" fill="yellow" fill-opacity="0.5" />
<ellipse cx="250" cy="200" rx="100" ry="100" id="ellipse2" fill="green" fill-opacity="0.5" />
</svg>