isTransparent
isTransparent(
ctx
,x
,y
,tolerance
):boolean
Defined in: src/util/misc/isTransparent.ts:10
Returns true if context has transparent pixel at specified location (taking tolerance into account)
Parameters
Section titled “Parameters”CanvasRenderingContext2D
context
number
x coordinate in canvasElementCoordinate, not fabric space. integer
number
y coordinate in canvasElementCoordinate, not fabric space. integer
tolerance
Section titled “tolerance”number
Tolerance pixels around the point, not alpha tolerance, integer
Returns
Section titled “Returns”boolean
true if transparent