mirror of https://github.com/Textualize/rich.git
simplify
This commit is contained in:
parent
447ed72fe3
commit
e32a715728
|
@ -14,5 +14,5 @@ SIZE = 40
|
|||
for row in range(SIZE):
|
||||
y = (row / SIZE) * 2 - 1
|
||||
x = math.sqrt(1 - y * y)
|
||||
bar = Bar(1.0, width=SIZE * 2, begin=1 - x, end=x, color="red")
|
||||
bar = Bar(1, width=SIZE * 2, begin=1 - x, end=x, color="red")
|
||||
print(bar)
|
||||
|
|
Loading…
Reference in New Issue