# Rectangle

The `square` command draws a centered rectangle with specified dimensions and border weight on the draw cursor.

### Syntax:

```
square px_width px_height border_weight 0/1 invisible?
```

### Parameters:

* `px_width`: The width of the square in pixels.
* `px_height`: The height of the square in pixels.
* `border_weight`: The thickness of the square's border.
* `0` (required): If you want to set a square to be invisible and to use it as a hitbox, you need this item in the command
* `invisible?` (optional): Specifies whether the square is invisible. If omitted, defaults to 1 (visible).

### Example:

```
square 100 50 5 0 1
```

In this example:

* A square with a width of 100 pixels, height of 50 pixels, and a border thickness of 5 pixels is drawn.
* The square is centered on the draw cursor.
* 0 is included to allow the 5th input to exist, due to comparability issues
* The square is set to be invisible (1).

### Additional Notes:

* The `invisible` parameter determines the visibility of the square. It defaults to visible (1).
* The `0` before `invisible?` is required for compatibility purposes.


---

# 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/elements/rectangle.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.
