# Coloriz ![Crates.io](https://img.shields.io/crates/v/coloriz) [![API](https://docs.rs/coloriz/badge.svg)](https://docs.rs/coloriz) ![Crates.io](https://img.shields.io/crates/l/coloriz) Coloriz is a library for colorizing terminal outputs. It supports true colors and gradients. You can easily make your terminal colorful! ## Usage Add this to your Cargo.toml : ```toml [dependencies] coloriz = "0.2.0" ``` ## Example ```rust use coloriz::{Colorize, Color}; fn main() { let text = "Hello, world!"; println!("{}{}", text.bg(Color::BrightRed), text.fg(Color::Red)); println!("{}{}", text.fg(Color::Green), text.bg(Color::Green)); println!("{}{}", text.bg(Color::BrightYellow), text.fg(Color::Yellow)); println!("{}{}", text.fg(Color::BrightBlue), text.bg(Color::Blue)); println!("{}{}", text.bg(Color::BrightMagenta), text.fg(Color::Magenta)); println!("{}{}", text.fg(Color::BrightCyan), text.bg(Color::Cyan)); } ``` [More examples](https://github.com/navierr/coloriz/tree/main/examples) ## Todo - [x] Document - [ ] More tests - [x] Support Styles ## Contributing Contributions are welcome! Feel free to open Issues and PRs. ## 📃 License MIT License Copyright (c) 2021 navier