Vertex Docs

VertexScreen.Draw.ellipse(surface, color, rect, width)

Description: Draws an ellipse that fits perfectly inside the specified rectangular area on the given surface. The ellipse can be rendered as either an outlined shape or a filled shape depending on the width parameter. This method is commonly used for buttons, highlights, indicators, and decorative UI elements.

Usage

from VertexEngine import VertexScreen

vs = VertexScreen()

# Draw a filled ellipse
vs.Draw.ellipse(
    surface,
    (255, 200, 0),
    rect=(100, 150, 300, 180),
    width=0
)

Parameters

Returns

None — This method draws directly onto the surface and does not return a value.

Notes