Documentation / @ripl/terminal / fillPolygon
Function: fillPolygon()
fillPolygon(
contours,plot):void
Defined in: terminal/src/algorithms.ts:367
Fills the interior of one or more closed contours using the even-odd rule. Each contour is a polyline (implicitly closed); interiors are determined per scanline from edge crossings, so concave shapes, circular segments, and annular sectors (holes) fill correctly.
Parameters
| Parameter | Type |
|---|---|
contours | Vertex[][] |
plot | PixelCallback |
Returns
void