> For the complete documentation index, see [llms.txt](https://docs.neuralaim.ru/napi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neuralaim.ru/napi/dokumentaciya-or-api/overlay.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
