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

getPixel doesn't return correctly for pure green or blue. #881

Closed
charlie-says opened this issue Jun 5, 2014 · 2 comments
Closed

getPixel doesn't return correctly for pure green or blue. #881

charlie-says opened this issue Jun 5, 2014 · 2 comments

Comments

@charlie-says
Copy link

This is quite a strange one, getPixel doesn't seem to be able to return a correctly formed colour object for pure blue or green colours (I'm guessing because there's no red value.)
Fiddle here demonstrates:
http://jsfiddle.net/FxjL8/11/
In noticing this, I found that getPixel32 will work correctly in the fiddle - but for some reason getPixel32 will not work in Safari (on either Mac or iOS) (subsequently, getPIxelRGB and getPixels also don't work in Safari as they leverage getPIxel32.)

@lstor
Copy link
Contributor

lstor commented Jun 9, 2014

The first referenced commit, 813a53b, was against master, and has been removed. The second commit is the real one.

@photonstorm
Copy link
Collaborator

Closing as this is now merged :)

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