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.
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))
func —
A drawing function provided by the Draw class
Renders a graphic or entity directly onto the target surface.