Add a rectangle to the active document
illustrator_add_rectangleDraw a precise rectangle on the active Illustrator artboard by specifying top-left coordinates, width, height, and optional fill or stroke colors.
Instructions
Draws a filled/stroked rectangle on the active layer of the active document. Coordinates are in points from the top-left of the artboard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| fillColor | No | Hex fill color, e.g. #8c4f2d. Omit for no fill. | |
| strokeColor | No | Hex stroke color. Omit for no stroke. |