Function: drawBrushCursor()
drawBrushCursor(
ctx,tip,x,y,width,height,rotation,pixelRatio):void
Defined in: src/lib/rendering/cursor/index.ts:33
Draw the brush cursor: a 1:1 white outline of the brush shape at the pointer. The overlay canvas uses the "difference" blend mode, so white inverts whatever is underneath and stays visible on any colour. Very small brushes show a crosshair instead.
Parameters
ctx
tip
x
number
pointer position on screen (CSS pixels)
y
number
width
number
brush width on screen (CSS pixels, already multiplied by zoom)
height
number
rotation
number
pixelRatio
number
device pixels per CSS pixel
Returns
void