[f32; 4]
conversions missing from bevy_color
#13224
Labels
A-Color
Color spaces and color math
C-Usability
A simple quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
X-Uncontroversial
This work is generally agreed upon
Milestone
What problem does this solve or what need does it fill?
Previously, we supported lots of operations back and forth from
[f32; 4]
that are currently missing with the exception ofto_f32_array
onLinearRgba
. Non-engine code sometimes needs to access these for other color spaces. The last one I ran into I believe was usingLcha
withlyon
for Nannou. Other libraries likeegui
also sometimes supply or expect these in their raw form.See the old docs
What solution would you like?
A trait or method impls to support
-> [f32; 4]
as well asFrom<[f32; 4]>
.The text was updated successfully, but these errors were encountered: