Function: sourceArea()
sourceArea(
area,scale,canvasWidth,canvasHeight):Rect
Defined in: src/lib/rendering/compositing/index.ts:132
An area of the canvas grown by enough canvas pixels to cover two screen pixels at a scale (screen pixels per canvas pixel), within the canvas, so drawing just that area smooths its edges as drawing everything would.
Parameters
area
scale
number
canvasWidth
number
canvasHeight
number
Returns
Example
sourceArea({ x: 10, y: 10, width: 5, height: 5 }, 0.5, 2000, 2000); // grown by 5: { x: 5, y: 5, width: 15, height: 15 }