Function: rectCoverage()
ts
function rectCoverage(px, py, g, cornerRadius, pixelRatio): RectCoverage;Experimental
CPU mirror of the fragment shader: anti-aliased coverage at screen point (px, py) (CSS px) for a rect placed by rectScreenGeometry. The AA ramp is one device pixel centred on the edge.
Parameters
| Parameter | Type |
|---|---|
px | number |
py | number |
g | RectScreenGeometry |
cornerRadius | number |
pixelRatio | number |