Skip to content

1681-engine / pixel / pixelPaint / arc

Function: arc() ​

ts
function arc(
   g, 
   x, 
   y, 
   r, 
   a0, 
   a1, 
   color, 
   flat?, 
   thick?
): void;

Defined in: src/pixel/pixelPaint.ts:249

An arc of dots on an ellipse from angle a0 to a1 (flat: in the ground's 2:1 perspective), thick rows deep.

Parameters ​

ParameterTypeDefault value
gGraphicsundefined
xnumberundefined
ynumberundefined
rnumberundefined
a0numberundefined
a1numberundefined
colornumberundefined
flatbooleantrue
thicknumber1

Returns ​

void

Released under the MIT License.