Skip to main content

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:
    • 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:

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)

Source distribution for fade2 1.0.1
File Size Uploaded
fade2-1.0.1.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fade2 1.0.1
File Interpreter ABI Platform
fade2-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page