pallete

Crates.iopallete
lib.rspallete
version1.1.0
sourcesrc
created_at2020-12-18 16:53:00.350089
updated_at2021-08-18 08:54:09.351628
descriptionWrite text in rainbow colors
homepage
repositoryhttps://github.com/rishit-khandelwal/rainbow
max_upload_size
id324387
size4,038
rk (rk31415926535)

documentation

README

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(())
}
Commit count: 14

cargo fmt