Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

RoundingRadius

RoundingRadius
is an option for Rectangle, Framed and related functions which specifies the radius of the circle to use in rendering rounded corners.
  • 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 x and y directions.
  • The effective radius used for any corner is limited to the half-length of each adjacent side.
A round rectangle:
An object with rounded frame:
A round rectangle:
In[1]:=
Click for copyable input
Out[1]=
 
An object with rounded frame:
In[1]:=
Click for copyable input
Out[1]=
Specify round corners:
Differently styled round rectangle edges:
Specifies different rounding radii in x and y 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:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team