Fade2 🎨✨
A revamped version of venaxyt's fade project with more features and improved stability. Fade2 allows you to add beautiful color gradients to your terminal text. 🌈
Features 🚀
- Multiple color gradient functions:
blackwhitepurplepinkgreenbluepinkredpurplebluewaterfirebrazilrandomlinear_blackwhitelinear_purplepinklinear_firelinear_customvertical_purplepink
- Easy to use
- Supports ANSI escape sequences on Windows
Installation 📦
You can install Fade2 using pip:
pip install fade2
Usage 🛠️
Here is an example of how to use Fade2 in your Python code:
from fade2 import purplepink
text = "Hello, World!"
colored_text = purplepink(text)
print(colored_text)
Functions 📚
apply_color(text, color_func)
Applies a color function to the given text.
blackwhite(text)
Applies a black and white gradient to the text.
purplepink(text)
Applies a purple to pink gradient to the text.
greenblue(text)
Applies a green to blue gradient to the text.
pinkred(text)
Applies a pink to red gradient to the text.
purpleblue(text)
Applies a purple to blue gradient to the text.
water(text)
Applies a water-like gradient to the text.
fire(text)
Applies a fire-like gradient to the text.
brazil(text)
Applies a Brazil flag color gradient to the text.
random(text)
Applies a random color gradient to the text.
linear_blackwhite(text)
Applies a linear black to white gradient to the text.
linear_purplepink(text)
Applies a linear purple to pink gradient to the text.
linear_fire(text)
Applies a linear fire gradient to the text.
linear_custom(starthex, endhex, text)
Applies a custom linear gradient to the text using the provided start and end hex colors.
vertical_purplepink(text)
Applies a vertical purple to pink gradient to the text.
License 📄
This project is licensed under the MIT License. See the LICENSE file for details.
Author 👤
Created by Qrexxed.
Enjoy using Fade2! 🎉
Metadata
Release files for fade2 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fade2-1.0.1.tar.gz | 2.3 kB | Without provenance | Details for fade2-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fade2-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for fade2-1.0.1-py3-none-any.whl |
Total release size: 4.7 kB
Release files / fade2-1.0.1.tar.gz
| Download URL | fade2-1.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e370c945c9cab53389b99697f39ac21104093f0c29a620bd23316c2e60a8c5b4
|
|
BLAKE2b-256 checksum How to use checksums |
e74d13786848f5349575cacdfda3fca856d851bcec04e3d3cfce586a18b28fdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Release files / fade2-1.0.1-py3-none-any.whl
| Download URL | fade2-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e94412d0808eb19a78dbfbfc4a60df9d13be0e3dde0c0aabe23f6bf71a0600a1
|
|
BLAKE2b-256 checksum How to use checksums |
438a9a2db58176db686becb0ffeb2479c8be2f3970f11ae449155f0001f22106
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.0
|
Security for fade2 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.