Documentation / @ripl/terminal / rasterizePolygon
Function: rasterizePolygon() ​
rasterizePolygon(
points,plot):void
Defined in: terminal/src/algorithms.ts:203
Rasterizes a closed polygon outline, joining the last point back to the first. Used for shapes whose axis-aligned form has a dedicated rasterizer but whose transformed form does not — a transformed rect is a parallelogram, not a rect.
Parameters ​
| Parameter | Type |
|---|---|
points | Vertex[] |
plot | PixelCallback |
Returns ​
void