A simple script for generating ~16 million colors without dependencies
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hue_shift-1.1.tar.gz
(1.9 kB
view hashes)