AddRect

AddRect ( left ;​ top ;​ width ;​ height ;​ fillColor ;​ fillColorVariant ;​ borderStroke ;​ borderColor ;​ borderColorVariant ;​ 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)
fillColor rgba 0..255 black
fillColorVariant int -1..128 solid
borderStroke num[] 0..1000 0 Dimension:[pt]
borderColor rgba 0..255 black
borderColorVariant int -1..128 solid
shadowEffect num[] -1000..1000 0
shadowColor rgba 0..255 #888a
Examples

AddRect(50;​20;​150;​150)

AddRect(53;​53;​250;​150;​gray)

Description

The AddRecht() function draws rectangular areas whose fill, border and shadow can be varied.

ADD_RECT_01
1

OpenDrawing(100;​100)

2

AddRect(10;​10;​80;​80;​steelBlue)

3

CloseDrawing()

ADD_RECT_01
ADD_RECT_02
1

OpenDrawing(100;​100)

2

AddRect(10;​10;​80;​80;​215 101 90;​shaded;​;​;​;​0 0 5)

3

CloseDrawing()

ADD_RECT_02
ADD_RECT_03
1

OpenDrawing(100;​100)

2

AddRect(10;​10;​80;​80;​darkYellow;​shaded;​10;​110 110 110;​shaded)

3

CloseDrawing()

ADD_RECT_03
Scroll to Top