it's ridiculously simple.

you just. invert one channel [*~ -1] and then mix them both together as one.