英文版更新

Signed-off-by: 楼湘缘 <2216918339@qq.com>
This commit is contained in:
楼湘缘
2026-01-11 15:42:55 +00:00
committed by Gitee
parent 014ca8e51e
commit ca427f1fdd
+90 -25
View File
@@ -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 Pythons [`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 INTPs 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 ∈ [80200] |
| Green | `(r, 255, b)` where r,b ∈ [80200] |
| Blue | `(r, g, 255)` where r,g ∈ [80200] |
| Yellow | `(255, 255, b)` where b ∈ [0100] |
| Magenta | `(255, g, 255)` where g ∈ [0100] |
| Cyan | `(r, 255, 255)` where r ∈ [0100] |
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
---
> “Im not slow—Im just compiling.” — An INTP somewhere in the matrix