Thread:Icefirephoenix/@comment-37745975-20190206220715/@comment-30076690-20190211045706

it just needs to know the color of the background, more or less.

That's how greenscreens work.

sort of.

it's actually a bit more complicated, but if you do minimal research you can find out how.