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
We have to_u32 on Rgba8 and PremulRgba8, added in #66 (comment). I can foresee use cases (e.g. reading from an image file) where you have the packed representation and would like to operate on the values. Is this an in-scope feature for this crate.
Fwiw, this is already exposed through the bytemuck implementations if you have the relevant feature enabled.
The text was updated successfully, but these errors were encountered:
tomcur
added a commit
to tomcur/color
that referenced
this issue
Jan 18, 2025
Closeslinebender#73.
The conversions from the packed u32 are easy to get wrong when
implemented manually.
(On the other hand, these methods are also easy to use wrong.)
Closes#73.
The conversions from the packed u32 are easy to get wrong when
implemented manually.
(On the other hand, these methods are also easy to use wrong.)
We have
to_u32
onRgba8
andPremulRgba8
, added in #66 (comment). I can foresee use cases (e.g. reading from an image file) where you have the packed representation and would like to operate on the values. Is this an in-scope feature for this crate.Fwiw, this is already exposed through the bytemuck implementations if you have the relevant feature enabled.
The text was updated successfully, but these errors were encountered: