> For the complete documentation index, see [llms.txt](https://kree.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kree.gitbook.io/documentation/kree-user-interface/progressbar.md).

# ProgressBar

This User Interface Component is to visualize health, experience, energy, and more!

> Component Author: [Jabo](https://github.com/jabo-bernardo)\
> Release Date: April 13, 2020

{% tabs %}
{% tab title="Usage" %}

```java
new ProgressBar(Scene parentScene);

new ProgressBar(Scene parentScene, Vector2 position);

new ProgressBar(Scene parentScene, Vector2 position, Vector2 scale);
```

{% endtab %}

{% tab title="Methods" %}

```java
add(float v); // Add v to the value

subtract(float v); /// Subtracts v to the value

getTransform(); // Returns Transform Object

getValue(); // Returns float

getMaxValue(); // Returns float 

setFont(Font font); // Sets the Text font

setColor(Color backgroundColor, Color foregroundColor);

setPadding(int padding); // Sets the padding between the foreground and background

setValue(float val); // Sets value

setMaxValue(float val); // Sets Max Value

setBackgroundImage(Sprite spr);

setForegroundImage(Sprite spr);
```

{% endtab %}
{% endtabs %}
