RoundingRadius
Details
- The radius specification can have the following forms:
-
r apply 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:
-
r distance 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 allScope (10)
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:
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