Crates.io | rainbowcoat |
lib.rs | rainbowcoat |
version | 0.1.0 |
source | src |
created_at | 2017-08-28 04:48:01.403341 |
updated_at | 2017-08-28 04:48:01.403341 |
description | Adds rainbows over writers |
homepage | https://github.com/softprops/rainbowcoat |
repository | https://github.com/softprops/rainbowcoat |
max_upload_size | |
id | 29515 |
size | 45,345 |
Adds rainbows over writers (inspired by lolcat)
Add the following to your Cargo.toml file
[dependencies]
rainbowcoat = "0.1"
extern crate rainbowcoat;
use std::io::Write;
fn main() {
write!(
&mut rainbowcoat::Colors::configure(
io::stdout(), 2.0, 0.4, 0.0
),
" _
( |
|
__,--./|.--,__
.` \ \ / / `.
.` \ | / `.
/ / ^|^ \ \
/ / | |o | \ \
/===/ | | | \===\
/___/ | |o | \___\
| | |
| |o |
| | |
| |o |
| | |
| |o |
|_____/\_____|
"
)
}
Doug Tangren (softprops) 2017