-
Notifications
You must be signed in to change notification settings - Fork 18
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 component? #4
Comments
Also, any plan for
|
Alpha is planned, but far down the road. Still not sure if that should be new classes or an optional parameter on the existing classes. Operators for +, -, and averaging are also planned. I have to add a few more color spaces first so that all of these operations make sense though. I'm not sure what you mean by "inverted getter." Can you describe in more detail? |
The inverted of (r, g, b) is (255 - r, 255 - g, 255 - b). I think new classes with the alpha component makes more sense as someone may be already using your package. In the future, you may deprecate classes without the alpha component. In addition, since the package is mostly used in web applications, please consider
|
Well, a lot of this issue is still on the todo list, but I have added a toCssString() method to RGB, hex, and HSL color spaces, so you can use the Color package to generate css strings a little easier now. |
I got here when I tried generate a transparent color to my background. I din't find a way to generate a transparent CSS color patter using Color library. |
Hi Michael,
Is there any plan to add the alpha component?
Thanks.
The text was updated successfully, but these errors were encountered: