Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color() should support bright and custom colors with strings. #167

Open
Ehllay opened this issue Mar 9, 2024 · 0 comments
Open

color() should support bright and custom colors with strings. #167

Ehllay opened this issue Mar 9, 2024 · 0 comments

Comments

@Ehllay
Copy link

Ehllay commented Mar 9, 2024

Right now, the color() function only supports regular colors, such as white red blue, etc, in a string format. But why doesn't this function support other types of colors?

For example if I want to use the bright blue color, I should be able to just use color("bright_blue"), but doing this simply does not format the text.

Same thing for custom colors, although it might be hard to handle RGB format in a string. Perhaps an hex format might be better for custom colors.

I'm aware that I can just use something like color(Color::BrightBlue) or color(Color::TrueColor {r: (), g: (), b: ()}), but, I'd rather have a more dynamic way to tell colored which colors to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant