From ca427f1fddebbbc7877d29353a3ea45dcc10293f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A5=BC=E6=B9=98=E7=BC=98?= <2216918339@qq.com> Date: Sun, 11 Jan 2026 15:42:55 +0000 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E6=96=87=E7=89=88=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 楼湘缘 <2216918339@qq.com> --- README.en.md | 115 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 90 insertions(+), 25 deletions(-) diff --git a/README.en.md b/README.en.md index 2717060..69825dc 100644 --- a/README.en.md +++ b/README.en.md @@ -1,36 +1,101 @@ -# 爆闪进度条 -#### Description -一个基于Python的会爆闪的进度条 +# 🌀 INTP Loading Animation Simulator -#### Software Architecture -Software architecture description +> A vibrant, high-contrast terminal loading animation with dramatic flash alerts—designed for the INTP mindset (or anyone who loves stylish CLI effects)! -#### Installation +## 📌 Overview -1. xxxx -2. xxxx -3. xxxx +This project uses Python’s [`rich`](https://github.com/Textualize/rich) library to render a dynamic, multi-round loading animation directly in your terminal. Each cycle concludes with a bright, eye-catching flash—symbolizing the moment an INTP’s deep thinking finally crystallizes into insight ✨. -#### Instructions +Inspired by the INTP cognitive style: slow to start, deeply processing, but brilliantly illuminating upon completion. -1. xxxx -2. xxxx -3. xxxx +--- -#### Contribution +## 🚀 Key Features -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request +- **Multi-round simulation**: Default of 5 rounds, each with 60 steps—mimicking phased ideation. +- **Vibrant dynamic colors**: Randomly selected high-saturation RGB combinations (red, green, blue, yellow, magenta, cyan) for maximum visual contrast. +- **Classic spinner**: Smooth `| / - \` rotation indicator for classic terminal loading vibes. +- **Flash completion alert**: A bold white-on-pink burst flashes briefly at the end of each round. +- **Fully configurable**: Easily adjust rounds, speed, and steps via simple variables. +- **Flicker-free rendering**: Powered by `rich.live` for smooth, real-time updates in modern terminals. +--- -#### Gitee Feature +## 🛠️ Installation -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +Requires Python 3.7+ and the `rich` library. + +```bash +pip install rich +``` + +--- + +## ▶️ Usage + +Download or clone `main.py`, then run: + +```bash +python main.py +``` + +The animation will play in your terminal. Press **Enter** to exit after completion. + +--- + +## ⚙️ Customization + +Tweak behavior by editing the configuration block at the top of `main.py`: + +```python +ROUNDS = 5 # Total animation cycles +STEPS = 60 # Steps per cycle (visual length) +SLEEP_STEP = 0.15 # Delay between steps (seconds) +SLEEP_FULL = 0.6 # Duration of the flash effect (seconds) +``` + +Save and re-run to see changes. + +--- + +## 🎨 Color Strategy + +Colors are generated by `get_vibrant_color()`, using these rules to ensure brightness and distinction: + +| Type | RGB Pattern | +|----------|----------------------------------| +| Red | `(255, g, b)` where g,b ∈ [80–200] | +| Green | `(r, 255, b)` where r,b ∈ [80–200] | +| Blue | `(r, g, 255)` where r,g ∈ [80–200] | +| Yellow | `(255, 255, b)` where b ∈ [0–100] | +| Magenta | `(255, g, 255)` where g ∈ [0–100] | +| Cyan | `(r, 255, 255)` where r ∈ [0–100] | + +All colors remain vivid while avoiding low-contrast pitfalls. + +--- + +## 💡 Ideal Use Cases + +- Adding flair to CLI tool startup sequences +- Demoing terminal UI capabilities in talks or tutorials +- Personalizing your dotfiles or developer workflow +- Playfully signaling “deep thought in progress” during demos + +--- + +## 📄 License + +MIT License — free to use, modify, and distribute. + +--- + +## ❤️ Acknowledgements + +- [Rich](https://github.com/Textualize/rich) – for making beautiful terminal interfaces effortless +- The global community of terminal enthusiasts and creative coders + +--- + +> “I’m not slow—I’m just compiling.” — An INTP somewhere in the matrix \ No newline at end of file