Skip to content

1681-engine / pixel / pixelPaint / ring

Function: ring() ​

ts
function ring(
   g, 
   r, 
   color, 
   phase?, 
   cy?
): void;

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

A broken ellipse of radius r in the ground's 2:1 perspective, lit on the near side, turning with phase.

Parameters ​

ParameterTypeDefault value
gGraphicsundefined
rnumberundefined
colornumberundefined
phasenumber0
cynumber0

Returns ​

void

Released under the MIT License.