Skip to content

countdown-animation generates a dynamic countdown video with numbers transitioning smoothly from green to red.

License

Notifications You must be signed in to change notification settings

robotcopper/countdown-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Countdown Timer Project

This project generates a countdown timer with a dynamic color transition from green to red. The timer text is generated as an image with the number portion changing color, and a video is created from these images.

Table of Contents

  1. Features
  2. Requirements
  3. Usage
  4. Example Countdown (100 seconds)
  5. License

Features:

  • Customizable countdown range.
  • Numbers transition smoothly from green to red.
  • Outputs a WebM video format to keep the background transparent.

Requirements

  • Python 3.x
  • FFmpeg (for video creation)
    • Install FFmpeg (if not already installed):
      • On Ubuntu/Debian:
        sudo apt update
        sudo apt install ffmpeg

Python Dependencies:

  • Pillow: For image creation and manipulation.
    pip install -r requirements.txt

Usage

  1. Clone the repository:

    git clone https://github.com/robotcopper/countdown-animation.git
    cd countdown-animation
  2. Run the script:

    python countdown.py

Example Countdown (100 seconds):

A pre-configured countdown of 100 seconds (from 100 to 000) is already available. Simply run the default script. The resulting video is pre-generated and available in the assets folder.

License

This project is licensed under the BSD 3-Clause License.

About

countdown-animation generates a dynamic countdown video with numbers transitioning smoothly from green to red.

Topics

Resources

License

Stars

Watchers

Forks

Languages