Simple.rs
Simple.rs is a crate i made to make things in rust that i found too complicated a little easier.
Still new to rust but this was fun to make.
Features
The input function
Definition:
It lets you easily do input with 1 function instead of printing, flushing, reading the line, and then trimming the newline after the input
COLOR STRUCT
Colours
- BLACK
- RED
- ORANGE
- YELLOW
- LIGHTGREEN
- DARKGREEN
- MINT
- CYAN
- LIGHTBLUE
- SKYBLUE
- BLUE
- DARKBLUE
- DEEPPURPLE
- PURPLE
- VIOLET
- MAGENTA
- WARMPINK
- WATERMELON
- LIGHTGRAY
- DARKGRAY
any others:
Color
Color function
Definition:
Color text
Weigh macro
Definition:
Add weight to text such as bold, or italic just add more Weights for multiple at once
Weight struct
- BOLD
- DIM
- ITALIC
- UNDERLINED
- SLOWBLINK
- FASTBLINK
Those are all the weights :)
And.. Input_color
Definition:
input but coloured