fillContours
import { fillContours } from 'pixi-silk/i18n/shaper';
function fillContours(
contours: readonly Contour[],
width: number,
height: number
): Uint8Array;
Fills polygons into a coverage bitmap with exact area anti-aliasing: each edge adds its signed area to an accumulation buffer, and a running sum gives the coverage. Overlapping contours of the same direction (variable fonts) clamp to full coverage. Coordinates are in pixels, y down.
Parameters#
| Parameter | Type |
|---|---|
contours | readonly Contour[] |
width | number |
height | number |
Returns#
Uint8Array