Colorized

Colorized is a simple rust library that allows for you to display color to the console

Getting Started

Just add the line on crates.io to your Cargo.toml to install it

Usage

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); } ```

Documentation

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.

Example of how you could use this

```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.

Helper Function Examples

```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); } ```

Format of color

{ColorName}_{FG or BG}

All Posible Colors

  1. black
  2. red
  3. green
  4. yellow
  5. blue
  6. magenta
  7. cyan
  8. white
  9. bright_black
  10. bright_red
  11. bright_green
  12. bright_yellow
  13. bright_blue
  14. bright_magenta
  15. bright_cyan
  16. bright_white

License

MIT