Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qrexpy/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. 🌈
https://github.com/qrexpy/fade2
ascii fade gradient linux python terminal text windows
Last synced: about 2 months ago
JSON representation
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. 🌈
- Host: GitHub
- URL: https://github.com/qrexpy/fade2
- Owner: qrexpy
- Created: 2024-12-25T16:11:17.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-25T16:16:45.000Z (about 2 months ago)
- Last Synced: 2024-12-25T17:20:00.533Z (about 2 months ago)
- Topics: ascii, fade, gradient, linux, python, terminal, text, windows
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fade2 🎨✨
A revamped version of [venaxyt's fade project](https://github.com/venaxyt/fade) with more features and improved stability. Fade2 allows you to add beautiful color gradients to your terminal text. 🌈
## Features 🚀
- Multiple color gradient functions:
- `blackwhite`
- `purplepink`
- `greenblue`
- `pinkred`
- `purpleblue`
- `water`
- `fire`
- `brazil`
- `random`
- `linear_blackwhite`
- `linear_purplepink`
- `linear_fire`
- `linear_custom`
- `vertical_purplepink`
- Easy to use
- Supports ANSI escape sequences on Windows## Installation 📦
You can install Fade2 using pip:
```sh
pip install fade2
```## Usage 🛠️
Here is an example of how to use Fade2 in your Python code:
```python
from fade2 import purplepinktext = "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](https://github.com/qrexpy).
Enjoy using Fade2! 🎉