We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some ideas possibly worth implementing:
Color::hex(0xFFFFFF)
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Hex constructor: Color::hex(0xFFFFFF)
The lack of a u24 type makes this a bit awkward, but I think it's fine provided that we find a good name for it. ggez calls it from_rgb_u32.
u24
ggez
from_rgb_u32
Additional constants
Do you mean additional built-in colors? I think the idea is to encourage users to define their own color palettes, instead of providing a default one.
Other color spaces (constructors and conversion)
This would be great, but it feels a bit out of scope. There are already other color crates that can do the job, like palette.
palette
Is it okay to add some simple constants like red and green? I like to use them for quick prototyping when I just want some placeholder colors.
Successfully merging a pull request may close this issue.
Some ideas possibly worth implementing:
Color::hex(0xFFFFFF)
The text was updated successfully, but these errors were encountered: