Skip to content

1681-engine / pixel / ellipsePixels

Function: ellipsePixels() ​

ts
function ellipsePixels(rx, ry): PixelPoint[];

Defined in: src/pixel/aimPixels.ts:53

The outline of an ellipse rx wide and ry deep round (0, 0), each pixel once (midpoint algorithm) — a circle on the ground as a three-quarter view shows it, so a body can stand in the middle of it.

Parameters ​

ParameterType
rxnumber
rynumber

Returns ​

PixelPoint[]

Released under the MIT License.