Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha channel #8

Open
pinventado opened this issue Jan 6, 2021 · 2 comments
Open

Alpha channel #8

pinventado opened this issue Jan 6, 2021 · 2 comments

Comments

@pinventado
Copy link
Member

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.

@dektar
Copy link
Contributor

dektar commented Jan 12, 2021

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.

@pinventado
Copy link
Member Author

Hmm that makes absolute sense :) Let's do that instead! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants