progress Bar
fun progressBar(value: Double, max: Double, length: Int = 10, symbol: String = "|", filledColor: String = "#e6ff59", emptyColor: String = "#AAAAAA"): String
Creates a progress bar string representation.
Return
A string representation of the progress bar.
Parameters
value
The current value.
max
The maximum value.
length
The length of the progress bar.
symbol
The symbol used for the filled part of the bar.
filled Color
The color for the filled part of the bar.
empty Color
The color for the empty part of the bar.
fun progressBar(value: Int, max: Int, length: Int = 10, symbol: String = "|", filledColor: String = "#e6ff59", emptyColor: String = "#AAAAAA"): String
Creates a progress bar string representation with integer values.
Return
A string representation of the progress bar.
Parameters
value
The current value.
max
The maximum value.
length
The length of the progress bar.
symbol
The symbol used for the filled part of the bar.
filled Color
The color for the filled part of the bar.
empty Color
The color for the empty part of the bar.