cleardrawcache
Also available as Drawing.clear clear_draw_cache
Removes every drawing you have created.
function cleardrawcache(): ()
Draw shapes and text on screen.
Also available as Drawing.clear clear_draw_cache
Removes every drawing you have created.
function cleardrawcache(): ()
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
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
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
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): ()