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

Change opacity mantaining the same color #35

Open
tecnodcp opened this issue May 29, 2019 · 1 comment
Open

Change opacity mantaining the same color #35

tecnodcp opened this issue May 29, 2019 · 1 comment

Comments

@tecnodcp
Copy link

Hi!

I would like to change the opacity of an object maintaining it's original color. I saw that there's not a setOpacity(..) method.
I would like to get the object's color and then modifyind the alpha value.

How can i get the object color?

@rubendel
Copy link
Member

rubendel commented May 30, 2019

All the color data is only stored on the GPU, it's definitely possible to retrieve it, but that's not in the API yet. I think your suggestion is a good idea (implement this as an setOpacity API call), so we'll leave this issue open for that.

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