Skip to content

Instantly share code, notes, and snippets.

View darkknight314's full-sized avatar
πŸ’­
Studying at BITS Pilani :)

darkknight314

πŸ’­
Studying at BITS Pilani :)
View GitHub Profile
#!/usr/bin/env python3
# diwali_story_v3.py β€” diyas -> rangoli (ΰ₯ / swastika / custom) -> rocket (this step only) -> fireworks + "Happy | Diwali"
import sys, time, random, shutil, math, argparse, signal
# ---------- CLI ----------
ap = argparse.ArgumentParser(description="Stepwise Diwali terminal animation πŸŽ†πŸͺ”")
ap.add_argument("--name", default="", help="Optional name for greeting")
ap.add_argument("--fps", type=float, default=18, help="Frames per second")
ap.add_argument("--pattern", default="both",
choices=["om","swastika","both","custom1","custom2","all"],