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
Can we create a Color class with an Alpha channel? Maybe call it ColorAlpha or something like that?
We can also create a GetColorAlpha and SetColorAlpha to use the alpha channel.
This might also mean we need to create overloads for all other functions using Color, like DrawLine.
The text was updated successfully, but these errors were encountered:
What if we extend the existing Color class with an optional alpha? That reduces the need for additional classes and overloaded functions. It can default to 100% opacity (255 or 0xFF), and there can be a separate constructor to create a Color with an Alpha.
Students aren't looking at the Color class so they shouldn't be thrown off by the presence of an Alpha channel.
Can we create a Color class with an Alpha channel? Maybe call it ColorAlpha or something like that?
We can also create a GetColorAlpha and SetColorAlpha to use the alpha channel.
This might also mean we need to create overloads for all other functions using Color, like DrawLine.
The text was updated successfully, but these errors were encountered: