Giter VIP home page Giter VIP logo

outputcolour's Introduction

outputcolour

Python module created to add colour to messages printed to screen

Fucntion print_in_colour to be imported into your script

  • from coloured_print import print_in_colour as print_ic

You can then call the function using this alias and it takes 2 arguments

  • Arg 1: colour you wish to use
  • Arg 2: the message you want printed to screen

The available colours are:

0 = black
1 = Blue
2 = Green
3 = Cyan
4 = Red
5 = Magenta
6 = Brown
7 = Light Gray
8 = Dark Gray
Intensity - All colours beyond here have Instensity factored in
9 = Light Blue
10 = Light Green
11 = Light Cyan
12 = Light Red
13 = Light Magenta
14 = Yellow
15 = White
Entries beyond this point change background colour too
16 -> 31 Blue background
32 -> 47 Green background
48 -> 63 Cyan background
64 -> 79 Red background
80 -> 95 Magenta background
96 -> 111 Brown background
112 -> 127 Light Grey background
128 -> 143 Dark Grey background
144 -> 159 Light Blue background
160 -> 175 Light Green background
176 -> 191 Light Cyan background
192 -> 207 Light Red background
208 -> 223 Light Magenta background
224 -> 239 Yellow background
240 -> 255 White background

outputcolour's People

Contributors

nielsrj avatar

Watchers

 avatar

Forkers

johnmk1989

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.