APEX docs
Reference

Drawing

Draw shapes and text on screen.

cleardrawcache

Also available as Drawing.clear clear_draw_cache

Removes every drawing you have created.

function cleardrawcache(): ()

Drawing.new

Also available as drawing:Destroy drawing:Remove

Creates a shape or text to draw on screen. Types include Line, Square, Circle, Triangle, Quad, Text and Image. Set properties on the result, and call Destroy or Remove when finished.

function Drawing.new(type: string): Drawing

getrenderproperty

Also available as get_render_property

Reads a property of a drawing, such as its position or color.

function getrenderproperty(drawing: Drawing, property: string): any

isrenderobj

Also available as isrenderobject is_render_obj

Returns true if a value is a drawing. A destroyed drawing still counts, though it no longer exists on screen.

function isrenderobj(object: any): boolean

setrenderproperty

Also available as set_render_property

Sets a property of a drawing. It does the same as assigning the property directly.

function setrenderproperty(drawing: Drawing, property: string, value: any): ()