Vertex Docs

VertexScreen.Draw.circle( surface, color, center, radius, width, draw_top_right, draw_top_left, draw_bottom_right, draw_bottom_left)

Description: Draws a circle on the specified surface with fine-grained control over which quadrants are rendered. This allows partial circles to be drawn, enabling advanced visual effects such as progress indicators, segmented UI elements, or stylized outlines. The circle can be rendered as either an outline or a filled shape depending on the width value.

Usage

from VertexEngine import VertexScreen

vs = VertexScreen()

# Draw a full outlined circle
vs.Draw.circle(
    surface,
    (0, 120, 255),
    center=(200, 200),
    radius=80,
    width=4,
    draw_top_right=True,
    draw_top_left=True,
    draw_bottom_right=True,
    draw_bottom_left=True
)

Parameters

Returns

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

Notes