# goto x y

## Description

Goto moves the draw cursor to a certain position on the window

## Parameters

Goto takes an x and a y value for it to move the draw cursor to

## Usage

{% code overflow="wrap" %}

```javascript
goto 100 100

goto -100 -100

goto 0 0
// 0 0 is centered on the window


goto window.left window.top
change 20 -20
// can also be used in conjunction with the window object to anchor elements to specific sides of the window
```

{% endcode %}

[Broken mention](broken://pages/cmz8bxQBQllOgjBjNCli)


---

# 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://osl.mistium.com/commands/rendering/draw-cursor/goto-x-y.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.
