> For the complete documentation index, see [llms.txt](https://sneakyevil.gitbook.io/sleeping-dogs-de-script-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sneakyevil.gitbook.io/sleeping-dogs-de-script-api/callbacks/onrender.md).

# OnRender

This callback is called each frame.

#### Example:

<pre class="language-squirrel"><code class="lang-squirrel"><strong>function OnRender(Renderer)
</strong>{
    Renderer.AddText(Font.GetDefault(), 5, 5, Color(255, 255, 255), "This is example text");
}
</code></pre>

This example will draw text at left top corner of screen with default font and white color.
