ai_add_rectangle
Adds a rectangle to the active Illustrator document using lower-left x/y position, width and height, with optional RGB fill color.
Instructions
在当前 Illustrator 文档中画一个矩形。x/y 为左下角坐标(点),w/h 宽高,fr/fg/fb 为填充色 RGB(可选,不填则无填充)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | 高度(点) | |
| w | No | 宽度(点) | |
| x | No | 左下角 X 坐标(点) | |
| y | No | 左下角 Y 坐标(点) | |
| fb | No | 填充色 B 0-255,可选 | |
| fg | No | 填充色 G 0-255,可选 | |
| fr | No | 填充色 R 0-255,可选 |