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

getColor doesn't work after setColor #46

Closed
edoardotognoni opened this issue Mar 28, 2014 · 5 comments
Closed

getColor doesn't work after setColor #46

edoardotognoni opened this issue Mar 28, 2014 · 5 comments

Comments

@edoardotognoni
Copy link

Hi all,

when I try to set the color of the picker through a call to setColor, it works. But immediatily after, if I call getColor it returns another color which is always the full green one. Any update to fix this problem?

@veonua
Copy link

veonua commented Apr 2, 2014

it depends on attached bars, I think this is a case that it is impossible to set given color using your set of bars

@edoardotognoni
Copy link
Author

This is my code:

mColorPicker.setColor(-1111);
int color = mColorPicker.getColor();

In this case color is != from -1111. And what do you mean with "bars"?

@veonua
Copy link

veonua commented Apr 2, 2014

opacity, saturation, value bars
On Apr 2, 2014 3:19 PM, "Edoardo Tognoni" notifications@github.com wrote:

This is my code:

mColorPicker.setColor(-1111);
int color = mColorPicker.getColor();

In this case color is != from -1111. And what do you mean with "bars"?


Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-39295416
.

@edoardotognoni
Copy link
Author

I don't use them. I only use the int color. I mean, when I use setColor, the colorpicker correctly change its position to show the right color. But when I call getColor it returns always the green one, even if its position is set to red for example

@LarsWerkman
Copy link
Owner

I can't reproduce this error. please make sure u use correct color values

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

3 participants