Vertex Docs

Draw

Description: The Draw class is responsible for all rendering operations in a Vertex game. It provides a unified interface for drawing both 2D and 3D graphics, including primitive shapes such as lines, circles, polygons, and other geometric forms.

Capabilities

Example: Usage

from VertexEngine import VertexUI

# Draw a line
VertexUI.Draw.line(surface, (255, 255, 255), (0, 0), (100, 100), 2)

# Draw a filled rectangle
VertexUI.Draw.rect(surface, (0, 128, 255), (50, 50, 200, 100))

Parameters

Returns

Renders a graphic or entity directly onto the target surface.

Notes