Vertex Docs

VertexScreen.Draw.arc(surface, color, rect, start_angle, stop_angle, width)

Description: Draws an arc along the edge of an imaginary ellipse defined by the given rectangle. The arc starts at start_angle and ends at stop_angle, measured in radians. This method is useful for rendering circular UI elements such as progress indicators, gauges, loading spinners, or decorative outlines.

Usage

from VertexEngine import VertexScreen
import math

vs = VertexScreen()
rect = (100, 100, 200, 200)

vs.Draw.arc(
    surface,
    (255, 0, 0),
    rect,
    start_angle=0,
    stop_angle=math.pi,
    width=4
)

Parameters

Returns

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

Notes