# Corner Radius

### Introduction

The `Corner Radius` variable controls the radius of each of the four corners on a rounded rectangle. A value of 0 results in a sharp corner. Increasing this value makes the corners more rounded.

<figure><img src="/files/RFWWtX4sU8mx93aj2Oje" alt=""><figcaption></figcaption></figure>

Corner Radius is restricted to half of the smallest absolute dimension. In other words, if the RoundedRectangle is too small to fit its set CornerRadius, then the effective CornerRadius shrinks.

The following shows a RoundedRectangle with a `Corner Radius` of 60. If it is resized to have an effective width or height of less than 120, then the effective radius shrinks.

<figure><img src="/files/wtRWL03KTZ2bVmv5ySys" alt=""><figcaption><p>Corner radius shrinking in response to smaller size</p></figcaption></figure>

Similarly, setting a Corner Radius that is larger than half the Width or Height does not affect the RoundedRectangle.

<figure><img src="/files/rCbpZMcq9VZPEDsGdZgQ" alt=""><figcaption></figcaption></figure>


---

# 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/skia-standard-elements/roundedrectangle/corner-radius.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.
