We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Surface.capture().data is not working for iOS, returns black pixels [0,0,0,0]. Works fine on Android and Web (DOM).
├── gl-react@4.0.1 └─┬ gl-react-native@4.0.1 └── gl-react-expo@4.0.1
Surface.capture().data should be returning the RGBA value of the specified pixel on Surface
Returns [0, 0, 0, 0] no matter what the colour of the specified pixel
const data = this.refs.surface.capture(x, y, 1, 1).data; console.log("RGBA: ", data);
Where surface is a reference to the Surface component and x, y are the coords of the pixel to return the colour
The text was updated successfully, but these errors were encountered:
same issue, do you have any solution?
Sorry, something went wrong.
This works on my machine ™️ (an iOS device)
this.refs.surface.glView.capture()
This works on my machine ™️ (an iOS device) this.refs.surface.glView.capture()
Hi @Morantron. What version are you using?
gl-react@5.2.0 gl-react-expo@5.2.1 gl-react-native@5.2.1
gre
No branches or pull requests
Bug report
Surface.capture().data is not working for iOS, returns black pixels [0,0,0,0]. Works fine on Android and Web (DOM).
library version
Expected behavior
Surface.capture().data should be returning the RGBA value of the specified pixel on Surface
Actual behavior
Returns [0, 0, 0, 0] no matter what the colour of the specified pixel
Steps to reproduce the behavior
Where surface is a reference to the Surface component and x, y are the coords of the pixel to return the colour
The text was updated successfully, but these errors were encountered: