animation_test/
animation_test.rs1use tinterm::*;
2
3fn main() {
4 println!("Testing shimmer animation:");
5 println!("Watch the text below for a moving bright highlight...\n");
6
7 let shimmer = "★ SHIMMERING TEXT ★".shimmer(Color::GOLD, None).speed(200);
8
9 print!("Animating: ");
10 shimmer.animate(5);
11
12 println!("\nShine effect:");
13 print!("Animating: ");
14 let shine = "✨ SHINING TEXT ✨".shine(Color::CYAN).speed(180);
15 shine.animate(3);
16
17 println!("\nGlow effect:");
18 print!("Animating: ");
19 let glow = "💫 GLOWING TEXT 💫".glow(Color::PURPLE, 200).speed(250);
20 glow.animate(4);
21
22 println!("\nAnimation test complete!");
23}