Draw Masked Texture on HUD

I have a white-black image that I want to draw on a HUD to “Mask” other texture.

Like HP value, I need it to up & down, but I don’t want to use simple Rect because it is ugly.

So I draw a image to be a HP, and I want the white-black mask to control the appearance of HP by reading the value of HP variable .

Can I done that with “Draw texture” in “Masked” blend mode, so I only need to do is changing the location of that “Masked” image?

use instead of “draw texture” “draw material” and the rest you should know ^^