# X Origin

## Introduction

The `X Origin` variable controls the point which an object is positioned by. By default the `X Origin` is `Left`. `X Origin` is shown visually as a white "X" in the editor.

<figure><img src="/files/MfBodo2uV5y20wosH2KA" alt=""><figcaption><p>ColoredRectangle with an <code>X Origin</code> of <code>Left</code></p></figcaption></figure>

## Left

The following image shows a [ColoredRectangle](/gum/gum-tool/gum-elements/coloredrectangle.md) with its `X Origin` set to `Left`:

![Colored Rectangle with X Origin set to Left](/files/ptPtHL3ojpB21dSfdXOL)

## Center

The following image shows a ColoredRectangle with its `X Origin` set to `Center`:

![ColoredRectangle with X Origin set to Center](/files/CuKG8Bsl1rA3iKLiUctp)

## Right

The following image shows a ColoredRectangle with its `X Origin` set to `Right`:

![ColoredRectangle with its X Origin set to Right](/files/mRJHKsv0groKsUHcduvp)


---

# 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.flatredball.com/gum/gum-tool/gum-elements/general-properties/x-origin.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.
