<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
npm install wayak-pixels-selector- [PixelsSelector][1]
- [getPixelInfo][2]
- [Parameters][3]
- [floodFill][4]
- [Parameters][5]
Returns the values of a pixel of an image or canvas
- x [number][8] x position.
- y [number][8] y position.
- canvasImageSource (Image/Canvas) source image.
Returns [object][9] a object with props r,g,b,a,uint32
Returns an image fill from a starting point as the "magic wand" tool in photoshop
- pX [number][8] x position.
- pY [number][8] y position.
- canvasImageSource (Image/Canvas) source image.
- tolerance [number][8] number (0-200).
- tintColor (string/number)? can be '#ff0000'(string) or 0xff0000(number) or 'ff0000'(string), if is null return pixel with original rgb values.
Returns ImageData a ImageData Object with the same sizes of canvasImageSource
[1]: #pixelsselector
[2]: #getpixelinfo
[3]: #parameters
[4]: #floodfill
[5]: #parameters-1
[6]: #calculatealphabetweencolors
[7]: #parameters-2
[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
[9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object