ColorShell
Colorshell is a rust library i made while i was bored. I have only been doing rust for 2.5 days. It lets you easily print colored text to the console
Features
The color Function
The color function will color text you give it. The color paramater takes in a color struct
Definition:
The input_color function
Get console input with this function choose what color the input will be
Definition:
The weigh function
Add Weight to text you give it Definition:
Example:
use *;
The Color Struct
There are a few default colors:
- BLACK
- RED
- ORANGE
- YELLOW
- LIGHTGREEN
- DARKGREEN
- MINT
- CYAN
- LIGHTBLUE
- SKYBLUE
- BLUE
- DARKBLUE
- DEEPPURPLE
- PURPLE
- VIOLET
- MAGENTA
- WARMPINK
- WATERMELON
- LIGHTGRAY
- DARKGRAY
Any others can be created with:
Color
The Weight Struct
There are a few default weights:
- BOLD
- DIM
- ITALIC
- UNDERLINED
- SLOWBLINK
- FASTBLINK