Python Package used to print rgb colors to the console
Project description
- Athena Color Package - v3.0.4
Python Package used to print rgb colors to the console
Details and features
- Support for Fore- and Background colours
- Support for Underline, Bold, Italic and other Text Styling
- Custom rgb class with full support for math operators
- All basic and extended web colors are available as the default predefined Fore and Back colors.
- Access to the full rgb spectrum to be printed to the console
Usage
The following import will print the underlying python code to console:
import AthenaColor.Help.readme
# *-* Base Needed imports *-*
from AthenaColor import (
Fore, # All predefined Foreground colors
Back, # All predefined Background colors
Style, # All Style makeups
rgb
)
# *-* Use the objects in an f-string *-*
print(
f"""||| {Style.Bold}Welcome to the AthenaColor Package!{Style.Reset} |||
- The {Fore.HotPink}Fore.HotPink{Style.Reset} Changes the Foreground color
- The {Back.Indigo}Back.Indigo{Style.Reset} changes the background color
- Combinations like {Back.Teal}{Fore.LightGoldenRodYellow}Back.Teal + Fore.LightGoldenRodYellow{Style.Reset} are also supported
- Using {Fore.custom(rgb(123,45,67))}Fore.custom(rgb(123,45,67)){Style.Reset} will allow you to use custom rgb colors
"""
)
# *-* Create your own rgb objects *-*
custom_color = rgb(r=86, g=54, b=186)
print(
f"""
{Fore.custom(custom_color)}Text with a newly made rgb object{Style.Reset}
{Fore.rgb(r=186, g=54, b=86)}Text without first making a custom rgb object{Style.Reset}
"""
)
# *-* Print out of all colours and Style Formats *-*
from AthenaColor.Help import (
AllTable,
AllBoxes
)
print(
f"""
{Style.Bold}The following is a full list of all predefined colors.
Together with all Style makeups found in AthenaColor.ConsolePrinter:{Style.Reset}
"""
)
AllTable()
print(
f"""
{Style.Bold}The following is a small view of all predefined colors:{Style.Reset}
"""
)
AllBoxes()
Links
Project files can be found at:
Pip installs by the following command:
pip install AthenaColor
Made By Andreas Sas, 2022
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
AthenaColor-3.0.4.tar.gz
(24.3 kB
view hashes)
Built Distribution
Close
Hashes for AthenaColor-3.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd817c90dd45a0a54f808996445a4582f3d1e00be0ddf55e4056e0b69e48290 |
|
MD5 | 57a9ff2844c18d63b6aaad72fabce86a |
|
BLAKE2b-256 | 6dbd85ad5902fddf63f6fd0b8cf73783f8383f538eb8135985542517d60e5d33 |