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
I've found interesting thing about Color.Darken() and .Lighten()
If i use the color like this: new Color(153, 173, 136, 60), that has alpha 60, and will use, for example, .Darken(), it will be less transparent because .Darken mixes the color with Black that has 255 alpha.
Does it really should work this way?
In my opinion, dimming and lightening shouldn't affect alpha channel
Maybe, there should be a parameter, at least, like [bool blendAlpha = false] that will allow to define whether we want to blend it or not
It's false by default because, as I think, most of cases will be without blending 🙂
Or maybe, it will be better to create separate function for alpha changing/blending.
The text was updated successfully, but these errors were encountered:
Hi!
I've found interesting thing about Color.Darken() and .Lighten()
If i use the color like this: new Color(153, 173, 136, 60), that has alpha 60, and will use, for example, .Darken(), it will be less transparent because .Darken mixes the color with Black that has 255 alpha.
Does it really should work this way?
In my opinion, dimming and lightening shouldn't affect alpha channel
Maybe, there should be a parameter, at least, like [bool blendAlpha = false] that will allow to define whether we want to blend it or not
It's false by default because, as I think, most of cases will be without blending 🙂
Or maybe, it will be better to create separate function for alpha changing/blending.
The text was updated successfully, but these errors were encountered: