> For the complete documentation index, see [llms.txt](https://help.trikset.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.trikset.com/trik/programming-code/object-brick/class-marker.md).

# Класс «marker»

Предоставляет доступ к рисованию маркером заданного цвета на полу. Доступен только в режиме 2D модели.

| Метод                                                                  | Описание                                                                                                                                                                                     |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [down](/trik/programming-code/object-brick/class-marker.md#down)       | Начать рисование маркером заданного цвета на полу. При движении робота в двумерной модели за ним будет оставаться цветная линия. Если был установлен маркер другого цвета, он будет заменен. |
| [up](/trik/programming-code/object-brick/class-marker.md#up)           | Закончить рисование маркером.                                                                                                                                                                |
| [isDown](/trik/programming-code/object-brick/class-marker.md#isdown)   | Возвращает `true`, если маркер активен, `false`- если нет.                                                                                                                                   |
| [setDown](/trik/programming-code/object-brick/class-marker.md#setdown) | Вызывает метод `down("black")`, или `up()` в зависимости от аргумента.                                                                                                                       |

## down

Начать рисование маркером заданного цвета на полу. При движении робота в двумерной модели за ним будет оставаться цветная линия. Если был установлен маркер другого цвета, он будет заменен.&#x20;

#### Синтаксис

{% tabs %}
{% tab title="Python" %}

```python
brick.marker().down(color)
brick.marker().down("color")
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
brick.marker().down(color)
brick.marker().down("color")
```

{% endtab %}
{% endtabs %}

#### Пример

{% tabs %}
{% tab title="Python" %}

```python
brick.marker().down("blue")
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
brick.marker().down("blue")
```

{% endtab %}
{% endtabs %}

## up

Закончить рисование маркером.

#### Синтаксис

{% tabs %}
{% tab title="Python" %}

```python
brick.marker().up()
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
brick.marker().up()
```

{% endtab %}
{% endtabs %}

## isDown

Возвращает `true`, если маркер активен, `false`- если нет.&#x20;

#### Синтаксис

{% tabs %}
{% tab title="Python" %}

```python
brick.marker().isDown()
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
brick.marker().isDown();
```

{% endtab %}
{% endtabs %}

## setDown

Вызывает метод `down("black")`, или `up()` в зависимости от аргумента.

#### Синтаксис

{% tabs %}
{% tab title="Python" %}

```python
brick.marker().setDown(True) # Вызывает brick.marker().down("black")
brick.marker().setDown(False) # Вызывает brick.marker().up()
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
brick.marker().setDown(true) // Вызывает brick.marker().down("black")
brick.marker().setDown(false) // Вызывает brick.marker().up()
```

{% endtab %}
{% endtabs %}


---

# 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://help.trikset.com/trik/programming-code/object-brick/class-marker.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.
