How lazy-brush works
masterThe library implements a 'lazy area' around the brush. When the pointer moves, the distance between the pointer and the brush is calculated.
If the distance is greater than the defined radius, the brush moves by distance - radius pixels in the direction of the pointer. This creates a smooth, dampened drawing effect that allows for fluid lines even with imprecise input devices like a mouse.