use coloriz::*; fn main() { let text = "lorem ipsum quia dolor sit amet, consectetur, adipisci velit"; let start = RGB::from_hex(0x40c9ff); let end = RGB::from_hex(0xe81cff); println!("{}", text.fg_gradient(start, end)); println!("{}", Gradient::new(start, end).reverse().to(text)); }