rich.bar¶
-
class
rich.bar.
Bar
(size: float, begin: float, end: float, *, width: Optional[int] = None, color: Union[rich.color.Color, str] = 'default', bgcolor: Union[rich.color.Color, str] = 'default')[source]¶ Renders a solid block bar.
- Parameters
size (float) – Value for the end of the bar.
begin (float) – Begin point (between 0 and size, inclusive).
end (float) – End point (between 0 and size, inclusive).
width (int, optional) – Width of the bar, or
None
for maximum width. Defaults to None.color (Union[Color, str], optional) – Color of the bar. Defaults to “default”.
bgcolor (Union[Color, str], optional) – Color of bar background. Defaults to “default”.