diff options
Diffstat (limited to 'vendor/colored/examples/custom_colors.rs')
-rw-r--r-- | vendor/colored/examples/custom_colors.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/colored/examples/custom_colors.rs b/vendor/colored/examples/custom_colors.rs new file mode 100644 index 000000000..05c588e60 --- /dev/null +++ b/vendor/colored/examples/custom_colors.rs @@ -0,0 +1,6 @@ +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)); +} |