example fix

This commit is contained in:
Will McGugan 2020-10-17 15:54:00 +01:00
parent 88bc65df2b
commit 75fe9c458d
1 changed files with 1 additions and 1 deletions

View File

@ -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))