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
To use the random color generator, simply call the return_color()
function:
print(f"{return_colour()}This is a random colour")
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.0.tar.gz
(1.8 kB
view hashes)