AddRoundFrame

Modified in version 4.0

AddRoundFrame ( left ;​ top ;​ width ;​ height ;​ xRadius ;​ yRadius ;​ frameStroke ;​ frameColor ;​ frameColorVariant ;​ shadowEffect ;​ shadowColor )

Argument Type Range Default Note
left num -inf..+inf (required)
top num -inf..+inf (required)
width num 0..inf (required)
height num 0..inf (required)
xRadius num 0..1000 12 Dimension:[pt]
yRadius num 0..1000 12 Dimension:[pt]
frameStroke num[] 0..1000 1 Dimension:[pt]
frameColor rgba 0..255 black
frameColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

AddRoundFrame(50;​50;​250;​150;​;​;​2;​red)

AddRoundFrame(50;​50;​250;​150;​16;​16;​2)

Description

The AddRoundFrame() function is used to create frames with rounded corners whose stroke (thickness, dash pattern), color and shadow can be varied. The rounding is controlled by using the arguments xRadius and yRadius. The greater xRadius and yRadius, the greater the rounding of the corner. When xRadius =​ 0 and yRadius =​ 0, the rounding disappears and AddRoundFrame() changes to AddFrame() .

ADD_ROUND_FRAME_01
1

OpenDrawing(100;​100)

2

AddRoundFrame(10;​10;​80;​80;​30;​30;​6;​steelBlue)

3

CloseDrawing()

ADD_ROUND_FRAME_01
ADD_ROUND_FRAME_02
1

OpenDrawing(100;​100)

2

AddRoundFrame(10;​10;​80;​80;​30;​30;​8;​steelBlue;​shaded;​0 0 5;​gray)

3

CloseDrawing()

ADD_ROUND_FRAME_02
ADD_ROUND_FRAME_03
1

OpenDrawing(200;​100)

2

AddRoundFrame(10;​10;​180;​80;​20;​20;​3 2 2.5;​steelBlue)

3

CloseDrawing()

ADD_ROUND_FRAME_03
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×