Skip to main content

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


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)

Uploaded Source

Built Distribution

hue_shift-1.1-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page