RoundingRadius

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

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

A round rectangle:

In[1]:=
Click for copyable input
Out[1]=

An object with rounded frame:

In[1]:=
Click for copyable input
Out[1]=
New in 7
New to Mathematica? Find your learning path »
Have a question? Ask support »