Skip to main content
Creates a new Drawing object of the requested type and adds it to Real’s tracked Drawing object list. The type string must be one of the exact supported names: “Line”, “Text”, “Circle”, “Square”, “Quad”, “Triangle”, or “Image”. Missing, non-string, or unsupported type values raise a Lua error. the Drawing API registers this API only when the required rendering environment is active is true; when that check is false, the initializer returns before creating these globals.

Syntax

Arguments

Returns

Example

Create a visible square and configure its basic drawing properties.