use crate::constants::LOGO;
use tiny_gradient::{GradientDisplay, GradientStr, RGB};
pub fn clean_console() {
print!("{esc}c", esc = 27 as char);
}
pub fn indent(amount: u32) -> String {
let mut new_amount = String::new();
for _ in 0..amount {
new_amount.push('\n');
}
new_amount
}
pub fn rapid_logo<'a>() -> GradientDisplay<'a, [RGB; 4]> {
GradientStr::gradient(
&">>> R A P I D",
[RGB::new(9, 42, 208), RGB::new(26, 78, 96), RGB::new(9, 42, 208), RGB::new(14, 197, 255)],
)
}
pub fn rapid_logo_small<'a>() -> GradientDisplay<'a, [RGB; 4]> {
GradientStr::gradient(
&"R A P I D",
[RGB::new(9, 42, 208), RGB::new(26, 78, 96), RGB::new(9, 42, 208), RGB::new(14, 197, 255)],
)
}
pub fn logo<'a>() -> GradientDisplay<'a, [RGB; 4]> {
GradientStr::gradient(
&LOGO,
[RGB::new(9, 42, 208), RGB::new(26, 78, 96), RGB::new(9, 42, 208), RGB::new(14, 197, 255)],
)
}