What this code should do is to give you an array which contains info on a bar.
Coming Soon...
const cpb = //how it will be imported
cpb.bar(10, 100)
Param | Type | Required |
---|---|---|
Percentage | int (>100) |
true |
Max | int |
true |
Empty Char | any | false |
Fill Char | any | false |
This is what percentage of the bar will be filled.
50
will fill half the bar100
will fill the entire bar.
The amount of bar elements allowed to be generated.
If
10
it will generate 50 bar elements, and paired with10
for percentage, 5 bars will be marked filled and the 45 rest will be marked empty. (10% of 50 = 5)
What empty bar elements elements will be represented by. If not set it will be the default 0
What filled bar elements elements will be represented by. If not set it will be the default 1