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

  • RoundingRadius->r specifies that corners should be drawn using a quarter-circle of radius r.
  • 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->{rx,ry} specifies different rounding radii in the and directions.
  • 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  (8)

Specify round corners:

Differently styled round rectangle edges:

Specify different rounding radii in the and directions:

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.

Text

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

BibTeX

@misc{reference.wolfram_2020_roundingradius, author="Wolfram Research", title="{RoundingRadius}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/RoundingRadius.html}", note=[Accessed: 26-February-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_roundingradius, organization={Wolfram Research}, title={RoundingRadius}, year={2008}, url={https://reference.wolfram.com/language/ref/RoundingRadius.html}, note=[Accessed: 26-February-2021 ]}

CMS

Wolfram Language. 2008. "RoundingRadius." Wolfram Language & System Documentation Center. Wolfram Research. 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