Skip to content

Documentation / @ripl/terminal / rasterizeArc

Function: rasterizeArc() ​

rasterizeArc(cx, cy, radius, startAngle, endAngle, counterclockwise, plot): void

Defined in: terminal/src/algorithms.ts:375

Rasterizes an arc from startAngle to endAngle at (cx,cy) with given radius by subdivision into line segments.

Parameters ​

ParameterType
cxnumber
cynumber
radiusnumber
startAnglenumber
endAnglenumber
counterclockwiseboolean
plotPixelCallback

Returns ​

void