3 releases (stable)

1.1.0 Aug 18, 2021
1.0.0 Dec 18, 2020
0.1.6 Dec 18, 2020

#5 in #rainbow

45 downloads per month
Used in 3 crates

MIT license

3KB

Rainbow

A crate for simplifying colorful text in rust.

Examples

Write with Background color

use pallete::*;

fn main() -> std::io::Result<()> {
    pallete::println_bg!(pallete::Color::Red, "Pallete Red!")?;
    Ok(())
}

Write with Foreground color

fn main() -> std::io::Result<()> {
    pallete::println_fg!(pallete::Color::Red, "Pallete Red!")?;
    Ok(())
}

Dependencies

~0–7MB
~36K SLoC