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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file hue_shift-1.1.tar.gz.

File metadata

  • Download URL: hue_shift-1.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for hue_shift-1.1.tar.gz
Algorithm Hash digest
SHA256 ebcc8dba4dd3cbe4e8a236bc9393a6838dd83437bd411673349eda56d1a1562c
MD5 a5cb3e47bed0533be699184bb86a34b6
BLAKE2b-256 1376c01f182d64fc5c1fe35c8aae4bfbf074d274d080ff78ada203bbad757495

See more details on using hashes here.

File details

Details for the file hue_shift-1.1-py3-none-any.whl.

File metadata

  • Download URL: hue_shift-1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for hue_shift-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6eaffca3752d11d97921f30692a052e1d24ea716b1abc9ca686ccd3badc69f6
MD5 d208ff4320b0eac660e637c3123e3cf7
BLAKE2b-256 a2b9eddac2ed3636ebbe77710c055e0889ca848ef36a546f5ede0acee2f2c11e

See more details on using hashes here.

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