# Overlay

### text

```python
def text(text: str, x: int, y: int, w: int, h: int) -> None:
```

<table><thead><tr><th width="125">Название</th><th width="135">Тип</th><th>Описание</th></tr></thead><tbody><tr><td>text</td><td>str</td><td>Текст для отображения</td></tr><tr><td>x, y</td><td>int, int</td><td>Координаты верхнего левого угла полотна наложения</td></tr><tr><td>w</td><td>int</td><td>Ширина полотна наложения</td></tr><tr><td>h</td><td>int</td><td>Высота полотна наложения</td></tr></tbody></table>

### line

```python
def line(self, x: int, y: int, w: int, h: int) -> None:
```

<table><thead><tr><th width="125">Название</th><th width="135">Тип</th><th>Описание</th></tr></thead><tbody><tr><td>x, y</td><td>int, int</td><td>Координаты верхнего левого угла</td></tr><tr><td>h, w</td><td>int, int</td><td>Координаты нижнего правого угла</td></tr></tbody></table>

### rectangle

```python
def rectangle(self, x: int, y: int, w: int, h: int) -> None:
```

<table><thead><tr><th width="125">Название</th><th width="135">Тип</th><th>Описание</th></tr></thead><tbody><tr><td>x, y</td><td>int, int</td><td>Координаты верхнего левого угла</td></tr><tr><td>w</td><td>int</td><td>Ширина прямоугольника</td></tr><tr><td>h</td><td>int</td><td>Высота прямоугольника</td></tr></tbody></table>

### circle

```python
def circle(self, x: int, y: int, w: int, h: int) -> None:
```

<table><thead><tr><th width="125">Название</th><th width="135">Тип</th><th>Описание</th></tr></thead><tbody><tr><td>x, y</td><td>int, int</td><td>Координаты верхнего левого угла</td></tr><tr><td>w</td><td>int</td><td>Ширина прямоугольника</td></tr><tr><td>h</td><td>int</td><td>Высота прямоугольника</td></tr></tbody></table>

### clear

```python
Вызовите ту же функцию, при помощи которой рисовали - но с нулевыми координатами.
```

{% hint style="info" %}
Очищает оверлей.
{% endhint %}

{% hint style="warning" %}
На данный момент ширина и высота полотна ограничена 600x800, будет убрано в следующем обновление.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.neuralaim.ru/napi/dokumentaciya-or-api/overlay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
