use crate::colors::Colorable;
pub fn draw(seq : &str , color : &str , size : usize){
let mut s = String::new();
for _ in 0..size {
s.push_str(seq);
}
println!("{}",s.color(color));
}
pub fn divider(){
draw("─","grey",80);
}
pub fn divider_half(){
draw("─","grey",40);
}
pub fn divider_quarter(){
draw("─","grey",20);
}
pub fn divider_double(){
draw("═","grey",80);
}
pub fn divider_red(){
draw("─","red",80);
}
pub fn divider_funky(){
let colors = vec!["red","green","yellow","blue","magenta","cyan","white"];
for i in 0..colors.len() {
let c = colors[i];
let mut s = String::new();
for _ in 0..10 {
s.push_str("─");
}
println!("{}",s.color(c));
}
}