kolorz 0.10.0

A silly little library for printing kolored text to the terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{Kolor, KoloredText};

pub trait RGBKolorize {
    fn kolorize(&self, color: (u8, u8, u8)) -> KoloredText;
}

impl<T> RGBKolorize for T where T: std::fmt::Display + Into<String>  {
    fn kolorize(&self, color: (u8, u8, u8)) -> KoloredText {
        Kolor::kolorize(self.to_string(), color)
    }
}