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
I have the following code:
var mousePos = _this.root.getPointer(e.e); mousePos.x = parseInt(mousePos.x); mousePos.y = parseInt(mousePos.y); var width = _this.root.getWidth(); var height = _this.root.getHeight(); var pixels = _this.root.getContext().getImageData(0, 0, width, height); var pixel = (mousePos.x + mousePos.y * pixels.width) * 4; _this.activePathsColor = new fabric['Color']('rgb(' + pixels.data[pixel] + ',' + pixels.data[pixel + 1] + ',' + pixels.data[pixel + 2] + ')'); var colorHex = '#' + _this.activePathsColor.toHex().toLowerCase();
How would we use getImageDataFaster in this case.
getImageDataFaster
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following code:
How would we use
getImageDataFaster
in this case.Thanks.
The text was updated successfully, but these errors were encountered: