Skip to content

danielis2025/ASCII-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Designing animations using ASCII characters

Executive Summary:

  • This is a creative and fun way to bring text-based visuals to life.
  • All Characters are ASCII - American Standard Code for Information Interchange

How to implement the code

๐ŸŒ€ ASCII Animation Starter Guide

This guide walks you through setting up your environment and writing a simple ASCII animation using Python and Visual Studio Code.


๐Ÿš€ Getting Started

1. Install Visual Studio Code

Download and install from https://code.visualstudio.com

2. Install Python

Download and install from https://python.org

๐Ÿ’ก Tip: During installation, check the box that says โ€œAdd Python to PATHโ€

3. Install Python Extension in VS Code

๐Ÿ’ก Tip:

  • Open VS Code
  • Go to Extensions (left sidebar or Ctrl+Shift+X)
  • Search for โ€œPythonโ€ and install the one by Microsoft

๐Ÿ’ป Coding

4. Create a New Python File

๐Ÿ’ก Tip:

  • Open a folder or create a new one
  • Click File > New File
  • Save it as ascii_animation.py

5. Write the Animation Code

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)

About

ASCII character animation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages