Vertex Docs

VertexScreen.Draw.aaline(surface, color, start_pos, end_pos, blend)

Description: Draws an anti-aliased (smooth) line on the specified surface between start_pos and end_pos. Anti-aliasing reduces jagged edges by blending the line with the background, resulting in smoother and more visually appealing graphics. This method is ideal for UI elements, outlines, guides, or any graphics that require clean line rendering.

Usage

from VertexEngine import VertexScreen

vs = VertexScreen()
vs.Draw.aaline(
    surface,
    (255, 255, 255),
    (50, 50),
    (200, 150),
    blend=True
)

Parameters

Returns

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

Notes