Hey pete
Shouldn't it be enough to just create a blend node, set the pattern as background and a uniform color as foreground, then change blend mode to multiply, overlay, etc.?
Or do you need the inside (white) as a mask later on?
Or are you talking about the empty spaces inside the pattern (the transparent areas)?
If thats the case either give it a value in the input image (like 50% gray) so you can create masks for each part of the pattern via levels node.
Or just rebuild/fill it with two shape nodes and some Transform2D Nodes.