It is possible to use that way in a game as a e.g health bar, but in this case it is easier to do it with a “real” HUD