-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Add Color::TRANSPARENT #6530
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 Color::TRANSPARENT #6530
Conversation
4312421 to
3a7a695
Compare
|
Did you commit the right thing? I'm not sure the code is related to adding a new Color |
3a7a695 to
4312421
Compare
|
... I pushed to the wrong branch. I was updating #6001 in parallel. Fearless concurrency isn't a thing with git. 😆 |
|
so... what color is transparent? 🤔 |
|
Well, at least in french we say "this glass is transparent", so I guess it's a color? ^^' |
|
I took the same HTML as for |
|
From my perspective, "transparent" is not a specific color, it is any color with an alpha value of Imo exposing this concept is a lossy abstraction that could cause actual harm. |
|
One question: would you accept to add a "doc alias" on |
I'd merge that in a heartbeat. |
|
Thanks for the quick answer. Then here we go! |
As mentioned in #6530. It allows to not create a new constant and simply having it to show up in the documentation when someone is looking for "transparent" (case insensitive) in rustdoc search. cc @alice-i-cecile
As mentioned in bevyengine#6530. It allows to not create a new constant and simply having it to show up in the documentation when someone is looking for "transparent" (case insensitive) in rustdoc search. cc @alice-i-cecile
As mentioned in bevyengine#6530. It allows to not create a new constant and simply having it to show up in the documentation when someone is looking for "transparent" (case insensitive) in rustdoc search. cc @alice-i-cecile

I was looking for a fully transparent
Colorand only realize after a long while thatColor::NONEwas what I was looking for. This is really just a commodity because I think some other people have have stumbled on this. If you think it's useless, please close the PR.