fill_rectangle
Fills a specified rectangular area with a solid color using x/y coordinates, width, height, and color, with optional target layer and image index.
Instructions
Fill a rectangular region with a solid color.
Parameters:
x, y: Top-left corner
width, height: Rectangle dimensions
color: Fill color (CSS name, hex, or rgb() string)
layer_name: Target layer; defaults to active layer
image_index: Target image index (default 0)
Returns status dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| color | Yes | ||
| width | Yes | ||
| height | Yes | ||
| layer_name | No | ||
| image_index | No |