June 2021
Beginner
432 pages
9h 9m
English
This program mimics the “digital stream” visualization from the science fiction movie The Matrix. Random beads of binary “rain” stream up from the bottom of the screen, creating a cool, hacker-like visualization. (Unfortunately, due to the way text moves as the screen scrolls down, it’s not possible to make the streams fall downward without using a module such as bext.)
When you run digitalstream.py, the output will look like this:
Digital Stream Screensaver, by Al Sweigart al@inventwithpython.com Press Ctrl-C to quit. 0 0 0 0 1 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 011 1 1 ...Read now
Unlock full access