tinterm 0.2.0

A powerful library for vibrant solid and gradient text with shimmer animations in terminal outputs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use tinterm::*;

fn main() {
    let text = "Solid Colors Example";

    // Apply solid foreground color
    let fg_colored_text = text.fg(Color::RED);
    println!("Foreground: {}", fg_colored_text);

    // Apply solid background color
    let bg_colored_text = text.bg(Color::GREEN);
    println!("Background: {}", bg_colored_text);

    // Combine both foreground and background
    let combined_colored_text = text.fg(Color::BLUE).bg(Color::YELLOW);
    println!("Combined: {}", combined_colored_text);
}