Vertex Docs

VertexScreen.Draw.aalines(surface, color, closed, points, blend)

Description: Draws a sequence of connected anti-aliased (smooth) lines on the specified surface using a list of points. Each point is connected to the next in order. When closed is set to True, the final point is automatically connected back to the first, forming a closed shape. Anti-aliasing blends the lines with the background to reduce jagged edges, resulting in smoother and more visually appealing outlines.

Usage

from VertexEngine import VertexScreen

vs = VertexScreen()
points = [(50, 50), (150, 80), (200, 150), (100, 200)]

vs.Draw.aalines(
    surface,
    (0, 255, 0),
    closed=True,
    points=points,
    blend=True
)

Parameters

Returns

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

Notes