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.
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)
VertexScreen.Draw.[func]() —
Any primitive drawing function available in the Draw module,
such as line, rect, circle,
polygon, and others.
None. Drawing operations are applied directly to the target surface.