2 Respuestas
+ 4
Go to the link
https://stackoverflow.com/questions/48395209/how-to-animate-an-image-derived-from-a-2d-histogram
Hope thi is helpful for you...
+ 1
This isnt what you mean, but I threw this together one day. It wont work on sololearn, but if you copy and past it into a proper ide the ball will bouce.
import time
ball=['''
o
■■■''','''
0
■■■''','''
O
■■■''','''
0
■■■''']
space=30
running=True
while running==True:
for i in range(4):
print("\n" * space)
print(ball[i])
print("\n" * space)
time.sleep(.25)