You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-Walrus
changed the title
Add a convinence macro to create a color from a hex code
Add a convinence macro to create a color from a hex code / const function with comptime error
Apr 23, 2024
I believe the best solution to his problem, a const fn, is blocked by RFC #911. Once const float operations are permitted, I imagine almost the entire bevy_color crate could then by marked const.
What problem does this solve or what need does it fill?
Creating a color from a hex code. Alternative to having
Color::hex("...").unwrap()
(orSrgba::hex("...").unwrap()
)What solution would you like?
Either:
Not sure how this fits in with the new color overhaul :P
What alternative(s) have you considered?
Leave it as is.
The text was updated successfully, but these errors were encountered: