RoundingRadius

RoundingRadius

is an option for Rectangle, Framed and related functions that specifies the radius of the circle to use in rendering rounded corners.

Details

  • The radius specification can have the following forms:
  • rapply radius r to all corners
    {rx,ry}specify different rounding radii in the and directions
    {spec,rules}use rules to override the default specification spec for specific corners
  • rules can be used to specify different radii for specific corners. A rule specification can be of the form {sidex,sidey}spec, where sidex can be Left or Right, and sidey can be Top or Bottom. A rule can also be specified as sidespec, which will set the radii for both corners of the given side.
  • In graphics, the radius can be specified as follows:
  • rdistance r in ordinary graphics coordinates
    Scaled[s], ImageScaled[s]fraction s of the size of the graphic
    Offset[d]d printer's points
  • For constructs such as Framed, RoundingRadius->r always specifies the radius in absolute printer's points.
  • RoundingRadius->0 specifies non-rounded corners.
  • The effective radius used for any corner is limited to the half-length of each adjacent side.

Examples

open allclose all

Basic Examples  (2)

A round rectangle:

An object with rounded frame:

Scope  (10)

Specify round corners:

Differently styled round rectangle edges:

Specify different rounding radii in the and directions:

Specify different rounding values for different corners:

Override both corners on the left side:

The effective radius used for any corner is limited to the half-length of each adjacent side:

For Framed, RoundingRadius->r always specifies the radius in absolute printer's points:

Use Scaled coordinates and Scaled rounding radius:

Use ImageScaled coordinates and ImageScaled rounding radius:

Use Offset coordinates and Offset rounding radius:

Wolfram Research (2008), RoundingRadius, Wolfram Language function, https://reference.wolfram.com/language/ref/RoundingRadius.html (updated 2024).

Text

Wolfram Research (2008), RoundingRadius, Wolfram Language function, https://reference.wolfram.com/language/ref/RoundingRadius.html (updated 2024).

CMS

Wolfram Language. 2008. "RoundingRadius." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/RoundingRadius.html.

APA

Wolfram Language. (2008). RoundingRadius. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RoundingRadius.html

BibTeX

@misc{reference.wolfram_2024_roundingradius, author="Wolfram Research", title="{RoundingRadius}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/RoundingRadius.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_roundingradius, organization={Wolfram Research}, title={RoundingRadius}, year={2024}, url={https://reference.wolfram.com/language/ref/RoundingRadius.html}, note=[Accessed: 21-November-2024 ]}