({{, (RefLink[RoundingRadius, paclet:ref/RoundingRadius])
is an option for (RefLink[Rectangle, paclet:ref/Rectangle]), (RefLink[Framed, paclet:ref/Framed]), and related functions that specifies the radius of the circle to use in rendering rounded corners.}})

OpenersNotesSection(Spacer1)Details

(RefLink[RoundingRadius, paclet:ref/RoundingRadius])->r specifies that corners should be drawn using a quarter-circle of radius r.

In graphics, the radius can be specified as follows:

For constructs such as (RefLink[Framed, paclet:ref/Framed]), (RefLink[RoundingRadius, paclet:ref/RoundingRadius])->r always specifies the radius in absolute printer's points.

(RefLink[RoundingRadius, paclet:ref/RoundingRadius])->{(Subscript[r, x]),(Subscript[r, y])} specifies different rounding radii in the x and y directions.

(RefLink[RoundingRadius, paclet:ref/RoundingRadius])->0 specifies non-rounded corners.

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

OpenersPrimaryExamplesSection(Spacer1)Examples  (10)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

A round rectangle:

Graphics[Rectangle[{0,0},{2,1},RoundingRadius->0.3]]

An object with rounded frame:

Framed[1/x+y+z,RoundingRadius->10]

OpenersExampleSection1(Spacer1)Scope  (8)

Specify round corners:

Table[Graphics[Rectangle[{0,0},{2,1},RoundingRadius->m],PlotLabel->m],{m,{0,.1,2,.5}}]

Table[Framed[Graphics3D[Sphere[{0,0,0}],ImageSize->Tiny,PlotLabel->m],RoundingRadius->m],{m,{0,10,20,50}}]

Differently styled round rectangle edges:

{Graphics[{Pink,Rectangle[{0,0},{1,1},RoundingRadius->0.3]}],Graphics[{EdgeForm[Thick],Pink,Rectangle[{0,0},{1,1},RoundingRadius->0.3]}],Graphics[{EdgeForm[Dashed],Pink,Rectangle[{0,0},{1,1},RoundingRadius->0.3]}],Graphics[{EdgeForm[Directive[Thick,Dashed,Blue]],Pink,Rectangle[{0,0},{1,1},RoundingRadius->0.3]}]}

Specify different rounding radii in the x and y directions:

Graphics[Rectangle[{0,0},{1,1},RoundingRadius->{0.3,0.5}]]

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

Graphics[Rectangle[{0,0},{1,1},RoundingRadius->1]]

For (RefLink[Framed, paclet:ref/Framed]), (RefLink[RoundingRadius, paclet:ref/RoundingRadius])->r always specifies the radius in absolute printer's points:

Framed[Graphics3D[Sphere[{0,0,0}],ImageSize->Tiny],RoundingRadius->{50,10}]

Use (RefLink[Scaled, paclet:ref/Scaled]) coordinates and (RefLink[Scaled, paclet:ref/Scaled]) rounding radius:

Graphics[Rectangle[Scaled[{0,.4}],Scaled[{1,.6}],RoundingRadius->Scaled[.1]],Frame->True,PlotRange->{{0,10},{0,10}}]

Use (RefLink[ImageScaled, paclet:ref/ImageScaled]) coordinates and (RefLink[ImageScaled, paclet:ref/ImageScaled]) rounding radius:

Graphics[Rectangle[ImageScaled[{0,.4}],ImageScaled[{1,.6}],RoundingRadius->ImageScaled[.1]],Frame->True,PlotRange->{{0,10},{0,10}}]

Use (RefLink[Offset, paclet:ref/Offset]) coordinates and (RefLink[Offset, paclet:ref/Offset]) rounding radius:

Graphics[Rectangle[Offset[{10,20},{0,0}],Offset[{-10,-20},{1,1}],RoundingRadius->Offset[{50,10}]],Frame->True]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Polygon, paclet:ref/Polygon])  ▪  (RefLink[Circle, paclet:ref/Circle])  ▪  (RefLink[EdgeForm, paclet:ref/EdgeForm])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/37-layout-and-display.html])(WebLink[: Layout and Display, https://www.wolfram.com/language/elementary-introduction/37-layout-and-display.html])}})}})