shape

fun shape(shape: Shape)(source)

Renders a given shape on the current render target. Supports shapes with different topology types: CLOSED, OPEN, and MIXED.

Parameters

shape

The shape to be rendered. It contains the geometric data and topology information for rendering.