Skip to main content

A sequence to venaxyt's fade project, with more features.

Project description

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! 🎉

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

fade2-1.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fade2-1.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file fade2-1.0.1.tar.gz.

File metadata

  • Download URL: fade2-1.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for fade2-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e370c945c9cab53389b99697f39ac21104093f0c29a620bd23316c2e60a8c5b4
MD5 7c44a14321c93dd828f8fafc5362f55b
BLAKE2b-256 e74d13786848f5349575cacdfda3fca856d851bcec04e3d3cfce586a18b28fdc

See more details on using hashes here.

File details

Details for the file fade2-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: fade2-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for fade2-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e94412d0808eb19a78dbfbfc4a60df9d13be0e3dde0c0aabe23f6bf71a0600a1
MD5 b05dc7ef0867a3a958de4adde6155cfc
BLAKE2b-256 438a9a2db58176db686becb0ffeb2479c8be2f3970f11ae449155f0001f22106

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page