File: custom_colors.rs

package info (click to toggle)
rust-colored 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 444 kB
  • sloc: makefile: 2
file content (7 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
use colored::*;
fn main() {
    let my_color = CustomColor::new(0, 120, 120);
    println!("{}", "Greetings from Ukraine".custom_color(my_color));
    println!("{}", "Slava Ukraini!".on_custom_color(my_color));
    println!("{}", "Hello World!".on_custom_color((0, 120, 120)));
}