Create and use our own custom colors
python128 opened this issue ยท 3 comments
python128 commented
We should be able to make our own colors, and use them wherever we want.
Example:
use colored::*;
fn main() {
let greyish = make_color!(100, 100, 100); //In this, 'make_color!' macro is the syntax to make a new color, which we can use anywhere by:
println!("{}", "Hello".greyish()); // So that we don't have to keep typing 'truecolor(....)' and so on...
}
Felt it would be nice..
mrquantumoff commented
Hey, I saw your feature request and I opened a pull request, I hope it will be merged soon
Horgix commented
PR #112 is what @mrquantumoff is talking about in the above comment, for the record ๐
mrquantumoff commented
BTW, the PR was merged today!