wayak-pixels-selector
v1.0.0
Published
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Downloads
1
Readme
Table of Contents
PixelsSelector
getPixelInfo
Returns the values of a pixel of an image or canvas
Parameters
Returns object a object with props r,g,b,a,uint32
floodFill
Returns an image fill from a starting point as the "magic wand" tool in photoshop
Parameters
pX
number x position.pY
number y position.canvasImageSource
(Image/Canvas) source image.tolerance
number 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