Utility for creating beautiful, customizable gradients in the terminal!
Project description
Fadecat
Fadecat is a fast and easy-to-use library to enhance your terminal.
Using Fadecat allows you to choose color presets (including your custom ones) and tilt.
Standard palettes that are available after installation
| Palette | Method | Preview |
|---|---|---|
| Lime | .lime() |
|
| Amethyst | .amethyst() |
|
| Unicorn | .unicorn() |
|
| Acid | .acid() |
|
| Ultraviolet | .ultraviolet() |
|
| Nectar | .nectar() |
|
| Moon | .moon() |
|
| Lagoon | .lagoon() |
|
| Popsicles | .popsicles() |
|
| Matcha | .matcha() |
|
| Cherry | .cherry() |
|
| Magma | .magma() |
|
| Atlantis | .atlantis() |
|
| Sun | .sun() |
|
| Orca | .orca() |
|
| Reef | .reef() |
|
| Honey | .honey() |
|
| Cobalt | .cobalt() |
|
| Garnet | .garnet() |
|
| Bamboo | .bamboo() |
Getting started
Install with pip or your favorite PyPI package manager.
pip install fadecat
Checking that the library was installed successfully.
pip show fadecat
If you have received information about the library, you can continue working.
How to use the library
To get started, first import the library
from fadecat import fadecat
Parsing the call structure
For example
print(fadecat.unicorn("Hello world from unicorns! 🦄", tilt=360))
Let's look at each element
| Element | Type | Description |
|---|---|---|
fadecat |
Object | An instance of the main FadeCat class. It initializes ANSI support and provides access to all palettes. |
.unicorn |
Method | Any palette name (like .sun, .reef, .garnet). These are dynamic methods generated from the built-in color collection. |
"text" |
String | Your text. The gradient is automatically distributed across the entire string length (including multi-line blocks). |
tilt |
Number | The gradient angle (0-360°). It allows you to change the direction of the color transition. (default 0°) |
If you want to create your own preset
print(fadecat.custom("My Text", (255,0,0), (0,0,255), tilt=90))
Let's talk a little about custom presets
| Parameter | Type | Purpose |
|---|---|---|
start_rgb |
tuple |
Starting color in (R, G, B) format. Example: (255, 100, 0). |
end_rgb |
tuple |
Ending color in (R, G, B) format. Example: (0, 50, 200). |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fadecat-0.2.4.tar.gz.
File metadata
- Download URL: fadecat-0.2.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
539a6dd1460b57f910429768920e7cee808d2b595f8113a25a6e197b57655aeb
|
|
| MD5 |
25760e76bbc7dba3f8c743b6c317e38e
|
|
| BLAKE2b-256 |
dce6713eaef08a57bedd2249062db915619fc9c68b17cd94a5fe855bf2a10c5b
|
File details
Details for the file fadecat-0.2.4-py3-none-any.whl.
File metadata
- Download URL: fadecat-0.2.4-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d6b140f11156c7024ac681726890fd42c28eb67d88020b18befcb034b6c67b0
|
|
| MD5 |
564d838573b40bde3595fa538e6e769a
|
|
| BLAKE2b-256 |
4d4c6a3ffa9afbd633de6c46dacc2c1c92dcd1cf047ccb06004ead02a97d453d
|