Colorized is a simple rust library that allows for you to display color to the console
Just add the line on crates.io to your Cargo.toml to install it
To use Colorized all you have to do is
```rust use colorized::{color_definations::, commands::};
fn main() { let fg: ColorsFg = ColorsFg::new(); let bg: ColorsBg = ColorsBg::new();
println!("{}", colorizethis("Wow this is amazing", bg.greenbg)); colorizeprintln("This is just so efficent", fg.brightred_fg); } ```
Colorized uses ASCI Codes and thats how it remains very simple. In the source code you may be able to tell that it is my first time making and uploading a libary but I hope this libary could be useful.
```rust use colorized::color_definations::*;
fn main() { let bg = ColorsBg::new(); println!("{} Foo, Bar?? {}", bg.brightredbg, bg.reset_bg); } ```
This shows that this crate is just a package of easy to access ascii codes with a few helper functions.
```rust use colorized::{color_definations::, commands::};
fn main() { let bg = ColorsBg::new(); let fg = ColorsFg::new();
println!("{}", colorizethis("This returns a colorized version of this", fg.brightgreenfg)); colorizeprintln("this does the same thing but with a new line char", fg.magentafg); colorizeprint("This just prints it without a new line char ", bg.cyan_bg); } ```
{ColorName}_{FG or BG}
All Posible Colors
MIT