Skip to main content

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() lime
Amethyst .amethyst() amethyst
Unicorn .unicorn() unicorn
Acid .acid() acid
Ultraviolet .ultraviolet() ultraviolet
Nectar .nectar() nectar
Moon .moon() moon
Lagoon .lagoon() lagoon
Popsicles .popsicles() popsicles
Matcha .matcha() matcha
Cherry .cherry() cherry
Magma .magma() magma
Atlantis .atlantis() atlantis
Sun .sun() sun
Orca .orca() orca
Reef .reef() reef
Honey .honey() honey
Cobalt .cobalt() cobalt
Garnet .garnet() garnet
Bamboo .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.
.fire Method Any palette name (like .fire, .aqua, .matrix). 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

fadecat-0.2.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

fadecat-0.2.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file fadecat-0.2.2.tar.gz.

File metadata

  • Download URL: fadecat-0.2.2.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

Hashes for fadecat-0.2.2.tar.gz
Algorithm Hash digest
SHA256 566dbf921ccadad0b4bb4c1f4a8fe3e89e8bd65f0a153b61ea183de0326eb0f8
MD5 8c3053d03f5e84e7c9a473f8441ee213
BLAKE2b-256 991a2aae253299f35360b55c358ccec2373be061b98d99d8b7e07ef2183ae865

See more details on using hashes here.

File details

Details for the file fadecat-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: fadecat-0.2.2-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

Hashes for fadecat-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c3105cf7d4981953d5bd40c5e29bca6e82769df9197294782ca365e5187ec4
MD5 305e96a40ae7511b6da4c5a7885cb3e3
BLAKE2b-256 fd4d4af6628f1ecdd2cdab3ffda9eddda7f7c18c31a3b143514a6367357c32c2

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