use chromakopia::{animate, presets};
use std::time::Duration;
const BANNER: &str = r#" __ __
.-----| |--|__.--------.--------.-----.----.
|__ --| | | | | -__| _|
|_____|__|__|__|__|__|__|__|__|__|_____|__|"#;
#[tokio::main]
async fn main() {
animate::Sequence::new(BANNER)
.glow(presets::dark_n_stormy(), Duration::from_secs(5))
.with_fade(Duration::from_secs(2), Duration::from_secs(2))
.run(1.0)
.await;
eprintln!();
animate::Sequence::new(BANNER)
.hold(chromakopia::Color::new(0x8f, 0xcd, 0xdb), Duration::from_secs(4))
.with_fade(Duration::from_secs(2), Duration::from_secs(2))
.run(1.0)
.await;
eprintln!();
animate::Sequence::new("chromakopia: beautiful terminal animations")
.rainbow(Duration::from_secs(5))
.with_fade(Duration::from_secs(1), Duration::from_secs(1))
.run(1.0)
.await;
}