> For the complete documentation index, see [llms.txt](https://lua2.fatality.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lua2.fatality.win/api/instances/draw/layer/rounding.md).

# Rounding

## Rounding﻿ <a href="#rounding.md" id="rounding.md"></a>

Last modified: 03 January 2025

This enum is used to determine the rounding for rounded shapes.

### TL <a href="#tl" id="tl"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round top-left corner.

***

## TR <a href="#tr" id="tr"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round top-right corner.

***

## BL <a href="#bl" id="bl"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round bottom-left corner.

***

## BR <a href="#br" id="br"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round bottom-right corner.

***

## T <a href="#t" id="t"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round both of the top corners. This produces the same result as using `bit.bor(draw.Rounding.TL, draw.Rounding.TR)`.

***

## L <a href="#l" id="l"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round both of the left corners. This produces the same result as using `bit.bor(draw.Rounding.TL, draw.Rounding.BL)`.

***

## R <a href="#r" id="r"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round both of the right corners. This produces the same result as using `bit.bor(draw.Rounding.TR, draw.Rounding.BR)`.

***

## B <a href="#b" id="b"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round both of the bottom corners. This produces the same result as using `bit.bor(draw.Rounding.BL, draw.Rounding.BR)`.

***

## ALL <a href="#all" id="all"></a>

[<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Round all corners. This produces the same result as using `bit.bor(draw.Rounding.TL, draw.Rounding.TR, draw.Rounding.BL, draw.Rounding.BR)`.

[^1]: This field is a regular field that must be accessed using a dot (.)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://lua2.fatality.win/api/instances/draw/layer/rounding.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
