AddFrame

AddFrame ( left ;​ top ;​ width ;​ height ;​ 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)
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

AddFrame(50;​50;​250;​150)

AddFrame(50;​50;​250;​150;​3;​red)

Description

The AddFrame() function makes it possible to create a rectangular frame whose stroke (thickness, dash pattern), color and shadow can be varied.

ADD_FRAME_01
1

OpenDrawing(100;​100)

2

AddFrame(10;​10;​80;​80;​6;​steelBlue)

3

CloseDrawing()

ADD_FRAME_01
ADD_FRAME_02
1

OpenDrawing(100;​100)

2

AddFrame(10;​10;​80;​80;​10;​steelBlue;​shaded;​0 0 5;​gray)

3

CloseDrawing()

ADD_FRAME_02
ADD_FRAME_03
1

OpenDrawing(200;​100)

2

AddFrame(10;​10;​180;​80;​3 2 2;​steelBlue)

3

CloseDrawing()

ADD_FRAME_03
ADD_FRAME_04
1

OpenDrawing(200;​100)

2

AddFrame(10;​10;​180;​80;​2;​steelBlue;​;​0 0 2;​gray)

3

AddFrame(16;​16;​168;​68;​1;​steelBlue)

4

AddFrame(21;​21;​158;​58;​2;​steelBlue;​;​0 0 2;​gray)

5

CloseDrawing()

ADD_FRAME_04
Scroll to Top