AddRoundFrame

AddRoundFrame ( left ;​ top ;​ width ;​ height ;​ cornerRadius ;​ 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)
cornerRadius num[] 0..1000 12 Dimension:[pt]
yRadius num[] 0..1000 12 Ignored
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;​;​2)

AddRoundFrame(50;​50;​250;​150;​16 0 0 0;​;​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 argument cornerRadius can have up to four corner radii (topLeft, topRight, bottomRight and bottomLeft). The argument yRadius is obsolete and is ignored.

ADD_ROUND_FRAME_01
1

OpenDrawing(100;​100)

2

AddRoundFrame(10;​10;​80;​80;​10;​;​3;​steelBlue)

3

CloseDrawing()

ADD_ROUND_FRAME_01
ADD_ROUND_FRAME_02
1

OpenDrawing(100;​100)

2

AddRoundFrame(10;​10;​80;​80;​10;​;​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;​10;​;​3 2 2.5;​steelBlue)

3

CloseDrawing()

ADD_ROUND_FRAME_03
ADD_ROUND_FRAME_04
1

OpenDrawing(200;​100)

2

AddRoundFrame(10;​10;​180;​80;​10 0 10 0;​20;​3;​steelBlue)

3

CloseDrawing()

ADD_ROUND_FRAME_04
Scroll to Top