I apologize, but I am new to PyGame and I want to be able to have this text animation show in a PyGame window. (I use repl.it by the way)
In this animation, I constantly print new lines of text that are colorized to make a double-helix effect and I also use the "time" function to make it wait in between printing the line of text to make it more believable
Here is the code:
print(chr(27)+'[2j')
print('\033c')
print('\x1bc')
import colorful as cf
import time
while True:
print(cf.red(' 0'))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.red(' 0' + cf.yellow(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0'))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)
print(cf.yellow(' 0' + cf.red(' 0')))
time.sleep(0.2)