method
Screen.bar
Screen.bar(x:, y:, width:, height:, value:, max:, color:, back:)
Draws a back-coloured track and fills value / max of its width in color. Health bars, cooldowns, loading progress.
Example
# doc-check: skip — illustrative Screen.bar(x: 80, y: 228, width: 160, height: 6, value: hp, max: max_hp, color: Color.Crimson, back: Color.RaisinBlack)