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.
- Customizable countdown range.
- Numbers transition smoothly from green to red.
- Outputs a WebM video format to keep the background transparent.
- Python 3.x
- FFmpeg (for video creation)
- Install FFmpeg (if not already installed):
- On Ubuntu/Debian:
sudo apt update sudo apt install ffmpeg
- On Ubuntu/Debian:
- Install FFmpeg (if not already installed):
- Pillow: For image creation and manipulation.
pip install -r requirements.txt
-
Clone the repository:
git clone https://github.com/robotcopper/countdown-animation.git cd countdown-animation
-
Run the script:
python countdown.py
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.
This project is licensed under the BSD 3-Clause License.