Hue Shift
This repository contains a Python function that generates random colors and displays them in compatible terminals using ANSI escape codes.
Installation
No external libraries are required. The function uses the built-in colorsys and random Python modules.
pip install hue_shift
Usage
Import:
from hue_shift import return_color, reset
To use the random color generator, simply call the return_color() function:
print(f"{return_colour()}This is a random colour")
To reset back to the terminal's default color:
print(f"{reset()}Default color :) ")
Note
Not all terminals support this wide color range!
Metadata
Release files for hue-shift 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hue_shift-1.1.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hue_shift-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.0 kB
Release files / hue_shift-1.1.tar.gz
| Download URL | hue_shift-1.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebcc8dba4dd3cbe4e8a236bc9393a6838dd83437bd411673349eda56d1a1562c
|
|
BLAKE2b-256 checksum How to use checksums |
1376c01f182d64fc5c1fe35c8aae4bfbf074d274d080ff78ada203bbad757495
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / hue_shift-1.1-py3-none-any.whl
| Download URL | hue_shift-1.1-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6eaffca3752d11d97921f30692a052e1d24ea716b1abc9ca686ccd3badc69f6
|
|
BLAKE2b-256 checksum How to use checksums |
a2b9eddac2ed3636ebbe77710c055e0889ca848ef36a546f5ede0acee2f2c11e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|