Vertex Docs

VertexScreen

Description: VertexScreen provides low-level drawing functionality for rendering graphics without using image assets. It is designed for drawing primitive shapes such as lines, rectangles, circles, arcs, and polygons directly to the screen.

All VertexScreen drawing calls should be placed inside a scene’s draw(surface) method, as they are executed every frame.

Features

Example: Usage

from VertexEngine import VertexScreen

vs = VertexScreen()

def draw(surface):
    vs.Draw.line(surface, (255, 255, 255), (10, 10), (200, 10), 2)
    vs.Draw.circle(surface, (0, 255, 0), (100, 100), 40, 0)

Parameters

Returns

None. Drawing operations are applied directly to the target surface.

Notes