rainbowcoat

Crates.iorainbowcoat
lib.rsrainbowcoat
version0.1.0
sourcesrc
created_at2017-08-28 04:48:01.403341
updated_at2017-08-28 04:48:01.403341
descriptionAdds rainbows over writers
homepagehttps://github.com/softprops/rainbowcoat
repositoryhttps://github.com/softprops/rainbowcoat
max_upload_size
id29515
size45,345
cargo (github:rustpq:cargo)

documentation

https://softprops.github.io/rainbowcoat

README

rainbowcoat Build Status Coverage Status Crates.io

Adds rainbows over writers (inspired by lolcat)

Documentation

intall

Add the following to your Cargo.toml file

[dependencies]
rainbowcoat = "0.1"

usage

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

Commit count: 21

cargo fmt