/hue_shift

A standalone color generator for terminal output with ~ 16-17 million colors.

Primary LanguagePython

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!