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
Add a Gray
color trait
#13206
Comments
I'll take a whack at this. |
This came up when drafting the PR, but is the goal with this interface to have a specific input value (say
|
I don't think gray should mean the same color in every format. Using Also |
What problem does this solve or what need does it fill?
Creating uniformly gray colors is a common task for prototyping and even some finished UIs.
Doing so is currently tedious and doesn't show intent well. Rather than
Srgba::gray(0.9)
, users must typeSrgba::rgb(0.9, 0.9, 0.9)
.What solution would you like?
Add an extension trait for the color spaces that support the creation of grey colors, and use that.
What alternative(s) have you considered?
Using the clearly superior but not style-guide approved Canadian spelling of
Grey
.Additional context
Our examples use grays a ton: these could be cleaned up as part of the same PR.
The text was updated successfully, but these errors were encountered: