ProgressBar

fun ProgressBar(    posX: Number = 0,     posY: Number = 0,     width: Number = DEFAULT_PROGRESSBAR_WIDTH,     height: Number = DEFAULT_PROGRESSBAR_HEIGHT,     progress: Double = 0.0,     barColor: Color = Color.CYAN)

Creates a ProgressBar.

Parameters

posX

Horizontal coordinate for this ProgressBar. Default: 0.

posY

Vertical coordinate for this ProgressBar. Default: 0.

width

Width for this ProgressBar. Default: DEFAULT_PROGRESSBAR_WIDTH.

height

Height for this ProgressBar. Default: DEFAULT_PROGRESSBAR_HEIGHT.

progress

The initial progress of this ProgressBar. Default 0.

barColor

The initial bar color of this ProgressBar. Default Color.CYAN.