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 custom color can't have transparency at the moment. A part of the problem is that it's not possible to implement From for Alpha<MyColor, T>. A possible solution is to add a #[palette_alpha] attribute that marks the alpha component in the custom color struct and extend the derive code to use this when implementing From and Into, to preserve the transparency.
The text was updated successfully, but these errors were encountered:
A custom color can't have transparency at the moment. A part of the problem is that it's not possible to implement
From
forAlpha<MyColor, T>
. A possible solution is to add a#[palette_alpha]
attribute that marks the alpha component in the custom color struct and extend the derive code to use this when implementingFrom
andInto
, to preserve the transparency.The text was updated successfully, but these errors were encountered: