- This is a creative and fun way to bring text-based visuals to life.
- All Characters are ASCII - American Standard Code for Information Interchange
This guide walks you through setting up your environment and writing a simple ASCII animation using Python and Visual Studio Code.
Download and install from https://code.visualstudio.com
Download and install from https://python.org
๐ก Tip: During installation, check the box that says โAdd Python to PATHโ
๐ก Tip:
- Open VS Code
- Go to Extensions (left sidebar or
Ctrl+Shift+X)- Search for โPythonโ and install the one by Microsoft
๐ก Tip:
- Open a folder or create a new one
- Click File > New File
- Save it as
ascii_animation.py
import time
import os
frames = [
" o\n /|\\\n / \\",
" \\o/\n |\n / \\"
]
while True:
for frame in frames:
os.system('cls' if os.name == 'nt' else 'clear') # Clear screen
print(frame)
time.sleep(0.5)