Skip to content

Latest commit

 

History

History

PythonColrGenerator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

PythonColrGenerator

Overview

Generates coloured/rainbow text in terminal

image

Requirements

  • Tested on Windows 8, 8.1, 10, 11, Ubuntu 20.04.2 LTS x86_64 and Kali GNU/Linux Roll
  • Python 3.5 or above
  • Colr library

Installation

Install Python 3, then install Colr using pip install colr OR py -m pip install colr OR

git clone https://github.com/welbornprod/colr.git
cd colr
python3 setup.py install

Then download main.py or copy text

Usage

Run file as .py not .pyw
To import, use

from main import *

OR

import main
  • main.help() displays a list of commands and help
  • main.test() checks that it is working
  • main.matrix() to show rainbow numbers in constant loop
  • main.colour() syntax is colour("Your text here")

To change colour range edit colours array
Import time to add delay

Examples

Importing main and then using the help() and test() functions

image


After leaving the matrix() function for a few seconds

image


Using colour("text") to display a custom message

image