title: Progress Bar used as Health Bar
body: <p>I am making a java game that has a sidebar that displays a player's health. I want the bar to be like a progress bar which is along the lines of the picture below:</p>
  
  <p><img src="https://i.stack.imgur.com/hWidd.png" alt="enter image description here"></p>
  
  <p>Would a progress bar be capable enough to accomplish this? If not, what will?</p>