I have 2 images. First is fullscreen, and it's my backgroud as sprite, second is one-color rectangle drawn on backgroud. Next I have text written on those layers. I want my text to be transparent to second layer which is backgroud. How to do this?

window.clear();
window.draw(background);
window.draw(rectangle);
text.setColor(Color(0,0,0,150));
window.draw(text);
window.display();