Function

ellipse

(radiusX: number, radiusY: number): EllipseComp

Attach and render an ellipse to a Game Object.

param radiusX- The radius of the ellipse on the x-axis.

param radiusY- The radius of the ellipse on the y-axis.

add([
    pos(80, 120),
    ellipse(16, 8),
])

returns The ellipse comp.

since v2000.0

group Components

kaplay logo

Layer

Miscalenous