From 75fe9c458d164104b0de9f05ad8832a294ea0841 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 17 Oct 2020 15:54:00 +0100 Subject: [PATCH] example fix --- examples/bars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))