Commit graph

3 commits

Author SHA1 Message Date
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Griatch
9fdd62fda3 Avoid negative health bar color. Resolves #1751. 2019-02-23 22:10:12 +01:00
FlutterSprite
9ab3d27875 Adds health bar module
Adds a versatile function that will return a given current and maximum value as a "health bar" rendered with ANSI or xterm256 background color codes. This function has many options, such as being able to specify the length of the bar, its colors (including changing color depending on how full the bar is), what text is included inside the bar and how the text is justified within it.
2017-11-05 18:36:08 -08:00