diff --git a/examples/bars.py b/examples/bars.py index c2a221f5..4ce7635a 100644 --- a/examples/bars.py +++ b/examples/bars.py @@ -16,6 +16,6 @@ SIZE = 40 for row in range(SIZE): y = (row / (SIZE - 1)) * 2 - 1 x = math.sqrt(1 - y * y) - color = Color.from_rgb((y + 1) * 127, 0, 0) + color = Color.from_rgb((1 + y) * 127.5, 0, 0) bar = Bar(2, width=SIZE * 2, begin=1 - x, end=1 + x, color=color) print(Align.center(bar))