跳转到内容

isTransparent

isTransparent(ctx, x, y, tolerance): boolean

Parameters

ctx: CanvasRenderingContext2D

context

x: number

x coordinate in canvasElementCoordinate, not fabric space. integer

y: number

y coordinate in canvasElementCoordinate, not fabric space. integer

tolerance: number

Tolerance pixels around the point, not alpha tolerance, integer

Returns

boolean

true if transparent

Defined in

src/util/misc/isTransparent.ts:10