Crates.io | pallete |
lib.rs | pallete |
version | 1.1.0 |
source | src |
created_at | 2020-12-18 16:53:00.350089 |
updated_at | 2021-08-18 08:54:09.351628 |
description | Write text in rainbow colors |
homepage | |
repository | https://github.com/rishit-khandelwal/rainbow |
max_upload_size | |
id | 324387 |
size | 4,038 |
A crate for simplifying colorful text in rust.
use pallete::*;
fn main() -> std::io::Result<()> {
pallete::println_bg!(pallete::Color::Red, "Pallete Red!")?;
Ok(())
}
fn main() -> std::io::Result<()> {
pallete::println_fg!(pallete::Color::Red, "Pallete Red!")?;
Ok(())
}