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 |
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 | |
3 |
| ADD_FRAME_02 |
1 | OpenDrawing(100;100) |
2 | AddFrame(10;10;80;80;10;steelBlue;shaded;0 0 5;gray) |
3 |
| ADD_FRAME_03 |
1 | OpenDrawing(200;100) |
2 | |
3 |