Function: drawCheckerboard()
drawCheckerboard(
ctx,width,height,squareSize):void
Defined in: src/lib/rendering/checkerboard/index.ts:15
Fill an area with a grey and white checkerboard, the usual way of showing transparency.
Parameters
ctx
Pick<DrawingContext, "fillStyle" | "fillRect">
width
number
height
number
squareSize
number
Returns
void
Example
drawCheckerboard(ctx, 30, 30, 5);