ai_add_polygon
Add a regular polygon to the active Illustrator document by specifying center coordinates, radius, number of sides, and optional RGB fill color.
Instructions
在当前 Illustrator 文档中画一个正多边形。x/y 为中心点,radius 半径,sides 边数(默认 6)。fr/fg/fb 填充色可选。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | 中心点 X 坐标(点) | |
| y | No | 中心点 Y 坐标(点) | |
| fb | No | 填充色 B 0-255,可选 | |
| fg | No | 填充色 G 0-255,可选 | |
| fr | No | 填充色 R 0-255,可选 | |
| sides | No | 边数(默认 6) | |
| radius | No | 半径(点) |